Commit bfdc79c8 authored by Mario Chirinos's avatar Mario Chirinos

update

parent 62f3378c
......@@ -85,7 +85,7 @@ Este códigos realiza los siguientes pasos.
* **Eliminar imágenes** con que contengan mas de 10% de nubes utilizado el código `imageMissingData.py` del repositorio [**Geosentinel**](http://gitlab.geoint.mx/mario.chirinos/GeoSentinel).
* **Extraer la
* **Extraer los datos de clasificación** de la imagen SCL a un archivo JSON utilizando el código `GI_SCLimageListToJSON.sh`.
###
......@@ -200,13 +200,25 @@ fi
##fi
#7.-Extract SCL information
echo ${RED}"Extracting SCL information..."${NC}
if [ $BYTILE -ne "0" ]; then
echo "BY TILE"
cd $USERDI##8.-Extract SCL morphology
else
echo "BY DATE"
cd $USERDIR"out/mask/SCL/"
if [ ! -d "json" ]; then
mkdir json
fi
GI_SCLimageListToJSON.sh $USERDIR"out/mask/SCL/" $USERDIR"findProducts.json" 6
mv *.json json
cd json
mergeL2ASCL_JSON.py $USERDIR"out/mask/SCL/json/" > $USERDIR"scl_data.json"
fi
##8.-Extract SCL morphology
echo ${RED}"Extracting SCL morphology..."${NC}
if [ $BYTILE -ne "0" ]; then
......@@ -225,31 +237,7 @@ else
fi
#exitR"out/"
# for i in $(ls -d */) ; do
# cd ../out/$i"mask/SCL"
# if [ ! -d "json" ]; then
# mkdir json
# fi
# SCLimageListToJSON.sh $USERDIR"out/"$i"mask/SCL/" $USERDIR"findProducts.json" 6
# mv *.json json
# cd json
# tile=$(echo $i | cut -d "/" -f1)
# mergeL2ASCL_JSON.py $USERDIR"out/"$i"mask/SCL/json/" > $USERDIR$tile"_sclData.json"
# echo $tile
# echo "_sclData.json"
# cd $USERDIR"out/"
# done
#else
# echo "BY DATE"
# cd $USERDIR"out/mask/SCL/"
# if [ ! -d "json" ]; then
# mkdir json
# fi
# GI_SCLimageListToJSON.sh $USERDIR"out/mask/SCL/" $USERDIR"findProducts.json" 6
# mv *.json json
# cd json
# mergeL2ASCL_JSON.py $USERDIR"out/mask/SCL/json/" > $USERDIR"scl_data.json"
#fi
##8.-Extract SCL morphology
#echo ${RED}"Extracting SCL morphology..."${NC}
......
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