Explicitly closing a Fieldset
(and freeing up underlying NetCDF files)
#1213
-
Is there a way of explicitly closing a Everytime I rerun my code to create my I was looking in the fieldset source and couldn't find any method that looked to do the trick. Also calling Any advice/insight would be appreciated 🙂 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @VeckoTheGecko, the opening and closing of Netcdf files is doen in fieldfilebuffer.py, which does have an Does that help? |
Beta Was this translation helpful? Give feedback.
Hi @VeckoTheGecko, the opening and closing of Netcdf files is doen in fieldfilebuffer.py, which does have an
exit
method: https://github.com/OceanParcels/parcels/blob/32600333a087492c177c10a11767ae45b11ea0b4/parcels/fieldfilebuffer.py#L56-L57Does that help?