load aviris

From DavinciWiki
Jump to: navigation, search

Description

Read an AVIRIS instrument image and store it in a variable as a davinci Geo-Struct

Please check the GDAL information for more information about gdal.

Arguments and Return Values

Arguments: Accepts an AVIRIS ENVI formatted image file. NOTE: This should include all the other ancellary files that come with an AVIRIS download, including the spectral xaxis and the gain file.

Return Value: A davinci structure containing .data and meta-data

Usage

Syntax: load_aviris(filename)

filename - path of the AVIRIS file

Examples

dv> a=load_aviris($1)
Apparent file size: 2x224x1
Read ASCII file: 2x224x1
Apparent file size: 2x224x1
Read ASCII file: 2x224x1
struct, 15 elements
anc: struct, 11 elements
  wkt: Text Buffer with 19 lines of text
    1: PROJCS["UTM Zone 12, Northern Hemisphere",
    2: GEOGCS["WGS 84",
    3: DATUM["WGS_1984",
    4: SPHEROID["WGS 84",6378137,298.257223563,
    5: AUTHORITY["EPSG","7030"]],
    6: TOWGS84[0,0,0,0,0,0,0],
    7: AUTHORITY["EPSG","6326"]],
    8: PRIMEM["Greenwich",0,
    9: AUTHORITY["EPSG","8901"]],
    10: UNIT["degree",0.0174532925199433,
  bandcount: 224
  metadata: struct, 3 elements...
  proj4: "'+proj=utm +zone=12 +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs '"
  origin: 1x2x1 array of double, bsq format [16 bytes]
  pixel_size: 1x2x1 array of double, bsq format [16 bytes]
  lat: 1x5x1 array of float, bsq format [20 bytes]
  lon: 1x5x1 array of float, bsq format [20 bytes]
  lpo: 1x5x1 array of float, bsq format [20 bytes]
  spo: 1x5x1 array of float, bsq format [20 bytes]
  center: 2x1x1 array of float, bsq format [8 bytes]
projection: "Transverse_Mercator"
spheroid: struct, 3 elements
name: "WGS 84"
  radius: "6378137"
  iflattening: "298.2572236"
  resolution: 10.40000000
x: 58040.13942
y: -388157.7981
ul: 2x1x1 array of float, bsq format [8 bytes]
ll: 2x1x1 array of float, bsq format [8 bytes]
ur: 2x1x1 array of float, bsq format [8 bytes]
lr: 2x1x1 array of float, bsq format [8 bytes]
w: 743
h: 3080
data: 743x3080x224 array of float, bip format [2,050,442,240 bytes]
ignore: -32768
xaxis: 1x1x224 array of float, bsq format [896 bytes]

DavinciWiki Mini-Nav Bar

Contents


Contact Developers

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

All other topics

  • See navigation on the left

Recent Library Changes

Created On: 10-17-2013
Modified On: 10-17-2013

Personal tools