mos bounds

From DavinciWiki
Revision as of 12:01, 21 May 2009 by Cedwards (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

{{DavinciWiki_Function| Calculates the latitude and longitude bounding box of all cubes in a directory. Used in making mosaics. | Arguments: a filelist, file suffix, and a directory

Return Value: a structure with the lat and lon ranges | Syntax: bounding_box(filelist, suffix [,dir])

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. Dir is "./" by default. |

dv> a=read_lines("file_list")
Text Buffer with 24 lines of text
   1: I09848002
   2: I23351005
   3: I09536003
   4: I15988002
   5: I18746002
   6: I17211003
   7: I05654002
   8: I19369024
   9: I23950004
   10: I23039002
dv> out=mos_bounds(a,".cub")
struct, 2 elements
   latrange: "-27.049459:-2.981086"
   lonrange: "44.620384:48.422428"

| |

|

|

  • mosaic_tools.dvrc

| 1.01 }}

Personal tools