Skip to content

Commit

Permalink
Update deprecated calls for Nat Earth on other examples
Browse files Browse the repository at this point in the history
  • Loading branch information
SorooshMani-NOAA committed Sep 11, 2024
1 parent b6b223f commit 02d9125
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions examples/USGS_by_id.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
"figure, axis = plt.subplots(1, 1)\n",
"figure.set_size_inches(12, 12 / 1.61803398875)\n",
"\n",
"countries = gpd.read_file(gpd.datasets.get_path(\"naturalearth_lowres\"))\n",
"countries = gpd.read_file('https://naciscdn.org/naturalearth/110m/cultural/ne_110m_admin_0_countries.zip')\n",
"_ = countries.plot(color=\"lightgrey\", ax=axis, zorder=-1)\n",
"_ = usgs_stations.plot(ax=axis)\n",
"_ = axis.set_xlim(usgs_stations.total_bounds[0] - 1, usgs_stations.total_bounds[2] + 1)\n",
Expand Down Expand Up @@ -248,9 +248,9 @@
],
"metadata": {
"kernelspec": {
"display_name": "searvey",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "searvey"
"name": "python3"
},
"language_info": {
"codemirror_mode": {
Expand All @@ -262,7 +262,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.9"
"version": "3.10.14"
}
},
"nbformat": 4,
Expand Down
6 changes: 3 additions & 3 deletions examples/USGS_data.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"figure, axis = plt.subplots(1, 1)\n",
"figure.set_size_inches(12, 12 / 1.61803398875)\n",
"\n",
"countries = gpd.read_file(gpd.datasets.get_path(\"naturalearth_lowres\"))\n",
"countries = gpd.read_file('https://naciscdn.org/naturalearth/110m/cultural/ne_110m_admin_0_countries.zip')\n",
"_ = countries.plot(color=\"lightgrey\", ax=axis, zorder=-1)\n",
"_ = usgs_stations.plot(ax=axis)\n",
"_ = axis.set_xlim(usgs_stations.total_bounds[0] - 1, usgs_stations.total_bounds[2] + 1)\n",
Expand Down Expand Up @@ -200,7 +200,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "python3",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
Expand All @@ -214,7 +214,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.9"
"version": "3.10.14"
}
},
"nbformat": 4,
Expand Down
4 changes: 2 additions & 2 deletions examples/coops_data.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"import geopandas\n",
"from matplotlib import pyplot\n",
"\n",
"countries = geopandas.read_file(geopandas.datasets.get_path('naturalearth_lowres'))"
"countries = geopandas.read_file('https://naciscdn.org/naturalearth/110m/cultural/ne_110m_admin_0_countries.zip')"
]
},
{
Expand Down Expand Up @@ -279,7 +279,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.9"
"version": "3.10.14"
}
},
"nbformat": 4,
Expand Down

0 comments on commit 02d9125

Please sign in to comment.