-
Notifications
You must be signed in to change notification settings - Fork 96
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
Save all grid variables unmasked #375
Comments
@aekiss Are you sure about that being the only problem? You still have to take tile masking into account. The 1 degree model isn't masked (I think) but the others are and you get missing/Fill values where there are no tiles. Is this an issue? |
Yes, there will also be tile masking in production runs (even at 1 deg) but this fix is for a short one-off run to generate these grid files, where we remove |
No need for anything so complicated. Mostly done here https://github.com/russfiedler/grid_spec_tools/blob/master/create_old_grid_spec.F90 Just need to change a few variable names and do the area/u grid stuff. There's a debug version there too. |
Ah thanks @russfiedler is that was was used to create |
@aekiss Yes, it looks like it. I think I may have had an enhanced version. I'll look about. |
@russfiedler I agree something like your But I also think it's worth removing the masking for these fields so I've made a PR to do that. Would you like to look it over before I merge it? |
Many grid variables (
area_t
,area_u
,geolon_t
,geolat_t
, etc) are saved with no mask, but others includingdxt
,dyt
,dxu
,dyu
are land-masked - e.g. see/g/data/ik11/grids/ocean_grid_10.nc
.This makes it impossible to supply a single grid file that can be used with any land mask, which is what we're attempting in COSIMA/cosima-recipes#212
This difference is because
area_t
,area_u
,geolon_t
,geolat_t
, etc are output bysend_data
https://github.com/mom-ocean/MOM5/blob/5f70c21/src/mom5/ocean_core/ocean_grids.F90#L1691-L1713
whereas
dxt
,dyt
,dxu
,dyu
are output viadiagnose_2d
ordiagnose_2d_u
https://github.com/mom-ocean/MOM5/blob/5f70c21/src/mom5/ocean_core/ocean_grids.F90#L1752-L1774
which mask the fields
https://github.com/mom-ocean/MOM5/blob/master/src/mom5/ocean_core/ocean_util.F90#L898-L991
Is there any reason we shouldn't use
send_data
for all the horizontal grid diagnostics?diagnose_2d
calls it anyway (viadiagnose_2d_mask
).The text was updated successfully, but these errors were encountered: