;
 Models

	;The FORWARD tree contains a number of differenet models, 
	;Each has an accompaying example file in the
	;EXAMPLES directory, examples_modelname.txt. Each model has a
	;different set of input parameters and models include different
	;quantities. The input parameters have defaults, so you don't have to
	;know all about them at once. For instance the CAVMORPH is a
	;morphological model of density, temperature, and pressure of
	;streamer, cavities, and related structures.

	;The default is a basic streamer with a cavity at the equator:

for_drive,'CAVMORPH',line='Dens',/plotlog,xxmin=.3,xxmax=1.6,yymin=-.3

	;You can move the cavity by setting the altitude of the cavity top:

	;change the cavity latitude (thcs) and width (cavwidth):

for_drive,'CAVMORPH',line='Dens',/plotlog,xxmin=.3,xxmax=1.6,yymin=-.3,$
cavtop_r=1.5,thcs=45,cavwidth=.5

	;there are many other parameters. So many in fact that it is
	;convenient to save them in a file and be able to read them
	;back:

for_drive,'CAVMORPH',line='dens',/plotlog,xxmin=.3,xxmax=1.6,yymin=-.3,$
	cavtop_r=1.5,thcs=45,cavwidth=.5,/nougat,cavheight=.4,TRim=1.3e6,$
	TCav=1.2e6,savepram='test1'
 
 	;Only the model parameters are saved, not the point of view,
 	;observables, of field of view, so you can read it back and change
 	;those things:
 
for_drive,'CAVMORPH',line='dens',/plotlog,xxmin=.3,xxmax=1.6,yymin=0,$
 	readpram='test1'
 
for_drive,'CAVMORPH',line='temp',/plotlog,xxmin=.3,xxmax=1.6,yymin=0,$
 	readpram='test1'
 
for_drive,'CAVMORPH',line='pb',/plotlog,$
	readpram='test1',gridtype='CarrMap',rheight=1.2  
	
	;CAVMORPH does not include magnetic field, but many of the others
	;do, for instance GIBLOW, which is a 3D MHD model of tethered
	;spheromak flux rope.

for_drive,'giblow',line='Dens',/plotlog,xxmin=.8,xxmax=1.6,yymin=-.5,yymax=.5,out=1.

for_drive,'giblow',line='Br',xxmin=.8,xxmax=1.6,yymin=-.5,yymax=.5,out=1.
	
	; Another model option of particular note is NUMCUBE. This
	;enables the user to set up a Cube based on a numerical model. The
	;original data has to be in a particular format and and is then
	;reporated by the routine make_my_cube.pro. see examples_numcube.txt
	;for details. The resulting file can then read in and the various
	;observables plotted from differnt points of view, just like with the
	;analytical models.

for_drive,'NUMCUBE',line='Dens',/plotlog,cubename='$FORWARD_DB/yfan2dcube.dat'

for_drive,'NUMCUBE',line='Br',cubename='$FORWARD_DB/yfan2dcube.dat'


end
;