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

Bug in AMWG diags: regridding #488

Closed
cecilehannay opened this issue Apr 21, 2017 · 2 comments
Closed

Bug in AMWG diags: regridding #488

cecilehannay opened this issue Apr 21, 2017 · 2 comments
Assignees

Comments

@cecilehannay
Copy link
Collaborator

Hi Cecile,

I dont know if you've been following this issue we've been having in ACME
on confluence. When running the AMWG diagnostics (generating plots),
we've been first doing offline interpolation to an FV style grid with NCO
and then running the diagnostics. However, for some plots the
diagnostics package will choke. I think (but not 100% sure) that the
issues is because the diagnostics package mis-detects the grid as a
Gaussian grid, and then tries to generate Gaussian weights. The Gaussian
weight NCL routine will fail if nlat is odd (yielding no plot). If nlat
is even, then it will succeed, but now we have the problem that we will be
using Gaussian weights instead of equi-angle weights, which will introduce
a small error.

I think the problem is because the diagnostic package relies on the
presence of the CAM-FV "slat" array to determine if it is a FV grid or
Gaussian grid, and this array would not be present in interpolated CAM-SE
data. Have you thought about this issue? Any plans to make the
detection algorithm more robust? Algorithms I've used in the past, none
of which are perfect are (1) FV grids should have a point on the pole, and
Gaussian grids will not or (2) check the spacing between different
latitudes (non-equal spacing suggests a Gaussian grid).

Mark

@cecilehannay cecilehannay self-assigned this Apr 21, 2017
@gold2718
Copy link

gold2718 commented Apr 21, 2017

One idea would be to check attributes (cesm1_5_beta02 or newer, ACME commit 7a3eefd (tag v1.0.0-alpha.1) or newer). Both Eulerian history files and FV history files have an attribute named 'gw', however, the long name for the Eulerian case is 'gauss weights' while the FV long name is 'latitude weights'. This attribute long name can be used to distinguish between these two dycores.

@bertinia
Copy link

This issue was moved to NCAR/CESM_postprocessing#76

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants