Skip to content
This repository has been archived by the owner on Jan 9, 2020. It is now read-only.

Find identical levels for variables to fix GFS-FV3 update #423

Merged
merged 1 commit into from
Jul 1, 2019

Conversation

zbruick
Copy link
Contributor

@zbruick zbruick commented Jun 19, 2019

Update to the Isentropic Analysis and NCSS notebooks to find identical vertical levels between temperature and other variables due to the differing number of vertical levels caused by the FV3 update to the GFS.

Fixes #422.

@dopplershift
Copy link
Member

Before saving and committing, make sure you "Clear All Output" under the edit mode. We do that to avoid confusing the learners when we teach.

@zbruick
Copy link
Contributor Author

zbruick commented Jun 19, 2019

Makes perfect sense - hopefully got it cleaned up.

"_, _, common_ind = np.intersect1d(lev_uwnd, lev_hght, return_indices=True)\n",
"temperature = temperature[common_ind, :, :]\n",
"# Reassign units to variables\n",
"temperature.attrs['units'] = 'kelvin'\n",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is xarray dropping units here or are the original units bad?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's dropping units there.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😞 That one doesn't seem sensible.

@dopplershift
Copy link
Member

This has added a bunch of pycharm-specific json to the notebook. I'm unsure how to feel about that...

@zbruick
Copy link
Contributor Author

zbruick commented Jun 19, 2019

I can create a new branch and edit the notebook just through Jupyter to keep that out if that would be better.

@dopplershift
Copy link
Member

It looks like this is primarily failing on the build against MetPy master because it was using lat_lon_grid_spacing in notebooks/MetPy_Case_Study/MetPy_Case_Study.ipynb. Can you go ahead and update to use lat_lon_grid_deltas? It should be a straightforward replacement.

different number of vertical levels between temperature
and other variables, caused by the FV3 update to the GFS
@zbruick
Copy link
Contributor Author

zbruick commented Jun 19, 2019

Updated as requested

@zbruick
Copy link
Contributor Author

zbruick commented Jun 20, 2019

Let me know if the errors with Travis are something I need to fix or if those are known issues. They don't look related to the notebooks already updated within this PR.

@dopplershift
Copy link
Member

Looks like current errors will be fixed by #425.

@dopplershift dopplershift merged commit 5f13077 into Unidata:master Jul 1, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix builds
2 participants