./
pp_readncdfs.pro
Routines
top source pp_readncdfs
result = pp_readncdfs(ncf [, long=long] [, hash=hash])
Reads the dimensions and variables from a netcdf file into a structure or hash.
Parameters
- ncf in required
The name of the netCDF file to read.
Keywords
- long in optional
If set, the output contains an extra field, identifying the names of the dimensions of each variable.
- verb hidden
- hash in optional
If set, returns a hash instead of a structure.
Examples
Read one of IDL's example files:
fp=filepath('sample.nc',subdirectory=['examples','data'])
fc=pp_readncdfs(fp)
;help,fc
Structure <c88e1778>, 3 tags, length=393240, data length=393238, refs=1:
;NCDFNAME STRING '/usr/local/exelis/idl84/examples/data/sample.nc'
;D STRUCT -> <Anonymous> Array[1]
;V STRUCT -> <Anonymous> Array[1]
help,fc.d
;** Structure <c8192c18>, 3 tags, length=6, data length=6, refs=2:
;X INT 512
;Y INT 768
;Z INT 0
help,fc.v
;** Structure <c8164ee8>, 1 tags, length=393216, data length=393216, refs=2:
;IMAGE BYTE Array[768, 512]
Author information
- Author:
Paulo Penteado (http://www.ppenteado.net), 2006
Other attributes
- Todo:
Process attributes.
Statistics
Lines: | 54 lines |
Cyclomatic complexity: | 15 |
Modified cyclomatic complexity: | 15 |
File attributes
Modification date: | Wed Jun 29 22:15:28 2016 |
Lines: | 54 |
Docformat: | rst rst |