tesgdal in examples of basemap

I installed the latest gdal with all the latest basemaps and tried to run the testgdal.py program in examples. I get this error:
Traceback (most recent call last):
  File "C:\Documents and Settings\kpeters\My Documents\basemap-0.99\examples\testgdal.py", line 19, in <module>
    array = gd.ReadAsArray()
AttributeError: 'NoneType' object has no attribute 'ReadAsArray'

Anyone know what the problem is? Do I need something else?
Kurt

Hi,

···

On Thursday 19 June 2008 00:16:39 KURT PETERS wrote:

    array = gd.ReadAsArray()
AttributeError: 'NoneType' object has no attribute 'ReadAsArray'

Anyone know what the problem is? Do I need something else?

Did you download the Denver DEM from USGS? From testgdal.py:
# download from
# http://edcftp.cr.usgs.gov/pub/data/DEM/250/D/denver-w.gz

It should work after that...

Cheers,
Jose
--
NERC Centre for Terrestrial Carbon Dynamics,
Department of Geography, University College London
Gower Street, London WC1E 6BT, UK

Hi,

···

On Thursday 19 June 2008 00:16:39 KURT PETERS wrote:

    array = gd.ReadAsArray()
AttributeError: 'NoneType' object has no attribute 'ReadAsArray'

Anyone know what the problem is? Do I need something else?

Did you download the Denver DEM from USGS? From testgdal.py:
# download from
# http://edcftp.cr.usgs.gov/pub/data/DEM/250/D/denver-w.gz

It should work after that...

Cheers,
Jose

--
NERC Centre for Terrestrial Carbon Dynamics,
Department of Geography, University College London
Gower Street, London WC1E 6BT, UK