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

Clean-up and improve Isentropic Analysis notebook #440

Merged
merged 1 commit into from
Aug 12, 2019
Merged

Clean-up and improve Isentropic Analysis notebook #440

merged 1 commit into from
Aug 12, 2019

Conversation

dopplershift
Copy link
Member

Removes a few needless cells near the end that look at units. Also rework to use metpy accessor and simplify the process of selecting common levels in the fields.

Copy link
Contributor

@zbruick zbruick left a comment

Choose a reason for hiding this comment

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

This all looks good to me other than the Travis error on 3.7dev...

"temperature.attrs['units'] = 'kelvin'\n",
"lev_uwnd.attrs['units'] = 'Pa'"
"# Get common pressure levels as a data array\n",
"press = press.metpy.sel(vertical=common_levels)"
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we be going back and reworking other examples that use this common levels hack with this method that you have here?

Copy link
Member Author

Choose a reason for hiding this comment

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

Maybe? Probably on a case-by-base basis. Anywhere we're doing something more complicated to handle differing vertical levels.

@dopplershift
Copy link
Member Author

Seems to be a weird bug in MetPy, but only in master. See Unidata/MetPy#1124. In the meantime, I've adjusted the code to (I think) work on 0.10.2 and master.

@zbruick
Copy link
Contributor

zbruick commented Aug 12, 2019

Restarted Travis. Errored out on the NCSS notebook with THREDDS issues. Otherwise, this looks good.

@dopplershift dopplershift merged commit 7c06be5 into Unidata:master Aug 12, 2019
@dopplershift dopplershift deleted the update-isen branch August 12, 2019 12:55
@dopplershift dopplershift mentioned this pull request Aug 12, 2019
2 tasks
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.

2 participants