Hi Jeff,

That sounds like the perfect solution as I do have the lat, lons - I'll give
that a go!

Thanks again,

Martin

Jeff Whitaker wrote:
> 
> On 7/22/10 8:08 AM, mdekauwe wrote:
>> Hi Jeff,
>>
>> Yes you are right! Apologies. Whilst it is easy enough to define the grid
>> in
>> this case as it is a regular lat,long grid. If it was for example a
>> geostationary grid, I think this might be more difficult. Is there a way
>> to
>> return the grid for example from the basemap call, which can then be used
>> in
>> the contour call?
>>
>> I hope that makes sense.
>>
>> Thanks again.
> 
> If you have the lats and lons of the data grid, you can convert to map 
> projection coordinates by calling the Basemap instance, i.e.
> 
> map = Basemap(....)
> x,y = map(lons,lats)
> 
> you can then use the x,y values in contour
> 
> map.contourf(x,y,data)
> 
> Does that help?
> 
> -Jeff
> 
> 
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by Sprint
> What will you do first with EVO, the first 4G phone?
> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Basemap-%2B-contour-layer--tp29235080p29237609.html
Sent from the matplotlib - users mailing list archive at Nabble.com.


------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to