Skip to content

Commit fc5bd43

Browse files
committed
Update new version
1 parent f35d485 commit fc5bd43

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

docker

Submodule docker updated 1 file

docker-start.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ fi
1919
if [ ! $STARTED ] && [ ! $STOPPED ]; then
2020
echo "Docker run ... "
2121
docker run \
22-
--name twlandsat \
22+
--rm --name twlandsat \
2323
-v $PWD/landsat:/root/landsat \
24-
-i -t jimyhuang/twlandsat \
25-
/bin/bash
24+
-i -t jimyhuang/twlandsat $1
25+
# --entrypoint /home/twlandsat/start.sh
2626
exit
2727
fi

start.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#! /bin/bash
2+
cd /home/twlandsat && git pull
23

34
if [ "$#" -ne 1 ]; then
45
echo -e "\e[1;31m[please add at least 2 argument]\e[0m eg:"
@@ -17,15 +18,16 @@ WORKDIR=`pwd`
1718
NAME=$1
1819
TMP=/tmp/${NAME}
1920
FINAL=${TMP}/final
21+
mkdir -p $FINAL
2022

2123
# 1. download landsat
2224
if [ ! -f $TMP/${NAME}.tar.bz ]; then
2325
echo "Step 1. Downloading ${NAME} ..."
2426
landsat download ${NAME}
27+
mv ~/landsat/downloads/${NAME}.tar.bz ${TMP}/
2528
fi
2629

2730
# 2. Processing image bands, pansharp
28-
mkdir -p $FINAL
2931
mkdir -p ~/landsat/processed/${NAME}
3032
if [ ! -f ~/landsat/processed/${NAME}/final-rgb-pan.TIF.bz2 ]; then
3133
echo "Step 2. Processing ${NAME} to RGB..."

0 commit comments

Comments
 (0)