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

Fix nan values in nominal x/y coordinates #79

Merged
merged 6 commits into from
Jan 29, 2021
Merged

Conversation

jbusecke
Copy link
Owner

@jbusecke jbusecke commented Jan 29, 2021

I think I have identified the problem for #66, which is that missing values in lon are removed and then seem to produce nans in the dimension coordinates, which trips up xarray.

Not exactly sure if I should compute the lons as the average/median along y? That would however change the values...
If #75 is not successful, we might consider removing this step all together instead.

@jbusecke jbusecke marked this pull request as draft January 29, 2021 01:28
@jbusecke
Copy link
Owner Author

Looking through the issues, I think that we might want to apply some filling algo (e.g. #71) to solve this. Ill try to implement that next.

@jbusecke
Copy link
Owner Author

I ultimately decided to not implement a full filling of the lon/lat coordinates at this point (I will post details in #71). Instead I have switched the way the nominal latitudes are defined (zonal max of the 2d lat field) and I interpolate missing values in the nominal longitude.
This seems to alleviate the problems for now (most importantly it seems to fix #66).

@jbusecke jbusecke marked this pull request as ready for review January 29, 2021 19:55
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

Successfully merging this pull request may close these issues.

failed to join/concatenate datasets for model CESM2-FV2
1 participant