Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PET
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
ch1187
plugins4freva
PET
Merge requests
!3
Generalization
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Generalization
generalization
into
plugin_template
Overview
36
Commits
80
Pipelines
32
Changes
1
Merged
Bianca Wentzel
requested to merge
generalization
into
plugin_template
4 months ago
Overview
36
Commits
80
Pipelines
32
Changes
1
Expand
Changes:
Adapted plugin to work with CMORized data retrieved from the databrowser
Input parameters now retrieved from JSON file
Added regional selection and changed selection of time covering dates
Adapted test data, production and functional tests
Added additional logs/output
Refactored some code to follow DRY and for better readability
@k202187
Could you please have a look?
0
0
Merge request reports
Viewing commit
b0aeaec1
Prev
Next
Show latest version
1 file
+
0
−
29
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
b0aeaec1
Removed unused functions checking varnames
· b0aeaec1
Bianca Wentzel
authored
3 months ago
src/pet/pet_functions.sh
+
0
−
29
Options
@@ -4,35 +4,6 @@
#
# SPDX-License-Identifier: BSD-3-Clause
check_var_name
()
{
# check for same variable name from settings and file with 1 variable inside
# $1: var_name from settings
# $2: var_name from file
if
[
"
$1
"
!=
"
$2
"
]
;
then
echo
"ERROR variable name:
$1
$2
"
###to-do: exit script with error message exit /b
fi
}
check_var_names
()
{
# check for same variable name from settings and file with many variable inside
# $1: var_name from settings
# $2...$n: var_names from file, String (HHL HSURF FR_LAND DEPTH_LK FR_LAKE SOILTYP FIELDCAP PORVOL WILPOINT)
local
stringarray
=(
${
@
:2
}
)
# without first element ($1)
found
=
false
for
i
in
"
${
stringarray
[@]
}
"
do
# echo $i
if
[
"
$i
"
==
"
$1
"
]
;
then
found
=
true
fi
done
if
[
"
$found
"
=
"false"
]
;
then
echo
"ERROR variable name:
$1
$2
"
###to-do: exit script with error message exit /b
fi
}
get_unit
()
{
# extract the unit of variable
# searching for "....." and cut out without ""
Loading