-
Notifications
You must be signed in to change notification settings - Fork 138
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
Models crash when "lat" array in forcing dataset is decreasing instead of increasing #1213
Comments
[email protected] says: The data is from NCEP/EMC. It is from Global Ensemble Forecast System (https://www.ncei.noaa.gov/products/weather-climate-models/global-ensemble-forecast). It is 1/4-th degree but the products were repackaged in CDEPS-compliant format by EMC folks. @bensonr , @uramirez does it make sense to add support for this data. Do we have horiz_interp unit tests that can digest in this dataset? I do not have a test case for this but could probably come up with a small MOM6 test. |
@rem1776 your horz_interp unit tests could test monotonically decreasing latlon right? |
@mlee03 Yeah it could potentially, with mixed mode it added a test for the bilinear method that it's using here. If we wanted a unit test to actually be reading in the data though, i think that would be in data_override. |
I think support for monotonically (increasing/decreasing) data can easily be added to horiz interp. The code that searches for the nearest data point to the point interpolating to requires the data array to be increasing but there is no reason for that restriction as long it is monotonic. There’s some code in diag manager than does this already (to find the points of the subregion) that we can reuse. @bensonr is this something that we want to support? |
@uramirez8707 - I think data_override should be able support both monotonically increasing and decreasing latitudinal representations. I hope the algorithm for weight generation isn't coded in such a way that only one representation is valid. |
The datasets from the ECMWF MARS server come as monotonically decreasing as well, so there is another use case. The ECMWF datasets also have a rotated longitude, which would be useful to support too. At the moment we are doing these as preprocessing steps with NCO:
|
This is a feature request to make models run when the coordinate "lat" in the forcing dataset is monotonically decreasing from +90 to -90.
A user's model run crashes as follows because the "lat" coordinate in the forcing file is monotonic but decreasing from +90 to -90,
unlike the forcing files we have been using till now which has "lat" increasing from -90 to +90.
Querying the new forcing file shows that "lat" array is decreasing:
The forcing files in use at gfdl models have "lat" array increasing. E.g.,
Describe the solution you'd like
Can we support forcing files with decreasing "lat"?
Describe alternatives you've considered
Suggest a way to the user to make the forcing file comply with the current restriction.
The text was updated successfully, but these errors were encountered: