Skip to content

Smoothing contours #2119

Answered by kgoebber
sgdecker asked this question in Q&A
Sep 22, 2021 · 3 comments · 6 replies
Discussion options

You must be logged in to vote

Okay, so here is what I've got...

A couple of things. There is an easier way to get the data you want without all of the excess code. The structure of the data is uniform and really only requires knowledge of the date to change which dataset you are accessing, then the reading can be done with the OPeNDaP link directly. I use your init_date variable and common formatting aspects for dates with Python f-strings.

Then I use the methods available on the dataset to pull the vertical level and desired plot time and converting to Celsius using MetPy's unit aware capabilities. Doing so keeps the attributes coming along with your variables (they are lost when doing simple calculations like subtra…

Replies: 3 comments 6 replies

Comment options

You must be logged in to vote
1 reply
@sgdecker
Comment options

Comment options

You must be logged in to vote
3 replies
@sgdecker
Comment options

@jthielen
Comment options

@sgdecker
Comment options

Comment options

You must be logged in to vote
2 replies
@sgdecker
Comment options

@kgoebber
Comment options

Answer selected by sgdecker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
Area: Calc Pertains to calculations
4 participants