get crism
(4 intermediate revisions by one user not shown) | |||
Line 2: | Line 2: | ||
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. | 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 | + | At this point this script also requires wget/mkdir. This will change soon as the [[PDS]] reader will be fixed to better handle these data. |
+ | |||
+ | New to 1.09 version. Now uses [[get_image]] to download the data rather than direct links to the PDS site. | ||
| | | | ||
Inputs: takes a truncated image id (like those from [[get_crism_list|get_crism_list()]]) | Inputs: takes a truncated image id (like those from [[get_crism_list|get_crism_list()]]) | ||
Line 8: | Line 10: | ||
Output: a standard processed CRISM structure. | Output: a standard processed CRISM structure. | ||
| | | | ||
− | [[Syntax]]: get_crism(product_id | + | [[Syntax]]: get_crism(product_id[, raw=BOOL][, sl=BOOL][, force=BOOL][, verb=BOOL][, wget=BOOL][, src= BOOL]) |
− | product_id - truncated product id | + | product_id - truncated product id. NOTE: Does not include prefix. This should look like 000035B5_07 |
− | + | ||
− | + | ||
raw - output the entire PDS structures for each component | raw - output the entire PDS structures for each component | ||
Line 21: | Line 21: | ||
verb - decrease the verbosity | verb - decrease the verbosity | ||
+ | |||
+ | wget - forces the use of wget rather then [[copy|copy()]] (default is 0) | ||
+ | |||
+ | src - download the data from the [[PDS]] location | ||
| | | | ||
dv> out=get_crism("000035B5_07") | dv> out=get_crism("000035B5_07") | ||
Line 47: | Line 51: | ||
*crism_science.dvrc | *crism_science.dvrc | ||
| | | | ||
− | 1. | + | 1.09 |
| | | | ||
}} | }} |
Latest revision as of 12:03, 28 August 2011
Contents: Description, Arguments, Usage, Examples, Sub-Functions, Related Functions, Source Supported Under Version: > 1.09
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. This will change soon as the PDS reader will be fixed to better handle these data. New to 1.09 version. Now uses get_image to download the data rather than direct links to the PDS site.
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_id[, raw=BOOL][, sl=BOOL][, force=BOOL][, verb=BOOL][, wget=BOOL][, src= BOOL]) product_id - truncated product id. NOTE: Does not include prefix. This should look like 000035B5_07 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 wget - forces the use of wget rather then copy() (default is 0) src - download the data from the PDS location
Examples dv> out=get_crism("000035B5_07") Enter password: ~/CRISM_CACHE/000035B5_07 ........... 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
All other topics
Major Sub-Functions
Related Functions
Recent Library Changes Created On: 03-30-2009 |