Clean and fast and geospatial raster I/O for Python programmers who use Numpy
Questions tagged [rasterio]
440 questions
-1
votes
2 answers
Plot 2 dimensional numpy array in .npy file using matplotlib?
I have numpy file stored as "test.npy" which is a 2 dimensional Synthetic Aperture Radar(SAR) image data with VV and VH polarization bands. How do I plot this 2 dimensional image array using matplotlib?
import numpy as np
img_array =…

hillsonghimire
- 485
- 5
- 13
-1
votes
1 answer
Geotiff Rotation Python/GDAL/QGIS
I am trying to rotate geotifs by different amounts in python, GDAl and/or QGIS and keep the georeference information the same.
Is there a way to do this?

jondave
- 1
- 1
-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…

CynicalPassion63
- 145
- 13
-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…

yuen2
- 79
- 1
- 2
- 7