Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

update profile rasterio pyton

import rasterio
img=rasterio.open('my_raster.tif')
profile = img.profile 
profile.update(dtype=rasterio.uint8,count=1,nodata=42, compress='lzw')
 
PREVIOUS NEXT
Tagged: #update #profile #rasterio #pyton
ADD COMMENT
Topic
Name
7+5 =