theophilusx.netcdf.file
functions to manipulate NetcdfFile objects.
-mk-var-info-map
(-mk-var-info-map line)close
(close nc)Closes a NetCDF file object and releases resources. nc is a NetcdfFile object returned from a call to open or open-in-memory.
file-type-description
(file-type-description nc)Return description of file type. nc is a NetcdfFile object returned from a call to open or open-in-memory. Returns a string
file-type-version
(file-type-version nc)Get the file type version for the file. nc is a NetcdfFile object returned from a call to open or open-in-memory. Returns a string.
location
(location nc)Return the location of the NetCDF file. Argument nc is a NetcdfFile object returned from a call to open or open-in-memory.
open
(open location & {:keys [buffer-size], :or {buffer-size 0}})Open a NetCDF file. Return a NetcdfFile object. location is a path to an NetCDF 4 file. The optional keyword arguement value pair buffer-sizecan be used to set a specific buffer size to hold the data. Defaults to 0, which says to use the default buffer size.
Examples (open “/path/to/data.nc”) (open “/path/to/data-nc” :buffer-size 1024000)
open-in-memory
(open-in-memory location)Opens a NetCDF file and read it into memory. location is a path to the location of the NetCDF 4 file. Returns a NetcdfFile object.
type-id
(type-id nc)Get the file type id for the underlying data source. The nc argument is a NetcdfFile object returned from a call to open or open-in-memory