GenericMappingTools / pygmt

A Python interface for the Generic Mapping Tools.
https://www.pygmt.org
BSD 3-Clause "New" or "Revised" License
747 stars 216 forks source link

grdcut [ERROR]: Remote download is currently deactivated #3063

Closed duffy6 closed 7 months ago

duffy6 commented 7 months ago

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

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")

grdcut [ERROR]: Remote download is currently deactivated

Can I activate the download somewhere

Minimal Complete Verifiable Example

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
welcome[bot] commented 7 months ago

👋 Thanks for opening your first issue here! Please make sure you filled out the template with as much detail as possible. You might also want to take a look at our contributing guidelines and code of conduct.

yvonnefroehlich commented 7 months ago

@duffy6, thanks for your report on this issue. I also faced it under Windows and Linux on Friday. But now downloading the remote datasets works for me again. So, can you please try it again and report if it also works for you? Then we can close this issue.

duffy6 commented 7 months ago

It‘s working again! Thank you folks!