Clean and fast and geospatial raster I/O for Python programmers who use Numpy
Questions tagged [rasterio]
244 questions
-1
votes
1 answer
How to speed up extracting data from raster file for points using GDAL python
I have 366 raster image files (MODIS satellite daily data) in tif format containing snow data and another csv file containing 19,000 locations (latitude and longitudes). I need to collect the snow data from raster files. I have tried collecting the…
![](../../users/profiles/2119543.webp)
srinivas
- 19
- 4
-1
votes
1 answer
How to set bounds of geotiff using rasterio?
I am trying to write some code that takes a collection of png files + some metadata information (not from a geotiff) and creates a geotiff file. That one geotiff file would have a number of bands/layers equal to the number of png files passed as…
![](../../users/profiles/2748979.webp)
CynicalPassion63
- 135
- 11
-1
votes
1 answer
getting the error "The truth value of an array with more than one element is ambiguous"?
I am trying to plot a raster image using Rasterio, Matplotlib, and Numpy. Although what I am doing is probably irrelevant and general to the actual python code and error.
Here is the code:
import rasterio
import matplotlib.pyplot as plt
import…
![](../../users/profiles/10670994.webp)
yuen2
- 79
- 1
- 6
-1
votes
1 answer
Rasterio Geotiff Coordinate Translation
I have some geotiff files but the coordinates are slightly off. I want to use rasterio's API (or other python geo API like pygdal) to geometrically translate (shift) the image. For example, how do I move the image's coordinates 'north' by a single…
![](../../users/profiles/4412991.webp)
Alex Ethier
- 369
- 1
- 4
- 17