Commit a68241fc authored by Mario Chirinos's avatar Mario Chirinos

readme

parent f2fa7b64
......@@ -54,7 +54,8 @@ El comportamiento de los códigos esta controlado por el archivo **data/settings
cp ~/git-sedema/sedema-av/data/settings.json ~/resultados/
cp ~/git-sedema/sedema-av/data/poligonos-CDMX.csv ~/resultados/
cd ~/resultados/
sh GI_runAnalysis.sh poligonos-CDMX.csv settings.json resultados
mkdir 2020
GI_runAnalisis.sh poligonos-CDMX.csv settings.json resultados
```
## Datos Generados
Los datos generados se encuentran en dos archivos **resultados/minmax_4.csv** y **resultados/morphology_4.csv**
......
......@@ -19,24 +19,24 @@ echo $wkt
echo $USERDIR
cd $USERDIR
##0.- Create Shape File From WKT
#echo "${RED}Creating Shape file...${NC}"
#if [ -d "myshape" ]; then
# rm -r myshape
#fi
#0.- Create Shape File From WKT
echo "${RED}Creating Shape file...${NC}"
if [ -d "myshape" ]; then
rm -r myshape
fi
#wktToShape.py $USERDIR"findProducts.json" "myshape"
wktToShape.py $USERDIR"findProducts.json" "myshape"
##1.- Link L2A products
#echo ${RED}"Linking Products..."${NC}
#if [ ! -d "L2A" ]; then
# mkdir L2A
#fi
#cd L2A
# rm *
#cd ..
#yes yes | findProducts.py $USERDIR"findProducts.json"
#1.- Download and Link L2A products
echo ${RED}"Linking Products..."${NC}
if [ ! -d "L2A" ]; then
mkdir L2A
fi
cd L2A
rm *
cd ..
yes yes | findProducts.py $USERDIR"findProducts.json"
##2.- Extract Images
......@@ -206,7 +206,24 @@ cd $USERDIR
#if [ $BYTILE -ne "0" ]; then
# echo "BY TILE"
# cd $USERDIR"out/"
# cd $USERDI##8.-Extract SCL morphology
#echo ${RED}"Extracting SCL morphology..."${NC}
#if [ $BYTILE -ne "0" ]; then
# echo "BY TILE"
#else
# echo "BY DATE"
# cd $USERDIR"out/mask/SCL/"
# if [ ! -d "morph" ]; then
# mkdir morph
# fi
# GI_SCLmorphImageListToJSON.sh $USERDIR"out/mask/SCL/" $USERDIR"findProducts.json" 6
# mv *.json morph
# cd morph
# mergeL2ASCL_JSON.py $USERDIR"out/mask/SCL/morph/" > $USERDIR"scl_morph.json"
#fi
#exitR"out/"
# for i in $(ls -d */) ; do
# cd ../out/$i"mask/SCL"
......@@ -233,24 +250,24 @@ cd $USERDIR
# 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
echo "BY TILE"
else
echo "BY DATE"
cd $USERDIR"out/mask/SCL/"
if [ ! -d "morph" ]; then
mkdir morph
fi
GI_SCLmorphImageListToJSON.sh $USERDIR"out/mask/SCL/" $USERDIR"findProducts.json" 6
mv *.json morph
cd morph
mergeL2ASCL_JSON.py $USERDIR"out/mask/SCL/morph/" > $USERDIR"scl_morph.json"
fi
exit
##8.-Extract SCL morphology
#echo ${RED}"Extracting SCL morphology..."${NC}
#if [ $BYTILE -ne "0" ]; then
# echo "BY TILE"
#else
# echo "BY DATE"
# cd $USERDIR"out/mask/SCL/"
# if [ ! -d "morph" ]; then
# mkdir morph
# fi
# GI_SCLmorphImageListToJSON.sh $USERDIR"out/mask/SCL/" $USERDIR"findProducts.json" 6
# mv *.json morph
# cd morph
# mergeL2ASCL_JSON.py $USERDIR"out/mask/SCL/morph/" > $USERDIR"scl_morph.json"
#fi
#exit
##8.- Split SCL
#echo ${RED}"Spliting SCL image..."${NC}
#if [ $BYTILE -ne "0" ]; then
......
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