Skip to content

Commit

Permalink
lower bound defaults for -j in parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
davidfrantz committed Dec 20, 2023
1 parent 623fb9e commit 4002373
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions bash/force-mosaic.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ Usage: $PROG [-h] [-v] [-i] [-j] [-m] datacube-dir
-v = show version
-i = show program's purpose
-j = number of parallel processes (default: all)
-j = number of parallel processes, defaults to 1
-m = mosaic directory (default: mosaic)
This should be a directory relative to the tiles
Expand Down Expand Up @@ -144,7 +144,7 @@ eval set -- "$ARGS"

# default options
MOSAIC='mosaic'
CPU=0
CPU=1

while :; do
case "$1" in
Expand Down
4 changes: 2 additions & 2 deletions bash/force-procmask.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ Usage: $PROG [-sldobj] input-basename calc-expr
-b = basename of output file (without extension)
defaults to the basename of the input-file,
appended by '_procmask'
-j = number of jobs, defaults to 'as many as possible'
-j = number of jobs, defaults to 1
Positional arguments:
- input-basename: basename of input data
Expand Down Expand Up @@ -121,7 +121,7 @@ LAYER=1
DINP=$PWD
DOUT=$PWD
OBASE="DEFAULT"
NJOB=0
NJOB=1

while :; do
case "$1" in
Expand Down
4 changes: 2 additions & 2 deletions bash/force-pyramid.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Usage: $PROG [-hjrl] image [image]*
-h = show his help
-j = number of jobs
defaults to 'as many as possible'
defaults to 1
-r = resampling option
default: nearest
-l = levels, comma-separated
Expand All @@ -76,7 +76,7 @@ if [ $? != 0 ] ; then help; fi
eval set -- "$ARGS"

# default options
NJOB=0
NJOB=1
LEVELS="2,4,8,16"
RESAMPLE="nearest"

Expand Down

0 comments on commit 4002373

Please sign in to comment.