read geometa

From DavinciWiki
Jump to: navigation, search

Description

Read the metadata from a Geo-Aware file. It now supports reading the "metadata", "gcps", "Coordinate Systems", "Subdatasets", and "Corner Coordinates". This function relies on GDAL > 1.8.

Arguments and Return Values

Arguments: File name

Return Value: A davinci Geo-Struct without the data

Usage

Syntax: read_geometa(filename [,opts=BOOL][,raw=BOOL])

filename - input full path to data

opts - additonal gdalinfo arguments (Default = "")

raw - return the raw gdalinfo output in the structure

Examples

dv> a=read_geo($DV_EX+"/I01001001.cub")
Downloading...........................................done.
   anc: struct, 11 elements
       wkt: Text Buffer with 12 lines of text
           1: PROJCS["SIMPLE_CYLINDRICAL MARS",
           2:     GEOGCS["GCS_MARS",
           3:         DATUM["D_MARS",
           4:             SPHEROID["MARS",3396190,0]],
           5:         PRIMEM["Reference_Meridian",0],
           6:         UNIT["degree",0.0174532925199433]],
           7:     PROJECTION["Equirectangular"],
           8:     PARAMETER["latitude_of_origin",0],
           9:     PARAMETER["central_meridian",0],
           10:     PARAMETER["standard_parallel_1",0],
       proj4: "'+proj=eqc +lat_ts=0 +lat_0=0 +lon_0=0 +x_0=0 +y_0=0 +a=3396190 +b=3396190 +units=m +no_defs '"
       origin: 1x2x1 array of double, bsq format [16 bytes]
       pixel_size: 1x2x1 array of double, bsq format [16 bytes]
       x: 186699.0000
       y: -3541.000000
       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]
   ignore: -3.402822655e+38
   projection: "Equirectangular"
   spheroid: struct, 3 elements
       name: "MARS"
       radius: "3396190"
       iflattening: "0"
   resolution: 100.0000000
   x: 186699.0000
   y: -3541.000000
   ul: 2x1x1 array of float, bsq format [8 bytes]
   ur: 2x1x1 array of float, bsq format [8 bytes]
   ll: 2x1x1 array of float, bsq format [8 bytes]
   lr: 2x1x1 array of float, bsq format [8 bytes]
   w: 661
   h: 2391

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: 04-11-2013
Modified On: 07-30-2013

Personal tools