Blame view

src/idl/dustem_get_wavelengths.pro 1.2 KB
4ae2f120   Jean-Philippe Bernard   First commit
1
2
3
4
5
FUNCTION dustem_get_wavelengths,bidon,help=help

;+
; NAME:
;    dustem_get_wavelengths
eef37ef9   Annie Hughes   do not remember, ...
6
;
4ae2f120   Jean-Philippe Bernard   First commit
7
8
; PURPOSE:
;    returns the wavelengths used for dustemwrap spectra. (Are they the same for emission and extinction ?)
eef37ef9   Annie Hughes   do not remember, ...
9
;
4ae2f120   Jean-Philippe Bernard   First commit
10
11
; CATEGORY:
;    DUSTEM Wrapper
eef37ef9   Annie Hughes   do not remember, ...
12
;
4ae2f120   Jean-Philippe Bernard   First commit
13
14
; CALLING SEQUENCE:
;    wavelengths=dustem_get_wavelengths([/help])
eef37ef9   Annie Hughes   do not remember, ...
15
;
4ae2f120   Jean-Philippe Bernard   First commit
16
17
; INPUTS:
;    None
eef37ef9   Annie Hughes   do not remember, ...
18
;
4ae2f120   Jean-Philippe Bernard   First commit
19
20
; OPTIONAL INPUT PARAMETERS:
;    None
eef37ef9   Annie Hughes   do not remember, ...
21
;
4ae2f120   Jean-Philippe Bernard   First commit
22
23
; OUTPUTS:
;    wavelengths = set of wavelengths [mic]
eef37ef9   Annie Hughes   do not remember, ...
24
;
4ae2f120   Jean-Philippe Bernard   First commit
25
26
; OPTIONAL OUTPUT PARAMETERS:
;    None
eef37ef9   Annie Hughes   do not remember, ...
27
;
4ae2f120   Jean-Philippe Bernard   First commit
28
29
; ACCEPTED KEY-WORDS:
;    help                  = if set, print this help
eef37ef9   Annie Hughes   do not remember, ...
30
;
4ae2f120   Jean-Philippe Bernard   First commit
31
32
; COMMON BLOCKS:
;    None
eef37ef9   Annie Hughes   do not remember, ...
33
;
4ae2f120   Jean-Philippe Bernard   First commit
34
35
; SIDE EFFECTS:
;    None
eef37ef9   Annie Hughes   do not remember, ...
36
;
4ae2f120   Jean-Philippe Bernard   First commit
37
38
; RESTRICTIONS:
;    None
eef37ef9   Annie Hughes   do not remember, ...
39
;
4ae2f120   Jean-Philippe Bernard   First commit
40
41
; PROCEDURE:
;    
eef37ef9   Annie Hughes   do not remember, ...
42
;
4ae2f120   Jean-Philippe Bernard   First commit
43
44
45
46
; EXAMPLES
;
; MODIFICATION HISTORY:
;    Written by JPB 
eef37ef9   Annie Hughes   do not remember, ...
47
48
;    Evolution details on the DustEMWrap gitlab.
;    See http://dustemwrap.irap.omp.eu/ for FAQ and help.  
4ae2f120   Jean-Philippe Bernard   First commit
49
50
51
52
53
54
55
56
57
58
59
60
;-

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
61
  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
62
63
64
ENDELSE

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

eef37ef9   Annie Hughes   do not remember, ...
67
END