Grdcut [ERROR]: Remote download is currently deactivated

Description of the problem

Hi guys,

I am running PyGMT on Linux, but also tried it on Windows with the same behavior:

When I try this code shown below I get the the message

grdcut [ERROR]: Remote download is currently deactivated

import pygmt
grid = pygmt.datasets.load_earth_relief(resolution="01d", region=[-14, 30, 35, 60])
fig = pygmt.Figure()
fig.grdimage(grid=grid, projection="M15c", frame="a", cmap="geo")
fig.colorbar(frame=["a1000", "x+lElevation", "y+lm"])
fig.show()
fig.savefig("_meine_Karte.png")

Can I activate the download somewhere?

import pygmt
grid = pygmt.datasets.load_earth_relief(resolution="01d", region=[-14, 30, 35, 60])
fig = pygmt.Figure()
fig.grdimage(grid=grid, projection="M15c", frame="a", cmap="geo")
fig.colorbar(frame=["a1000", "x+lElevation", "y+lm"])
fig.show()

fig.savefig(“_meine_Karte.png”)

Full error message

grdcut [ERROR]: Remote download is currently deactivated
System information

PyGMT information:
  version: v0.11.0
System information:
  python: 3.12.2 | packaged by conda-forge | (main, Feb 16 2024, 20:50:58) [GCC 12.3.0]
  executable: /home/pi/miniforge3/envs/pygmt/bin/python
  machine: Linux-5.15.0-97-generic-x86_64-with-glibc2.35
Dependency information:
  numpy: 1.26.4
  pandas: 2.2.0
  xarray: 2024.2.0
  netCDF4: 1.6.5
  packaging: 23.2
  contextily: None
  geopandas: None
  ipython: None
  rioxarray: None
  ghostscript: 10.02.1
GMT library information:
  binary version: 6.5.0
  cores: 1
  grid layout: rows
  image layout:
  library path: /home/pi/miniforge3/envs/pygmt/lib/libgmt.so
  padding: 2
  plugin dir: /home/pi/miniforge3/envs/pygmt/lib/gmt/plugins
  share dir: /home/pi/miniforge3/envs/pygmt/share/gmt
  version: 6.5.0

I think there’s problem with the gmt default data server. Try using a mirror site, e.g. —GMT_DATA_SERVER=NOAA.

See Mirrors — The Generic Mapping Tools.

1 Like

The problem should be solved now.

1 Like

You’re right. Works now.