Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
SEDEMA-AV
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Mario Chirinos Colunga
SEDEMA-AV
Commits
a68241fc
Commit
a68241fc
authored
Dec 22, 2020
by
Mario Chirinos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
readme
parent
f2fa7b64
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
53 additions
and
35 deletions
+53
-35
README.md
README.md
+2
-1
GI_L2ASCL_AreaProcessing.sh
scripts/GI_L2ASCL_AreaProcessing.sh
+51
-34
No files found.
README.md
View file @
a68241fc
...
...
@@ -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**
...
...
scripts/GI_L2ASCL_AreaProcessing.sh
View file @
a68241fc
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment