read vm

From DavinciWiki
Jump to: navigation, search

Description

Read a vm formatted text file and store it in a variable as a davinci structure

Arguments and Return Values

Arguments: Accepts a vm formatted text file, with or without an x-axis

Return Value: A davinci structure containing .label, .data, and .xaxis

Usage

Syntax: read_vm(filename [, x exists])

'filename' - File name and path of the vm text file

'x exists' - specify if no x axis exists. Default is yes.

Examples

dv> a = read_vm("spectra.txt")
Apparent file size: 3x1971x1
Read ASCII file: 3x1971x1
struct, 3 elements
   data: 1x1x1971 array of float, bsq format [7,884 bytes]
   label: "emcal emissivity of RATW00465"
   xaxis: 1x1x1971 array of float, bsq format [7,884 bytes] 

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: 02-15-2006
Modified On: 03-24-2011

Personal tools