netcdf_writer
Classes:
Name | Description |
---|---|
NetCDFWriter |
|
Classes#
NetCDFWriter #
Bases: FileWriter
Thin wrapper around xarray's Dataset.to_netcdf()
function for saving a dataset to a
netCDF file. Properties under the to_netcdf_kwargs
parameter will be passed to
Dataset.to_netcdf()
as keyword arguments.
File compression is used by default to save disk space. To disable compression set the
compression_level
parameter to 0
.
Classes:
Name | Description |
---|---|
Parameters |
|
Methods:
Name | Description |
---|---|
write |
|
Attributes:
Name | Type | Description |
---|---|---|
file_extension |
str
|
|
parameters |
Parameters
|
|
Attributes#
parameters
class-attribute
instance-attribute
#
Classes#
Parameters #
Bases: BaseModel
Attributes:
Name | Type | Description |
---|---|---|
compression_engine |
str
|
The compression engine to use. |
compression_level |
int
|
The level of compression to use (0-9). Set to 0 to not use compression. |
to_netcdf_kwargs |
Dict[str, Any]
|
Keyword arguments passed directly to xr.Dataset.to_netcdf(). |
Attributes#
class-attribute
instance-attribute
#The compression engine to use.
class-attribute
instance-attribute
#The level of compression to use (0-9). Set to 0 to not use compression.
class-attribute
instance-attribute
#Keyword arguments passed directly to xr.Dataset.to_netcdf().