All Questions
5 questions
2
votes
0
answers
77
views
Replacing values in a raster using a mask in Python
I have a tiff-file with three color bands that I want to mask in Python using a shapefile, but when I use the normal masking method with rasterio, the data points under the mask are replaced with (0,0,...
1
vote
1
answer
580
views
Masking satellite data using shapefile
I am using Landsat data to determine NDVI for a specific region of interest (roi). However, the roi has buildings and other artificial objects that I wish to mask.
I have followed through the example ...
2
votes
2
answers
922
views
Cropping raster using multiple shapefiles
I have a raster which I want to crop multiple times using different shapefiles. My code uses mask method which returns numpy array and its metadata:
out_img, out_transform = mask(raster=data, shapes=...
1
vote
0
answers
385
views
Summarising all the (NDVI) values pixelwise for a masked polygon
A .tif image has been created using the NDVI formula in QGIS. The resulting image shows a region, with varying grades of NDVI values over the image. A .shp file has then been created for an area of ...
1
vote
0
answers
458
views
Does anyone know why I'm getting a completely black geotiff as a result of this shapefile cut out of another geotiff in rasterio?
I am using rasterio to cut out the shape of a lake outlined in my shapefile from a geotiff. When using a shapefile of a singular lake with a geotiff, this works perfectly, but not when cutting out a ...