Ratcliff, Christina (A&F, Waite Campus)
Using RasterIO, what is the correct way to change (or assign if it isn't already set) the no data value for a single or multi band TIF file?
For example using the test rgb.byte.tif file, how do I change the nodata value from 0 to 255? So far I have tried:
with rasterio.open('RGB.byte.tif') as src:Currently this only changes tif header/metadata information and not the actual data.
Options I've seen to accomplish this include
# 1. masked arraysOr should I be using rasterIO's read_mask(), write_mask() or dataset_mask()?
What is the preferred method? I haven't been able to find this in any of the user documentation.