forked from foxsi/foxsi-science
-
Notifications
You must be signed in to change notification settings - Fork 0
/
foxsi.pro
57 lines (55 loc) · 1.59 KB
/
foxsi.pro
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
; June 2016
; STARTUP FOXSI
; Description:
;
;
PRO FOXSI, YEAR
COMMON FOXSI_PARAM
if not keyword_set(year) then begin
print,'Please provide the year of the FOXSI flight (2012 or 2014).'
print,' Example: foxsi,2014'
endif else begin
if ((year eq 2012) OR (year eq 2014)) then begin
if year eq 2014 then begin
; load the Level 2 data.
@param2014_20160620
restore, '$FOXSIDB'+'/data_2014/foxsi_level2_data.sav', /v
DATA_LVL2_D0=DATA_LVL2_D0
DATA_LVL2_D1=DATA_LVL2_D1
DATA_LVL2_D2=DATA_LVL2_D2
DATA_LVL2_D3=DATA_LVL2_D3
DATA_LVL2_D4=DATA_LVL2_D4
DATA_LVL2_D5=DATA_LVL2_D5
DATA_LVL2_D6=DATA_LVL2_D6
print, 'You just load all the parameters and data needed'
print, 'to do the analysis of the FOXSI 2014 observations.'
print
print, 'Type help if you want to check the 2014-parameters.'
return
endif
if year eq 2012 then begin
; load the Level 2 data.
@param2012_20160620
restore, '$FOXSIDB'+'/data_2012/foxsi_level2_data.sav', /v
DATA_LVL2_D0=DATA_LVL2_D0
DATA_LVL2_D1=DATA_LVL2_D1
DATA_LVL2_D2=DATA_LVL2_D2
DATA_LVL2_D3=DATA_LVL2_D3
DATA_LVL2_D4=DATA_LVL2_D4
DATA_LVL2_D5=DATA_LVL2_D5
DATA_LVL2_D6=DATA_LVL2_D6
print, 'You just load all the parameters and data needed'
print, 'to do the analysis of the FOXSI 2012 observations.'
print
print, 'Type help if you want to check the 2012-parameters.'
return
endif
endif else begin
print, 'FOXSI did not fly that year.'
print, 'Please use one of the next years:'
print, ' - 2012'
print, ' - 2014'
print, 'Example: foxsi,2014'
endelse
endelse
END