load tdb
|
Contents: Description, Arguments, Usage, Examples, Images, Related Functions Supported Under Version: >1.69 Current Davinci Version: 2.27 64-bit Safe: No
Description The load_tdb() function loads a TDB (TES Data Base) file. It returns a structure containing one structure for each record in the file. By default however, Xaxis and Double records are not merged. If the distribute flag is set, the appropriate Xaxis records are copied into any Double records that have an xdata value set (and the xdata value is removed). If the reform flag is set, records of the same type are collated together. Any records that are of the same type, but which are not homogenous (ie: Double records both with and without an Xaxis set) are padded out to be homogenous, using empty strings.
Arguments and Return Values Input: filename of the tdb file Output: a structure of vectors arranged according to the options set
Usage Syntax: load_tdb(filename=STRING [,distribute=BOOL] [,reform=BOOL])
Examples filename is the input file and full path distribute is the flag to distribute the respective xaxis to each spectrum reform shapes all the matching data into a .Xaxis and .Double containing structure
Images load_tdb() dv> a=load_tdb("vm_format_spectra.tdb.000")[:4]
struct, 4 elements
v[1]: struct, 3 elements
scope: "Xaxis"
name: "xjtest"
data: 73x1x1 array of double, bsq format [584 bytes]
v[2]: struct, 3 elements
scope: "Xaxis"
name: "xktest"
data: 98x1x1 array of double, bsq format [784 bytes]
v[3]: struct, 3 elements
scope: "Xaxis"
name: "xltest"
data: 1971x1x1 array of double, bsq format [15,768 bytes]
v[4]: struct, 3 elements
scope: "Xaxis"
name: "xmtest"
data: 98x1x1 array of double, bsq format [784 bytes]
load_tdb() with distribute=1 dv> a=load_tdb("vm_format_spectra.tdb.000",distribute=1)
struct, 4 elements
v[1]: struct, 4 elements
scope: "Double"
label: "TES Surface Type 1"
data: 73x1x1 array of double, bsq format [584 bytes]
xaxis: 73x1x1 array of double, bsq format [584 bytes]
v[2]: struct, 4 elements
scope: "Double"
label: "Recovered Meridiani Basalt"
data: 98x1x1 array of double, bsq format [784 bytes]
xaxis: 98x1x1 array of double, bsq format [784 bytes]
v[3]: struct, 4 elements
scope: "Double"
label: "Goethite-Derived Hematite"
data: 1971x1x1 array of double, bsq format [15,768 bytes]
xaxis: 1971x1x1 array of double, bsq format [15,768 bytes]
v[4]: struct, 4 elements
scope: "Double"
label: "Recovered Goethite-Derived Hematite"
data: 98x1x1 array of double, bsq format [784 bytes]
xaxis: 98x1x1 array of double, bsq format [784 bytes]
load_tdb() with reform=1 dv> a=load_tdb("vm_format_spectra.tdb.000",reform=1)
struct, 2 elements
Xaxis: struct, 2 elements
name: struct, 9 elements...
data: struct, 9 elements...
Double: struct, 3 elements
label: struct, 15 elements...
xdata: struct, 15 elements...
data: struct, 15 elements...
load_tdb() with reform=1 and distribute=1 dv> a=load_tdb("vm_format_spectra.tdb.000",reform=1,distribute=1)
struct, 1 elements
Double: struct, 3 elements
label: struct, 15 elements...
data: struct, 15 elements...
xaxis: struct, 15 elements...
|
DavinciWiki Mini-Nav Bar Contents
Contact Developers
All other topics
Recent Core Changes Modified On: 06-08-2007 |