Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
greenIndex
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
greenIndex
Commits
843059f7
Commit
843059f7
authored
Aug 09, 2020
by
Mario Chirinos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
efe6b792
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
44 additions
and
38 deletions
+44
-38
.~lock.sembrandovida.csv#
data/.~lock.sembrandovida.csv#
+1
-0
09.csv
data/ent/09.csv
+16
-16
settings.json
data/settings.json
+2
-2
GI_L2ASCL_AreaProcessing.sh
scripts/GI_L2ASCL_AreaProcessing.sh
+21
-18
GI_runAnalysis.sh
scripts/GI_runAnalysis.sh
+4
-2
No files found.
data/.~lock.sembrandovida.csv#
0 → 100644
View file @
843059f7
,mchc,debian-mchc.lan,14.11.2019 16:43,file:///home/mchc/.config/libreoffice/4;
\ No newline at end of file
data/ent/09.csv
View file @
843059f7
This diff is collapsed.
Click to expand it.
data/settings.json
View file @
843059f7
{
{
"platform"
:
"Sentinel-2"
,
"platform"
:
"Sentinel-2"
,
"productLevel"
:
"L2A"
,
"productLevel"
:
"L2A"
,
"startDate"
:
"201
501
01"
,
"startDate"
:
"201
904
01"
,
"clouds"
:
"4"
,
"clouds"
:
"4"
,
"productsDir"
:
"/
home/geoint/NAS/sentinelImages
/"
,
"productsDir"
:
"/
data/greenIndex
/"
,
"username"
:
"mario-chirinos"
,
"username"
:
"mario-chirinos"
,
"password"
:
"r4nc0r4u"
"password"
:
"r4nc0r4u"
}
}
scripts/GI_L2ASCL_AreaProcessing.sh
View file @
843059f7
...
@@ -21,7 +21,10 @@ cd $USERDIR
...
@@ -21,7 +21,10 @@ 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
}
"
rm
-r
myshape
if
[
-d
"myshape"
]
;
then
rm
-r
myshape
fi
wktToShape.py
$USERDIR
"findProducts.json"
"myshape"
wktToShape.py
$USERDIR
"findProducts.json"
"myshape"
...
@@ -75,7 +78,7 @@ else
...
@@ -75,7 +78,7 @@ else
mergeImagesByDirectory.sh
$USERDIR
"jp2/"
$USERDIR
"out/"
"
$wkt
"
4
mergeImagesByDirectory.sh
$USERDIR
"jp2/"
$USERDIR
"out/"
"
$wkt
"
4
fi
fi
exit
#4.- Mask raster with shape file
#4.- Mask raster with shape file
echo
${
RED
}
"
\n
Applying Mask..."
${
NC
}
echo
${
RED
}
"
\n
Applying Mask..."
${
NC
}
...
@@ -231,24 +234,24 @@ else
...
@@ -231,24 +234,24 @@ else
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.- 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
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
"split"
]
;
then
#
if [ ! -d "split" ]; then
mkdir split
#
mkdir split
fi
#
fi
#
for
f
in
$(
ls
*
.tif
)
;
do
#
for f in $(ls *.tif) ; do
echo
$f
#
echo $f
splitSCL.py
$f
split
/
#
splitSCL.py $f split/
done
#
done
fi
#
fi
#9.-Create Tiles
#9.-Create Tiles
#echo ${RED}"Creating Tiles..."${NC}
#echo ${RED}"Creating Tiles..."${NC}
...
...
scripts/GI_runAnalysis.sh
View file @
843059f7
...
@@ -2,11 +2,13 @@
...
@@ -2,11 +2,13 @@
CSV
=
$1
CSV
=
$1
CFG
=
$2
CFG
=
$2
mkdir
data
if
[
!
-d
"data"
]
;
then
mkdir
data
fi
cd
data
cd
data
GI_createDirectories.py ../
$CSV
../
$CFG
GI_createDirectories.py ../
$CSV
../
$CFG
for
d
in
*
/
;
do
for
d
in
$(
ls
-d
*
/
)
;
do
echo
"PROCESSING "
$d
...
echo
"PROCESSING "
$d
...
if
[
!
-f
$(
pwd
)
/
"
$d
/scl_data.json"
]
;
then
if
[
!
-f
$(
pwd
)
/
"
$d
/scl_data.json"
]
;
then
GI_L2ASCL_AreaProcessing.sh
$(
pwd
)
/
"
$d
"
0
GI_L2ASCL_AreaProcessing.sh
$(
pwd
)
/
"
$d
"
0
...
...
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