Re: issue with opening/closing datasets
Sean Gillies
Hi Amine, On Tue, Mar 26, 2019 at 5:10 AM Amine Aboufirass <amine.aboufirass@...> wrote:
The following will work if you are calling the two functions in the same module. with open_raster('raster.tif') as dataset: # this gives you an implicit Env around the contained statements. new_raster = do_stuff_with_raster(dataset) new_raster.close()
-- Sean Gillies
|
|