veriflow.datasinks.cf_compliant_netcdf#

Read and write netcdf files in a fews compatible format.

Classes

CFCompliantNetCDF(config)

For writing data to a fews netcdf file.

CFCompliantNetCDFConfig(*, export_adapter[, ...])

A cf-compliant NetCDF output config element.

class veriflow.datasinks.cf_compliant_netcdf.CFCompliantNetCDF(config)[source]#

For writing data to a fews netcdf file.

Parameters:

config (CFCompliantNetCDFConfig)

kind: str = 'cf_compliant_netcdf'#
config_class#

alias of CFCompliantNetCDFConfig

write_data(dataset)[source]#

Write the data in the xarray Dataset to the file as specified in the output config.

Parameters:

dataset (Dataset)

Return type:

None

class veriflow.datasinks.cf_compliant_netcdf.CFCompliantNetCDFConfig(*, export_adapter, force_overwrite=True, general, directory, filename, conventions='CF-1.7', title='Verification results created by veriflow', institution, comment='Verification results created by veriflow', **extra_data)[source]#

A cf-compliant NetCDF output config element.

Parameters:
export_adapter: Literal[DataSinkKind.cf_compliant_netcdf]#