Tagged Questions
9
votes
2answers
368 views
Gdal Dataset.ReadAsArray() crashes Python
I am using Python 2.6.5 (32bit) with Numpy 1.3 and Gdal 1.9.1 installed on Windows 7 64bit. I am trying to read an 800 MB Imagine (.img) raster dataset into a Numpy array to do some raster algebra, ...
1
vote
1answer
73 views
keeping the coordinate system of raster files in the resulting raster file after operation with numpy
I'm trying to read as array two raster files using ReadAsArray in GDAL/python, perform some map algebra operation on it using numpy and then write the resulting raster file in GTiff format using ...
10
votes
3answers
859 views
Writing numpy array to raster file
I'm new to GIS, and I'm lost with something I feel ought to be relatively simple. I have some code that converts infrared images of Mars into thermal inertia maps, which are then stored as 2D numpy ...
2
votes
0answers
118 views
How do I use scipy.ndimage.gaussian_filter1d on an arbitrary axis?
I have a GDAL raster that looks like this:
And I would really like to blur this raster along an arbitrary transect.
I see that scipy.ndimage has a gaussian filter that allows me to blur the raster ...
6
votes
2answers
766 views
How to fully load a raster into a numpy array?
I have been trying to check my filters on DEM raster for pattern recognition and it is always resulting in missing last rows and columns(like..20).
I have tried with PIL library, image load. Then with ...
4
votes
1answer
207 views
raster algebra in python with rasters of different extents
I am trying to find out how to use GDAL & numpy modules to average a set of rasters....which are Sigma0 values from satellite passes at different times within a year.
Each raster has been ...
5
votes
2answers
233 views
Adding noise to a raster
I want to add some fine-grained noise to a raster in an automated python process (i.e. I do not want to use Photoshop or GIMP). I looked at PIL, but unless I'm mistaken, it doesn't seem to have any ...
1
vote
0answers
218 views
ValueError when reading a raster band as a numpy array
Here's the problem shown in Python shell:
In [32]: from osgeo import gdal
In [33]: geotiff = '/Users/calvin/work/luc/proj_public/media/GLO
...
