Commit a66fad574aa4a0e4a97269d3ec5a30728219bab9

Authored by rmaris
1 parent 30881cdf
Exists in master

First commit

Showing 1 changed file with 32 additions and 0 deletions   Show diff stats
LabTools/IRAP/RM/test_size_distribution.pro 0 → 100644
... ... @@ -0,0 +1,32 @@
  1 +PRO test_size_distribution
  2 +
  3 +fpd=['(*!dustem_params).gas.g0','(*!dustem_params).g0','dustem_plugin_phangs_class_isrf_1','dustem_plugin_phangs_class_isrf_4'] ;ISRF class to be used
  4 +model='DL07'
  5 +dustem_init,model=model
  6 +fortran_user=dustem_set_up_fortran(/random_name) ;use a random fortran number
  7 +!dustem_verbose=0
  8 +(*!dustem_params).KEYWORDS='quiet '+(*!dustem_params).KEYWORDS ;This makes Fortran be quiet too
  9 +;stop
  10 +(*!dustem_params).grains[0].TYPE_KEYWORDS='logn'
  11 +(*!dustem_params).grains[1].TYPE_KEYWORDS='logn'
  12 +grain_keywords=[(*!dustem_params).grains.TYPE_KEYWORDS] ;This is to inform dustem_make_sed_table, which actually runs the models
  13 +
  14 +
  15 +params = ['(*!dustem_params).grains(0).amax','(*!dustem_params).grains(1).amax']
  16 +fiv=[-1., 1,0.,0] ;This sets the ISRF class to the requested value. also removes ionising photons.
  17 +; use_fit_filters_names=[dustem_instru2filters('NIRCAM'),dustem_instru2filters('MIRI'),dustem_instru2filters('PACS'),dustem_instru2filters('SPIRE')]
  18 +
  19 +use_fit_filters_names = dustem_filter_names2filters(['F300M','F335M','F360M','F0770W','F1000W','F1130W','F2100W','PACS_BLUE','PACS_GREEN','PACS_RED','PSW','PMW','PLW'])
  20 +path_save = 'tmp/sed_size.fits'
  21 +
  22 +
  23 +dustem_make_sed_table,model,params, [1.2000E-07,1.2000E-07],[3.300E-08,3.300E-08],[5,5],fpd=fpd,fiv=fiv,plog=[0,0],/show_seds,filters=use_fit_filters_names,filename=path_save, $
  24 + grain_keywords=grain_keywords
  25 +
  26 +
  27 +
  28 +
  29 +the_end:
  30 +message,'test_size_distribution',/info$
  31 +
  32 +END
0 33 \ No newline at end of file
... ...