|
GDALNumeric.SaveArray : Unable to access numpy arrays of typecode "@": msg#00156gis.gdal.devel
Dear Friends, I am using Numeric 23.0 version and python 2.3 on a windows XP machine. I have build GDAL from MS VC++ and Visual Studio .net and installed on my machine. The GDAL version is 1.1.9. Basic Problem : I am trying to save a Numpy array(infact the primary issue is to save any 2d array (not just NUMPY) to a "TIF" file) to a TIF file. When I run the following commands, I get an error stating that it cannot access Numpy array of typecode "@" (weird..??) DUMP OF PYTHON INTERPRETER. >>> k = Numeric.zeros((2,2),"f") >>> k
>>> gdalnumeric.SaveArray(k,"k.tif") Traceback (most recent call last): ---- END OF PYTHON INTERPRETER I am wondering whether this is a version problem with Numeric python or is it a problem with the building of GDAL using MS VC++ 7.0 or is it something else. I would be delighted if any one can give me clues on how to save a 2d array to a TIF file, since thats the primary problem. Thanks Gagan Tandon Gagan Tandon
Attention all artisans! Sell Diwali creations online. Register now! |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: esri .hdr open problem; minor hdf4 channels issue: 00156, Frank Warmerdam |
|---|---|
| Next by Date: | Re: GDALNumeric.SaveArray : Unable to access numpy arrays of typecode "@": 00156, Gillian Walter |
| Previous by Thread: | tiger 108th glitch?i: 00156, Heitzso |
| Next by Thread: | Re: GDALNumeric.SaveArray : Unable to access numpy arrays of typecode "@": 00156, Gillian Walter |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |