Hello Jeff,
I just wanna give feedback on what got me going here:
data preparation
### data is loaded from a CSV file
###
lats = y # data[:,0]
## lon = x
lons = x # data[:,1]
## values = z
values = z #data[:,2]
###
lat_uniq = list(set(lats.tolist()))
nlats = len(lat_uniq)
lon_uniq =
Tim Michelsen wrote:
Dear Matplotlib-Users,
I am tryring to create a contour plot over a basemap.
My main problem is creating the array for the Z values as a basis for the
plt.contour command from a CSV file where latitude, longitude and value are
stored column-wise:
lat; lon;value
Jeff Whitaker wrote:
Tim Michelsen wrote:
Dear Matplotlib-Users,
I am tryring to create a contour plot over a basemap.
My main problem is creating the array for the Z values as a basis for the
plt.contour command from a CSV file where latitude, longitude and value are
stored
Hello Jeff,
- Points stored in the above descripbed format (lat, lon, value)?
This one I solved using a m.scatter() function
- Interpolate a grid of data points by using different interpolation
methods like inverse distance wheighting, natural neighbor
interpolation, etc. to get a
Tim Michelsen wrote:
Hello Jeff,
- Points stored in the above descripbed format (lat, lon, value)?
This one I solved using a m.scatter() function
- Interpolate a grid of data points by using different interpolation
methods like inverse distance wheighting, natural
Hello,
thanks.
I checked again from contour_demo.py of the basemap distribution.
There lats, lons are uniquely monoton increasing from 0-360 and from -90 to 90.
In my case data is written row-by-row:
* increasing from lowest latitude western most longitude to easternmost
longitude and then
Tim Michelsen wrote:
Hello,
thanks.
I checked again from contour_demo.py of the basemap distribution.
There lats, lons are uniquely monoton increasing from 0-360 and from -90 to
90.
In my case data is written row-by-row:
* increasing from lowest latitude western most longitude to
Hello Jeff,
Timme: Here's one way to do it
many thanks so far. I still have to inspect and improve my script. But
at least your code lead me to some contourd surface.
I will come back and tell if it worked. Unfortunately I cannot disclose
the data nor the results because of copyright issues.