Replies: 1 comment 1 reply
-
|
Can you check for NaNs in the computed frontogenesis? I don't know why you would be getting a NaN, but that is the only thing that pops to the top of mind. Are you using data from a THREDDS server or a local data source? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,

After some much-appreciated help from folks on here, I have been computing and plotting frontogenesis using model data. My code runs great and produces nice-looking plots most of the time, but I get weird contouring problems every once in a while. See the example output map:
Note that some parts of the frontogenesis contours just don't plot. The data underneath is good, some of the contours show up as expected, but some of the contour loops don't close for some reason I can't seem to figure out.
I make thousands of plots each day with dozens of other variables and several models. Frontogenesis is the only parameter I've ever run into this problem with, so I'm not sure it's a matplotlib issue. This problem happens regardless of which model I'm plotting (HRRR, NAM, GFS) and hasn't been resolved by applying a smoother (at least the Gaussian Filter from ndimage that I'm using at sigma=2,order=0).
Any ideas what might be causing this and what a potential fix might look like?
Here is the plotting code:
Beta Was this translation helpful? Give feedback.
All reactions