NetCDFNoCF

class of dascore.io.netcdf.core
inherits from: dascore.io.netcdf.core._NetCDFReader, FiberIO
source

NetCDFNoCF()

NetCDF-4 files version 1.8 does not take, read as NETCDF_CF version 0.

These state no CF version, or one older than 1.6. Version 0 is a fallback, tried after every other format, and claims only a file written through netCDF (_NCProperties) with a dimensioned root variable. It reads like version 1.8 and infers nothing more; it does not write.

Methods

Name Description
get_format Derive the format name and version from the family detector.
get_metadata Scan NetCDF file metadata, one per payload, without loading arrays.
get_version Return “0” for a netCDF-4 file that version 1.8 does not take.
read Read patches by selecting metadata and loading the resulting array windows.
read_array Slice the keyed payload variable through xarray.
scan Return patch metadata; the dispatcher attaches source provenance.
unit_members Return the files identifying a directory unit of this format, if any.
write Write the spool to a resource (eg path, stream, etc.).