ncreadatt
Read attribute value from NetCDF data source
Syntax
attvalue = ncreadatt(source,location,attname)
Description
attvalue = ncreadatt(source,location,attname)
reads the attribute
attname
from the group or variable specified by
location
in source
, where source is the name
of a NetCDF file, the URL of a NetCDF data source, or the HTTP URL of a remote NetCDF
file (with the #mode=bytes
suffix for byte-range reading).
Input Arguments
|
Character vector or string scalar specifying the name of a NetCDF file, the URL of an OPeNDAP
NetCDF data source, or an HTTP URL of a remote NetCDF file for byte-range
reading. To enable byte-range reading of remote datasets, append
Example: |
|
Character vector or string scalar specifying a group or variable in the NetCDF data source. To
read global attributes, set |
|
Character vector or string scalar specifying the name of an attribute that you want to read in the NetCDF data source. |
Output Arguments
|
Data associated with the attribute. |
Examples
Limitations
The performance of byte-range reading is slower than reading from other sources.