Blame view

src/idl/dustem_save_system_variables.pro 4.11 KB
b5ccb706   Jean-Philippe Bernard   improved to fit p...
1
2
3
4
5
PRO dustem_save_system_variables,file,help=help

;+
; NAME:
;    dustem_save_system_variables
a8bf7c1c   Annie Hughes   minor changes
6
;
b5ccb706   Jean-Philippe Bernard   improved to fit p...
7
; PURPOSE:
a8bf7c1c   Annie Hughes   minor changes
8
9
;    Save DustEMWrap system variables a file
;
b5ccb706   Jean-Philippe Bernard   improved to fit p...
10
; CATEGORY:
a8bf7c1c   Annie Hughes   minor changes
11
12
;    DustEMWrap, Distributed, LowLevel, Initialization
;
b5ccb706   Jean-Philippe Bernard   improved to fit p...
13
14
; CALLING SEQUENCE:
;    dustem_save_system_variables,file[,/help]
a8bf7c1c   Annie Hughes   minor changes
15
;
b5ccb706   Jean-Philippe Bernard   improved to fit p...
16
; INPUTS:
a8bf7c1c   Annie Hughes   minor changes
17
18
;    file      = output file to be written
;
b5ccb706   Jean-Philippe Bernard   improved to fit p...
19
20
; OPTIONAL INPUT PARAMETERS:
;    None
a8bf7c1c   Annie Hughes   minor changes
21
;
b5ccb706   Jean-Philippe Bernard   improved to fit p...
22
23
; OUTPUTS:
;    None
a8bf7c1c   Annie Hughes   minor changes
24
;
b5ccb706   Jean-Philippe Bernard   improved to fit p...
25
26
; OPTIONAL OUTPUT PARAMETERS:
;    None
a8bf7c1c   Annie Hughes   minor changes
27
;
b5ccb706   Jean-Philippe Bernard   improved to fit p...
28
29
; ACCEPTED KEY-WORDS:
;    help      = If set, print this help
a8bf7c1c   Annie Hughes   minor changes
30
;
b5ccb706   Jean-Philippe Bernard   improved to fit p...
31
32
; COMMON BLOCKS:
;    None
a8bf7c1c   Annie Hughes   minor changes
33
;
b5ccb706   Jean-Philippe Bernard   improved to fit p...
34
; SIDE EFFECTS:
a8bf7c1c   Annie Hughes   minor changes
35
36
;    File containing system variables is written.
;
b5ccb706   Jean-Philippe Bernard   improved to fit p...
37
; RESTRICTIONS:
a8bf7c1c   Annie Hughes   minor changes
38
39
40
41
42
43
44
;    The DustEM fortran code must be installed
;    The DustEMWrap IDL code must be installed
;
; PROCEDURES AND SUBROUTINES USED:  
;
; EXAMPLES:
;
b5ccb706   Jean-Philippe Bernard   improved to fit p...
45
; MODIFICATION HISTORY:
a8bf7c1c   Annie Hughes   minor changes
46
47
48
;    Written by JPB
;    Evolution details on the DustEMWrap gitlab.
;    See http://dustemwrap.irap.omp.eu/ for FAQ and help.  
b5ccb706   Jean-Philippe Bernard   improved to fit p...
49
50
;-

a8bf7c1c   Annie Hughes   minor changes
51

b5ccb706   Jean-Philippe Bernard   improved to fit p...
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
; !DUSTEM_DAT = '/tmp/ramdisk8MB/'       
; !DUSTEM_DATA = -> <Anonymous> Array[1]
; !DUSTEM_DO_CC =        1
; !DUSTEM_F90_EXEC = '$HOME/Soft_Librairies/dustem4.3_wk/src/dustem'
; !DUSTEM_FILTERS = <PtrHeapVar570>
; !DUSTEM_FIT = <PtrHeapVar1>
; !DUSTEM_F_HI =       1.00000   
; !DUSTEM_IDL_CONTINUUM =       0.00000
; !DUSTEM_IDL_FREEFREE =       0.00000
; !DUSTEM_IDL_SYNCHROTRON =       0.00000
; !DUSTEM_INPUTS = <PtrHeapVar2>
; !DUSTEM_INSTRUMENT_DESCRIPTION = -> <Anonymous> Array[120]
; !DUSTEM_NEVER_DO_CC =        0 
; !DUSTEM_PARAMS = <PtrHeapVar15>
; !DUSTEM_PARINFO = <PtrHeapVar943>
; !DUSTEM_PREVIOUS_CC = <PtrHeapVar3346>
; !DUSTEM_RES = '/tmp/ramdisk8MB/'
; !DUSTEM_SHOW_PLOT =        1 
; !DUSTEM_SOFT_DIR = '$HOME/Soft_Librairies/dustem4.3_wk/'       
; !DUSTEM_VERBOSE =        1
; !DUSTEM_WHICH = 'WEB3p8'
; !DUSTEM_WRAP_SOFT_DIR = '$HOME/Soft_Librairies/dustem-wrapper_idl/'
; !FIT_RCHI2_WEIGHT = -> <Anonymous> Array[1]
; !RUN_ANIS =       0.00000
; !RUN_CIRC =       0.00000      
; !RUN_IONFRAC =       0.00000
; !RUN_LIN =       1.00000
; !RUN_POL =        1
; !RUN_RRF =       0.00000
; !RUN_TLS =       0.00000
; !RUN_UNIV =       0.00000

IF keyword_set(help) THEN BEGIN
  doc_library,'dustem_save_system_variables'
  goto,the_end
ENDIF

saved_dustem_dat=!dustem_dat
a8bf7c1c   Annie Hughes   minor changes
90
saved_dustem_data=!dustem_data  ; observaitonal data
5a2643a4   Ilyes Choubani   cleaning/improvin...
91
saved_dustem_show=!dustem_show
b5ccb706   Jean-Philippe Bernard   improved to fit p...
92
93
94
95
96
saved_dustem_do_cc=!DUSTEM_DO_CC
saved_dustem_f90_exec=!DUSTEM_F90_EXEC
saved_dustem_filters=!dustem_filters
saved_dustem_fit=!dustem_fit
saved_dustem_f_hi=!DUSTEM_F_HI
b5ccb706   Jean-Philippe Bernard   improved to fit p...
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
saved_DUSTEM_INPUTS=!DUSTEM_INPUTS
saved_DUSTEM_INSTRUMENT_DESCRIPTION=!DUSTEM_INSTRUMENT_DESCRIPTION
saved_DUSTEM_NEVER_DO_CC=!DUSTEM_NEVER_DO_CC
saved_DUSTEM_PARAMS=!DUSTEM_PARAMS
saved_DUSTEM_PARINFO=!DUSTEM_PARINFO
saved_DUSTEM_PREVIOUS_CC=!DUSTEM_PREVIOUS_CC
saved_DUSTEM_RES=!DUSTEM_RES
saved_DUSTEM_SHOW_PLOT=!DUSTEM_SHOW_PLOT
saved_DUSTEM_SOFT_DIR=!DUSTEM_SOFT_DIR
saved_DUSTEM_VERBOSE=!DUSTEM_VERBOSE
saved_DUSTEM_WHICH=!DUSTEM_WHICH
saved_DUSTEM_WRAP_SOFT_DIR=!DUSTEM_WRAP_SOFT_DIR
saved_FIT_RCHI2_WEIGHT=!FIT_RCHI2_WEIGHT
saved_RUN_ANIS=!RUN_ANIS
saved_RUN_CIRC=!RUN_CIRC
saved_RUN_IONFRAC=!RUN_IONFRAC
saved_RUN_LIN=!RUN_LIN
saved_RUN_POL=!RUN_POL
saved_RUN_RRF=!RUN_RRF
saved_RUN_TLS=!RUN_TLS
saved_RUN_UNIV=!RUN_UNIV
389a2b1d   Jean-Philippe Bernard   improved
118
saved_DUSTEM_REDSHIFT=!DUSTEM_REDSHIFT
4750086c   Ilyes Choubani   nouvelle philosph...
119
saved_DUSTEM_PLUGIN=!DUSTEM_PLUGIN
b5ccb706   Jean-Philippe Bernard   improved to fit p...
120
121

save,saved_dustem_dat,$
a8bf7c1c   Annie Hughes   minor changes
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
     saved_dustem_data, $
     saved_dustem_show, $
     saved_dustem_fit, $
     saved_dustem_do_cc, $
     saved_dustem_f90_exec, $
     saved_dustem_filters, $
     saved_dustem_fit, $
     saved_dustem_f_hi, $
     saved_DUSTEM_INPUTS, $
     saved_DUSTEM_INSTRUMENT_DESCRIPTION, $
     saved_DUSTEM_NEVER_DO_CC, $
     saved_DUSTEM_PARAMS, $
     saved_DUSTEM_PARINFO, $
     saved_DUSTEM_PREVIOUS_CC, $
     saved_DUSTEM_RES, $
     saved_DUSTEM_SHOW_PLOT, $
     saved_DUSTEM_SOFT_DIR, $
     saved_DUSTEM_VERBOSE, $
     saved_DUSTEM_WHICH, $
     saved_DUSTEM_WRAP_SOFT_DIR, $
     saved_FIT_RCHI2_WEIGHT, $
     saved_RUN_ANIS, $
     saved_RUN_CIRC, $
     saved_RUN_IONFRAC, $
     saved_RUN_LIN, $
     saved_RUN_POL, $
     saved_RUN_RRF, $
     saved_RUN_TLS, $
     saved_RUN_UNIV, $
     saved_DUSTEM_REDSHIFT, $
     saved_DUSTEM_PLUGIN, $
     file=file
b5ccb706   Jean-Philippe Bernard   improved to fit p...
154
155

the_end:
b5ccb706   Jean-Philippe Bernard   improved to fit p...
156
END