find band

From DavinciWiki
Jump to: navigation, search

Description

Determine if an ISIS data file has the selected THEMIS band.

Arguments and Return Values

Arguments: A PDS/ISIS structure

Return Value: The physical band number (not the THEMIS band)

Usage

Syntax: find_band(obj = STRUCT, band number )

'obj' - A structure containing a .qube.band_bin.band_bin_original_band element

'band number' - The desired THEMIS band

Examples

dv> a
struct, 9 elements
   record_type: "FIXED_LENGTH"
   record_bytes: 512
   file_records: 234636
   label_records: 24
   file_state: "CLEAN"
   ptr_to_history: 25
   history: struct, 2 elements
       Object: "HISTORY"
       data: struct, 16 elements...
   ptr_to_qube: 55
   qube: struct, 37 elements
       Object: "QUBE"
       axes: 3
       axis_name: Text Buffer with 3 lines of text
           1: SAMPLE
           2: LINE
           3: BAND
       core_items: 3x1x1 array of int, bsq format [12 bytes]
       core_item_bytes: 4
       core_item_type: "PC_REAL"
       core_base: 0.000000000
       core_multiplier: 1.000000000
       core_valid_minimum: 2147483647
       core_null: 2147483647
       core_low_repr_saturation: 2147483647
       core_low_instr_saturation: 2147483647
       core_high_instr_saturation: 2147483647
       core_high_repr_saturation: 2147483647
       suffix_bytes: 4
       suffix_items: 3x1x1 array of int, bsq format [12 bytes]
       core_name: "CALIBRATED_SPECTRAL_RADIANCE"
       core_unit: ""WATT*CM**-2*SR**-1*UM**-1""
       data_set_id: ""ODY-M-THM-3-IRRDR-V1.0""
       producer_id: ""ODY_THM_TEAM""
       product_id: ""I01126001RDR""
       product_creation_time: ""2004-10-10T13:58:06.000Z""
       product_version_id: 1.600000000
       release_id: ""0002""
       orbit_number: 1126
       flight_software_version_id: 1.000000000
       command_sequence_number: 1126
       target_name: ""MARS""
       isis_instrument: struct, 15 elements...
       isis_target: struct, 5 elements...
       band_bin: struct, 8 elements...
       themis_keywords: struct, 4 elements...
       isis_ingestion: struct, 4 elements...
       isis_geometry: struct, 8 elements...
       image_map_projection: struct, 19 elements...
       volatile_info: struct, 2 elements...
       data: 829x3622x10 array of float, bsq format [120,105,520 bytes]

dv> b = find_band( obj = a , 4) 
4

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: 01-17-2008

Personal tools