-
Notifications
You must be signed in to change notification settings - Fork 10
Undefined local variable with regrid2.crossSection.get_latitude_wts_bnds #153
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
Comments
@zshaheen can you provide the in and out files please? (link to file is enough) |
This is the model file on aims4 that breaks it:
Here's one that we've been using forever that works:
Let me know if you want me to try and rerun any changes to cdms in acme diags. Thanks guys :) |
thhanks @zshaheen do you know what the target grid is? |
We're regridding the model to the level and latitude of the obs. So we're doing:
The observation data is located here on aims4:
|
@doutriaux1
While for the non-working model data (20161118.beta0.F1850COSP.ne30_ne30.edison_ANN_climo.nc), we have the dimensions for T to be 9:
This is the ncdump of the obs we're using (/space1/test_data/obs_data_20140804/MERRA_ANN_climo.nc):
|
What is mdims? Is CDMS actually reading mdims? mdims is definitely not the dimensions of the variable 'T'; they are given by the dimensions time, lev, lat, lon. |
I'm getting closer, any gaussian grid with an odd number of latitudes seems to fail. seems like |
@doutriaux1 It's all good to merge into master. |
@chengzhuzhang Uncovered this error.
A quick glance at the
get_latitude_wts_bnds()
function shows thatwts
is only declared in the if statements, thus an error on the linereturn (wts, bnds)
.Maybe we need to initialize wts to None?
Your thoughts @dnadeau4
The text was updated successfully, but these errors were encountered: