Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ozone-imputation
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
esde
machine-learning
ozone-imputation
Commits
1db3e705
Commit
1db3e705
authored
Jun 28, 2022
by
Clara Betancourt
Browse files
Options
Downloads
Patches
Plain Diff
adapted venv to cartopy
parent
b2567e3c
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
setup/modules_hpc.sh
+3
-1
3 additions, 1 deletion
setup/modules_hpc.sh
setup/requirements_juwels.txt
+1
-0
1 addition, 0 deletions
setup/requirements_juwels.txt
source/visualizations/plots_for_paper.py
+53
-0
53 additions, 0 deletions
source/visualizations/plots_for_paper.py
with
57 additions
and
1 deletion
setup/modules_hpc.sh
+
3
−
1
View file @
1db3e705
...
@@ -6,6 +6,8 @@ ml Stages/2020
...
@@ -6,6 +6,8 @@ ml Stages/2020
# compilers etc.
# compilers etc.
# ml GCCcore/.9.3.0
# ml GCCcore/.9.3.0
ml GCCcore/.10.3.0
ml GCCcore/.10.3.0
ml GCC/10.3.0
ml ParaStationMPI/5.4.10-1
# ml GCC/9.3.0
# ml GCC/9.3.0
# ml ParaStationMPI/5.4.7-1
# ml ParaStationMPI/5.4.7-1
...
@@ -19,4 +21,4 @@ ml PyTorch/1.8.1-Python-3.8.5
...
@@ -19,4 +21,4 @@ ml PyTorch/1.8.1-Python-3.8.5
ml PyTorch-Geometric/2.0.2-Python-3.8.5-PyTorch-1.8.1
ml PyTorch-Geometric/2.0.2-Python-3.8.5-PyTorch-1.8.1
# ml GDAL/3.1.2-Python-3.8.5
# ml GDAL/3.1.2-Python-3.8.5
# ml Shapely/1.7.1-Python-3.8.5
# ml Shapely/1.7.1-Python-3.8.5
#
ml Cartopy/0.18.0-Python-3.8.5
ml Cartopy/0.18.0-Python-3.8.5
This diff is collapsed.
Click to expand it.
setup/requirements_juwels.txt
+
1
−
0
View file @
1db3e705
geopandas==0.11.0
This diff is collapsed.
Click to expand it.
source/visualizations/plots_for_paper.py
0 → 100644
+
53
−
0
View file @
1db3e705
# general
import
pdb
# plotting
import
matplotlib.pyplot
as
plt
# own package
import
settings
def
station_ids_on_map
():
"""
To analyze what the station ids mean
"""
from
cartopy.io
import
shapereader
import
numpy
as
np
import
geopandas
import
matplotlib.pyplot
as
plt
import
cartopy.crs
as
ccrs
# get natural earth data (http://www.naturalearthdata.com/)
# get country borders
resolution
=
'
10m
'
category
=
'
cultural
'
name
=
'
admin_0_countries
'
shpfilename
=
shapereader
.
natural_earth
(
resolution
,
category
,
name
)
# read the shapefile using geopandas
df
=
geopandas
.
read_file
(
shpfilename
)
# read the german borders
poly
=
df
.
loc
[
df
[
'
ADMIN
'
]
==
'
Germany
'
][
'
geometry
'
].
values
[
0
]
ax
=
plt
.
axes
(
projection
=
ccrs
.
PlateCarree
())
ax
.
add_geometries
(
poly
,
crs
=
ccrs
.
PlateCarree
(),
facecolor
=
'
none
'
,
edgecolor
=
'
0.5
'
)
ax
.
set_extent
([
5
,
16
,
46.5
,
56
],
crs
=
ccrs
.
PlateCarree
())
plt
.
savefig
(
settings
.
output_dir
+
'
station_ids_on_map.png
'
)
if
__name__
==
'
__main__
'
:
station_ids_on_map_
=
True
if
station_ids_on_map_
:
station_ids_on_map
()
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment