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 source diff could not be displayed because it is too large. You can view the blob instead.
{
"platform": "Sentinel-2",
"productLevel":"L2A",
"startDate": "20150101",
"startDate": "20190401",
"clouds":"4",
"productsDir":"/home/geoint/NAS/sentinelImages/",
"productsDir":"/data/greenIndex/",
"username":"mario-chirinos",
"password":"r4nc0r4u"
}
......@@ -21,7 +21,10 @@ cd $USERDIR
#0.- Create Shape File From WKT
echo "${RED}Creating Shape file...${NC}"
rm -r myshape
if [ -d "myshape" ]; then
rm -r myshape
fi
wktToShape.py $USERDIR"findProducts.json" "myshape"
......@@ -75,7 +78,7 @@ else
mergeImagesByDirectory.sh $USERDIR"jp2/" $USERDIR"out/" "$wkt" 4
fi
exit
#4.- Mask raster with shape file
echo ${RED}"\nApplying Mask..."${NC}
......@@ -231,24 +234,24 @@ else
mergeL2ASCL_JSON.py $USERDIR"out/mask/SCL/json/" > $USERDIR"scl_data.json"
fi
#8.- Split SCL
echo ${RED}"Spliting SCL image..."${NC}
if [ $BYTILE -ne "0" ]; then
echo "BY TILE"
else
echo "BY DATE"
cd $USERDIR"out/mask/SCL/"
if [ ! -d "split" ]; then
mkdir split
fi
##8.- Split SCL
#echo ${RED}"Spliting SCL image..."${NC}
#if [ $BYTILE -ne "0" ]; then
# echo "BY TILE"
#else
# echo "BY DATE"
# cd $USERDIR"out/mask/SCL/"
# if [ ! -d "split" ]; then
# mkdir split
# fi
for f in $(ls *.tif) ; do
echo $f
splitSCL.py $f split/
done
fi
#
# for f in $(ls *.tif) ; do
# echo $f
# splitSCL.py $f split/
# done
#fi
#9.-Create Tiles
#echo ${RED}"Creating Tiles..."${NC}
......
......@@ -2,11 +2,13 @@
CSV=$1
CFG=$2
mkdir data
if [ ! -d "data" ]; then
mkdir data
fi
cd data
GI_createDirectories.py ../$CSV ../$CFG
for d in */ ; do
for d in $(ls -d */) ; do
echo "PROCESSING " $d ...
if [ ! -f $(pwd)/"$d/scl_data.json" ]; then
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