We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36b9b11 commit 58dc53fCopy full SHA for 58dc53f
pygmt/datasets/load_remote_dataset.py
@@ -592,8 +592,10 @@ def _load_remote_dataset(
592
kind=dataset.kind, outgrid=None, vfname=voutgrd
593
)
594
595
- # Full path to the grid if not tiled grids.
596
- source = which(fname, download="a") if not resinfo.tiled else None
+ # Full path to the grid
+ source: str | list = which(fname, download="a")
597
+ if resinfo.tiled:
598
+ source = source[0] # get first grid for tiled grids
599
# Manually add source to xarray.DataArray encoding to make the GMT accessors work.
600
if source:
601
grid.encoding["source"] = source
0 commit comments