Basemap 3D

Hi all,
not sure it's possible, I can't find any example but I ask : is there a way to
make some 3D maps with Basemap, like we can do with ArcScene (ESRI), mixing
rasters or shapefiles with TINs? If no, do you know a way to do so with
python?
Thanks

···

--
Lionel Roubeyrie - lroubeyrie@...1068...
Chagé d'études et de maintenance
LIMAIR - la Surveillance de l'Air en Limousin
http://www.limair.asso.fr

Lionel Roubeyrie wrote:

Hi all,
not sure it's possible, I can't find any example but I ask : is there a way to make some 3D maps with Basemap, like we can do with ArcScene (ESRI), mixing rasters or shapefiles with TINs? If no, do you know a way to do so with python?
Thanks

Lionel: I don't know, but I honestly doubt it. Matplotlib is fundamentally a 2-D package, there is a bit of mostly unsupported 3-D stuff that has been bolted on. Can you be more specific about what you mean though? Perhaps a link to an example?

I have had good luck with ncvtk (http://ncvtk.sourceforge.net/), but I think it only really works if your data is global and in a netCDF file.

-Jeff

···

--
Jeffrey S. Whitaker Phone : (303)497-6313
Meteorologist FAX : (303)497-6449
NOAA/OAR/PSD R/PSD1 Email : Jeffrey.S.Whitaker@...259...
325 Broadway Office : Skaggs Research Cntr 1D-124
Boulder, CO, USA 80303-3328 Web : http://tinyurl.com/5telg

Hi Jeff,
I want to display some pollutants concentrations saved in shapefiles on maps
displayed in 3D. You can have a look of what I need here:
http://rockware.com/catalog/pages/arcgis3dfeat1.html, in the last image.

···

Le Jeudi 12 Avril 2007 16:40, Jeff Whitaker a écrit :

Lionel Roubeyrie wrote:
> Hi all,
> not sure it's possible, I can't find any example but I ask : is there a
> way to make some 3D maps with Basemap, like we can do with ArcScene
> (ESRI), mixing rasters or shapefiles with TINs? If no, do you know a way
> to do so with python?
> Thanks

Lionel: I don't know, but I honestly doubt it. Matplotlib is
fundamentally a 2-D package, there is a bit of mostly unsupported 3-D
stuff that has been bolted on. Can you be more specific about what you
mean though? Perhaps a link to an example?

I have had good luck with ncvtk (http://ncvtk.sourceforge.net/), but I
think it only really works if your data is global and in a netCDF file.

-Jeff

--
Lionel Roubeyrie - lroubeyrie@...1068...
Chagé d'études et de maintenance
LIMAIR - la Surveillance de l'Air en Limousin
http://www.limair.asso.fr

Lionel Roubeyrie wrote:

Hi Jeff,
I want to display some pollutants concentrations saved in shapefiles on maps displayed in 3D. You can have a look of what I need here:
http://rockware.com/catalog/pages/arcgis3dfeat1.html, in the last image.

Le Jeudi 12 Avril 2007 16:40, Jeff Whitaker a �crit :
  

Lionel Roubeyrie wrote:
    

Hi all,
not sure it's possible, I can't find any example but I ask : is there a
way to make some 3D maps with Basemap, like we can do with ArcScene
(ESRI), mixing rasters or shapefiles with TINs? If no, do you know a way
to do so with python?
Thanks
      

Lionel: I don't know, but I honestly doubt it. Matplotlib is
fundamentally a 2-D package, there is a bit of mostly unsupported 3-D
stuff that has been bolted on. Can you be more specific about what you
mean though? Perhaps a link to an example?

I have had good luck with ncvtk (http://ncvtk.sourceforge.net/), but I
think it only really works if your data is global and in a netCDF file.

-Jeff
    

Lionel: Sorry, but basemap can't do that (and can't really be extended to do that either).

-Jeff

···

--
Jeffrey S. Whitaker Phone : (303)497-6313
NOAA/OAR/CDC R/PSD1 FAX : (303)497-6449
325 Broadway Boulder, CO, USA 80305-3328

Hi list,

is there a way to fill continents with basemap an then use contourf to draw filled contours over the continents?

Its useless when the filled contours cover the whole map, but when only parts of the map are covered with filled contours, it would be nice to paint over the continents (but still let the coastlines and countries shine through the filled contours).

Thanks for any hints
Simon

Simon Kammerer wrote:

Hi list,

is there a way to fill continents with basemap an then use contourf to draw filled contours over the continents?

Its useless when the filled contours cover the whole map, but when only parts of the map are covered with filled contours, it would be nice to paint over the continents (but still let the coastlines and countries shine through the filled contours).

Thanks for any hints
Simon

-

Simon: I just added a zorder keyword to fillcontinents in basemap SVN:

--- basemap.py (revision 3192)
+++ basemap.py (working copy)
@@ -1299,7 +1299,7 @@
         # set axes limits to fit map region.
         self.set_axes_limits(ax=ax)
- def fillcontinents(self,color='0.8',ax=None):
+ def fillcontinents(self,color='0.8',ax=None,zorder=1):
         """
  Fill continents.
@@ -1342,9 +1342,9 @@
             if not hasp1 or not hasp2 or not hasp3 or not hasp4:
                 xy = zip(xa.tolist(),ya.tolist())
                 if self.coastpolygontypes[np] != 2:
- poly = Polygon(xy,facecolor=color,edgecolor=color,linewidth=0)
+ poly = Polygon(xy,facecolor=color,edgecolor=color,linewidth=0,zorder=zorder)
                 else: # lakes filled with background color.
- poly = Polygon(xy,facecolor=axisbgc,edgecolor=axisbgc,linewidth=0)
+ poly = Polygon(xy,facecolor=axisbgc,edgecolor=axisbgc,linewidth=0,zorder=zorder)
                 ax.add_patch(poly)
             np = np + 1

You can now set zorder=0 if you want contourf to paint over the filled continents.

-Jeff

···

--
Jeffrey S. Whitaker Phone : (303)497-6313
NOAA/OAR/CDC R/PSD1 FAX : (303)497-6449
325 Broadway Boulder, CO, USA 80305-3328