Target

Contents

Target#

class ufs2arco.targets.Target(source: Source, chunks: dict, store_path: str, rename: dict | None = None, forcings: list | tuple | None = None, statistics_period: dict | None = None, compute_temporal_residual_statistics: bool | None = False)#

Base class for the target dataset to be stored.

This is used in the case that the target data looks “the same” as the input (i.e., the zarr form equivalent).

Methods

Target.__init__(source, chunks, store_path)

Initialize the GEFSDataset object.

Target.apply_transforms_to_sample(xds)

After opening a single dataset for the given initial condition, forecast hour, and member, Apply any transformations necessary for storage

Target.compute_forcings(xds)

Target.compute_valid_time(topo)

Deal with the dates issue

Target.finalize(topo)

Any last minute operations

Target.handle_missing_data(missing_data)

Take a list of dicts, with dimensions of missing data, and store it in the zarr

Target.manage_coords(xds)

Manage the coordinates that will get stored in the container

Target.rename_dataset(xds)

This takes the default source variables and renames them to user specified options:

Attributes

Target.always_open_static_vars

Target.fhr

Target.horizontal_dims

Target.member

Target.name

Target.renamed_sample_dims

Target.sample_dims

Target.t0

Target.time