Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BGC boundary and surface forcing + major refactoring (#79)
* Extract common parts of initial conditions and boundary forcing and make it mixin class * Transpose expected test data as a result of refactor * Update notebook with .ds data_vars moved to attributes * Minor fixes * Add more metadata and adapt mixin for atmospheric forcing * Refactor boundary_forcing to work with BGC * Mask ERA5 data as part of post processing * Break mixin functions into smaller pieces and add docstrings * Make ERA5Correction inherit from Dataset class * Adapt to changes in ROMSMixin * Add BGC boundary forcing * Add BGC boundary forcing tests * Update notebook that showcases BGC boundary forcing creation * Rename mixin class * Refactor AtmosphericForcing and automate SWR correction * Add xarray-datatree to dependencies * Adapt SWR tests and move them as fit * Fix typo * Add CESMBGCSurfaceForcingDataset and handle adding time info to Dataset * Default climatology to True for BGC initial condition data * Reformatting * Add surface BGC metadata * Add function that converts from cftime to datetime * Download CESM surface test data * Introduce absolute time and handle clim saving separately * Add BGC surface forcing * One parent class for CESM * Surface BGC tests * Correct filepaths * Fix issue with time dimension * Include units in long_name of time variable * Add regression test for BGC clim data * Add utils tests to github workflows * Rename AtmosphericForcing --> SurfaceForcing * Rename AtmosphericForcing --> SurfaceForcing * Use tempfile with delete=True to not clutter temp space * Write physics and BGC fields in parallel * Change units in long name * Merge * Update notebooks * Update notebooks * Remove forcing file * Add more docstrings to plotting function * Fix typo for test module name
- Loading branch information