split ock

From DavinciWiki
Jump to: navigation, search

Description

Split TES data by ock.

Arguments and Return Values

Arguments: Output from JMARS, either a file path or array with no color, header information

Return Value: A structure containing data

Usage

Syntax: split_ock(path/data [,consolidate=BOOL])

data - full path to JMARS output with the header row present. The splitting algorithm works for emissivity, cal_rad, raw_rad, atm_adj_emiss. This header row must have the first three columns as ock, ick det

ock ick det any....any emissivity[1] emissivity[2] emissivity[n] any...any

OR

data - is an array that has had all header/color info removed with the columns

ock ick det any any emissivity[1] emissivity[2] emissivity[n]

consolidate - reformat the data for a better single measurement analysis

Examples

Usage as a path to a file

dv> a=split_ock("/u/cedwards/junk.txt")
struct, 28 elements
   tesx: 1x1x143 array of float, bsq format [572 bytes]
   tes73x: 1x1x73 array of float, bsq format [292 bytes]
   ock3098label: 148x12x1 array of float, bsq format [7,104 bytes]
   ock3098: 12x1x143 array of float, bsq format [6,864 bytes]
   ock3098avg: 1x1x143 array of double, bsq format [1,144 bytes]
   ock3098avgcat: 1x1x73 array of double, bsq format [584 bytes]
   ock3337label: 148x12x1 array of float, bsq format [7,104 bytes]
   ock3337: 12x1x143 array of float, bsq format [6,864 bytes]
   ock3337avg: 1x1x143 array of double, bsq format [1,144 bytes]
   ock3337avgcat: 1x1x73 array of double, bsq format [584 bytes]
   all: 59x1x143 array of float, bsq format [33,748 bytes]
   alllabel: 148x59x1 array of float, bsq format [34,928 bytes]

Usage with the consolidate option

dv> a=split_ock("/u/cedwards/junk.txt",consolidate=1)
struct, 10 elements
   tesx: 1x1x143 array of float, bsq format [572 bytes]
   tes73x: 1x1x73 array of float, bsq format [292 bytes]
   emiss: 58x1x143 array of float, bsq format [33,176 bytes]
   emiss73: 58x1x73 array of float, bsq format [16,936 bytes]
   ock: 59x1x1 array of float, bsq format [236 bytes]
   ick: 59x1x1 array of float, bsq format [236 bytes]
   det: 59x1x1 array of float, bsq format [236 bytes]
   lambert_alb: 59x1x1 array of float, bsq format [236 bytes]
   tot_ice: 59x1x1 array of float, bsq format [236 bytes]
   label: Text Buffer with 59 lines of text
       1: ock3337_ick1514_det6
       2: ock3337_ick1514_det5
       3: ock3337_ick1514_det4
       4: ock3337_ick1514_det3
       5: ock3337_ick1514_det2
       6: ock3337_ick1514_det1
       7: ock3337_ick1513_det4
       8: ock3337_ick1513_det1
       9: ock3337_ick1513_det2
       10: ock3337_ick1513_det5

Usage as an array

dv> a=ascii("/u/cedwards/junk.txt",format=float)
Apparent file size: 149x7x1
Read ASCII file: 149x7x1
149x7x1 array of float, bsq format [4,172 bytes]
dv> a=a[2:,2:]
148x6x1 array of float, bsq format [3,552 bytes]
dv> a=split_ock(a)
struct, 6 elements
   ock3625label: 148x6x1 array of float, bsq format [3,552 bytes]
   ock3625: 6x1x148 array of float, bsq format [3,552 bytes]
   ock3625avg: 1x1x148 array of double, bsq format [1,184 bytes]
   ock3625avgcat: 1x1x73 array of double, bsq format [584 bytes]
   all: 6x1x148 array of float, bsq format [3,552 bytes]
   alllabel: 148x6x1 array of float, bsq format [3,552 bytes]

Images

This image is a screen capture of the TES layer in JMARS where the example query has been used to generate the data used in the example.

TES layer.png

DavinciWiki Mini-Nav Bar

Contents


Contact Developers

  • davinci-dev [AT] mars.asu.edu

All other topics

  • See navigation on the left

Major Sub-Functions

Related Functions

Recent Library Changes

Created On: 08-06-2010
Modified On: 08-14-2013

Personal tools