Commit ddd65317 authored by Mario Chirinos Colunga's avatar Mario Chirinos Colunga 💬

processing

parent f233d393
No preview for this file type
...@@ -15,8 +15,8 @@ NC='\033[0m' # No Color ...@@ -15,8 +15,8 @@ NC='\033[0m' # No Color
echo $USERDIR echo $USERDIR
cd $USERDIR cd $USERDIR
#Link L2A products #1.- Link L2A products
echo "Linking Products" echo "Linking Products..."
if [ ! -d "L2A" ]; then if [ ! -d "L2A" ]; then
mkdir L2A mkdir L2A
fi fi
...@@ -25,13 +25,34 @@ cd L2A ...@@ -25,13 +25,34 @@ cd L2A
cd .. cd ..
echo yes | findProducts.py $USERDIR"findProducts.json" echo yes | findProducts.py $USERDIR"findProducts.json"
#Extract Images #2.- Extract Images
echo "Extracting JP2 Images" echo "Extracting JP2 Images..."
if [ ! -d "jp2" ]; then if [ ! -d "jp2" ]; then
mkdir jp2 mkdir jp2
fi fi
L2AProductListExtractData.sh $USERDIR"L2A/" $USERDIR"jp2/" 4 L2AProductListExtractData.sh $USERDIR"L2A/" $USERDIR"jp2/" 4
#Merge Images #3.- Merge Images
echo "Merging Images" echo "Merging Images..."
mergeImagesByDirectory.sh $USERDIR"jp2/" "$WKT" 4 mergeImagesByDirectory.sh $USERDIR"jp2/" "$WKT" 4
#4.- Delete images with few data
cd jp2/merged_out/
if [ ! -d "SCL" ]; then
mkdir SCL
fi
cp *SCL_20m.tif SCL
cd SCL
ls *.tif | parallel --jobs 4 imageMissingData.py {} 50
##for tci in $($ls *.tif)
##do
## fileprefix=$(echo tci )
##done
cd $USERDIR
##Extract SCL information
#if [ ! -d "json" ]; then
# mkdir json
#fi
#mv *SCL_20m.tif json
#cd json
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