You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This XML file does not appear to have any style information associated with it. The document tree is shown below.
<Error>
<Code>AccessDenied</Code>
<Message>Access Denied</Message>
<RequestId>C9H0CY2Y53QW56B0</RequestId>
<HostId>OO/RzWA3IdFtauXZcXQ8UEeY3f1ixpK6DTIJxEHuaxaQfrV33+WD3mg8D9ej3NP5Uw1Bl+8hcg8FWA8mAhpSX5n5Jh0thQxhXmiQcOazL8A=</HostId>
</Error>
Minimal Complete Verifiable Example
# Gallery example "RGB image"# https://www.pygmt.org/dev/gallery/images/rgb_image.html#sphx-glr-gallery-images-rgb-image-pyimportpygmtimportrioxarraywithrioxarray.open_rasterio(
filename="https://oin-hotosm.s3.us-east-1.amazonaws.com/64d6a49a19cb3a000147a65b/0/64d6a49a19cb3a000147a65c.tif",
overview_level=5,
) asimg:
# Subset to area of Lāhainā in EPSG:32604 coordinatesimage=img.rio.clip_box(minx=738000, maxx=755000, miny=2300000, maxy=2318000)
image=image.load() # Force loading the DataArray into memoryimage# %%fig=pygmt.Figure()
withpygmt.config(FONT_TITLE="Times-Roman"): # Set title font to Times-Romanfig.grdimage(
grid=image,
# Use a map scale where 1 cm on the map equals 1 km on the groundprojection="x1:100000",
frame=[r"WSne+tL@!a¯hain@!a¯, Hawai`i on 9 Aug 2023", "af"],
)
fig.show()
Full error message
Traceback (most recent call last):
File C:\ProgramData\Anaconda3\envs\pygmt_env_dev_650\Lib\site-packages\xarray\backends\file_manager.py:211 in _acquire_with_cache_info
file=self._cache[self._key]
File C:\ProgramData\Anaconda3\envs\pygmt_env_dev_650\Lib\site-packages\xarray\backends\lru_cache.py:56 in __getitem__
value =self._cache[key]
KeyError: [<function open at 0x000001AE65C60CC0>, ('https://oin-hotosm.s3.us-east-1.amazonaws.com/64d6a49a19cb3a000147a65b/0/64d6a49a19cb3a000147a65c.tif',), 'r', (('overview_level', 5), ('sharing', False)), '8b2830bf-030f-4bd6-885b-0f4728a7c4c6']
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File rasterio\\_base.pyx:310 in rasterio._base.DatasetBase.__init__
File rasterio\\_base.pyx:221 in rasterio._base.open_dataset
File rasterio\\_err.pyx:221 in rasterio._err.exc_wrap_pointer
CPLE_HttpResponseError: HTTP response code: 403
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File C:\ProgramData\Anaconda3\envs\pygmt_env_dev_650\Lib\site-packages\spyder_kernels\py3compat.py:356 in compat_exec
exec(code, globals, locals)
File c:\users\admin\c2\eigenedokumente\studium\promotion\01_github\github_map\gmt-pygmt-plotting\000_general_stuff\02_colorwheel\untitled0.py:19
with rioxarray.open_rasterio(
File C:\ProgramData\Anaconda3\envs\pygmt_env_dev_650\Lib\site-packages\rioxarray\_io.py:1124 in open_rasterio
riods = manager.acquire()
File C:\ProgramData\Anaconda3\envs\pygmt_env_dev_650\Lib\site-packages\xarray\backends\file_manager.py:193 in acquire
file, _ =self._acquire_with_cache_info(needs_lock)
File C:\ProgramData\Anaconda3\envs\pygmt_env_dev_650\Lib\site-packages\xarray\backends\file_manager.py:217 in _acquire_with_cache_info
file=self._opener(*self._args, **kwargs)
File C:\ProgramData\Anaconda3\envs\pygmt_env_dev_650\Lib\site-packages\rasterio\env.py:451 in wrapper
return f(*args, **kwds)
File C:\ProgramData\Anaconda3\envs\pygmt_env_dev_650\Lib\site-packages\rasterio\__init__.py:304 in open
dataset = DatasetReader(path, driver=driver, sharing=sharing, **kwargs)
File rasterio\\_base.pyx:312 in rasterio._base.DatasetBase.__init__
RasterioIOError: HTTP response code: 403
yvonnefroehlich
changed the title
Gallery example "RGB image":
Gallery example "RGB image": Failing with error "rasterio.errors.RasterioIOError: HTTP response code: 403"
Jan 16, 2025
Description of the problem
There is currently a problem with the Gallery example RGB image. Recently building the docs started failing, please see https://readthedocs.org/projects/pygmt-dev/builds/26866465/ and https://readthedocs.org/projects/pygmt-dev/builds/26866703/:
I also face this problem when running the example locally on my laptop (see error message below).
Trying to download the tif file directly via the URL in Python script (https://oin-hotosm.s3.us-east-1.amazonaws.com/64d6a49a19cb3a000147a65b/0/64d6a49a19cb3a000147a65c.tif), gives the following error
Minimal Complete Verifiable Example
Full error message
System information
The text was updated successfully, but these errors were encountered: