-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add month-averaging of grazing/mortality & biology growth rate variab…
…le groups to `make_averaged_dataset` (#297) * Add more month-avg reshapr configs for make_averaged_dataset These YAML configuration files resample daily biological growth rate and grazing/mortality fields to monthly averages for the SalishSeaCast v202111 model. They specify the variables to extract, the resampling method, and the destination for the output files. * Add support for month-avgs of grazing & growth var groups Extended the make_averaged_dataset worker and related test cases to include grazing and growth dataset variable groups. Updated configuration files and added parameter-specific validations for these new variable groups. * Add day grazing and growth failure messages Updated the nowcast.yaml configuration file to include failure messages for grazing and growth dataset day-averaging. Corresponding test cases were also added to ensure proper error handling for these new scenarios. Missed in ce694e2. Necessary because grazing and growth dataset day-averaging operation requests are rejected to avoid redundant work; those datasets are calculated and output by out NEMO configuration. * Add month-avg grazing and growth to automation Expanded the next_workers module to calculate month-average grazing and growth datasets at month-end. Added corresponding test functions to ensure the new make_averaged_dataset worker instances are launched correctly.
- Loading branch information
1 parent
274fc7a
commit 5236fe5
Showing
7 changed files
with
211 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# `reshapr extract` config to resample v202111 day-average grzing & mortality fields | ||
# to month-average | ||
|
||
dataset: | ||
model profile: SalishSeaCast-202111-salish.yaml | ||
time base: day | ||
variables group: biology growth rates | ||
|
||
dask cluster: tcp://142.103.36.12:4386 | ||
|
||
# Placeholder state/end dates that are overridden by worker's run-date arg | ||
start date: 2007-01-01 | ||
end date: 2007-01-31 | ||
|
||
extract variables: | ||
- PPDIAT | ||
- PPPHY | ||
- PPDIATNO3 | ||
- PPPHYNO3 | ||
- TQ10 | ||
|
||
resample: | ||
time interval: 1M | ||
aggregation: mean | ||
|
||
extracted dataset: | ||
name: SalishSeaCast_1m_prod_T | ||
description: Month-averaged biology growth rate variables resampled from | ||
v202111 SalishSea_1d_*_prod_T.nc | ||
deflate: True | ||
format: NETCDF4 | ||
dest dir: /results2/SalishSea/month-avg.202111/ |
38 changes: 38 additions & 0 deletions
38
config/reshapr/month-average_202111_grazing_mortality.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# `reshapr extract` config to resample v202111 day-average grzing & mortality fields | ||
# to month-average | ||
|
||
dataset: | ||
model profile: SalishSeaCast-202111-salish.yaml | ||
time base: day | ||
variables group: grazing | ||
|
||
dask cluster: tcp://142.103.36.12:4386 | ||
|
||
# Placeholder state/end dates that are overridden by worker's run-date arg | ||
start date: 2007-01-01 | ||
end date: 2007-01-31 | ||
|
||
extract variables: | ||
- MORTPHY | ||
- MORTDIAT | ||
- MORTMICZ | ||
- GRMESZDIAT | ||
- GRMESZPHY | ||
- GRMESZPON | ||
- GRMESZMICZ | ||
- GRMICZDIAT | ||
- GRMICZPHY | ||
- GRMICZPON | ||
- GRMICZMICZ | ||
|
||
resample: | ||
time interval: 1M | ||
aggregation: mean | ||
|
||
extracted dataset: | ||
name: SalishSeaCast_1m_graz_T | ||
description: Month-averaged grazing and mortality variables resampled from | ||
v202111 SalishSea_1d_*_graz_T.nc | ||
deflate: True | ||
format: NETCDF4 | ||
dest dir: /results2/SalishSea/month-avg.202111/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters