map projections

Hi:

    > I've hacked together some scripts that let me plot data on
    > top of world maps with different map projections in
    > matplotlib. It's quite slow, but it works! There's an
    > example at
    > http://www.cdc.noaa.gov/people/jeffrey.s.whitaker/plotmap.py
    > (the plot should look like
    > http://www.cdc.noaa.gov/people/jeffrey.s.whitaker/plotmap.png).
    > To run the example you'll need the data files
    > http://www.cdc.noaa.gov/people/jeffrey.s.whitaker/wcl.txt
    > (world coastlines) and
    > http://www.cdc.noaa.gov/people/jeffrey.s.whitaker/topodata.pickle
    > (data to plot), as well as a module I wrote to compute
    > cartographic transformations using proj4
    > http://www.cdc.noaa.gov/people/jeffrey.s.whitaker/python/proj.py.

    > If anyone knows of a faster way to do this, I'd love to hear
    > about it.

I am having trouble running this - proj.py is making the system call
'stdin,stdout=os.popen2(cmd,mode='b')' where cmd is

proj +R=63712000 +lon_0=-107 +proj=lcc +lat_1=50 +lat_2=50 -b

but I don't have proj on my system. Am I missing something? Is this
a tool I can easily install?

Also, while I have your ear, what version of matplotlib are you
working with and what backend do you typically use?

Nice map, by the way!

JDH

I am having trouble running this - proj.py is making the system call
'stdin,stdout=os.popen2(cmd,mode='b')' where cmd is

proj +R=63712000 +lon_0=-107 +proj=lcc +lat_1=50 +lat_2=50 -b

but I don't have proj on my system. Am I missing something? Is this
a tool I can easily install?

John: Yes, it's easy to install. You can grab it from http://proj.maptools.org. A simple ./configure; make; make install worked for me.

Also, while I have your ear, what version of matplotlib are you
working with and what backend do you typically use?

I have 0.60.2 and usually use the default gtkagg backend. I work mostly on OS X (I'm actually the fink package maintainer).

Nice map, by the way!

Thanks - very nice software!

-Jeff

···

On Tue, 13 Jul 2004, John Hunter wrote:

--
Jeffrey S. Whitaker Phone : (303)497-6313
NOAA/OAR/CDC R/CDC1 FAX : (303)497-6449
325 Broadway Web : http://www.cdc.noaa.gov/~jsw
Boulder, CO, USA 80305-3328 Office: Skaggs Research Cntr 1D-124