Re: [Matplotlib-users] Plotting NOAA grib2 data in basemap

2014-01-29 Thread Ian Thomas
On 29 January 2014 03:21, Eric Firing efir...@hawaii.edu wrote:

 On 2014/01/28 10:01 AM, A Short wrote:
  Hi - Ive now improved my code and confirmed the use of the right grib
 file
  but i cant for the life of me figure out the missing data near the
  coastline..? Could anyone help?

 The present contouring algorithm works with rectangular blocks, and if
 any corner has missing data, nothing is filled for that block.


This will improve shortly, cutting off the corners of some of those empty
blocks. I am currently testing the new algorithm for this prior to
submitting it for others' approval.

Ian
--
WatchGuard Dimension instantly turns raw network data into actionable 
security intelligence. It gives you real-time visual feedback on key
security issues and trends.  Skip the complicated setup - simply import
a virtual appliance and go from zero to informed in seconds.
http://pubads.g.doubleclick.net/gampad/clk?id=123612991iu=/4140/ostg.clktrk___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Plotting NOAA grib2 data in basemap

2014-01-29 Thread A Short
Is there any work around so it looks like the below image?

Could anyone confirm that this would be the correct grib file for The North
Atlantic..? 
ftp://ftpprd.ncep.noaa.gov/pub/data/nccf/com/wave/prod/wave.20140129/nww3.t06z.grib.grib2

Thanks for all the help

http://matplotlib.1069221.n5.nabble.com/file/n42798/figure_1.png 





--
View this message in context: 
http://matplotlib.1069221.n5.nabble.com/Plotting-NOAA-grib2-data-in-basemap-tp42698p42798.html
Sent from the matplotlib - users mailing list archive at Nabble.com.

--
WatchGuard Dimension instantly turns raw network data into actionable 
security intelligence. It gives you real-time visual feedback on key
security issues and trends.  Skip the complicated setup - simply import
a virtual appliance and go from zero to informed in seconds.
http://pubads.g.doubleclick.net/gampad/clk?id=123612991iu=/4140/ostg.clktrk
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Plotting NOAA grib2 data in basemap

2014-01-29 Thread Eric Firing
On 2014/01/28 11:40 PM, Ian Thomas wrote:
 On 29 January 2014 03:21, Eric Firing efir...@hawaii.edu
 mailto:efir...@hawaii.edu wrote:

 On 2014/01/28 10:01 AM, A Short wrote:
   Hi - Ive now improved my code and confirmed the use of the right
 grib file
   but i cant for the life of me figure out the missing data near the
   coastline..? Could anyone help?

 The present contouring algorithm works with rectangular blocks, and if
 any corner has missing data, nothing is filled for that block.


 This will improve shortly, cutting off the corners of some of those
 empty blocks. I am currently testing the new algorithm for this prior to
 submitting it for others' approval.

Ian,

I'm glad to hear that!  One possibility would be to use a temporary 
rcParam (temporary in that it might be phased out after a couple 
releases) to allow switching between the two algorithms.  This would 
make it much easier to test, and it would also allow a transition during 
which people could reproduce results obtained with earlier mpl.  It 
would also be a safety measure, in case someone hits a corner case which 
the new algorithm doesn't handle but the old one does--not that I'm 
expecting such cases to arise.

Eric


 Ian


--
WatchGuard Dimension instantly turns raw network data into actionable 
security intelligence. It gives you real-time visual feedback on key
security issues and trends.  Skip the complicated setup - simply import
a virtual appliance and go from zero to informed in seconds.
http://pubads.g.doubleclick.net/gampad/clk?id=123612991iu=/4140/ostg.clktrk
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Plotting NOAA grib2 data in basemap

2014-01-29 Thread Eric Firing
On 2014/01/29 5:41 AM, A Short wrote:
 Is there any work around so it looks like the below image?

It looks like with any reasonable contouring algorithm, this would 
require interpolating into land regions, contouring, and then plotting 
the land on top.  The key is the interpolation, not the plotting.  The 
example you show might have been interpolated to a finer grid 
everywhere, not just in the missing value regions.

I can't comment on the file itself.

Eric


 Could anyone confirm that this would be the correct grib file for The North
 Atlantic..?
 ftp://ftpprd.ncep.noaa.gov/pub/data/nccf/com/wave/prod/wave.20140129/nww3.t06z.grib.grib2

 Thanks for all the help

 http://matplotlib.1069221.n5.nabble.com/file/n42798/figure_1.png





 --
 View this message in context: 
 http://matplotlib.1069221.n5.nabble.com/Plotting-NOAA-grib2-data-in-basemap-tp42698p42798.html
 Sent from the matplotlib - users mailing list archive at Nabble.com.

 --
 WatchGuard Dimension instantly turns raw network data into actionable
 security intelligence. It gives you real-time visual feedback on key
 security issues and trends.  Skip the complicated setup - simply import
 a virtual appliance and go from zero to informed in seconds.
 http://pubads.g.doubleclick.net/gampad/clk?id=123612991iu=/4140/ostg.clktrk
 ___
 Matplotlib-users mailing list
 Matplotlib-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/matplotlib-users



--
WatchGuard Dimension instantly turns raw network data into actionable 
security intelligence. It gives you real-time visual feedback on key
security issues and trends.  Skip the complicated setup - simply import
a virtual appliance and go from zero to informed in seconds.
http://pubads.g.doubleclick.net/gampad/clk?id=123612991iu=/4140/ostg.clktrk
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Plotting NOAA grib2 data in basemap

2014-01-29 Thread klo uo
IMHO that's the most straightforward approach.
He can use masked array for empty blocks (if contour data doesn't
already contain the holes as masked array) and apply inpainting, then
draw the land.
For more details about inpainting: http://stackoverflow.com/a/17125125/992005


On Wed, Jan 29, 2014 at 6:22 PM, Eric Firing efir...@hawaii.edu wrote:
 On 2014/01/29 5:41 AM, A Short wrote:
 Is there any work around so it looks like the below image?

 It looks like with any reasonable contouring algorithm, this would
 require interpolating into land regions, contouring, and then plotting
 the land on top.  The key is the interpolation, not the plotting.  The
 example you show might have been interpolated to a finer grid
 everywhere, not just in the missing value regions.

--
WatchGuard Dimension instantly turns raw network data into actionable 
security intelligence. It gives you real-time visual feedback on key
security issues and trends.  Skip the complicated setup - simply import
a virtual appliance and go from zero to informed in seconds.
http://pubads.g.doubleclick.net/gampad/clk?id=123612991iu=/4140/ostg.clktrk
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users