print, "--- Start of crib sheet ---"
timespan, '2007-3-23', 1
print, "-"
print, "- 'standardized' interface, with intermediate outputs saved"
print, "--> enter .c"
stop
thm_load_state,probe='a', /get_support_data
thm_load_fgm,lev=1,probe=['a'],/get_support_data,type='raw', suffix='_raw'
thm_cal_fgm,probe=['a'],datatype='fg?',in_suffix='_raw', out_suffix='_ssl'
tplot_options, 'title', 'THEMIS FGM Examples'
tplot, ['tha_fgl_raw', 'tha_fgl_ssl']
thm_cotrans,probe=['a'],datatype='fg?',in_suffix='_ssl', out_suffix='_dsl', out_coord='dsl'
thm_cotrans,'tha_fg?',in_suf='_dsl',out_suf='_gse', out_c='gse'
thm_cotrans,'tha_fg?',in_suf='_gse', out_suf='_gsm', out_c='gsm'
tplot, ['tha_fgl_raw', 'tha_fgl_ssl', 'tha_fgl_dsl', 'tha_fgl_gse','tha_fgl_gsm']
stop
tplot, ['tha_fg?_gsm']
stop
store_data, 'Tha_fgl_dsl_gse', data=['tha_fgl_dsl', 'tha_fgl_gse']
options, 'tha_fgl_gse', 'colors', [1, 3, 5]
tplot, 'Tha_fgl_dsl_gse'
del_data, 'th?_fg?_hed th?_state'
tplot_names
print, "-"
print, "- next: same thing, but without saving intermediate outputs"
print, "--> enter .c"
stop
del_data, 'th* Th*'
thm_load_state,probe='a', /get_support_data
thm_load_fgm,level='L1',probe=['a'],/get_support_data,type='raw'
thm_cal_fgm,probe=['a'],datatype='fg?'
thm_cotrans,probe=['a'],datatype='fg?', out_coord='dsl'
thm_cotrans,'tha_fg?', out_c='gse'
thm_cotrans,'tha_fg?', out_c='gsm'
tplot, ['tha_fg?']
del_data, 'th?_fg?_hed'
tplot_names
print, "-"
print, "- next: load, calibrate, and transform coordinates in one call"
print, "--> enter .c"
stop
del_data, 'th* Th*'
timespan, '2007-3-23', 1
thm_load_state, probe='a', datatype='spin*', /get_support_data
thm_load_fgm,level=1, probe=['a'],datatype='fg?',coord='gsm'
tplot, 'tha_fg?'
thm_cotrans, 'tha_fgl', 'tha_fgl_gse', out_coord='gse'
tplot_names
print, "cleanup state"
del_data, 'th?_state*'
tplot_names
print, "-"
print, "- next: load data directly from L2 CDF"
print, "--> enter .c"
stop
thm_load_fgm, probe='a', suffix='_l2', level = 'l2'
tplot_names
thm_load_fgm, probe='a', coord='*', level = 'l2'
tplot_names
print, "-"
print, "- note that the original crib still works, with one change:"
print, "- new keyword to override new default behavior of thm_load_fgm: type='raw'"
print, "--> enter .c"
stop
thm_load_state,/get_support_data,probe='a'
thm_load_fgm,level=1,probe=['a'],/get_support_data,type='raw'
cal_relpathname = 'tha/l1/fgm/0000/tha_fgmcal.txt'
cal_file = file_retrieve(cal_relpathname, _extra=!themis)
thm_cal_fgm,'tha_fgl','tha_fgl_hed','tha_fgl_ssl',cal_file,datatype='fgl'
tplot_options, 'title', 'THEMIS FGM Examples'
tplot, ['tha_fgl', 'tha_fgl_ssl']
ssl2dsl,name_input='tha_fgl_ssl',name_output='tha_fgl_dsl',spinmodel_ptr=spinmodel_get_ptr('a')
dsl2gse,'tha_fgl_dsl','tha_state_spinras','tha_state_spindec','tha_fgl_gse'
cotrans,'tha_fgl_gse','tha_fgl_gsm',/GSE2GSM
tplot, ['tha_fgl', 'tha_fgl_ssl', 'tha_fgl_dsl', 'tha_fgl_gse','tha_fgl_gsm']
print, "-"
print, "- The next example shows how to enable the eclipse spin model corrections"
print, "- when loading calibrated L1 FGM data."
print, "--> enter .c"
stop
timespan,'2010-02-13/08:00',4,/hours
thm_load_fgm,probe='b',level=1,type='calibrated',suffix='_before',use_eclipse_corrections=0
thm_load_fgm,probe='b',level=1,type='calibrated',suffix='_after',use_eclipse_corrections=2
print, " - This plot shows the effect of the eclipse spin model corrections"
print, " - on the FGL and FGH data. The variables with suffix _before "
print, " - are uncorrected, while the variables with suffix _after have "
print, " - had the corrections enabled. During the eclipse, between "
print, " - approximately 0853 and 0930 UTC, the uncorrected FGM data "
print, " - is clearly rotating in the spin plane, due to the spin-up "
print, " - that occurs during the eclipse as the probe and booms cool "
print, " - and contract. "
tplot,['thb_fgl_before','thb_fgl_after','thb_fgh_before','thb_fgh_after']
print, "--- End of crib sheet ---"
end