Skip to content
Snippets Groups Projects
Commit feaa2a27 authored by Oriol Tintó's avatar Oriol Tintó
Browse files

Fix bug in grid_filename_from_extpar

parent f7705c7b
No related branches found
No related tags found
No related merge requests found
...@@ -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:12}" grid_id="${filename:12:13}"
# This constructs the new filename # This constructs the new filename
grid_filename="icon_grid_${grid_id}.nc" grid_filename="icon_grid_${grid_id}.nc"
......
...@@ -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:12}" grid_id="${filename:12:13}"
grid_filename="icon_grid_${grid_id}.nc" grid_filename="icon_grid_${grid_id}.nc"
echo "${grid_filename}" echo "${grid_filename}"
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment