Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options questions only not deleted user 9518

open source Python library for reading and writing geospatial raster data

13 votes
2 answers
6k views

Merging rasters with rasterio in blocks to avoid MemoryError?

I am trying to merge two rasters with rasterio. … However, when I run dest_array, out_transform = merge(sources), I receive the following error: MemoryError: Unable to allocate array with shape (1, 56160, 85196) and data type float64 I know rasterio
umbe1987's user avatar
  • 3,785
4 votes
1 answer
2k views

Unexpected result using rasterio windowed writing - Access window out of range in RasterIO()

/home/umberto/test/output/mosaic2.tif: Access window out of range in RasterIO(). Requested (42379,56159) of size 256x256 on raster of 85196x56160.') …
umbe1987's user avatar
  • 3,785
1 vote
1 answer
496 views

Decimated and windowed read in rasterio

In my workflow using rasterio, I'd like to read an overview from a raster and get only a portion of it through a window at the same time. Is this possible? …
umbe1987's user avatar
  • 3,785
2 votes
1 answer
2k views

Building Raster Attribute Table (RAT) from GeoPandas dataframe with rasterio or GDAL

I am trying to figure out how to generate a RAT for a 1-band raster with rasterio or GDAL given a GeoPandas dataframe. … Is this possible with rasterio or GDAL and if so how? Do I have to use a specific raster extension for this aim (I am currently using GeoTIFF)? …
umbe1987's user avatar
  • 3,785