split_netcdf_writer
Modules:
Name | Description |
---|---|
get_filename |
|
Classes:
Name | Description |
---|---|
SplitNetCDFWriter |
|
Classes#
SplitNetCDFWriter #
Bases: NetCDFWriter
Wrapper around xarray's Dataset.to_netcdf()
function for saving a dataset to a
netCDF file based on a particular time interval, and is an extension of the
NetCDFWriter
.
Files are split (sliced) via a time interval specified in two parts, time_interval
a literal value, and a time_unit
character (year: "Y", month: "M", day: "D", hour:
"h", minute: "m", second: "s").
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: Parameters
Attributes:
Name | Type | Description |
---|---|---|
time_interval |
int
|
Time interval value. |
time_unit |
str
|
Time interval unit. |