Blame view

src/idl/dustem_get_wavelengths.pro 1.06 KB
4ae2f120   Jean-Philippe Bernard   First commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
FUNCTION dustem_get_wavelengths,bidon,help=help

;+
; NAME:
;    dustem_get_wavelengths
; PURPOSE:
;    returns the wavelengths used for dustemwrap spectra. (Are they the same for emission and extinction ?)
; CATEGORY:
;    DUSTEM Wrapper
; CALLING SEQUENCE:
;    wavelengths=dustem_get_wavelengths([/help])
; INPUTS:
;    None
; OPTIONAL INPUT PARAMETERS:
;    None
; OUTPUTS:
;    wavelengths = set of wavelengths [mic]
; OPTIONAL OUTPUT PARAMETERS:
;    None
; ACCEPTED KEY-WORDS:
;    help                  = if set, print this help
; COMMON BLOCKS:
;    None
; SIDE EFFECTS:
;    None
; RESTRICTIONS:
;    None
; PROCEDURE:
;    
; EXAMPLES
;
; MODIFICATION HISTORY:
;    Written by JPB 
;-

IF keyword_set(help) THEN BEGIN
  doc_library,'dustem_get_wavelengths'
  lambir=0.
  goto,the_end
ENDIF


IF !dustem_which EQ 'DESERT' THEN BEGIN
  lambir=((*!dustem_params).gemissiv.lambir)
ENDIF ELSE BEGIN
b0cabd3c   Ilyes Choubani   general update
46
  lambir=((*!dustem_params).lambda.lambda) ; there is an error here that I have noticed a long time ago. Temporary fix is @ the returned value
4ae2f120   Jean-Philippe Bernard   First commit
47
48
49
ENDELSE

the_end:
4fd64cbb   Ilyes Choubani   dustem_fit_sed_po...
50
RETURN,lambir[1:*]
4ae2f120   Jean-Philippe Bernard   First commit
51
52

END