List of Routines By Functionality |  MISR Toolkit: Main Page

-Abstract

   MTK_FILEATTR_GET returns the value of an attribute for a specified file.

-Copyright

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

-I/O
   
   Given:
   
      filename       MISR product file
      attrname       file attribute name

   the call:
   
      status = MTK_FILEATTR_GET( filename, 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'
      attr        = 'Path_number'
      status      = MTK_FILEATTR_GET( file, attr, val )
      
      ;;
      ;; Output...
      ;;
      print, 'file                  : ', file
      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
       attribute             : Path_number
       =================================================
       attribute value       :           37

-Particulars
   None.

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

-Version
   -IDL-MTK Version 1.2.0