Commit 843059f7 authored by Mario Chirinos's avatar Mario Chirinos

update

parent efe6b792
,mchc,debian-mchc.lan,14.11.2019 16:43,file:///home/mchc/.config/libreoffice/4;
\ No newline at end of file
This diff is collapsed.
{ {
"platform": "Sentinel-2", "platform": "Sentinel-2",
"productLevel":"L2A", "productLevel":"L2A",
"startDate": "20150101", "startDate": "20190401",
"clouds":"4", "clouds":"4",
"productsDir":"/home/geoint/NAS/sentinelImages/", "productsDir":"/data/greenIndex/",
"username":"mario-chirinos", "username":"mario-chirinos",
"password":"r4nc0r4u" "password":"r4nc0r4u"
} }
...@@ -21,7 +21,10 @@ cd $USERDIR ...@@ -21,7 +21,10 @@ cd $USERDIR
#0.- Create Shape File From WKT #0.- Create Shape File From WKT
echo "${RED}Creating Shape file...${NC}" echo "${RED}Creating Shape file...${NC}"
rm -r myshape if [ -d "myshape" ]; then
rm -r myshape
fi
wktToShape.py $USERDIR"findProducts.json" "myshape" wktToShape.py $USERDIR"findProducts.json" "myshape"
...@@ -75,7 +78,7 @@ else ...@@ -75,7 +78,7 @@ else
mergeImagesByDirectory.sh $USERDIR"jp2/" $USERDIR"out/" "$wkt" 4 mergeImagesByDirectory.sh $USERDIR"jp2/" $USERDIR"out/" "$wkt" 4
fi fi
exit
#4.- Mask raster with shape file #4.- Mask raster with shape file
echo ${RED}"\nApplying Mask..."${NC} echo ${RED}"\nApplying Mask..."${NC}
...@@ -231,24 +234,24 @@ else ...@@ -231,24 +234,24 @@ else
mergeL2ASCL_JSON.py $USERDIR"out/mask/SCL/json/" > $USERDIR"scl_data.json" mergeL2ASCL_JSON.py $USERDIR"out/mask/SCL/json/" > $USERDIR"scl_data.json"
fi fi
#8.- Split SCL ##8.- Split SCL
echo ${RED}"Spliting SCL image..."${NC} #echo ${RED}"Spliting SCL image..."${NC}
if [ $BYTILE -ne "0" ]; then #if [ $BYTILE -ne "0" ]; then
echo "BY TILE" # echo "BY TILE"
else #else
echo "BY DATE" # echo "BY DATE"
cd $USERDIR"out/mask/SCL/" # cd $USERDIR"out/mask/SCL/"
if [ ! -d "split" ]; then # if [ ! -d "split" ]; then
mkdir split # mkdir split
fi # fi
#
for f in $(ls *.tif) ; do # for f in $(ls *.tif) ; do
echo $f # echo $f
splitSCL.py $f split/ # splitSCL.py $f split/
done # done
fi #fi
#9.-Create Tiles #9.-Create Tiles
#echo ${RED}"Creating Tiles..."${NC} #echo ${RED}"Creating Tiles..."${NC}
......
...@@ -2,11 +2,13 @@ ...@@ -2,11 +2,13 @@
CSV=$1 CSV=$1
CFG=$2 CFG=$2
mkdir data if [ ! -d "data" ]; then
mkdir data
fi
cd data cd data
GI_createDirectories.py ../$CSV ../$CFG GI_createDirectories.py ../$CSV ../$CFG
for d in */ ; do for d in $(ls -d */) ; do
echo "PROCESSING " $d ... echo "PROCESSING " $d ...
if [ ! -f $(pwd)/"$d/scl_data.json" ]; then if [ ! -f $(pwd)/"$d/scl_data.json" ]; then
GI_L2ASCL_AreaProcessing.sh $(pwd)/"$d" 0 GI_L2ASCL_AreaProcessing.sh $(pwd)/"$d" 0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment