bounding box2

From DavinciWiki
Jump to: navigation, search

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

  • 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: 07-29-2013

Personal tools