Blame view

LabTools/IRAP/JPB/phangs_isrf_pipeline.pro 2.54 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
18
19
20
21
22
23
24
25
26

;==== 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...
27
28
;==== Check the classes and do a plot
check_phangs_ssps_isrf_prediction,/show_map
e314ac19   Jean-Philippe Bernard   improved
29

3b79f061   Jean-Philippe Bernard   improved
30
31
plot_phangs_ssps_against_uv_fast

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

ccfa6760   Jean-Philippe Bernard   corrected ISRF cl...
35
36
37
;==== Make isrf classes
make_phangs_isrf_classes,/fits

3b79f061   Jean-Philippe Bernard   improved
38
;make_sed_phangs_tables,/test,/show_seds   ;test of plugin dustem_plugin_phangs_class_isrf.pro
429a6075   Jean-Philippe Bernard   improved
39
40
41
;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
42
43
;...

ccfa6760   Jean-Philippe Bernard   corrected ISRF cl...
44
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
phangs_brute_force_fit_with_isrf_grid,source_name='ngc0628',/include_herschel
2adbba75   Jean-Philippe Bernard   First commit
51

82beee16   Jean-Philippe Bernard   improved
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72

;=== 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


make_phangs_ssps_isrf_prediction,source_name=source_name,/save

make_phangs_isrf_classes,source_name=source_name,/fits

2adbba75   Jean-Philippe Bernard   First commit
73
END