njGetAttributes

PURPOSE ^

njGetAttributes get attributes for NetCDF file, NetCDF URL or OpenDAP URL

SYNOPSIS ^

function attr=njGetAttributes(ncRef,var,attrb)

DESCRIPTION ^

 njGetAttributes get attributes for NetCDF file, NetCDF URL or OpenDAP URL
 Usage:    attr=njGetAttributes(ncRef,var,attrb);
   where:  ncRef = Reference to netcdf file. It can be either of two
                   a. local file name or a URL  or
                   b. An 'msstate.cstm.data.JDataset' object, which is the reference to already
                   open netcdf file.  [ncRef=msstate.cstm.data.JDataset(uri)]
           var  = variable or 'global'     
           attrb = global or variable attribute name  (case ignored)

           [attr]= njGetAttributes(ncRef);                 Returns only 'global' attributes
           [attr]= njGetAttributes(ncRef,'global',attrb)  returns a variable with the value of a global attribute
           [attr]= njGetAttributes(ncRef,var)            
           [attr]= njGetAttributes(ncRef,var,attrb)       returns a variable with the value for a specific variable attribute
      
 Sachin Kumar Bhate (skbhate@ngi.msstate.edu) (C) 2008
 Mississippi State University

 import the NetCDF-Java methods

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Fri 10-Apr-2009 13:39:58 by m2html © 2003