Commit dbf82b16a0ac8493907ea3049bef46149c96d980
1 parent
e62a03b3
Exists in
master
chaaged the plot
Showing
1 changed file
with
50 additions
and
1 deletions
Show diff stats
src/idl/dustem_brute_force_fit.pro
1 | 1 | FUNCTION dustem_brute_force_fit,sed,table_name,filters,normalize=normalize,fact=fact,chi2=chi2,rchi2=rchi2,show_sed=show_sed |
2 | 2 | |
3 | +;+ | |
4 | +; NAME: | |
5 | +; dustem_brute_force_fit | |
6 | +; PURPOSE: | |
7 | +; does brut force fit from a pre-computed model grid | |
8 | +; CATEGORY: | |
9 | +; DustEM | |
10 | +; CALLING SEQUENCE: | |
11 | +; res=dustem_brute_force_fit(sed,table_name,filters,normalize=normalize,fact=fact,chi2=chi2,rchi2=rchi2,show_sed=show_sed) | |
12 | +; INPUTS: | |
13 | +; None | |
14 | +; OPTIONAL INPUT PARAMETERS: | |
15 | +; key = input parameter number | |
16 | +; First parameter: E(B-V) for extinction applied to the template, as used in Phangs | |
17 | +; Following 13*6 parameters are weights by which to multiply the MILES templates [Msun/pc^2] | |
18 | +; val = corresponding input parameter value | |
19 | +; OUTPUTS: | |
20 | +; stellar_brightness = stellar spectrum spectrum resampled on dustem wavelengths [MJy/sr] | |
21 | +; OPTIONAL OUTPUT PARAMETERS: | |
22 | +; scope = scope of the plugin | |
23 | +; paramdefault = default values of parameters | |
24 | +; paramtag = plugin parameter names as strings | |
25 | +; ACCEPTED KEY-WORDS: | |
26 | +; help = if set, print this help | |
27 | +; method = SSP used. can be EMILES or CB19. default='EMILES' | |
28 | +; COMMON BLOCKS: | |
29 | +; None | |
30 | +; SIDE EFFECTS: | |
31 | +; None | |
32 | +; RESTRICTIONS: | |
33 | +; The DustEMWrap IDL code must be installed | |
34 | +; PROCEDURE: | |
35 | +; This is a DustEMWrap plugin for phangs | |
36 | +; It differs from dustem_plugin_emiles_stellar_continuum.pro only by the way the extinction is applied to the output spectrum | |
37 | +; EXAMPLES | |
38 | +; dustem_init | |
39 | +; vec=dustem_plugin_phangs_stellar_continuum(scope=scope) | |
40 | +; MODIFICATION HISTORY: | |
41 | +; Written by JPB June 2023 | |
42 | +; Evolution details on the DustEMWrap gitlab. | |
43 | +; See http://dustemwrap.irap.omp.eu/ for FAQ and help. | |
44 | +;- | |
45 | + | |
46 | +IF keyword_set(help) THEN BEGIN | |
47 | + doc_library,'dustem_plugin_phangs_stellar_continuum' | |
48 | + output=0. | |
49 | + goto,the_end | |
50 | +ENDIF | |
51 | + | |
3 | 52 | ;stop |
4 | 53 | ;sed must be normalized to NH=1e20 H/cm2 |
5 | 54 | |
... | ... | @@ -85,7 +134,7 @@ IF keyword_set(show_sed) THEN BEGIN |
85 | 134 | xtit='Wavelength [mic]' |
86 | 135 | ytit='SED (model=red,data=blue)' |
87 | 136 | ;should also plot uncertainties |
88 | - cgplot,sed.wave,sed.stokesI,psym='Filled Circle',color='blue',/ylog,yrange=[0.01,10],/ysty,xtit=xtit,ytit=ytit,/xlog | |
137 | + cgplot,sed.wave,sed.stokesI,psym='Filled Circle',color='blue',/ylog,/ysty,xtit=xtit,ytit=ytit,/xlog | |
89 | 138 | cgoplot,sed.wave,grid_seds[ind[0],*]*fact,psym='Filled Square',color='red' |
90 | 139 | ENDIF |
91 | 140 | ... | ... |