Re: Help Saving .Tif File after Mask

Simon Tarr

Hi Luke, thanks for the reply. Your code has helped me move past my previous error.
I had to delete the indexes argument when calling `write' but apart from that, it works like a charm.

Thank you for your help!

On Wed, Apr 7, 2021 at 02:41 AM, Luke wrote:
with'/data/my_output.tif', 'w', 
              ) as outfile:
            outfile.write(masked_raster, indexes=1) 

Join to automatically receive all group messages.