Skip to content

Set GMT_DATA_SERVER="Oceania" #42

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jul 15, 2025
Merged

Set GMT_DATA_SERVER="Oceania" #42

merged 4 commits into from
Jul 15, 2025

Conversation

weiji14
Copy link
Member

@weiji14 weiji14 commented Jul 13, 2025

In hindsight, maybe using the NOAA server wasn't a good idea 😅 Changing to the default Oceania server instead.

Preview at https://www.generic-mapping-tools.org/agu24workshop/intro.html

Fixes the following error:

Traceback (most recent call last):
  File "/home/runner/micromamba/envs/agu24workshop/lib/python3.12/site-packages/jupyter_cache/executors/utils.py", line 58, in single_nb_execution
    executenb(
  File "/home/runner/micromamba/envs/agu24workshop/lib/python3.12/site-packages/nbclient/client.py", line 1314, in execute
    return NotebookClient(nb=nb, resources=resources, km=km, **kwargs).execute()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/runner/micromamba/envs/agu24workshop/lib/python3.12/site-packages/jupyter_core/utils/__init__.py", line 165, in wrapped
    return loop.run_until_complete(inner)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/runner/micromamba/envs/agu24workshop/lib/python3.12/asyncio/base_events.py", line 687, in run_until_complete
    return future.result()
           ^^^^^^^^^^^^^^^
  File "/home/runner/micromamba/envs/agu24workshop/lib/python3.12/site-packages/nbclient/client.py", line 709, in async_execute
    await self.async_execute_cell(
  File "/home/runner/micromamba/envs/agu24workshop/lib/python3.12/site-packages/nbclient/client.py", line 1062, in async_execute_cell
    await self._check_raise_for_error(cell, cell_index, exec_reply)
  File "/home/runner/micromamba/envs/agu24workshop/lib/python3.12/site-packages/nbclient/client.py", line 918, in _check_raise_for_error
    raise CellExecutionError.from_cell_and_msg(cell, exec_reply_content)
nbclient.exceptions.CellExecutionError: An error occurred while executing the following cell:
------------------
with pygmt.config(GMT_DATA_SERVER="NOAA"):
    grid = pygmt.datasets.load_earth_relief(resolution="01d")
grid
------------------

----- stderr -----
gmtread [NOTICE]: Remote data courtesy of GMT data server NOAA [http://noaa.generic-mapping-tools.org]
----- stderr -----
gmtread [NOTICE]: SRTM15 Earth Relief v2.7 at 1x1 arc degrees reduced by Gaussian Cartesian filtering (314.5 km fullwidth) [Tozer et al., 2019].
----- stderr -----
gmtread [NOTICE]:   -> Download grid file [112K]: earth_relief_01d_g.grd
----- stderr -----
gmtread [ERROR]: Libcurl Error: Could not connect to server
----- stderr -----
gmtread [ERROR]: Unable to obtain remote file @earth_relief_01d_g.grd
----- stderr -----
gmtread [NOTICE]:   -> Download grid file [112K]: earth_relief_01d_g.grd
----- stderr -----
gmtread [ERROR]: Libcurl Error: Could not connect to server
----- stderr -----
gmtread [ERROR]: Unable to obtain remote file @earth_relief_01d_g.grd
----- stderr -----
gmtread [ERROR]: File @earth_relief_01d_g.grd not found
----- stderr -----
[Session pygmt-session (3)]: Error returned from GMT API: GMT_FILE_NOT_FOUND (16)
------------------

Also note to future self, don't publish a tag until double-checking that the docs were built correctly.

weiji14 added 2 commits July 14, 2025 10:27
The NOAA server appears to timeout for some reason. Also
Copy link

gitnotebooks bot commented Jul 13, 2025

Found 1 changed notebook. Review the changes at https://app.gitnotebooks.com/GenericMappingTools/agu24workshop/pull/42

@weiji14 weiji14 marked this pull request as ready for review July 13, 2025 22:51
@weiji14 weiji14 merged commit 6dab3f9 into main Jul 15, 2025
1 check passed
@weiji14 weiji14 deleted the patch/gmt_data_server branch July 15, 2025 22:58
@yvonnefroehlich yvonnefroehlich added bug Something isn't working maintenance labels Jul 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working maintenance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants