From 6fc1992c9001dc6fa4dceb99214cf78d67471f99 Mon Sep 17 00:00:00 2001 From: mdtanker Date: Tue, 20 Feb 2024 13:06:00 -0700 Subject: [PATCH] fix: delete tmp.nc file in fetch call --- src/polartoolkit/fetch.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/polartoolkit/fetch.py b/src/polartoolkit/fetch.py index 07bf206e..b71486a0 100644 --- a/src/polartoolkit/fetch.py +++ b/src/polartoolkit/fetch.py @@ -3253,6 +3253,9 @@ def preprocessing(fname: str, action: str, _pooch2: typing.Any) -> str: reprojected.to_netcdf("tmp.nc") processed = xr.load_dataset("tmp.nc").z + # remove tmp file + pathlib.Path("tmp.nc").unlink() + # get just antarctica region and save to disk pygmt.grdsample( processed,