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

2014-01-30 Thread A Short
Thanks Eric and Kio - ive been trying for a couple of days and i just cant seem to get my head around the interpolation or masked arrays. Would it be possible for anyone to give me a few pointers on where to start editing the script. Ive tried digesting these tutorials the first one seems to be re

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

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

2014-01-28 Thread A Short
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? `import Nio from mpl_toolkits.basemap import Basemap import matplotlib.pyplot as plt import numpy as np f = Nio.open_file('

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

2014-01-09 Thread A Short
Thanks Paul i added m.imshow(data, origin='lower', interpolation='none') Its made a little improvement but something still seems to be not right -- View this message in context: http://matplotlib.1069221.n5.nabble.com/Plott

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

2014-01-09 Thread A Short
Ive also changed the grib file from multi_2.glo_30m.t06z.grib2 to nww3.t12z.grib.grib2 i still cant figure out which is the right file for the North East Atlantic neither...i wonder if my data source is wrong..? -- View this

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

2014-01-09 Thread A Short
Thats strange they look different on this browser. Hopefully the one below youll see what i mean Thanks -- View this message in context: http://matplotlib.1069221.n5.nabble.com/Plotting-NOAA-grib2-data-in-basemap-tp42698p4270

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

2014-01-09 Thread A Short
ok the file im using is this multi_2.glo_30m.t06z.grib2 from here im not sure its the right file to get wave heights of the North East Atlantic so im trying different ones. as you can see above in the top image there is som

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

2014-01-09 Thread A Short
Hi Paul, Thanks for your reply, I managed to fix it after I realised the mistake I was making. I've currently got a new problem. If you look at the image below, there's a lot of white showing up around the coasts which ideally I'd like to remove. The map is drawn using basemap, is there a functio