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 ...@@ -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/settings.json ~/resultados/
cp ~/git-sedema/sedema-av/data/poligonos-CDMX.csv ~/resultados/ cp ~/git-sedema/sedema-av/data/poligonos-CDMX.csv ~/resultados/
cd ~/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 ## Datos Generados
Los datos generados se encuentran en dos archivos **resultados/minmax_4.csv** y **resultados/morphology_4.csv** Los datos generados se encuentran en dos archivos **resultados/minmax_4.csv** y **resultados/morphology_4.csv**
......
...@@ -19,24 +19,24 @@ echo $wkt ...@@ -19,24 +19,24 @@ echo $wkt
echo $USERDIR echo $USERDIR
cd $USERDIR 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}"
#if [ -d "myshape" ]; then if [ -d "myshape" ]; then
# rm -r myshape rm -r myshape
#fi fi
#wktToShape.py $USERDIR"findProducts.json" "myshape" wktToShape.py $USERDIR"findProducts.json" "myshape"
##1.- Link L2A products #1.- Download and Link L2A products
#echo ${RED}"Linking Products..."${NC} echo ${RED}"Linking Products..."${NC}
#if [ ! -d "L2A" ]; then if [ ! -d "L2A" ]; then
# mkdir L2A mkdir L2A
#fi fi
#cd L2A cd L2A
# rm * rm *
#cd .. cd ..
#yes yes | findProducts.py $USERDIR"findProducts.json" yes yes | findProducts.py $USERDIR"findProducts.json"
##2.- Extract Images ##2.- Extract Images
...@@ -206,7 +206,24 @@ cd $USERDIR ...@@ -206,7 +206,24 @@ cd $USERDIR
#if [ $BYTILE -ne "0" ]; then #if [ $BYTILE -ne "0" ]; then
# echo "BY TILE" # 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 # for i in $(ls -d */) ; do
# cd ../out/$i"mask/SCL" # cd ../out/$i"mask/SCL"
...@@ -233,24 +250,24 @@ cd $USERDIR ...@@ -233,24 +250,24 @@ cd $USERDIR
# cd json # cd json
# 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.-Extract SCL morphology ##8.-Extract SCL morphology
echo ${RED}"Extracting SCL morphology..."${NC} #echo ${RED}"Extracting SCL morphology..."${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 "morph" ]; then # if [ ! -d "morph" ]; then
mkdir morph # mkdir morph
fi # fi
GI_SCLmorphImageListToJSON.sh $USERDIR"out/mask/SCL/" $USERDIR"findProducts.json" 6 # GI_SCLmorphImageListToJSON.sh $USERDIR"out/mask/SCL/" $USERDIR"findProducts.json" 6
mv *.json morph # mv *.json morph
cd morph # cd morph
mergeL2ASCL_JSON.py $USERDIR"out/mask/SCL/morph/" > $USERDIR"scl_morph.json" # mergeL2ASCL_JSON.py $USERDIR"out/mask/SCL/morph/" > $USERDIR"scl_morph.json"
fi #fi
exit #exit
##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
......
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