80 likes | 259 Views
THEMIS SCIENCE WORKING TEAM MEETING Use and manipulation of THEMIS CDFs <Vassilis Angelopoulos> University of California - Berkeley. Viewing/Modifying Masters. Method #1 SKT Editor Download SKTEditor (Java Application) from http://sscweb.gsfc.nasa.gov/skteditor/
E N D
THEMIS SCIENCE • WORKING TEAM MEETING • Use and manipulation of THEMIS CDFs • <Vassilis Angelopoulos> • University of California - Berkeley
Viewing/Modifying Masters • Method #1 SKT Editor • Download SKTEditor (Java Application) from http://sscweb.gsfc.nasa.gov/skteditor/ • Open Masterfile and view structure and attributes • Can modify, if Masterfile • Can also view Datafile • Works on all platforms w/Java
Viewing/Modifying Masters • Method #2 Unix/Linux toolkits • Translate mastercdf into a skeleton • Use line editor to make changes • Translate back to mastercdf Tools: Donwload CDF3.1 from http://cdf.gsfc.nasa.gov/ • skeletontable mymaster.cdf • cp mymaster.skt mynewmaster.skt • vi mynewmaster.skt • skeletoncdf mynewmaster.skt
Viewing/Editing Datacdfs • Method #1 Using CDF3.1 tools (Unix/Linux) Tools: Donwload CDF3.1 from http://cdf.gsfc.nasa.gov/ • cdfedit mydatafile.cdf
Viewing/Editing Datacdfs • Method #2 Standard IDL tools for CDF (all platforms) • Use IDL6.3 • Preview the file with SKTEditor to know what you want • Commands: • cdfid = CDF_OPEN(mydatafile.cdf) ; get number of points • CDF_CONTROL,cdfid,VARIABLE=‘tha_fgh’,SET_PADVALUE, GET_VAR_INFO=varinfo • count = varinfo.maxrec • CDF_VARGET,cdfid,'tha_fgh’, REC_COUNT=count • CDF_VARGET,cdfid,'tha_fgh_time’, REC_COUNT=count • CDF_CLOSE, cdfid Now you have vector tha_fgh(3,count) and tha_fgh_time(count) Similar set of IDL routines allows you to write CDFs
Reading/Writing Datacdfs • Method #3 Standard CDAWlib IDL tools for CDF (all platforms) • Use IDL6.3 • Download CDF3.1: http://cdf.gsfc.nasa.gov/ • Read commands: • @compile_cdaweb • out=read_mycdf(varnames,’mydatafile.cdf’,/all) • Write commands: • @compile_cdaweb • @compile_IDLmakecdf • buf1=read_master_cdf (“mymastercdf.cdf”, “mydatafile.cdf”) • *buf1.tha_fgh.data=my_idldata_array • check= write_data_to_cdf (“mydatafile.cdf”, buf1)
Reading THEMIS cdfs • Method #4 Standard IDL tools and THEMIS software • Use IDL6.3 • Download THEMIS software: ???????? • Option 1 (if load routines have not been written): • cdf2tplot, file=‘mydatafile.cdf’ ; loads data from arbitrary cdf • tplot_names ; shows what was loaded • Option 2 (if load routines exist): • thg_load_mag, ‘bmls ccnv’ ; loads specific data from cdf • tplot_names ; shows what was loaded • Known bugs (being worked on) • CDAWlib routine “interp” interferes with THEMIS software, being changed • PC use of mouse-click option of tlimit interferes with CDAWlib
Overview • Overview • Topic 1 • Topic 2 • Topic 3