Skip to content

Commit

Permalink
Whitespace breaks bash var assignments?
Browse files Browse the repository at this point in the history
  • Loading branch information
dmannarino committed Oct 29, 2024
1 parent 6b12cab commit ba4a1a2
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions batch/scripts/unify_projection.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,27 +12,14 @@ ME=$(basename "$0")

echo "Reproject to a common CRS"

# Build an array of arguments to pass to unify_projection.py
#ARG_ARRAY=("--source" "${SRC}")
#
#ARG_ARRAY+=("--target" "${TARGET}")
#
#ARG_ARRAY+=("--target-crs" "${TARGET_CRS}")

# Run unify_projection.py with the array of arguments
#unify_projection.py "${ARG_ARRAY[@]}"

#gdist="gs://earthenginepartners-hansen/DIST-ALERT"

# files=""
# for i in {2..60}; do files="$files $i.tif"; done
# Skip 01.tif, 59.tif, and 60.tif for now (problems around the date line)
files="02.tif 03.tif 04.tif 05.tif 06.tif 07.tif 08.tif 09.tif 10.tif 11.tif 12.tif 13.tif 14.tif 15.tif 16.tif 17.tif 18.tif 19.tif 20.tif 21.tif 22.tif 23.tif 24.tif 25.tif 26.tif 27.tif 28.tif 29.tif 30.tif 31.tif 32.tif 33.tif 34.tif 35.tif 36.tif 37.tif 38.tif 39.tif 40.tif 41.tif 42.tif 43.tif 44.tif 45.tif 46.tif 47.tif 48.tif 49.tif 50.tif 51.tif 52.tif 53.tif 54.tif 55.tif 56.tif 57.tif 58.tif"

src_count = 0
src_count=0

cd /tmp
rm -f /tmp/*tif*
for s in ${SRC}; do
for f in ${files}; do
remote_target_file=${TARGET}/SRC_${src_count}/${f}
Expand Down

0 comments on commit ba4a1a2

Please sign in to comment.