Blame view

LabTools/IRAP/JPB/phangs_isrf_pipeline.pro 2.85 KB
2adbba75   Jean-Philippe Bernard   First commit
1
2
3
4
5
PRO phangs_isrf_pipeline


;PHANGS ISRF pipeline

e314ac19   Jean-Philippe Bernard   improved
6
;==== make sky images
6fd06be5   Jean-Philippe Bernard   improved
7
;produces _jwst_images.sav and _ref_header.sav
e314ac19   Jean-Philippe Bernard   improved
8
9
10
phangs_make_jwst_images,source_name='ngc0628',/save,/show,/nostop
;produces _muse_filters_data.sav,_muse_images.sav, _muse_NH.sav
phangs_make_muse_filters_images,source_name='ngc0628',/save,/show,/nostop
6fd06be5   Jean-Philippe Bernard   improved
11
;produces _astrosat_data.sav
e314ac19   Jean-Philippe Bernard   improved
12
phangs_make_astrosat_images,source_name='ngc0628',/save,/show,/nostop
6fd06be5   Jean-Philippe Bernard   improved
13
14
;produces _herschel_images.sav
phangs_make_herschel_images,source_name='ngc0628',/save,/show,/nostop
14ae4f23   Jean-Philippe Bernard   improved
15
phangs_make_hi_images,source_name='ngc0628',/save,/show,/nostop
6fd06be5   Jean-Philippe Bernard   improved
16
phangs_make_co_images,source_name='ngc0628',/save,/show,/nostop
e314ac19   Jean-Philippe Bernard   improved
17

3e3d714b   Jean-Philippe Bernard   removed hardcoded...
18

e314ac19   Jean-Philippe Bernard   improved
19
20
21
22
23
24
25
26
27
;==== extract SEDs on MUSE pixels
;produces _jwst_seds_muse_pixels.sav, _muse_seds_muse_pixels.sav', _astrosat_seds_muse_pixels.sav
phangs_extract_seds,source_name='ngc0628'


;fit_phangs_ngc0628_nir_continuum,/from_restore,/show_plots     ;fit seds of some voronoi bins
;fit_phangs_ngc0628_nir_continuum,/from_restore,/brute_force
;fit_phangs_ngc0628_nir_continuum,/from_restore,/grid_brute_force

ccfa6760   Jean-Philippe Bernard   corrected ISRF cl...
28
29
;==== Check the classes and do a plot
check_phangs_ssps_isrf_prediction,/show_map
e314ac19   Jean-Philippe Bernard   improved
30

3b79f061   Jean-Philippe Bernard   improved
31
32
plot_phangs_ssps_against_uv_fast

2adbba75   Jean-Philippe Bernard   First commit
33
make_phangs_ssps_isrf_prediction,source_name='ngc0628',/save
3b79f061   Jean-Philippe Bernard   improved
34
35
check_phangs_ssps_isrf_prediction

ccfa6760   Jean-Philippe Bernard   corrected ISRF cl...
36
;==== Make isrf classes
e2fb44a5   Jean-Philippe Bernard   improved
37
make_phangs_isrf_classes,bidon,source_name='ngc0628',/fits
ccfa6760   Jean-Philippe Bernard   corrected ISRF cl...
38

3b79f061   Jean-Philippe Bernard   improved
39
;make_sed_phangs_tables,/test,/show_seds   ;test of plugin dustem_plugin_phangs_class_isrf.pro
429a6075   Jean-Philippe Bernard   improved
40
41
42
;Generally very long. Do it using nohup (see make_phangs_grid.pro)
make_sed_phangs_tables,grid_type=2,isrf_class=15
make_sed_phangs_tables,grid_type=2,isrf_class=0
e314ac19   Jean-Philippe Bernard   improved
43
44
;...

ccfa6760   Jean-Philippe Bernard   corrected ISRF cl...
45
46
47
48
49
50


;=== had to convert previous grids like this:
convert_all_grid_tables_from_v1_to_v2

;=== Fit the SEDs with the ISRF Grids
442151d0   Jean-Philippe Bernard   improved
51
phangs_brute_force_fit_with_isrf_grid,source_name='ngc0628',/include_herschel,/normalize,/fit_G0,/save
2adbba75   Jean-Philippe Bernard   First commit
52

442151d0   Jean-Philippe Bernard   improved
53
phangs_brute_force_fit_with_isrf_grid,source_name='ngc0628',/include_herschel,/normalize,/fit_G0,/from_restore
82beee16   Jean-Philippe Bernard   improved
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69

;=== NGC3351
;Note: faire un chmod a+rwx * apres transfert sur alma1

source_name='ngc3351'
;produces _jwst_images.sav and _ref_header.sav
phangs_make_jwst_images,source_name=source_name,/save,/show,/nostop
;produces _muse_filters_data.sav,_muse_images.sav, _muse_NH.sav
phangs_make_muse_filters_images,source_name=source_name,/save,/show,/nostop
;produces _astrosat_data.sav
phangs_make_astrosat_images,source_name=source_name,/save,/show,/nostop
;produces _herschel_images.sav
phangs_make_herschel_images,source_name=source_name,/save,/show,/nostop
phangs_make_hi_images,source_name=source_name,/save,/show,/nostop
phangs_make_co_images,source_name=source_name,/save,/show,/nostop

f522d335   Jean-Philippe Bernard   improved
70
phangs_extract_seds,source_name=source_name,/save
82beee16   Jean-Philippe Bernard   improved
71
72
73
74
75

make_phangs_ssps_isrf_prediction,source_name=source_name,/save

make_phangs_isrf_classes,source_name=source_name,/fits

f522d335   Jean-Philippe Bernard   improved
76
77
phangs_brute_force_fit_with_isrf_grid,source_name=source_name,/include_herschel,/normalize,/fit_G0

2adbba75   Jean-Philippe Bernard   First commit
78
END