Attention
This project is still in an early phase of development.
The python API is not yet stable, and some aspects of the schema for the blueprint and workplan will likely evolve. Therefore whilst you are welcome to try out using the package, we cannot yet guarantee backwards compatibility. We expect to reach a more stable version in 2026.
ROMSForcingCorrections#
- class cstar.roms.input_dataset.ROMSForcingCorrections(location: str, file_hash: str | None = None, start_date: str | datetime | None = None, end_date: str | datetime | None = None, source_np_xi: int | None = None, source_np_eta: int | None = None, linker: DatasetLinker | None = None)#
Bases:
ROMSInputDatasetROMS forcing correction file, such as SW correction or restoring fields.
These are used by older ROMS configurations, and included in C-Star to support them.
This file must not be generated from a roms-tools YAML. It should point directly to a NetCDF or similar file.
Methods
ROMSForcingCorrections.get(local_dir)Obtain and stage this ROMSInputDataset, making it locally available to C-Star.
ROMSForcingCorrections.partition(np_xi, np_eta)Partition a netCDF dataset into tiles to run ROMS in parallel.
Represent this InputDataset object as a dictionary of kwargs.
Attributes
ROMSForcingCorrections.end_dateThe maximum date in the dataset.
ROMSForcingCorrections.exists_locallyCheck if an unmodified version of this InputDataset exists on the local filesystem.
ROMSForcingCorrections.logReturn the logger instance for this class.
ROMSForcingCorrections.partitionableSet to False if the input dataset should not be partitioned.
ROMSForcingCorrections.path_for_romsReturns a list of Paths corresponding to this ROMSInputDataset that can be read by ROMS.
ROMSForcingCorrections.source_partitioningROMSForcingCorrections.start_dateThe minimum date in the dataset.
ROMSForcingCorrections.working_copyDescribes the (if any) locally available copy of this InputDataset.
ROMSForcingCorrections.sourceThe location of and classifies the source data