1 | |
---|
2 | ----- Documentation for Phot\average_magnitudes.pro ----- |
---|
3 | NAME: |
---|
4 | AVERAGE_MAGNITUDES |
---|
5 | |
---|
6 | AUTHOR: |
---|
7 | pierre.cruzalebes@oca.eu |
---|
8 | |
---|
9 | PURPOSE: |
---|
10 | average magnitude measurements (with direct bootstrap if number of |
---|
11 | measurements ge NB_DATA_BOOT) |
---|
12 | |
---|
13 | CATEGORY: |
---|
14 | photometrics |
---|
15 | |
---|
16 | INPUTS: |
---|
17 | need text input file with : |
---|
18 | - magnitude file name |
---|
19 | |
---|
20 | REQUIREMENTS: |
---|
21 | data read in magnitude file (in OBS_PATH/DATA directory) |
---|
22 | must be in ASCII format and contain (in this order, 1 spectral band |
---|
23 | per row) : |
---|
24 | - central wavelength, nber of mag to average, individual magnitudes |
---|
25 | and errors |
---|
26 | |
---|
27 | OUTPUTS: |
---|
28 | data written in mean magnitude file (in OBS_PATH/DATA directory) |
---|
29 | are (in this order) : |
---|
30 | - wavelength, weighted mean mag and unbiaeed stdev |
---|
31 | |
---|
32 | LOCAL PROCEDURE CALLED: |
---|
33 | RESET_PLOT |
---|
34 | |
---|
35 | LOCAL FUNCTION USED: |
---|
36 | EXTRACT_PROHEADER |
---|
37 | GET_OUTLIER_FENCES |
---|
38 | WAVG |
---|
39 | WSTDEV |
---|
40 | WSTERR |
---|
41 | |
---|
42 | LOCAL SYSTEM VARIABLE USED: |
---|
43 | NB_DATA_BOOT |
---|
44 | OBS_PATH |
---|
45 | SPIDAST_PATH |
---|
46 | |
---|
47 | REVISION HISTORY: |
---|
48 | Written by pcr 2006/05/30 |
---|
49 | last modification by pcr 2010/12/12 |
---|
50 | |
---|
51 | ----- Documentation for Phot\complete_flux_data.pro ----- |
---|
52 | NAME: |
---|
53 | COMPLETE_FLUX_DATA |
---|
54 | |
---|
55 | AUTHOR: |
---|
56 | pierre.cruzalebes@oca.eu |
---|
57 | |
---|
58 | PURPOSE: |
---|
59 | complete flux data with bandpasses and flux accuracies |
---|
60 | |
---|
61 | CATEGORY: |
---|
62 | photometrics |
---|
63 | |
---|
64 | INPUTS: |
---|
65 | needs text input file (in OBS_PATH/INP/ directory) with : |
---|
66 | - input flux data file name |
---|
67 | - input band data file name |
---|
68 | - correction factor for resolution (=1 if no correction) |
---|
69 | |
---|
70 | REQUIREMENTS: |
---|
71 | data read in flux file (in subdirectory of OBS_PATH/) |
---|
72 | must be in ASCII format and contain (in this order, 1 spectral band per row) : |
---|
73 | - wavelength, flux, error on flux (optionaly) |
---|
74 | |
---|
75 | data read in band file (in ALL_DATA_PATH/ directory) |
---|
76 | must be in ASCII format and contain (in this order, 1 bandpass per row) : |
---|
77 | - min and max wavelengths, corresponding resolutions, |
---|
78 | photometric accuracies (in percentage, if null use flux errors of |
---|
79 | input flux file) |
---|
80 | |
---|
81 | SWS AOT-1 resolution correction factor according to Lorente 1998 |
---|
82 | (http://iso.esac.esa.int/users/expl_lib/SWS/aot1.ps) |
---|
83 | with speed 4 (6500s) used as reference (the most reliable): |
---|
84 | speed 1 (1200s) : R(1)/R(4)=0.38 |
---|
85 | speed 2 (1900s) : R(2)/R(4)=0.31 |
---|
86 | speed 3 (3600s) : R(3)/R(4)=0.58 |
---|
87 | |
---|
88 | input/output wavelengths and bandwidths must be in same unit |
---|
89 | as well as fluxes and flux errors |
---|
90 | |
---|
91 | OUTPUTS: |
---|
92 | data written in output file (in same subdirectory of OBS_PATH/) |
---|
93 | are in same format and order with : |
---|
94 | - wavelength and spectral bandwidth, flux and error on flux |
---|
95 | |
---|
96 | LOCAL PROCEDURE CALLED: |
---|
97 | RESET_PLOT |
---|
98 | |
---|
99 | LOCAL FUNCTION USED: |
---|
100 | EXTRACT_PROHEADER |
---|
101 | TRAP |
---|
102 | |
---|
103 | LOCAL SYSTEM VARIABLE USED: |
---|
104 | ALL_DATA_PATH |
---|
105 | NB_DATA_MAX |
---|
106 | NB_RES_STEP |
---|
107 | OBS_PATH |
---|
108 | SPIDAST_PATH |
---|
109 | |
---|
110 | REVISION HISTORY: |
---|
111 | Written by pcr 2007/10/02 |
---|
112 | last modification by pcr 2010/07/21 |
---|
113 | |
---|
114 | ----- Documentation for Phot\convert_lim_data.pro ----- |
---|
115 | NAME: |
---|
116 | CONVERT_LIM_DATA |
---|
117 | |
---|
118 | AUTHOR: |
---|
119 | pierre.cruzalebes@oca.eu |
---|
120 | |
---|
121 | PURPOSE: |
---|
122 | convert limb-darkened relative spectral radiance to absolute spectral |
---|
123 | radiance (at given spectral resolution). |
---|
124 | If necessary use spectral fits of limb-darken parameters to |
---|
125 | extrapolate radiance outside input spectral range. |
---|
126 | |
---|
127 | CATEGORY: |
---|
128 | photometrics |
---|
129 | |
---|
130 | INPUTS: |
---|
131 | need text input file (in OBS_PATH/INP/ directory) with: |
---|
132 | - exitance file name (input, .spec or .flux, if 'none' use radiance |
---|
133 | data only) |
---|
134 | - relative radiance file name (input, .lim or .itf) |
---|
135 | - min and max final wavelengths [mum] |
---|
136 | - nber of final radiance data per wavelength element (nb_int, |
---|
137 | if <0 => uses max. nber of values per wavel. in input radiance data) |
---|
138 | - polynomial degrees used for fits (in same row) : |
---|
139 | of the spectral distrib of the limb-darken to uniform-disk conversion factor |
---|
140 | of the radial distrib of the radiance (1:linear limb-darken, 2:quadratic LD...) |
---|
141 | of the spectral distrib of the limb-darken coeff(s) |
---|
142 | of the spectral distrib of the hanning-drop power |
---|
143 | - reference spectral line table and limb-darkening coefficient table for a given filter |
---|
144 | (in ALL_DATA/directory, 'none' if not needed) |
---|
145 | - optionaly : final spectral resolution at mean wavelength |
---|
146 | |
---|
147 | REQUIREMENTS: |
---|
148 | data read in the exitance file (.spec extension, in SYNTHE_PATH directory) |
---|
149 | must be in ASCII format and contain 2 columns of data: |
---|
150 | - wavelength [AA = 10^-4 mum], exitance [erg/cm^2/s/AA = 10*W/m^2/mum] |
---|
151 | |
---|
152 | data read in exitance file (.flux extension, in SYNTHE_PATH directory) |
---|
153 | must be in ASCII format and contain 3 columns of data: |
---|
154 | - wavelength [AA], line relative depth = |
---|
155 | (F(continuous)-F)/F(continuous), F/PI [erg/cm^2/s/AA] (flux must |
---|
156 | be multiplied by PI to fit MARCS exitance) |
---|
157 | |
---|
158 | data read in relative radiance file (in SYNTHE_PATH directory, name with |
---|
159 | first 4 characters = temperature [K], 'g' char followed with logg [cm/s^2], |
---|
160 | 'z' with log(Fe/H) [Sun], 't' with microturbulent velocity [km/s], |
---|
161 | .lim or .itf extension) must be in ASCII format and contain : |
---|
162 | |
---|
163 | .lim files (computed by A. Jorissen) |
---|
164 | first line : |
---|
165 | - values of the linear radius [cm] : first value must be |
---|
166 | R(Tau Ross=1E-6) and last value must be R(Tau Ross=1), |
---|
167 | which are the only values to be used |
---|
168 | then for each spectral channel the following 3 lines : |
---|
169 | first line : |
---|
170 | - wavelength [AA], absolute intensity at center I0 |
---|
171 | [erg/cm^2/s/AA/sr], F/PI [erg/cm^2/s/AA] |
---|
172 | second line : |
---|
173 | - wavelength, number of values, relative impact parameters |
---|
174 | sqrt(1-mu^2) (=1 at external radius) |
---|
175 | third line : |
---|
176 | - wavelength, number of values, relative intensity I(mu)/I0 |
---|
177 | (=1 at center,=0 at external) |
---|
178 | |
---|
179 | .itf files (computed by K. Eriksson) |
---|
180 | - wavelength [AA] + (N+1) values of absolute intensity |
---|
181 | [erg/cm^2/s/AA/sr], for mu=1.0(center), 1-1/N...1/N, 0.0(limb) |
---|
182 | |
---|
183 | data read in line table (in ALL_DATA_PATH/directory) |
---|
184 | must be in ASCII format and contain : |
---|
185 | - wavelength [mum] and element identification |
---|
186 | |
---|
187 | data read in ld-coeff table (in ALL_DATA_PATH/directory) |
---|
188 | must be in ASCII format and contain : |
---|
189 | - Teff [K], logg [cm/s^2], log(M/H) [Sun], VT [km/s], |
---|
190 | ld-coeff a1...a4 of non-linear law of Claret A&A 363, 1081 (2000) |
---|
191 | in a given filter |
---|
192 | |
---|
193 | non-linear law : I(mu)/I(1)=1-a1*(1-mu^0.5)-a2*(1-mu)-a3*(1-mu^1.5) |
---|
194 | -a4*(1-mu^2) |
---|
195 | where I(1) is the specific intensity at the center of the disk, |
---|
196 | mu=cos(theta), theta being the angle between the line of sight |
---|
197 | and the emergent intensity, |
---|
198 | or I(mu)/I(1)=(1-a1+a2+a3+a4)*(1-b1*mm-b2*mm^2-b3*mm^3-b4*mm^4) |
---|
199 | where mm=mu^0.5, and b1=a1/(a1+a2+a3+a4-1), b2=a2/(a1+a2+a3+a4-1), |
---|
200 | b3=a3/(a1+a2+a3+a4-1), b4=a4/(a1+a2+a3+a4-1) |
---|
201 | |
---|
202 | OUTPUTS: |
---|
203 | data written in absolute radiance file (.limb extension, in SYNTHE_PATH |
---|
204 | directory) are in ASCII format and contain nb_int+1 colums of data: |
---|
205 | first line: |
---|
206 | - Rosseland to LD diameter conversion factor , relative impact |
---|
207 | parameters (nb_int values between 0. and 1.) |
---|
208 | then: |
---|
209 | - wavelength [mum], nb_int values of absolute radiance [W/m^2/mum/sr] |
---|
210 | |
---|
211 | LOCAL PROCEDURE CALLED: |
---|
212 | COV2COR |
---|
213 | ENGELKE |
---|
214 | LD_POLY_FIT |
---|
215 | LD_POLY_FUNCT |
---|
216 | PLANCK |
---|
217 | POLY_BOOT |
---|
218 | RESET_PLOT |
---|
219 | |
---|
220 | LOCAL FUNCTION USED: |
---|
221 | EXTRACT_PROHEADER |
---|
222 | GAUSSIAN |
---|
223 | GET_OUTLIER_FENCES |
---|
224 | MIN_PDR_RADIUS |
---|
225 | TRAP |
---|
226 | |
---|
227 | LOCAL SYSTEM VARIABLE USED: |
---|
228 | ALL_DATA_PATH |
---|
229 | EPSILON |
---|
230 | NB_DATA_BOOT |
---|
231 | NB_RES_STEP |
---|
232 | OBS_PATH |
---|
233 | PLOT_DEV |
---|
234 | SPEC_RES |
---|
235 | SPIDAST_PATH |
---|
236 | SYNTHE_PATH |
---|
237 | |
---|
238 | REVISION HISTORY: |
---|
239 | Written by pcr 2007/10/15 |
---|
240 | last modification by pcr 2011/01/21 |
---|
241 | |
---|
242 | ----- Documentation for Phot\create_spec.pro ----- |
---|
243 | NAME: |
---|
244 | CREATE_SPEC |
---|
245 | |
---|
246 | PURPOSE: |
---|
247 | create synthetic blackbody/Engelke spectral radiant exitance file |
---|
248 | |
---|
249 | CATEGORY: |
---|
250 | photometrics |
---|
251 | |
---|
252 | INPUTS: |
---|
253 | need text input file with: |
---|
254 | - minimum wavelength (in microns) |
---|
255 | - maximum wavelength (in microns) |
---|
256 | - resolution power (lambda/bandwith) (if null => MARCS_RES) |
---|
257 | - effective temperature (in K) |
---|
258 | - function to use for calculation ('planck' or 'engelke') |
---|
259 | |
---|
260 | OUTPUTS: |
---|
261 | data written in output file are in same format as MARCS data i.e.: |
---|
262 | - wavelength (in Angstroems = 10^-4 mu) and exitance |
---|
263 | (in erg.s^-1.cm^-2.A^-1 = 10 W.m^-2.mu^-1) |
---|
264 | |
---|
265 | LOCAL PROCEDURE CALLED: |
---|
266 | ENGELKE |
---|
267 | PLANCK |
---|
268 | RESET_PLOT |
---|
269 | |
---|
270 | LOCAL FUNCTION USED: |
---|
271 | EXTRACT_PROHEADER |
---|
272 | |
---|
273 | LOCAL SYSTEM VARIABLE USED: |
---|
274 | OBS_PATH |
---|
275 | MARCS_RES |
---|
276 | SPIDAST_PATH |
---|
277 | SYNTHE_PATH |
---|
278 | |
---|
279 | REVISION HISTORY: |
---|
280 | Written by pcr 2006/02/07 |
---|
281 | last modification by pcr 2010/03/06 |
---|
282 | |
---|
283 | ----- Documentation for Phot\extinction.pro ----- |
---|
284 | NAME: |
---|
285 | EXTINCTION |
---|
286 | |
---|
287 | PURPOSE: |
---|
288 | Calculate visual interstellar extinction due to the Milky Way. |
---|
289 | This code is described in AJ 114, 2043-2053 (1997). |
---|
290 | |
---|
291 | CATEGORY: |
---|
292 | photometrics |
---|
293 | |
---|
294 | LOCAL PROCEDURE CALLED: |
---|
295 | NONE |
---|
296 | |
---|
297 | INPUTS: |
---|
298 | L = Galactic longitude (degrees) 0 <= L < 360 |
---|
299 | B = Galactic latitude (degrees) -90 <= B <= 90 |
---|
300 | D = Source distance (in kpc) 0 <= D |
---|
301 | RM = A0/E(B-V) = mean galactic extinction |
---|
302 | where A0 = 1.5 magnitudes per kpc |
---|
303 | |
---|
304 | OUTPUTS: |
---|
305 | AVT = Total visual extinction (magnitudes), using available procedures. |
---|
306 | SAVT = Total extinction error (magnitudes), using available procedures. |
---|
307 | AVC = Visual extinction correction (mag), using available procedures. |
---|
308 | The corrected extinction AVT+AVC removes suspected systematics. |
---|
309 | JMAX = Number of procedures used to calculate extinction. |
---|
310 | AV(i) = Extinction calculated by the iTH procedure. |
---|
311 | SAV(i) = Error calculated by the iTH procedure. |
---|
312 | Specific procedures used to calculate the extinction are returned |
---|
313 | via AV(i): If AV(i) has a value not equal to -99, then the ith |
---|
314 | study has been used in calculating extinction. |
---|
315 | i=0 is from Fitzgerald, AJ 73, 983 (1968). |
---|
316 | i=1 is from Neckel and Klare, A&A Supp 42, 251 (1980). |
---|
317 | i=2 is from Berdnikov & Pavlovskaya, Sov. Astron. Lett. 17, 215 (1991). |
---|
318 | i=3 is from Arenou et al., A&A 258, 104 (1992). |
---|
319 | i=4 is from Chen et al., A&A 336, 137 (1998). |
---|
320 | i=5 is from Drimmel & Spergel, ApJ 556, 181 (2001). |
---|
321 | i=6 is from Penprase, ApJ. Supp. 83, 273 (1992), |
---|
322 | Magnani et al., ApJ. 295, 402 (1985), |
---|
323 | Keto & Myers, ApJ. 304, 466 (1986), |
---|
324 | Desert et al., Ap.J. 334, 815 (1988), |
---|
325 | Odenwald, Ap.J. 325, 320 (1988), |
---|
326 | Hughes et al., A.J. 105, 571 (1993), |
---|
327 | Kenyon et al., A.J. 108, 1872 (1994), |
---|
328 | Cernis, ApSS 166, 315 (1990), |
---|
329 | Cernis, Baltic Astron. 2, 214 (1993), |
---|
330 | Rossano, AJ, 83, 234 (1978), |
---|
331 | Rossano, AJ, 83, 241 (1978), |
---|
332 | Kutner et al., ApJ, 215, 521 (1977). |
---|
333 | |
---|
334 | All studies have been modified to statistically account for |
---|
335 | unsampled regions. |
---|
336 | |
---|
337 | LOCAL FUNCTION USED: |
---|
338 | COSD |
---|
339 | SIND |
---|
340 | TAND |
---|
341 | GET_OUTLIER_FENCES |
---|
342 | WSTDEV |
---|
343 | |
---|
344 | LOCAL SYSTEM VARIABLE USED: |
---|
345 | ALL_DATA_PATH |
---|
346 | NB_DATA_BOOT |
---|
347 | |
---|
348 | REVISION HISTORY: |
---|
349 | Written (v. 2.0.5, May 13, 1999) by Jon Hakkila, Jeannette Myers, |
---|
350 | Brett Stidham, & Dieter Hartmann. |
---|
351 | Changes implemented since version 1.0 (Dec. 2, 1996): |
---|
352 | Updated error analysis for the Fitzgerald procedure. |
---|
353 | Fixed a coding error in the Fitzgerald procedure that caused |
---|
354 | extinction out of the Galactic plane to be overestimated at |
---|
355 | distances larger than 1 kpc. |
---|
356 | Fixed cell boundaries & extinction in Neckel & Klare procedure. |
---|
357 | More accurate angular cloud boundaries for the high-Galactic |
---|
358 | clouds analyzed in the high-latitude study (formerly the Penprase |
---|
359 | procedure). This procedure now also identifies additional high- |
---|
360 | Galactic latitude clouds. |
---|
361 | Systematic underrepresentation of extinction is corrected by using |
---|
362 | an additional correction term. |
---|
363 | Correction term now provides reasonable corrections slightly |
---|
364 | above and below Galactic plane beyond 5 kpc. |
---|
365 | Correction of Arenou procedure provided by Alain Jorissen (Mar. 19, 2008) |
---|
366 | Correction of Chen procedure added by Pierre Cruzalèbes (Mar. 25, 2008) |
---|
367 | Correction of Drimmel procedure added by Pierre Cruzalèbes (Sept. 17, 2009) |
---|
368 | last modification by pcr 2010/12/12 |
---|
369 | |
---|
370 | ----- Documentation for Phot\interstellar_correct.pro ----- |
---|
371 | NAME: |
---|
372 | INTERSTELLAR_CORRECT |
---|
373 | |
---|
374 | AUTHOR: |
---|
375 | pierre.cruzalebes@oca.eu |
---|
376 | |
---|
377 | PURPOSE: |
---|
378 | correct magnitudes for Galactic interstellar extinction |
---|
379 | |
---|
380 | CATEGORY: |
---|
381 | photometrics |
---|
382 | |
---|
383 | INPUTS: |
---|
384 | need text input file with : |
---|
385 | - magnitude file name |
---|
386 | - basic data file name |
---|
387 | - wavelength-dependent extinction file name (ADPS, from |
---|
388 | Fitzpatrick, PASP 111, 63 (1999)) |
---|
389 | - mean value of Galactic extinction (Rv=2.1, 3.1 or 5.0) |
---|
390 | |
---|
391 | REQUIREMENTS: |
---|
392 | data read in magnitude file (in subdirectory of OBS_PATH/) |
---|
393 | must be in ASCII format and contain (in this order, 1 spectral band |
---|
394 | per row) : |
---|
395 | - mean wavelength and equivalent width [mum], magnitude and error |
---|
396 | |
---|
397 | basic data file (in subdirectory of OBS_PATH/) must be in |
---|
398 | standard FITS format and contain the following ASCII lines with: |
---|
399 | RAEP0 = 'dd.ddddddd' / Right Ascension (J2000) (deg) |
---|
400 | DECEP0 = '+-dd.dddddd' / Declination (J2000) (deg) |
---|
401 | PARALLAX = ppp.pp / Parallax (deg) |
---|
402 | PARA_ERR = e.ee / Error on Parallax (deg) |
---|
403 | |
---|
404 | data read in extinction file (in ALL_DATA_PATH/ directory) |
---|
405 | must be in ASCII format and contain (in this order, 1 spectral band |
---|
406 | per row) : |
---|
407 | - wavelength [AA] and extinction |
---|
408 | (extinctions are calculated for the mean value of Galactic extinction) |
---|
409 | |
---|
410 | OUTPUTS: |
---|
411 | data written in corrected magnitude file (in the same subdirectory |
---|
412 | of OBS_PATH/) are (in this order, 1 spectral band per row) : |
---|
413 | - wavelength and width, corrected magnitude and error |
---|
414 | |
---|
415 | LOCAL PROCEDURE CALLED: |
---|
416 | EULER |
---|
417 | EXTINCTION |
---|
418 | RESET_PLOT |
---|
419 | |
---|
420 | LOCAL FUNCTION USED: |
---|
421 | EXTRACT_PROHEADER |
---|
422 | |
---|
423 | LOCAL SYSTEM VARIABLE USED: |
---|
424 | ALL_DATA_PATH |
---|
425 | FORMAT_OUT |
---|
426 | MAX_DATA_HEADER |
---|
427 | MAX_REL_ERR |
---|
428 | NB_MAX_PARAM |
---|
429 | OBS_PATH |
---|
430 | SPIDAST_PATH |
---|
431 | |
---|
432 | REVISION HISTORY: |
---|
433 | Written by pcr 2008/03/18 |
---|
434 | last modification by pcr 2010/06/16 |
---|
435 | |
---|
436 | ----- Documentation for Phot\Jy2Wm2mu.pro ----- |
---|
437 | NAME: |
---|
438 | JY2WM2MU |
---|
439 | |
---|
440 | AUTHOR: |
---|
441 | pierre.cruzalebes@oca.eu |
---|
442 | |
---|
443 | PURPOSE: |
---|
444 | convert flux measurements [Jy] into fluxes [W/m^2/mum] |
---|
445 | |
---|
446 | CATEGORY: |
---|
447 | photometrics |
---|
448 | |
---|
449 | INPUTS: |
---|
450 | need text input file (in OBS_PATH/INP/ directory) with : |
---|
451 | - input flux [Jy] file name |
---|
452 | |
---|
453 | REQUIREMENTS: |
---|
454 | data read in Jy flux file (in subdirectory of OBS_PATH/) |
---|
455 | must be in ASCII format and contain (in this order, |
---|
456 | 1 spectral band per row) : |
---|
457 | - mean wavelength and equivalent bandwidth [mum], flux and error [Jy] |
---|
458 | |
---|
459 | OUPUTS: |
---|
460 | data written in output flux file (in the same subdirectory of OBS_PATH/) |
---|
461 | are in same format and order and contain fluxes [W/m^2/mum] |
---|
462 | |
---|
463 | LOCAL PROCEDURE CALLED: |
---|
464 | RESET_PLOT |
---|
465 | |
---|
466 | LOCAL FUNCTION USED: |
---|
467 | EXTRACT_PROHEADER |
---|
468 | |
---|
469 | LOCAL SYSTEM VARIABLE USED: |
---|
470 | OBS_PATH |
---|
471 | SPIDAST_PATH |
---|
472 | |
---|
473 | REVISION HISTORY: |
---|
474 | Written by pcr 2006/05/30 |
---|
475 | last modification by pcr 2010/02/10 |
---|
476 | |
---|
477 | ----- Documentation for Phot\magnitude2flux.pro ----- |
---|
478 | NAME: |
---|
479 | MAGNITUDE2FLUX |
---|
480 | |
---|
481 | AUTHOR: |
---|
482 | pierre.cruzalebes@oca.eu |
---|
483 | |
---|
484 | PURPOSE: |
---|
485 | convert magnitude measurements into fluxes in given spectral bands |
---|
486 | |
---|
487 | INPUTS: |
---|
488 | need text input file (in OBS_PATH/INP/ directory) with : |
---|
489 | - input magnitude file name |
---|
490 | - zero-mag flux file name |
---|
491 | |
---|
492 | REQUIREMENTS: |
---|
493 | data read in input magnitude file (in subdirectory of OBS_PATH/) |
---|
494 | must be in ASCII format and contain (in this order, 1 spectral band |
---|
495 | per row) : |
---|
496 | - wavelength and bandwidth, magnitude, error on mag |
---|
497 | |
---|
498 | data read in input zero-mag flux file (in ALL_DATA_PATH/ directory) |
---|
499 | must be in ASCII format and contain (in this order, 1 spectral band |
---|
500 | per row) : |
---|
501 | - effective wavelength and bandwidth (in same unit), zero-mag flux |
---|
502 | and error (in same unit) |
---|
503 | |
---|
504 | OUTPUTS: |
---|
505 | data written in output flux file (in the same subdirectory of OBS_PATH/) |
---|
506 | are (in this order, 1 spectral band per row) : |
---|
507 | - wavelength and width (of mag file), flux and error on flux |
---|
508 | (spectral ranges of mag and zero-mag files must overlap |
---|
509 | output fluxes are in same unit than input zero-mag fluxes) |
---|
510 | |
---|
511 | LOCAL PROCEDURE CALLED: |
---|
512 | RESET_PLOT |
---|
513 | |
---|
514 | LOCAL FUNCTION USED: |
---|
515 | EXTRACT_PROHEADER |
---|
516 | TRI_STDEV |
---|
517 | |
---|
518 | LOCAL SYSTEM VARIABLE USED: |
---|
519 | ALL_DATA_PATH |
---|
520 | MAX_REL_ERR |
---|
521 | OBS_PATH |
---|
522 | SPIDAST_PATH |
---|
523 | |
---|
524 | REVISION HISTORY: |
---|
525 | Written by pcr 2006/05/30 |
---|
526 | last modification by pcr 2010/06/09 |
---|
527 | |
---|
528 | ----- Documentation for Phot\make_sed.pro ----- |
---|
529 | NAME: |
---|
530 | MAKE_SED |
---|
531 | |
---|
532 | AUTHOR: |
---|
533 | pierre.cruzalebes@oca.eu |
---|
534 | |
---|
535 | PURPOSE: |
---|
536 | make spectral energy distribution from flux files |
---|
537 | sorted in ascending spectral order |
---|
538 | between lambda_min and lambda_max |
---|
539 | |
---|
540 | CATEGORY: |
---|
541 | photometrics |
---|
542 | |
---|
543 | INPUTS: |
---|
544 | need text input file (in OBS_PATH/INP/ directory) with : |
---|
545 | - number of flux file(s) to concatenate |
---|
546 | - flux file name(s) |
---|
547 | - lambda_min and lambda_max [mu] |
---|
548 | |
---|
549 | REQUIREMENTS: |
---|
550 | data read in flux files (in subdirectory of OBS_PATH/) |
---|
551 | must be in ASCII format and contain (in this order, 1 spectral band |
---|
552 | per row) : |
---|
553 | - central wavelength, spectral bandwidth, flux, error on flux |
---|
554 | (wavelengths and bandwidths must be in the same unit |
---|
555 | as well as fluxes and flux errors) |
---|
556 | |
---|
557 | OUTPUTS: |
---|
558 | data written in output flux file (in the same subdirectory of OBS_PATH/) |
---|
559 | are in same format |
---|
560 | |
---|
561 | LOCAL PROCEDURE CALLED: |
---|
562 | RESET_PLOT |
---|
563 | |
---|
564 | LOCAL FUNCTIOn USED: |
---|
565 | EXTRACT_PROHEADER |
---|
566 | |
---|
567 | LOCAL SYSTEM VARIABLE USED: |
---|
568 | OBS_PATH |
---|
569 | PLOT_DEV |
---|
570 | SPIDAST_PATH |
---|
571 | |
---|
572 | REVISION HISTORY: |
---|
573 | Written by pcr 2006/12/11 |
---|
574 | last modification by pcr 2010/04/29 |
---|
575 | |
---|
576 | ----- Documentation for Phot\scale_spectrum.pro ----- |
---|
577 | NAME: |
---|
578 | SCALE_SPECTRUM |
---|
579 | |
---|
580 | AUTHOR: |
---|
581 | pierre.cruzalebes@oca.eu |
---|
582 | |
---|
583 | PURPOSE: |
---|
584 | scale one or many spectrum parts with a broadband flux |
---|
585 | after possible correction according to Cohen et al., AJ 104, 2030 (1992) |
---|
586 | |
---|
587 | CATEGORY: |
---|
588 | photometrics |
---|
589 | |
---|
590 | INPUTS: |
---|
591 | need text input file (in OBS_PATH/INP/ directory) with : |
---|
592 | - input broadband flux file name |
---|
593 | - broadband relative system response file name |
---|
594 | - nber of input spectrum file(s) and flag for bandwidth |
---|
595 | calculation (0=bandwidth/1=resolution, in same row) |
---|
596 | - input spectrum file name(s) (in same row) |
---|
597 | - spectral bandwidth(s) or resolution(s) (in same row) |
---|
598 | - input correction factor file name ('none' if no correction) |
---|
599 | |
---|
600 | REQUIREMENTS: |
---|
601 | data read in broadband flux file (in OBS_PATH/ subdirectory) |
---|
602 | must be in ASCII format and contain (in this order, |
---|
603 | 1 spectral band per row) : |
---|
604 | - central wavelength and spectral bandwidth, flux |
---|
605 | and error on flux |
---|
606 | |
---|
607 | data read in broadband response file (in ALL_DATA_PATH/ directory) |
---|
608 | must be in ASCII format and contain (in this order, |
---|
609 | 1 wavelength per row) : |
---|
610 | - wavelength, relative system response |
---|
611 | (see http://irsa.ipac.caltech.edu/IRASdocs/exp.sup/ch2/tabC5.html) |
---|
612 | |
---|
613 | data read in spectrum file(s) (in the same OBS_PATH/ subdirectory) |
---|
614 | must be in ASCII format and contain (in this order, |
---|
615 | 1 spectral band per row) : |
---|
616 | - wavelength, flux and error on flux |
---|
617 | |
---|
618 | data read in input correction factor file (in ALL_DATA_PATH/ directory) |
---|
619 | must be in ASCII format and contain (in this order, |
---|
620 | 1 wavelength per row) : |
---|
621 | - wavelength, factor, sigma |
---|
622 | |
---|
623 | input/output wavelengths and bandwidths must be in same unit |
---|
624 | as well as fluxes and flux errors |
---|
625 | |
---|
626 | OUTPUTS: |
---|
627 | data written in output scaled LRS file (in the same OBS_PATH/ subdirectory) |
---|
628 | are in the same format and order with : |
---|
629 | - central wavelength and spectral bandwidth, flux and error on flux |
---|
630 | |
---|
631 | LOCAL PROCEDURE CALLED: |
---|
632 | REGUTRAP |
---|
633 | RESET_PLOT |
---|
634 | |
---|
635 | LOCAL FUNCTIOn USED: |
---|
636 | EXTRACT_PROHEADER |
---|
637 | |
---|
638 | LOCAL SYSTEM VARIABLE USED: |
---|
639 | ALL_DATA_PATH |
---|
640 | OBS_PATH |
---|
641 | SPIDAST_PATH |
---|
642 | |
---|
643 | REVISION HISTORY: |
---|
644 | Written by pcr 2010/04/24 |
---|
645 | last modification by pcr 2010/04/25 |
---|
646 | |
---|