Skip to content

Commit

Permalink
fix: delete tmp.nc file in fetch call
Browse files Browse the repository at this point in the history
  • Loading branch information
mdtanker committed Feb 20, 2024
1 parent aa06cfa commit 6fc1992
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/polartoolkit/fetch.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 6fc1992

Please sign in to comment.