File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -298,7 +298,7 @@ call_processing_func () {
298
298
local script=" $1 " # script local path
299
299
local chunkTStep=" $2 " # chunking time-frame periods
300
300
301
- local scriptName=$( echo $script | cut -d ' / ' -f 2 ) # script/geotiff name
301
+ local scriptName=$( basename $script | cut -d ' . ' -f 1 ) # script/geotiff name
302
302
303
303
# prepare a script in string format
304
304
# all processing script files must follow same input argument standard
@@ -310,7 +310,7 @@ call_processing_func () {
310
310
# evaluate the script file using the arguments provided
311
311
if [[ " ${funcArgs[jobSubmission]} " == true ]]; then
312
312
# Create a temporary directory for keeping job logs
313
- logDir=" $HOME /scratch/ .gistool_logs/"
313
+ logDir=" $HOME /.gistool_logs/"
314
314
mkdir -p " $logDir "
315
315
# SLURM batch file
316
316
sbatch << - EOF
Original file line number Diff line number Diff line change @@ -240,6 +240,7 @@ if [[ "$printGeotiff" == "true" ]]; then
240
240
echo " $( logDate) $( basename $0 ) : subsetting GeoTIFFs under $outputDir "
241
241
for var in " ${variables[@]} " ; do
242
242
# subset based on lat and lon values
243
+ echo " tif is: " ${geotiffDir} /${var} .tif" "
243
244
subset_geotiff " ${geotiffDir} /${var} .tif" " ${outputDir} /${prefix}${var} .tif"
244
245
done
245
246
fi
You can’t perform that action at this time.
0 commit comments