1 / 8

THEMIS SCIENCE WORKING TEAM MEETING Use and manipulation of THEMIS CDFs <Vassilis Angelopoulos>

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/

hasad
Download Presentation

THEMIS SCIENCE WORKING TEAM MEETING Use and manipulation of THEMIS CDFs <Vassilis Angelopoulos>

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. THEMIS SCIENCE • WORKING TEAM MEETING • Use and manipulation of THEMIS CDFs • <Vassilis Angelopoulos> • University of California - Berkeley

  2. 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

  3. 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

  4. Viewing/Editing Datacdfs • Method #1 Using CDF3.1 tools (Unix/Linux) Tools: Donwload CDF3.1 from http://cdf.gsfc.nasa.gov/ • cdfedit mydatafile.cdf

  5. 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

  6. 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)

  7. 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

  8. Overview • Overview • Topic 1 • Topic 2 • Topic 3

More Related