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

Update use of fx vars to new syntax #2145

Merged
merged 1 commit into from
Apr 30, 2021
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
4 changes: 2 additions & 2 deletions esmvaltool/cmorizers/obs/cmorize_obs_jma_transcom.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ def _extract_variable(cmor_info, attrs, in_dir, out_dir, ctl):

# Mask appropriate parts
if cmor_info.short_name == 'nbp':
cube = mask_landsea(cube, {}, 'sea')
cube = mask_landsea(cube, 'sea')
elif cmor_info.short_name == 'fgco2':
cube = mask_landsea(cube, {}, 'land')
cube = mask_landsea(cube, 'land')
else:
raise NotImplementedError(
f"CMORizer for '{cmor_info.short_name}' not implemented yet")
Expand Down
5 changes: 3 additions & 2 deletions esmvaltool/recipes/recipe_wenzel14jgr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,9 @@ preprocessors:
'GCP', 'HadGEM2-ES', 'CanESM2', 'IPSL-CM5A-LR', 'GFDL-ESM2M', 'MPI-ESM-LR', 'CESM1-BGC', 'NorESM1-ME',
]
area_statistics:
operator: sum
fx_variables: [areacello]
operator: sum
fx_variables:
areacello:

tropical:
extract_region:
Expand Down