[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[python #BNU-499159]: metpy examples of say surface pressure or 10m winds across the pacific



Greetings!

There are frequently issues encountered at the boundaries when plotting because 
while the Earth is a sphere and we know values "wrap around", the arrays don't 
and the plotting software doesn't know this. CartoPy's solution to this is a 
function called `cartopy.util.add_cyclic_point`:

  
https://scitools.org.uk/cartopy/docs/latest/cartopy/util/util.html#cartopy.util.add_cyclic_point

You can use this function to duplicate data and coordinates around the "seam" 
in the data. Here are some examples using that function:

  https://unidata.github.io/python-gallery/examples/250hPa_Hemispheric_Plot.html
  https://gist.github.com/darothen/c7560d8d19ffca90024c1f2df4927599

Hope this helps!

Ryan


> Dear Unidata:
> I know there is a work around in matplotlib for this, probably will need to 
> figure that out (e.g., Setting up a map which crosses the dateline in cartopy
> Setting up a map which crosses the dateline in cartopy
> 


Ticket Details
===================
Ticket ID: BNU-499159
Department: Support Python
Priority: Low
Status: Closed
===================
NOTE: All email exchanges with Unidata User Support are recorded in the Unidata 
inquiry tracking system and then made publicly available through the web.  If 
you do not want to have your interactions made available in this way, you must 
let us know in each email you send to us.