load pds

From DavinciWiki
(Redirected from Load pds)
Jump to: navigation, search


Description

Read a PDS file into a structure. Identical to load_PDS.

Arguments and Return Values

Arguments: A string containing file to be loaded

Return Value: A pds structure

Usage

Syntax: load_pds(filename = PATH [, data = 1] [, suffix_data = 1])

PDS files contain of NAME=VALUE pairs, and some rudimentary hierarchal structure via OBJECT and GROUP constructs.

The load_pds() function understands a few common PDS data structures:

  • QUBE
  • SPECTRAL_QUBE
  • TABLE
  • IMAGE
  • HISTOGRAM_IMAGE
  • HISTORY

The DATA argument specifies whether or not to load the data from any objects encountered in the file. (0=don't load, default is 1)

The SUFFIX_DATA argument specifies whether or not to load the suffix data planes from QUBE and SPECTRAL_QUBE objects. (0=don't load, default is 0)

Examples

dv> a=load_pds("/work/knowicki/I01002002.project.00082523.QUB",data=0)

--------------------------------------------------------------------------
Parsing File:  /work/knowicki/I01002002.project.00082523.QUB
--------------------------------------------------------------------------

 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:  /work/knowicki/I01002002.project.00082523.QUB
--------------------------------------------------------------------------

struct, 9 elements
    record_type: "FIXED_LENGTH"
    record_bytes: 512
    file_records: 752221
    label_records: 24
    file_state: "CLEAN"
    ptr_to_history: 25
    history: struct, 1 elements
        Object: "HISTORY"
    ptr_to_qube: 65
    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.00000
        core_multiplier: 1.00000
        core_valid_minimum: 1065353216
        core_null: 1065353216
        core_low_repr_saturation: 1065353216
        core_low_instr_saturation: 1065353216
        core_high_instr_saturation: 1065353216
        core_high_repr_saturation: 1065353216
        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: ""I01002002RDR""
        product_creation_time: ""2004-10-10T13:45:30.000Z""
        product_version_id: 1.60000
        release_id: ""0002""
        orbit_number: 1002
        flight_software_version_id: 1.00000
        command_sequence_number: 1002
        image_number: ""0010020021""
        target_name: ""MARS""
        isis_instrument: struct, 15 elements...
        isis_target: struct, 5 elements...
        band_bin: struct, 6 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...

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: 10-07-2016

Personal tools