TransWikia.com

How to convert 0 values to NaN values with rasterio

Geographic Information Systems Asked on October 2, 2021

I clipped my tif image to smaller tif via using a shapefile as mask with rasterio python library. After that my square shaped clip has bigger extent than shapefile and outside the the shp area is black and valued as 0. How can I change it to NODATA values?

enter image description here

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP