;pro mav_lpw_crib if ~keyword_set(recbase) then begin mav_apid_lpw_handler,/reset recorder,recbase,port=2025,exec_proc='gseos_cmnblk_bhandler',destination='data/CMNBLK_YYYYMMDD_hhmmss.dat' exec,tplotbase, exec_text=["tplot,verbose=0,wshow=0,trange=systime(1)+[-.9,.1] * 60 * 1",'timebar,systime(1)'] dprint,recbase,tplotbase,/phelp endif if 0 then begin !path = !path+':/Users/davin/Downloads/reeuvdata' filename='/Users/davin/Downloads/apid_52_all.dat' ;modify this to your directory mvn_lpw_r_header, filename,output,compress=1 ;decomutator board='FM' mvn_lpw_instrument_constants,board,lpw_const2=lpw_const ; set up the constants used below mvn_lpw_euv,output,lpw_const ;create euv tplot variables tplot,'*euv*' endif ;The two variable that is of interest are: ;mvn_lpw_euv ;raw data ;mvn_lpw_euv_temp ;raw data ;if size(/type,realtime) eq 0 then realtime=1 pathname=0 ;append_array,pathname,'maven/dpu/prelaunch/FM/20120626_202024_FM1_PFDPUSELFCOMP/commonBlock_20120626_202024_FM1_PFDPUSELFCOMP.dat' ;append_array,pathname,'maven/dpu/prelaunch/FM/20120626_213655_FM1_PFDPUSELFCOMP/commonBlock_20120626_213655_FM1_PFDPUSELFCOMP.dat' append_array,pathname,'maven/dpu/prelaunch/FM/20120626_235552_PFDPUSELFCOMP/commonBlock_20120626_235552_PFDPUSELFCOMP.dat' ;append_array,pathname,'maven/dpu/prelaunch/FM/20120627_020559_FM1_PFDPUSELFCOMP/commonBlock_20120627_020559_FM1_PFDPUSELFCOMP.dat'; 10 minute compat test. pathname = 0 pathname = 'maven/dpu/prelaunch/live/flight/emc-2012-08-01/initial/common_block.dat' & last_version = 1 ;file=0 ; file = dialog_pickfile(/multiple) if keyword_set(pathname) or keyword_set(file) then begin starttime = systime(1) recorder,recbase,get_procbutton=proc_on,set_procbutton=0,get_filename=rtfile ; Turn realtime off if it is on store_data,'*',/clear ; clear all stored data mav_apid_lpw_handler,/reset ; file = rtfile mav_gse_cmnblk_file_read,realtime=realtime,pathname=pathname ;,file=file,last_version=1 ; read commonblock data file recorder,recbase,set_procbutton=proc_on ; Turn realtime back on (if it had been on) dprint,'Done in ',systime(1)-starttime,' seconds' endif end