Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
PalMod2_DaSt
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
Analyze
Contributor 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
dicad-pp
PalMod2_DaSt
Commits
02ef8375
Commit
02ef8375
authored
3 years ago
by
Martin Schupfner
Browse files
Options
Downloads
Patches
Plain Diff
cmor: fix timeshift
parent
02d0a77a
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cmor/transient-deglaciation-prescribed/scripts/transient-deglaciation-prescribed-glac1d_r1i1p2f2-CR.runpp
+4
-4
4 additions, 4 deletions
...ransient-deglaciation-prescribed-glac1d_r1i1p2f2-CR.runpp
with
4 additions
and
4 deletions
cmor/transient-deglaciation-prescribed/scripts/transient-deglaciation-prescribed-glac1d_r1i1p2f2-CR.runpp
+
4
−
4
View file @
02ef8375
...
...
@@ -257,15 +257,15 @@ else
[[
$1
-ge
${#
iniyeararr
[@]
}
]]
&&
die
'erroneous input - input does not make sense along with the configured iniyear, finyear arrays'
[[
$2
-ge
${#
iniyeararr
[@]
}
]]
&&
die
'erroneous input - input does not make sense along with the configured iniyear, finyear arrays'
[[
$1
-gt
$2
]]
&&
die
'erroneous input - input does not make sense along with the configured iniyear, finyear arrays'
cmorstart
=
$((
$3
+
${
inioffsetarr
[
$1
]
}
))
cmorend
=
$((
$4
+
${
inioffsetarr
[
$2
]
}
))
cmorstart
=
$((
$3
+
${
inioffsetarr
[
$1
]
}
-
$spinup
))
cmorend
=
$((
$4
+
${
inioffsetarr
[
$2
]
}
-
spinup
))
fi
MESSAGE
=
'PalMod2'
$RUN_AGG
&&
MESSAGE+
=
' - Aggregation - '
$RUN_DIAGS
&&
MESSAGE+
=
' - Diagnostics - '
$RUN_CMOR
&&
MESSAGE+
=
" - CMOR rewriting - "
$PROCESS_CLIM
&&
MESSAGE+
=
' for only climatological variables'
print
"
$(
date
+%Y-%m-%dT%H:%M:%S
)
:
$MESSAGE
started for
$
((
cmorstart
-spinup
))
-
$((
cmorend-spinup
))
$SUFFIX
"
print
"
$(
date
+%Y-%m-%dT%H:%M:%S
)
:
$MESSAGE
started for
$
{
cmorstart
}
-
${
cmorend
}
$SUFFIX
"
print
" ... translating to
${
RAW_EXP_IDS
[
$1
]
}
@
$3
to
${
RAW_EXP_IDS
[
$2
]
}
@
$4
"
#exit 0
...
...
@@ -462,7 +462,7 @@ function run_cmor
cd
$current_dir
# perform time shift
cdochain
=
"-shifttime,
$
{
inioffsetarr
[
$y
]
}
year -shifttime,-3day"
cdochain
=
"-shifttime,
$
((
inioffsetarr[
$y
]
-
spinup
))
year -shifttime,-3day"
# Define DRS root dir
dr
=
$dr_trunk
/cmor
${
SUFFIX
}
_
${
cmorstart
}
-
${
cmorend
}${
CLIMSUFFIX
}
...
...
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
register
or
sign in
to comment