We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [write]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2
votes
1answer
41 views

Rasterio Write Masked Array to TIFF - Shape write and read indices are wrong [closed]

I'm clipping a raster to a shapefile, which returned a masked array, and my goal is to write that masked array to a new .tif file with the correct metadata. I can view the masked array and it looks ...
0
votes
0answers
32 views

Creating a raster file with multiple attributes from numpy arrays?

I have 2 numpy arrays (same dimension) which I would like to use to create a TIF raster file with 2 attributes. I'm trying to do so with rasterio with the following piece of code: out_meta = ..... ...
0
votes
1answer
73 views

Error when updating a raster file with a numpy array using rasterio.write

I'm iterating through thousands of polygons. Each polygon clips a tif raster producing a numpy array. Then the numpy array values are manipulated and the tif raster is updated with those new values. ...