"Cartopy is a popular plotting library and depends on `geos` and `proj` libraries and therefore need to be linked against these. Currently it is possible to install cartopy in any version you want, using the provided module libraries:\n",
" - `geos/3.9.1-gcc-8.4.1` or similar using gcc\n",
" - `proj/8.1.0-gcc-8.4.1` or similar using gcc"
" - `proj/8.1.0-gcc-8.4.1` or similar using gcc\n",
" \n",
"However, there are still some issues with Cartopy. Please note that its version is `0.XX` that means development and not a stable release."
"# Cartopy 0.20.2 with shapely 1.8.0 (does not work with 1.8.1 or 1.8.2)\n",
"# !pip install --user shapely==1.8.0 cartopy"
]
},
{
...
...
@@ -204,9 +209,9 @@
],
"metadata": {
"kernelspec": {
"display_name": "Miniconda3 (4.10.3)",
"display_name": "Anaconda3 (2021.05) - 3.8.8",
"language": "python",
"name": "miniconda3"
"name": "anaconda32021.05-gcc-8.5.0"
},
"language_info": {
"codemirror_mode": {
...
...
@@ -218,7 +223,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.5"
"version": "3.8.8"
}
},
"nbformat": 4,
...
...
%% Cell type:markdown id: tags:
# Testing Cartopy
Cartopy is a popular plotting library and depends on `geos` and `proj` libraries and therefore need to be linked against these. Currently it is possible to install cartopy in any version you want, using the provided module libraries:
-`geos/3.9.1-gcc-8.4.1` or similar using gcc
-`proj/8.1.0-gcc-8.4.1` or similar using gcc
However, there are still some issues with Cartopy. Please note that its version is `0.XX` that means development and not a stable release.
[K |████████████████████████████████| 6.3 MB 102.1 MB/s eta 0:00:01
[?25hRequirement already satisfied: matplotlib>=3.1 in /home/swd/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.4.1/anaconda3-2020.07-4onhdcbnvyvwfdxxbelrplxjihjsknex/lib/python3.8/site-packages (from cartopy) (3.2.2)
Requirement already satisfied: numpy>=1.18 in /home/swd/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.4.1/anaconda3-2020.07-4onhdcbnvyvwfdxxbelrplxjihjsknex/lib/python3.8/site-packages (from cartopy) (1.18.5)
Collecting pyshp>=2.1
Downloading pyshp-2.1.3.tar.gz (219 kB)
[K |████████████████████████████████| 219 kB 103.9 MB/s eta 0:00:01
[?25hRequirement already satisfied: certifi in /home/swd/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.4.1/anaconda3-2020.07-4onhdcbnvyvwfdxxbelrplxjihjsknex/lib/python3.8/site-packages (from pyproj>=3.0.0->cartopy) (2020.6.20)
Requirement already satisfied: cycler>=0.10 in /home/swd/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.4.1/anaconda3-2020.07-4onhdcbnvyvwfdxxbelrplxjihjsknex/lib/python3.8/site-packages (from matplotlib>=3.1->cartopy) (0.10.0)
Requirement already satisfied: python-dateutil>=2.1 in /home/swd/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.4.1/anaconda3-2020.07-4onhdcbnvyvwfdxxbelrplxjihjsknex/lib/python3.8/site-packages (from matplotlib>=3.1->cartopy) (2.8.1)
Requirement already satisfied: pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.1 in /home/swd/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.4.1/anaconda3-2020.07-4onhdcbnvyvwfdxxbelrplxjihjsknex/lib/python3.8/site-packages (from matplotlib>=3.1->cartopy) (2.4.7)
Requirement already satisfied: kiwisolver>=1.0.1 in /home/swd/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.4.1/anaconda3-2020.07-4onhdcbnvyvwfdxxbelrplxjihjsknex/lib/python3.8/site-packages (from matplotlib>=3.1->cartopy) (1.2.0)
Requirement already satisfied: six in /home/swd/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.4.1/anaconda3-2020.07-4onhdcbnvyvwfdxxbelrplxjihjsknex/lib/python3.8/site-packages (from cycler>=0.10->matplotlib>=3.1->cartopy) (1.15.0)
Building wheels for collected packages: cartopy, pyshp
Building wheel for cartopy (PEP 517) ... [?25ldone
[?25h Created wheel for cartopy: filename=Cartopy-0.20.0-cp38-cp38-linux_x86_64.whl size=10980651 sha256=c63e7fc196492e2db81029ed2af8d2f3fb1ba3fa2129e8e4c59d6000c2a5a591
Stored in directory: /home/spack/.cache/pip/wheels/f2/b9/4d/cf1a107ee01bae40000f27ed744a269bc251223b241fd71117
Building wheel for pyshp (setup.py) ... [?25ldone
[?25h Created wheel for pyshp: filename=pyshp-2.1.3-py3-none-any.whl size=37262 sha256=85f688d164ea994b5d66b0fb71c3fc0c78a6a9d74fdef026991ef2fca114c18e
Stored in directory: /home/spack/.cache/pip/wheels/1f/1b/b5/54affbefc8a7e2bdf1da000fc576b8a1c91338f1f327a04f4c