IOError: [Errno 2] No such file or directory: 'etopo20data.gz'

Hello, I am a first-time user of matplotlib.

When trying to run the plotmap.py example, the following traceback is generated:

>plotmap.py
Traceback (most recent call last):
File "C:\Documents and Settings\jim.vickroy\My Documents\Projects\High-latitudes D-region\plotmap.py", line 13, in <module>
   topoin = load('etopo20data.gz')
File "C:\Python25\Lib\site-packages\matplotlib\mlab.py", line 1252, in load
   fh = cbook.to_filehandle(fname)
File "C:\Python25\Lib\site-packages\matplotlib\cbook.py", line 236, in to_filehandle
   fh = gzip.open(fname, flag)
File "C:\Python25\lib\gzip.py", line 49, in open
   return GzipFile(filename, mode, compresslevel)
File "C:\Python25\lib\gzip.py", line 95, in __init__
   fileobj = self.myfileobj = __builtin__.open(filename, mode or 'rb')
IOError: [Errno 2] No such file or directory: 'etopo20data.gz'

How do I obtain this file and where should it reside?

I have downloaded proj446_win32_bin.zip and unzipped it, but I do not see any such file.

I have also attempted to search this user-group archive for references to "etopo20data.gz" but repeatedly get an "Unable to connect to Search Server" error so I do not know what I'm doing incorrectly.

I have installed:
- matplotlib-0.91.2.win32-py2.5.exe
- basemap-0.9.9.1.win32-py2.5.exe
- httplib2-0.4.0.zip
for use with Python 2.5.1.

I apologize if this has been previously addressed.

Thanks,
-- jv

j. vickroy wrote:

Hello, I am a first-time user of matplotlib.

When trying to run the plotmap.py example, the following traceback is generated:

>plotmap.py
Traceback (most recent call last):
File "C:\Documents and Settings\jim.vickroy\My Documents\Projects\High-latitudes D-region\plotmap.py", line 13, in <module>
   topoin = load('etopo20data.gz')
File "C:\Python25\Lib\site-packages\matplotlib\mlab.py", line 1252, in load
   fh = cbook.to_filehandle(fname)
File "C:\Python25\Lib\site-packages\matplotlib\cbook.py", line 236, in to_filehandle
   fh = gzip.open(fname, flag)
File "C:\Python25\lib\gzip.py", line 49, in open
   return GzipFile(filename, mode, compresslevel)
File "C:\Python25\lib\gzip.py", line 95, in __init__
   fileobj = self.myfileobj = __builtin__.open(filename, mode or 'rb')
IOError: [Errno 2] No such file or directory: 'etopo20data.gz'

How do I obtain this file and where should it reside?

I have downloaded proj446_win32_bin.zip and unzipped it, but I do not see any such file.

I have also attempted to search this user-group archive for references to "etopo20data.gz" but repeatedly get an "Unable to connect to Search Server" error so I do not know what I'm doing incorrectly.

I have installed:
- matplotlib-0.91.2.win32-py2.5.exe
- basemap-0.9.9.1.win32-py2.5.exe
- httplib2-0.4.0.zip
for use with Python 2.5.1.

I apologize if this has been previously addressed.

Thanks,
-- jv
  
It's in the examples directory of the basemap source tarball (basemap-0.9.9.1.tar.gz). The examples directory is not included with the binary installers.

-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