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 parcels/parcels/fieldfilebuffer.py Lines 56 to 57 in 3260033 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:parcels/parcels/fieldfilebuffer.py
Lines 56 to 57 in 3260033
Does that help?