-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* executable and a brand new task * new task and dynamic keys as a new option * make suite to run accesible * soft run option for generate B climatology * fgat cycle suite and template yamls * eva change * codestyle fixes * allow setting env variable with code tests * add fgat executable and reorganize linking according to models * code test fixes * create marine_models key as a SOCA related tasks control switch * use marine_models in templates to control config behavoir * fix default typehinting * update config to use generic saber * adapt to using cwd, include **kwargs in shell utils * update link_geos for cice6 history handling * fgat with geos_marine * fix typehinting * include analysis time as a template variable * eva related changes for increment outputs * preaching docs, gotta add docs
- Loading branch information
Showing
46 changed files
with
2,222 additions
and
182 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,31 @@ | ||
# CICE6 Settings for GEOS/SOCA Setup (CICE_6.4.1/GEOSv11.6) | ||
|
||
SOCA currently only uses category aggregated CICE variables, namely: | ||
|
||
- `cicen`: Ice are (sea-ice concentration) | ||
- `aicen`: Ice thickness | ||
- `hsnon`: Snow thickness | ||
|
||
|
||
## History Outputs | ||
|
||
>In SWELL, history outputs are utilized to obtain the aggregated variables in desired output frequencies. See more details about [history outputs](history_outputs.md). | ||
The following setup is for using 3 hourly states. In `ice_in`, `histfreq` should have `h` and `histfreq_n` | ||
should be 3 for 3 hourly dumps. | ||
|
||
```nml | ||
histfreq = 'h','x','x','x','x' | ||
histfreq_n = 3 , 1 , 1 , 1 , 1 | ||
``` | ||
|
||
Then, in the ` &icefields_nml` section, activate following variables: | ||
|
||
```nml | ||
f_aice = 'h' | ||
f_hi = 'h' | ||
f_hs = 'h' | ||
``` | ||
|
||
This will produce outputs named such as `iceh_03h.2021-07-02-43200.nc`, with `03h` prefix depending on the | ||
`histfreq` setup. |
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,47 @@ | ||
History outputs, as opposed to model restarts containing full diagnostic fields, provides a subset of variables in preset frequencies. They are typically used for providing more frequent outputs of reduced dimension variables for plotting or analysis (i.e., vertically averaged or surface-only, such as SST). | ||
|
||
GEOSgcm provides a mechanism for dumping restarts (aka `_checkpoint`) more frequently via `Restart Record Parameters` section in `AGCM.rc`. However, this causes model to stop and create these large files with full model fields which is undesirable for long simulation times. | ||
|
||
In SWELL context, history outputs are particularly useful for 4D window setups when multiple states and/or backgrounds are required as an input for JEDI. For instance, for a 3DFGAT setup with a 6h window and 3h background frequency, one background (at the beginning of the window) and two state inputs (one at the 3h mark one at the end) are required. This can be handled by using `diag_table` for [MOM6](mom6.md) or adjusting `ice_in` for [CICE6](cice6.md). | ||
|
||
For example, with MOM6/CICE6, employing a 6h DA window and 3h background frequency via 3DFGAT, ocean and sea-ice backgrounds are defined by: | ||
|
||
```yaml | ||
background: | ||
basename: ./ | ||
date: '2021-07-02T03:00:00Z' | ||
ice_filename: cice.res.20210702T030000Z.nc | ||
ocn_filename: MOM6.res.20210702T030000Z.nc | ||
read_from_file: 1 | ||
state variables: | ||
- cicen | ||
- hicen | ||
- hsnon | ||
- socn | ||
- tocn | ||
- ssh | ||
- hocn | ||
- mld | ||
- layer_depth | ||
``` | ||
and ocean and sea-ice states: | ||
```yaml | ||
model: | ||
name: PseudoModel | ||
states: | ||
- basename: ./ | ||
date: '2021-07-02T06:00:00Z' | ||
ice_filename: ice.fc.2021-07-02T03:00:00Z.PT3H.nc | ||
ocn_filename: ocn.fc.2021-07-02T03:00:00Z.PT3H.nc | ||
read_from_file: 1 | ||
- basename: ./ | ||
date: '2021-07-02T09:00:00Z' | ||
ice_filename: ice.fc.2021-07-02T03:00:00Z.PT6H.nc | ||
ocn_filename: ocn.fc.2021-07-02T03:00:00Z.PT6H.nc | ||
read_from_file: 1 | ||
tstep: PT3H | ||
``` | ||
More details can be found in [JEDI/SOCA documentation](https://jointcenterforsatellitedataassimilation-jedi-docs.readthedocs-hosted.com/en/latest/inside/jedi-components/soca/index.html). |
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,8 @@ | ||
# MOM6 Settings for GEOS/SOCA Setup (GEOSv11.6) | ||
|
||
|
||
## History Outputs | ||
|
||
>In SWELL, history outputs are utilized to obtain the aggregated variables in desired output frequencies. See more details about [history outputs](history_outputs.md). | ||
TODO: `diag_table` |
1 change: 1 addition & 0 deletions
1
src/swell/configuration/jedi/interfaces/geos_marine/geos_marine.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
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
8 changes: 8 additions & 0 deletions
8
src/swell/configuration/jedi/interfaces/geos_marine/model/background_diffusion_vt.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,8 @@ | ||
date: '{{local_background_time_iso}}' | ||
read_from_file: 1 | ||
basename: './' | ||
ocn_filename: 'MOM6.res.{{local_background_time}}.nc' | ||
{% if 'cice6' in marine_models %} | ||
ice_filename: 'cice.res.{{local_background_time}}.nc' | ||
{% endif %} | ||
state variables: [tocn] |
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
18 changes: 8 additions & 10 deletions
18
src/swell/configuration/jedi/interfaces/geos_marine/model/background_error_diffusion_vt.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 |
---|---|---|
@@ -1,21 +1,19 @@ | ||
covariance model: SABER | ||
saber central block: | ||
saber block name: EXPLICIT_DIFFUSION | ||
geometry: | ||
mom6_input_nml: 'soca/input.nml' | ||
fields metadata: 'soca/fields_metadata.yaml' | ||
geom_grid_file: 'INPUT/soca_gridspec.nc' | ||
saber block name: diffusion | ||
calibration: | ||
normalization: | ||
# NOTE, not actually used here, since the normalization spec is only used for hz | ||
method: randomization | ||
iterations: 1000 | ||
|
||
groups: | ||
- name: vt | ||
- name: diffusion_vt | ||
vertical: | ||
from file: | ||
filename: '{{cycle_dir}}/calculated_scales.nc' | ||
variable name: vt | ||
model file: | ||
date: '{{local_background_time_iso}}' | ||
basename: './' | ||
ocn_filename: 'calculated_scales.nc' | ||
model variable: tocn | ||
write: | ||
filename: 'background_error_model/vt.{{local_background_time}}.nc' | ||
filepath: 'background_error_model/vt.{{local_background_time}}' |
3 changes: 3 additions & 0 deletions
3
src/swell/configuration/jedi/interfaces/geos_marine/model/pseudo-model.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,3 @@ | ||
name: PseudoModel | ||
tstep: {{background_frequency}} | ||
states: {{states}} |
8 changes: 5 additions & 3 deletions
8
src/swell/configuration/jedi/interfaces/geos_marine/model/states.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
9 changes: 9 additions & 0 deletions
9
src/swell/configuration/jedi/interfaces/geos_marine/suite_questions.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 |
---|---|---|
@@ -1,3 +1,12 @@ | ||
cycle_times: | ||
default_value: ['T00', 'T12'] | ||
options: ['T00', 'T12'] | ||
|
||
ensemble_hofx_strategy: | ||
default_value: 'serial' | ||
|
||
ensemble_hofx_packets: | ||
default_value: 1 | ||
|
||
skip_ensemble_hofx: | ||
default_value: true |
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
1 change: 1 addition & 0 deletions
1
src/swell/configuration/jedi/interfaces/geos_ocean/geos_ocean.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
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
3 changes: 3 additions & 0 deletions
3
src/swell/configuration/jedi/interfaces/geos_ocean/model/pseudo-model.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,3 @@ | ||
name: PseudoModel | ||
tstep: {{background_frequency}} | ||
states: {{states}} |
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,37 @@ | ||
cost function: | ||
cost type: 3D-FGAT | ||
jb evaluation: false | ||
time window: | ||
begin: '{{window_begin_iso}}' | ||
end: '{{window_end_iso}}' | ||
bound to include: begin | ||
geometry: | ||
TASKFILLgeometry | ||
analysis variables: {{analysis_variables}} | ||
model: | ||
TASKFILLpseudo-model | ||
background: | ||
TASKFILLbackground | ||
background error: | ||
TASKFILLbackground_error | ||
observations: | ||
observers: | ||
SPECIALobservations | ||
variational: | ||
minimizer: | ||
algorithm: {{minimizer}} | ||
iterations: | ||
- geometry: TASKFILLgeometry_inner | ||
gradient norm reduction: '{{gradient_norm_reduction}}' | ||
ninner: '{{number_of_iterations}}' | ||
diagnostics: | ||
departures: ombg | ||
online diagnostics: | ||
TASKFILLvarincrement1 | ||
final: | ||
diagnostics: | ||
departures: oman | ||
prints: | ||
frequency: PT3H | ||
output: | ||
TASKFILLanalysis |
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
Oops, something went wrong.