NetCDF4
- class typhon.files.handlers.common.NetCDF4(**kwargs)[source]
File handler that can load / store xarray.Dataset from / to NetCDF4
This file handler can also handle pseudo groups in
xarray.Dataset
objects.- __init__(**kwargs)[source]
Initialize a NetCDF4 file handler class
- Parameters:
info – You cannot use the
get_info()
without giving a function here that returns a FileInfo object.
Methods
__init__
(**kwargs)Initialize a NetCDF4 file handler class
get_info
(filename, **kwargs)Return a
FileInfo
object with parameters about the file content.read
(file_info[, fields, mapping])Read and parse NetCDF files and load them to a xarray.Dataset
write
(data, filename, **kwargs)Save a xarray.Dataset to a NetCDF4 file