Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
autoicon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container 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
w2w
autoicon
Commits
feaa2a27
Commit
feaa2a27
authored
1 year ago
by
Oriol Tintó
Browse files
Options
Downloads
Patches
Plain Diff
Fix bug in grid_filename_from_extpar
parent
f7705c7b
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
templates/event-generator/interpolate_sst.sh
+1
-1
1 addition, 1 deletion
templates/event-generator/interpolate_sst.sh
templates/event-generator/prepare_experiment.sh
+1
-1
1 addition, 1 deletion
templates/event-generator/prepare_experiment.sh
with
2 additions
and
2 deletions
templates/event-generator/interpolate_sst.sh
+
1
−
1
View file @
feaa2a27
...
@@ -39,7 +39,7 @@ function grid_filename_from_extpar() {
...
@@ -39,7 +39,7 @@ function grid_filename_from_extpar() {
filename
=
"
$1
"
filename
=
"
$1
"
# This extracts the grid identifier from the filename
# This extracts the grid identifier from the filename
grid_id
=
"
${
filename
:12:1
2
}
"
grid_id
=
"
${
filename
:12:1
3
}
"
# This constructs the new filename
# This constructs the new filename
grid_filename
=
"icon_grid_
${
grid_id
}
.nc"
grid_filename
=
"icon_grid_
${
grid_id
}
.nc"
...
...
This diff is collapsed.
Click to expand it.
templates/event-generator/prepare_experiment.sh
+
1
−
1
View file @
feaa2a27
...
@@ -40,7 +40,7 @@ download_file $BASEURL/${EXTERNAL_PARAMETERS_FILE}
...
@@ -40,7 +40,7 @@ download_file $BASEURL/${EXTERNAL_PARAMETERS_FILE}
function
grid_filename_from_extpar
()
{
function
grid_filename_from_extpar
()
{
local
filename
=
"
$1
"
local
filename
=
"
$1
"
# Extract the grid identifier from the filename
# Extract the grid identifier from the filename
grid_id
=
"
${
filename
:12:1
2
}
"
grid_id
=
"
${
filename
:12:1
3
}
"
grid_filename
=
"icon_grid_
${
grid_id
}
.nc"
grid_filename
=
"icon_grid_
${
grid_id
}
.nc"
echo
"
${
grid_filename
}
"
echo
"
${
grid_filename
}
"
}
}
...
...
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