Skip to content

Commit 5e92617

Browse files
Updating gistool
1 parent f2515ba commit 5e92617

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

extract-gis.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ call_processing_func () {
298298
local script="$1" # script local path
299299
local chunkTStep="$2" # chunking time-frame periods
300300

301-
local scriptName=$(echo $script | cut -d '/' -f 2) # script/geotiff name
301+
local scriptName=$(basename $script | cut -d '.' -f 1) # script/geotiff name
302302

303303
# prepare a script in string format
304304
# all processing script files must follow same input argument standard
@@ -310,7 +310,7 @@ call_processing_func () {
310310
# evaluate the script file using the arguments provided
311311
if [[ "${funcArgs[jobSubmission]}" == true ]]; then
312312
# Create a temporary directory for keeping job logs
313-
logDir="$HOME/scratch/.gistool_logs/"
313+
logDir="$HOME/.gistool_logs/"
314314
mkdir -p "$logDir"
315315
# SLURM batch file
316316
sbatch <<- EOF

soil_class/soil_class.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,7 @@ if [[ "$printGeotiff" == "true" ]]; then
240240
echo "$(logDate)$(basename $0): subsetting GeoTIFFs under $outputDir"
241241
for var in "${variables[@]}"; do
242242
# subset based on lat and lon values
243+
echo "tif is: "${geotiffDir}/${var}.tif""
243244
subset_geotiff "${geotiffDir}/${var}.tif" "${outputDir}/${prefix}${var}.tif"
244245
done
245246
fi

0 commit comments

Comments
 (0)