header

From DavinciWiki
Jump to: navigation, search


Description

Extract information from the header of a Vicar, ISIS or Specpr file.

Arguments and Return Values

Arguments: A filename, an element and a record number for Specpr files

Return Value: The header element

Usage

Syntax: header(filename = STRING, element = STRING [, record = INT])

ISIS and Vicar files require a header element specified. Specpr files also need a record number specified.

Examples

Example of reading an ISIS header:

dv> header("/work/knowicki/I01002002.project.00082523.QUB",element="SPACECRAFT_NAME")

 --------------------------------------------------------------------------
 Parsing File:  (no file name provided)
 --------------------------------------------------------------------------

 Line 73 -- Duplicate KEYWORD identifier:  "GROUP"
 Line 74 -- Duplicate KEYWORD identifier:  "TARGET_NAME"
 Line 78 -- Duplicate KEYWORD identifier:  "END_GROUP"
 Line 80 -- Duplicate KEYWORD identifier:  "GROUP"
 Line 87 -- Duplicate KEYWORD identifier:  "END_GROUP"
 Line 89 -- Duplicate KEYWORD identifier:  "GROUP"
 Line 93 -- Duplicate KEYWORD identifier:  "END_GROUP"
 Line 95 -- Duplicate KEYWORD identifier:  "GROUP"
 Line 100 -- Duplicate KEYWORD identifier:  "END_GROUP"
 Line 102 -- Duplicate KEYWORD identifier:  "GROUP"
 Line 113 -- Duplicate KEYWORD identifier:  "END_GROUP"
 Line 115 -- Duplicate KEYWORD identifier:  "GROUP"
 Line 122 -- Duplicate KEYWORD identifier:  "LONGITUDE_SYSTEM"
 Line 134 -- Duplicate KEYWORD identifier:  "END_GROUP"
 Line 136 -- Duplicate KEYWORD identifier:  "GROUP"
 Line 138 -- Duplicate KEYWORD identifier:  "END_GROUP"

--------------------------------------------------------------------------
End of Parsing File:  (no file name provided)
--------------------------------------------------------------------------

"MARS_ODYSSEY"

Example of reading a Vicar header:

dv> header("exported_data.cub",element="RECSIZE")
1380

DavinciWiki Mini-Nav Bar

Contents


Contact Developers

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

All other topics

  • See navigation on the left

Related Functions

Recent Core Changes

Modified On: 03-27-2006

Personal tools