Closed atmosmattbrewer closed 4 years ago
So the error occurs because it's trying to download this link, which doesn't work:
http://naciscdn.org/naturalearth/h/physical/ne_h_coastline.zip
The question is...why?
Aha! I think it's this line:
display.plot_ppi_map('reflectivity', 0, resolution = 'h', #The "0" is the lowest PPI scan, increasing this number increases the scanning elevation
vmin=-10, vmax=64, colorbar_flag = False, fig = fig, ax=ax,alpha = .08, projection = crs)
Notice the use of 'h'
for resolution
--which corresponds to the bad part of the URL. I'm guess this is left over from some Basemap code? Try changing to '10m'
or '110m'
.
Changing the 'h' to '10m' fixed the issue, should I open an issue with pyart? Thank you for the help though.
It'd probably be nice of them to try to check and issue a more useful error, but that's up to them. Wouldn't hurt to open an issue there to let them know.
I wonder if we should be whitelisting the resolutions here, at least in NaturalEarthFeature
class, since we know the currently supported resolutions.
So, the question is where to check:
NaturalEarthFeature
shapereader.natural_earth
NEShpDownloader
Thoughts anyone? @pelson?
Unfortunately something seems to be wrong at NaturalEarth: https://naciscdn.org/naturalearth/110m/physical/ne_110m_coastline.zip
gives a 404 as well.
Just coming to write that same thing. It appears that naciscdn.org is offline right now: https://downforeveryoneorjustme.com/naciscdn.org
Is there a mirror where one can grab these images?
I couldn't find one. I've just switched to GSHHS:
ax.add_feature(cartopy.feature.GSHHSFeature(edgecolor='k'))
You can grab it from their GitHub, though unfortunately due to https://github.com/nvkelso/natural-earth-vector/issues/279 it's not entirely consistent with what's on the site. On Fedora, you can also install one of the natural-earth-map-data packages.
It appears that naciscdn.org has come back up, which should resolve this issue.
Back down for me...
EDIT:
You can grab it from their GitHub, though unfortunately due to nvkelso/natural-earth-vector#279 it's not entirely consistent with what's on the site. On Fedora, you can also install one of the natural-earth-map-data packages.
Is there a way to download the data from GitHub from within Cartopy?
Is there an action item for Cartopy here? Better error/failure messages?
Otherwise, there isn't a whole lot we can do when external websites go down.
External websites aside, the actual bug here is that we need to be more stringent about what's accepted for scale (because h
is not valid for NaturalEarth). That's why this is still open.
I have recently been getting "HTTPError: HTTP Error 404: Not Found" errors when trying to use Cartopy. Even when I comment out the add features lines I am still getting this issue, so maybe it is caused by some of the other packages. I have clicked on the link and you do get the 404 message, however I am not sure where in my code I am still getting this issue if I comment out the add coastlines.
OS: CentOS 7
Some of the main packages in the environment: Cartopy: 0.17.0 py36h0aa2c8f_1004 conda-forge Python: 3.6.7 h381d211_1004 conda-forge Satpy: 0.13.0 pyh326bf55_0 conda-forge arm_pyart : 1.9.2 py36_0 conda-forge metpy : 0.10.0 py36_1001 conda-forge
Conda info: active environment : sats active env location : /export/home/mbrewer/anaconda3/envs/sats shell level : 2 user config file : /export/home/mbrewer/.condarc populated config files : /export/home/mbrewer/.condarc conda version : 4.6.11 conda-build version : 3.17.6 python version : 3.7.1.final.0 base environment : /export/home/mbrewer/anaconda3 (writable) channel URLs : https://conda.anaconda.org/conda-forge/linux-64 https://conda.anaconda.org/conda-forge/noarch https://repo.anaconda.com/pkgs/main/linux-64 https://repo.anaconda.com/pkgs/main/noarch https://repo.anaconda.com/pkgs/free/linux-64 https://repo.anaconda.com/pkgs/free/noarch https://repo.anaconda.com/pkgs/r/linux-64 https://repo.anaconda.com/pkgs/r/noarch package cache : /export/home/mbrewer/anaconda3/pkgs /export/home/mbrewer/.conda/pkgs envs directories : /export/home/mbrewer/anaconda3/envs /export/home/mbrewer/.conda/envs platform : linux-64 user-agent : conda/4.6.11 requests/2.21.0 CPython/3.7.1 Linux/3.10.0-957.5.1.el7.x86_64 centos/7.6.1810 glibc/2.17 UID:GID : 789585339:1341200513 netrc file : None offline mode : False
Code to reproduce
Traceback
Full environment definition
### Operating system ### Cartopy version ### conda list ``` ``` ### pip list ``` ```