Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add areacella to cmip mon #27

Merged
merged 4 commits into from
Sep 14, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions mdtf_test_data/config/cmip_mon.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
variables :
name :
- "areacella"
- "areacello"
- "zos"
- "tauuo"
Expand All @@ -24,6 +25,31 @@ variables :
- "rlut"
- "rlus"
- "tas"
- "siconc"

areacella :
atts :
cell_methods : "area: sum"
comment : "For atmospheres with more than 1 mesh (e.g., staggered grids), report areas that apply to surface vertical fluxes of energy."
coordinates : "lat lon"
description : "Grid-Cell Area for Atmospheric Grid Variables"
frequency : "fx"
id : "areacella"
long_name : "Grid-Cell Area for Atmospheric Grid Variables"
missing_value : 1.e+20
out_name : "areacella"
realm : "atmosphere"
standard_name : "cell_area"
time_label : "None"
time_title : "No temporal dimensions ... fixed field"
title : "Grid-Cell Area for Atmosphere Variables"
type : "real"
units : "m2"
variable_id : "areacella"
grid : "standard"
static : true
stats :
- [6.259256e+8, 1.234758e+9]

areacello :
atts :
Expand Down Expand Up @@ -245,6 +271,27 @@ thetao:
- [ 13.806399, 2.840008 ]
- [ 13.422476, 3.461085 ]

siconc :
atts :
cell_methods: 'time: mean'
comment : 'Area fraction of grid cell covered by sea ice'
coordinates : "lat lon"
frequency : 'mon'
id : 'siconc'
long_name : 'Sea-ice Area Percentage (Ocean Grid)'
realm : 'ocean'
standard_name : 'sea_ice_area_fraction'
time : 'time'
time_label : 'time-mean'
time_title : 'Temporal mean'
title : 'sea ice area percentage'
type : 'real'
units : '%'
variable_id : 'siconc'
grid : "standard"
stats :
- [50, 25]

zg :
atts:
cell_methods: 'time: mean'
Expand Down
2 changes: 1 addition & 1 deletion mdtf_test_data/synthetic/synthetic_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def _load_default_static():
return xr.open_dataset(_ds)["areacello"].values

# Load the ocean static file
if static:
if static and grid is "tripolar":
if str(v + ".source") in list(yaml_dict.keys()):
staticfilepath = yaml_dict[v + ".source.filename"]
if os.path.exists(staticfilepath):
Expand Down