pro crib_riometer_tplot ;To be used hand-in-hand with SPEDAS: http://themis.ssl.berkeley.edu/software.shtml ;Last modified by Christine Gabrielse (UCLA) 2017-04-01 thm_init ;Sets colors for plotting tplot_options,'xmargin',[10,8] ;Sets appropriate margins so plots fit into the window tplot_options,'ymargin',[5,5] tplot_options,'title','' tplot_options,'charsize',1.5 ;Sets the size of the font timespan,'2010-12-31/00:00:00',3,/days ;This is not used in make_rio_data_tplot, ;however it is used to set the tplot window range below. ;trange=['2015-03-17/00:00:00','2015-03-18/23:59:59'] ;Choosing a time with no k2 will simply return without ;creating tplots. trange=['2010-12-31/00:00:00','2011-01-02/23:59:59'] ;You can choose a time range that spans multiple days if ;you want file_dir='D:\riometer data\IDLsav' ;Define the directory where the riometer data folders are stored. make_rio_data_tplot,trange=trange,file_dir=file_dir,spike=4 ;,/raw_only ;<--/raw_only will look for the k0 files. ;Helpful if no k2 files exist. window,0,xsize=1000,ysize=900 tplot,'RANK_rio_abs CHUR_rio_abs GILL_rio_abs ISLL_rio_abs RABB_rio_abs FSMI_rio_abs FSIM_rio_abs', $ ;This will crash if you chose /raw_only title='Riometer Absorption Data' tlimit,'2011-01-01/07:00','2011-01-01/13:00' ;You can zoom in on the plot by setting tlimit. ;Typing tlimit into the command line allows you to click on ;the window with your mouse where you want to zoom in. ;Typing tlimit,/full returns the window to the full time range. tplot,'RANK_rio_raw CHUR_rio_raw GILL_rio_raw ISLL_rio_raw RABB_rio_raw FSMI_rio_raw FSIM_rio_raw', $ title='Riometer Raw Data' end