Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lumi-transfer
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
lumi-transfer
Compare revisions
da53229d49314b8b9533b032210a1acda45adafa to d72b633f421c64c9b8eea5a253c20f683d8f97d1
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
lkluft/lumi-transfer
Select target project
No results found
d72b633f421c64c9b8eea5a253c20f683d8f97d1
Select Git revision
Swap
Target
lkluft/lumi-transfer
Select target project
lkluft/lumi-transfer
1 result
da53229d49314b8b9533b032210a1acda45adafa
Select Git revision
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (2)
Update path for remapping weights
· fb0ba3ba
Lukas Kluft
authored
1 month ago
fb0ba3ba
Choose between atmosphere/ocean remapping weights
· d72b633f
Lukas Kluft
authored
1 month ago
d72b633f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
remap.sh
+9
-2
9 additions, 2 deletions
remap.sh
with
9 additions
and
2 deletions
remap.sh
View file @
d72b633f
...
...
@@ -10,7 +10,7 @@ set -o errexit -o nounset -o xtrace
export
HDF5_PLUGIN_PATH
=
'/appl/local/climatedt/sw/netcdf-plugins/'
# Pre-computed remapping weights (ICON > HEALPix)
weightsdir
=
'/appl/local/climatedt/pool/data/ICON/healpix_weights'
weightsdir
=
'/appl/local/climatedt/pool/data/ICON/healpix_weights
/weights
'
src_grid
=
"R02B10"
tgt_grid
=
"hpz9"
...
...
@@ -23,6 +23,13 @@ outfile_part=${outdir}/$(basename $infile).partial
mkdir
-p
$outdir
# Choose ocean/atmosphere remapping weights
if
[[
$infile
==
*
oce
*
]]
;
then
weightsfile
=
"
$weightsdir
/weights_
${
src_grid
}
_O_
${
tgt_grid
}
.nc"
else
weightsfile
=
"
$weightsdir
/weights_
${
src_grid
}
_G_
${
tgt_grid
}
.nc"
fi
if
[
!
-f
$outfile
]
;
then
# Remap, chunk, and compress the given input file
cdo
\
...
...
@@ -31,7 +38,7 @@ if [ ! -f $outfile ]; then
--chunktype
auto
\
--chunksize
$((
4
**
9
))
\
--num_threads
4
\
-remap
,
$tgt_grid
,
"
$weights
dir
/weights_
${
src_grid
}
_
${
tgt_grid
}
.nc"
\
-remap
,
$tgt_grid
,
$weights
file
\
$infile
$outfile_part
ncrename
-d
cells,cell
$outfile_part
...
...
This diff is collapsed.
Click to expand it.