Blame view

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

;+
; 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
; CALLING SEQUENCE:
cc81fcdc   Jean-Philippe Bernard   improved
14
;    wavelengths=dustem_get_wavelengths([/help][,isrf_wavelengths=])
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
; OUTPUTS:
cc81fcdc   Jean-Philippe Bernard   improved
23
;    wavelengths = set of Spectra wavelengths used by dustemwrap[mic]
eef37ef9   Annie Hughes   do not remember, ...
24
;
4ae2f120   Jean-Philippe Bernard   First commit
25
; OPTIONAL OUTPUT PARAMETERS:
cc81fcdc   Jean-Philippe Bernard   improved
26
;    isrf_wavelengths = set of ISRF wavelengths used by dustemwrap [mic]
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
ENDELSE

cc81fcdc   Jean-Philippe Bernard   improved
64
65
isrf_wavelengths=(*!dustem_params).ISRF.lambisrf

4ae2f120   Jean-Philippe Bernard   First commit
66
the_end:
6baf9f1f   Jean-Philippe Bernard   fixed a few issue...
67
68
;RETURN,lambir[1:*]
RETURN,lambir
4ae2f120   Jean-Philippe Bernard   First commit
69

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