Linked Questions

7
votes
3answers
13k views

Is it possible to open rasters as array in NumPy without using another library?

I know that it is possible to open a raster as an array in NumPy using GDAL, but I want to skip GDAL and use NumPy only, as it is cooler handling rasters with NumPy as matrices. There is a similar ...
10
votes
5answers
5k views

Raster diff: how to check if images have identical values?

Is there a means to check to see if any 2 given raster layers have identical content? We have a problem on our corporate shared storage volume: it's now so big that it takes over 3 days to conduct a ...
14
votes
2answers
2k views

Understanding min and max values with Mosaic to New Raster?

I have to combine several DEM rasters into one from this source: http://srtm.csi.cgiar.org/SELECTION/inputCoord.asp, so I use Mosaic to New Raster tool. I set up the tool: I input the rasters (all ...
5
votes
2answers
6k views

How to create a TIFF file using GDAL from a numpy array and specifying NoData value

I have some tiff files I obtained from splitting a bigger tiff file using gdal translate. The border tiff files have some nodata values, which I can see in numpy as number 15. I want to manipulate ...
0
votes
2answers
5k views

How to save numpy array as single band image?

I'm working on MODIS NDVI composite data (single band). I converted the image to a numpy array and performed filtering operations. When i'm saving the new numpy array as an image I get a 3 band image ...
3
votes
2answers
450 views

Converting QgsRaster object to array

So I'm a newbie, so sorry if this is an idiot question. I'm trying to write a plugin for QGIS3 for my organisation, and I'd like to output a standalone figure (i.e. not in the QGIS window) as the ...
1
vote
1answer
586 views

How to read all raster values in an array?

I want to read the every cell value in a raster file. When I run the script, it should give me the cell location and it's value. I can reach center point of the raster and read it's value with this ...
0
votes
0answers
565 views

layer stack TIFF using python [duplicate]

i work with EVI MODIS and i need to stack all raster i had using python but i don't know how i'm using this backag and script to read my rasters import os import glob from osgeo import ...
2
votes
1answer
315 views

Arcpy "MemoryError"; Get Classification Breaks on a TIF Raster; Jenks Breaks; Python

I have a large .tif raster with integer values. I wish to generate Jenks classification breaks using code and then use those breaks to reclassify my .tif file. I came across a block of code that I ...
2
votes
0answers
190 views

Get coordinates of all pixels in a raster [closed]

I have a georeferenced raster and I need to extract a list with the coordinates of pixel in reference system (EPSG:32631) and the coordinate of pixel in raster reference. I want a list like this (...