bounding box2
(6 intermediate revisions by 2 users not shown) | |||
Line 6: | Line 6: | ||
Return Value: a v_object containing the bounding coordinates of all cubes in the filelist | Return Value: a v_object containing the bounding coordinates of all cubes in the filelist | ||
| | | | ||
− | bounding_box(filelist,suffix,band,dir) | + | [[Syntax]]: bounding_box(filelist, suffix, band, dir [,geo = BOOL]) |
The filelist must contain one filename per line. The file_suffix must be the suffix of all files in the filelist. The THEMIS cubes must contain the band specified. | The filelist must contain one filename per line. The file_suffix must be the suffix of all files in the filelist. The THEMIS cubes must contain the band specified. | ||
+ | |||
+ | geo - use a [[Geo-Struct]] compatible file instead | ||
| | | | ||
dv> a = read_lines("file_list") | dv> a = read_lines("file_list") | ||
Line 94: | Line 96: | ||
| | | | ||
*[[bounding_box]] | *[[bounding_box]] | ||
+ | | | ||
+ | *mosaic_tools.dvrc | ||
| | | | ||
| | | | ||
}} | }} | ||
− | |||
[[category:Functions]] | [[category:Functions]] | ||
+ | [[category:User Defined Functions]] | ||
[[category:Mosaic Tools]] | [[category:Mosaic Tools]] |
Latest revision as of 16:07, 29 July 2013
Contents: Description, Arguments, Usage, Examples, Sub-Functions, Related Functions, Source Supported Under Version: >1.00
Description Calculates the latitude and longitude bounding box of all cubes in a directory. Used in making mosaics.
Arguments and Return Values Arguments: a filelist, file suffix, band number and a directory Return Value: a v_object containing the bounding coordinates of all cubes in the filelist
Usage Syntax: bounding_box(filelist, suffix, band, dir [,geo = BOOL]) The filelist must contain one filename per line. The file_suffix must be the suffix of all files in the filelist. The THEMIS cubes must contain the band specified. geo - use a Geo-Struct compatible file instead
Examples dv> a = read_lines("file_list") Text Buffer with 2 lines of text 1: V09277003 2: V10812002 dv> b = bounding_box(a,".qub",3,"/work/bob/mosaic") -------------------------------------------------------------------------- Parsing File: V09277003.qub -------------------------------------------------------------------------- Line 74 -- Duplicate KEYWORD identifier: "GROUP" Line 75 -- Duplicate KEYWORD identifier: "TARGET_NAME" Line 79 -- Duplicate KEYWORD identifier: "END_GROUP" Line 81 -- 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 137 -- Duplicate KEYWORD identifier: "END_GROUP" Line 139 -- Duplicate KEYWORD identifier: "GROUP" Line 143 -- Duplicate KEYWORD identifier: "SPACECRAFT_NAME" Line 147 -- Duplicate KEYWORD identifier: "INSTRUMENT_ID" Line 152 -- Duplicate KEYWORD identifier: "PRODUCT_ID" Line 156 -- Duplicate KEYWORD identifier: "IMAGE_NUMBER" Line 157 -- Duplicate KEYWORD identifier: "END_GROUP" Line 159 -- Duplicate KEYWORD identifier: "GROUP" Line 161 -- Duplicate KEYWORD identifier: "END_GROUP" -------------------------------------------------------------------------- End of Parsing File: V09277003.qub -------------------------------------------------------------------------- -------------------------------------------------------------------------- Parsing File: V10812002.qub -------------------------------------------------------------------------- Line 74 -- Duplicate KEYWORD identifier: "GROUP" Line 75 -- Duplicate KEYWORD identifier: "TARGET_NAME" Line 79 -- Duplicate KEYWORD identifier: "END_GROUP" Line 81 -- 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 137 -- Duplicate KEYWORD identifier: "END_GROUP" Line 139 -- Duplicate KEYWORD identifier: "GROUP" Line 143 -- Duplicate KEYWORD identifier: "SPACECRAFT_NAME" Line 147 -- Duplicate KEYWORD identifier: "INSTRUMENT_ID" Line 152 -- Duplicate KEYWORD identifier: "PRODUCT_ID" Line 156 -- Duplicate KEYWORD identifier: "IMAGE_NUMBER" Line 157 -- Duplicate KEYWORD identifier: "END_GROUP" Line 159 -- Duplicate KEYWORD identifier: "GROUP" Line 161 -- Duplicate KEYWORD identifier: "END_GROUP" -------------------------------------------------------------------------- End of Parsing File: V10812002.qub -------------------------------------------------------------------------- struct, 4 elements x: -1146 y: 43999 w: 2229 h: 3360 dv> |
DavinciWiki Mini-Nav Bar Contents
Contact Developers
All other topics
Related Functions
Recent Library Changes Created On: 02-15-2006 |