dustem_write_all.pro
2.62 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
PRO dustem_write_all,st,dir_out,help=help
;+
; NAME:
; dustem_write_all
;
; PURPOSE:
; Manages writing of DustEM input data files
;
; CATEGORY:
; DustEM, Distributed, Low-level, Fortran
;
; CALLING SEQUENCE:
; dustem_write_all,st,dir_out[,/help]
;
; INPUTS:
; st: DustEM input structure
; dir_out: output directory
;
; OPTIONAL INPUT PARAMETERS:
; None
;
; OUTPUTS:
; None
;
; OPTIONAL OUTPUT PARAMETERS:
; None
;
; ACCEPTED KEY-WORDS:
; help = If set, print this help
;
; COMMON BLOCKS:
; None
;
; SIDE EFFECTS:
; JPB: In fact, this routine could probably use st=*!dustem_params and dir_out=!dustem_dat and would need no arguments ...
;
; RESTRICTIONS:
; The DustEMWrap IDL code must be installed
; The DustEM fortran code must be installed
;
; PROCEDURE:
; None
;
; EXAMPLES
;
; MODIFICATION HISTORY:
; Written by J.-Ph. Bernard
; Evolution details on the DustEMWrap gitlab.
; See http://dustemwrap.irap.omp.eu/ for FAQ and help.
;-
IF keyword_set(help) THEN BEGIN
doc_library,'dustem_write_all'
goto,the_end
ENDIF
;IF getenv('DUSTEM_WHICH') EQ 'VERSTRAETE' THEN BEGIN
IF !dustem_which EQ 'VERSTRAETE' THEN BEGIN
dustem_write_all_lv,st,dir_out
goto,the_end
ENDIF
;IF getenv('DUSTEM_WHICH') EQ 'WEB3p8' THEN BEGIN
IF !dustem_which EQ 'RELEASE' THEN BEGIN
dustem_write_all_release,st,dir_out
goto,the_end
ENDIF
file_out=dir_out+'GRAIN.DAT'
dustem_write_grain,file_out,st.grains
file_out=dir_out+'TAILLE.DAT'
dustem_write_taille,file_out,st.grains
file_out=dir_out+'PROPMASS.DAT'
dustem_write_propmass,file_out,st.grains
;IF getenv('DUSTEM_WHICH') EQ 'DESERT' THEN BEGIN
IF !dustem_which EQ 'DESERT' THEN BEGIN
file_out=dir_out+'GEMISSIV.DAT'
dustem_write_gemissiv,file_out,st.gemissiv
ENDIF
file_out=dir_out+'ISRF.DAT'
dustem_write_isrf,file_out,st.isrf
;stop
;IF getenv('DUSTEM_WHICH') EQ 'COMPIEGNE' THEN BEGIN
IF !dustem_which EQ 'COMPIEGNE' THEN BEGIN
file_out=dir_out
dustem_write_qabs,file_out,st.qabs
ENDIF
;IF getenv('DUSTEM_WHICH') EQ 'DESERT' THEN BEGIN
IF !dustem_which EQ 'DESERT' THEN BEGIN
file_out=dir_out+'QABS.DAT'
dustem_write_qabs_desert,file_out,st.qabs
ENDIF
file_out=dir_out+'SPECEM.DAT'
dustem_write_specem,file_out,st.specem
file_out=dir_out+'CALOR.DAT'
dustem_write_calor,file_out,st.calor
;IF getenv('DUSTEM_WHICH') EQ 'COMPIEGNE' THEN BEGIN
IF !dustem_which EQ 'COMPIEGNE' THEN BEGIN
file_out=dir_out+'LAMBDA.DAT'
dustem_write_lambda,file_out,st.lambda
ENDIF
;IF getenv('DUSTEM_WHICH') EQ 'DESERT' THEN BEGIN
IF !dustem_which EQ 'DESERT' THEN BEGIN
file_out=dir_out+'IONFRAC.DAT'
dustem_write_ionfrac,file_out,st.ionfrac
ENDIF
the_end:
END