Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
climatedt-request
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
lkluft
climatedt-request
Compare revisions
d71ff08dca1e88152db6fadd92402a58e5df9b0b to 5ec1674bc917e21ee813e3f1351c052dcd02720f
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
lkluft/climatedt-request
Select target project
No results found
5ec1674bc917e21ee813e3f1351c052dcd02720f
Select Git revision
Branches
main
Swap
Target
lkluft/climatedt-request
Select target project
lkluft/climatedt-request
1 result
d71ff08dca1e88152db6fadd92402a58e5df9b0b
Select Git revision
Branches
main
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (3)
Flush python output for correct log order
· c2860231
Lukas Kluft
authored
10 months ago
c2860231
Only create non-existing weights
· a164a5b5
Lukas Kluft
authored
10 months ago
a164a5b5
Process GRIB data per month for better performance
· 5ec1674b
Lukas Kluft
authored
10 months ago
5ec1674b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
postprocess.sh
+11
-7
11 additions, 7 deletions
postprocess.sh
request.py
+1
-1
1 addition, 1 deletion
request.py
with
12 additions
and
8 deletions
postprocess.sh
View file @
5ec1674b
...
...
@@ -7,11 +7,15 @@ set -o errexit -o nounset -o xtrace
weights_file
=
'weights/weights_hpz10_global_1x1.nc'
cdo
\
-f
nc4
\
-gennn
,global_1x1
\
-const
,1,hpz7
\
"
${
weights_file
}
"
if
[[
!
-f
$weights_file
]]
;
then
cdo
\
-f
nc4
\
-gennn
,global_1x1
\
-const
,1,hpz7
\
"
${
weights_file
}
"
fi
year
=
$1
cdo
\
-f
nc4
\
...
...
@@ -20,5 +24,5 @@ cdo \
-hpdegrade
,nside
=
128
\
-monmean
\
-mergetime
\
data/icon_historical_
*
.grib2
\
data/icon_historical_
1992
.nc
data/icon_historical_
${
year
}
*
.grib2
\
data/icon_historical_
monmean_1x1_
${
year
}
.nc
This diff is collapsed.
Click to expand it.
request.py
View file @
5ec1674b
...
...
@@ -52,7 +52,7 @@ def download(year=1992):
outfile
=
f
"
data/icon_historical_
{
year
}{
month
:
02
d
}
.grib2
"
if
Path
(
outfile
).
is_file
():
print
(
f
"
{
outfile
}
already exists.
"
)
print
(
f
"
{
outfile
}
already exists.
"
,
flush
=
True
)
continue
files
=
client
.
retrieve
(
...
...
This diff is collapsed.
Click to expand it.