List of Routines By Functionality |  MISR Toolkit: Main Page

-Abstract

   MTK_GRIDATTR_GET returns the value of an attribute for a specified grid/file.

-Copyright

   Copyright (2005), California Institute of Technology.
   U.S. Government sponsorship acknowledged.

-I/O
   
   Given:
   
      filename       MISR product file
      gridname       name of a grid within the file
      attrname       name of an attribute associated with the grid

   the call:
   
      status = MTK_GRIDATTR_GET( filename, gridname, attrname, attrval )
   
   returns:
   
      status         0 on success; otherwise failure
      attrval        value of specified grid attribute

-Examples

      ;;
      ;; Set up input parameters
      ;;
      file        = '../Mtk_testdata/in/MISR_AM1_GRP_ELLIPSOID_GM_P037_O029058_AA_F03_0024.hdf'
      grid        = 'RedBand'
      attr        = 'Scale factor'
      status      = MTK_GRIDATTR_GET( file, grid, attr, val )
      
      ;;
      ;; Output...
      ;;
      print, 'file                  : ', file
      print, 'grid                  : ', grid
      print, 'attribute             : ', attr
      print, '================================================='
      print, 'attribute value       : ', val

   IDL outputs:
   
       file                  : ../Mtk_testdata/in/MISR_AM1_GRP_ELLIPSOID_GM_P037_O029058_AA_F03_0024.hdf
       grid                  : RedBand
       attribute             : Scale factor
       =================================================
       attribute value       :      0.038531996

-Particulars
   None.

-Required Reading
   For important details concerning this module's function, please refer to
   the MTK routine MtkGridAttrGet.c.

-Version
   -IDL-MTK Version 1.2.0