get crism

From DavinciWiki
(Difference between revisions)
Jump to: navigation, search
(New page: {{DavinciWiki_Function| Description | Inputs | Syntax: | Example | Images | Sub | Related | *crism_science.dvrc | 1.00 | }} category:Functions category:User Defined Functions [...)
 
Line 1: Line 1:
 
{{DavinciWiki_Function|
 
{{DavinciWiki_Function|
Description
+
Download and parses [[CRISM]] data from the [[PDS]] repository into a usable structure for davinci.  This will cache crism products in the $DV_CRISM_CACHE directory.  Additionally, the $DV_CRISM_DB_USER, $DV_CRISM_DB_PORT, and $DV_CRISM_DB_PASS are all required.
 +
 
 +
At this point this script also requires wget/mkdir/cd/chmod/head/tail/nl.  This will change soon as the [[PDS]] reader will be fixed to better handle these data.
 
|
 
|
Inputs
+
Inputs: takes a truncated image id (like those from [[get_crism_list|get_crism_list()]]
 +
 
 +
Output: a standard processed CRISM structure.
 
|
 
|
[[Syntax]]:
+
[[Syntax]]: get_crism(product [,ra] [,raw] [,sl] [,force] [,verb])
 +
 
 +
product-truncated product id
 +
 
 +
ra - download radiance rather than I/F
 +
 
 +
raw - output the entire PDS structures for each component
 +
 
 +
sl - include the short wavelength (default is 0)
 +
 
 +
force - force a re-download of the products (not available at this time)
 +
 
 +
verb - decrease the verbosity
 
|
 
|
Example
+
dv> out=get_crism("000035B5_07")
 +
Enter password:
 +
~/CRISM_CACHE/000035B5_07
 +
--23:59:29--  http://pds-geosciences.wustl.edu/crism-ddr01/mro-m-crism-6-ddr-v1/mrocr_1001/ddr/2006     
 +
/2006_346/HRS000035B5/HRS000035B5_07_DE174L_DDR1.LBL
 +
Resolving pds-geosciences.wustl.edu... 128.252.144.1 61
 +
Connecting to pds-geosciences.wustl.edu|128.252.144.161|:80... connected.
 +
HTTP request sent, awaiting response... 200 OK
 +
File `HRS000035B5_07_DE174L_DDR1.LBL' already there; not retrieving.
 +
...........
 +
struct, 1 elements
 +
    long: struct, 5 elements
 +
        anc: struct, 5 elements...
 +
        wl_array: 320x1x438 array of float, bil format [560,640 bytes]
 +
        at_array: 320x1x438 array of float, bil format [560,640 bytes]
 +
        id: ""HRS000035B5_07_IF174L_TRR2.IMG""
 +
        data: 320x225x438 array of float, bil format [126,144,000 bytes]
 
|
 
|
Images
 
 
|
 
|
Sub
+
*[[syscall]]
 +
*[[sprintf]]
 +
*[[load_pds]]
 +
*[[get_struct]]
 
|
 
|
Related
+
*[[process_crism]]
 +
*[[crism_atm]]
 +
*[[crism_resample]]
 +
*[[create_indices]]
 
|
 
|
 
*crism_science.dvrc
 
*crism_science.dvrc

Revision as of 00:14, 31 March 2009

Supported Under Version>

  • crism_science.dvrc


Citation

1.00

Description

Download and parses CRISM data from the PDS repository into a usable structure for davinci. This will cache crism products in the $DV_CRISM_CACHE directory. Additionally, the $DV_CRISM_DB_USER, $DV_CRISM_DB_PORT, and $DV_CRISM_DB_PASS are all required.

At this point this script also requires wget/mkdir/cd/chmod/head/tail/nl. This will change soon as the PDS reader will be fixed to better handle these data.

Arguments and Return Values

Inputs: takes a truncated image id (like those from get_crism_list()

Output: a standard processed CRISM structure.

Usage

Syntax: get_crism(product [,ra] [,raw] [,sl] [,force] [,verb])

product-truncated product id

ra - download radiance rather than I/F

raw - output the entire PDS structures for each component

sl - include the short wavelength (default is 0)

force - force a re-download of the products (not available at this time)

verb - decrease the verbosity

Examples

128.252.144.161

Images

80... connected.
HTTP request sent, awaiting response... 200 OK
File `HRS000035B5_07_DE174L_DDR1.LBL' already there; not retrieving.
...........
struct, 1 elements
   long: struct, 5 elements
       anc: struct, 5 elements...
       wl_array: 320x1x438 array of float, bil format [560,640 bytes]
       at_array: 320x1x438 array of float, bil format [560,640 bytes]
       id: ""HRS000035B5_07_IF174L_TRR2.IMG""
       data: 320x225x438 array of float, bil format [126,144,000 bytes]

DavinciWiki Mini-Nav Bar

Contents


Contact Developers

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

All other topics

  • See navigation on the left

Related Functions

Recent Library Changes

Created On: 03-30-2009
Modified On: 08-28-2011

Personal tools