Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
GeoSentinel
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
GeoSentinel
Commits
a120356c
Commit
a120356c
authored
Feb 21, 2019
by
Irving Sánchez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crea versiones reducidas de las imagenes para deplegarlas en reporte
parent
044c12c2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
3 deletions
+16
-3
L2ASCL_AreaProcessing.sh
tools/L2ASCL_AreaProcessing.sh
+16
-3
No files found.
tools/L2ASCL_AreaProcessing.sh
View file @
a120356c
...
@@ -8,6 +8,8 @@ BYTILE=${2:-0}
...
@@ -8,6 +8,8 @@ BYTILE=${2:-0}
# exit
# exit
#fi
#fi
echo
"Iniciando proceso..."
echo
$USERDIR
"findProducts.json"
wkt
=
$(
getJSONparameter.py
$USERDIR
"findProducts.json"
wkt
)
wkt
=
$(
getJSONparameter.py
$USERDIR
"findProducts.json"
wkt
)
RED
=
'\033[0;31m'
RED
=
'\033[0;31m'
NC
=
'\033[0m'
# No Color
NC
=
'\033[0m'
# No Color
...
@@ -37,7 +39,7 @@ L2AProductListExtractData.sh $USERDIR"L2A/" $USERDIR"jp2/" 4
...
@@ -37,7 +39,7 @@ L2AProductListExtractData.sh $USERDIR"L2A/" $USERDIR"jp2/" 4
#3.- Merge Images
#3.- Merge Images
echo
"Merging Images..."
echo
"
*************************************************
Merging Images..."
if
[
$BYTILE
-ne
"0"
]
;
then
if
[
$BYTILE
-ne
"0"
]
;
then
echo
"BY TILE"
echo
"BY TILE"
cd
$USERDIR
"jp2/"
cd
$USERDIR
"jp2/"
...
@@ -59,7 +61,7 @@ fi
...
@@ -59,7 +61,7 @@ fi
#4.- Delete images with few data
#4.- Delete images with few data
echo
"Deleting Images..."
echo
"
******************************************************
Deleting Images..."
if
[
$BYTILE
-ne
"0"
]
;
then
if
[
$BYTILE
-ne
"0"
]
;
then
echo
"BY TILE"
echo
"BY TILE"
cd
$USERDIR
"jp2/"
cd
$USERDIR
"jp2/"
...
@@ -82,6 +84,9 @@ if [ $BYTILE -ne "0" ]; then
...
@@ -82,6 +84,9 @@ if [ $BYTILE -ne "0" ]; then
done
done
cd
../TCI
cd
../TCI
mogrify
-format
jpg
-quality
100
*
.tif
mogrify
-format
jpg
-quality
100
*
.tif
mkdir
thumbnails
mogrify
-path
./thumbnails
-resize
10%
*
.jpg
cd
$USERDIR
"jp2/"
cd
$USERDIR
"jp2/"
done
done
...
@@ -106,10 +111,12 @@ else
...
@@ -106,10 +111,12 @@ else
cd
../TCI
cd
../TCI
echo
"mogrify -format jpg -quality 100 *.tif"
echo
"mogrify -format jpg -quality 100 *.tif"
mogrify
-format
jpg
-quality
100
*
.tif
mogrify
-format
jpg
-quality
100
*
.tif
mkdir
thumbnails
mogrify
-path
./thumbnails
-resize
10%
*
.jpg
fi
fi
#5.-Extract SCL information
#5.-Extract SCL information
echo
"Extracting SCL information..."
echo
"
****************************************************
Extracting SCL information..."
cd
$USERDIR
"jp2/"
cd
$USERDIR
"jp2/"
if
[
$BYTILE
-ne
"0"
]
;
then
if
[
$BYTILE
-ne
"0"
]
;
then
echo
"BY TILE"
echo
"BY TILE"
...
@@ -123,6 +130,8 @@ if [ $BYTILE -ne "0" ]; then
...
@@ -123,6 +130,8 @@ if [ $BYTILE -ne "0" ]; then
cd
json
cd
json
tile
=
$(
echo
$i
|
cut
-d
"/"
-f1
)
tile
=
$(
echo
$i
|
cut
-d
"/"
-f1
)
mergeL2ASCL_JSON.py
$USERDIR
"out/"
$i
"SCL/json/"
>
$USERDIR$tile
"_sclData.json"
mergeL2ASCL_JSON.py
$USERDIR
"out/"
$i
"SCL/json/"
>
$USERDIR$tile
"_sclData.json"
echo
$tile
echo
"_sclData.json"
cd
$USERDIR
"jp2/"
cd
$USERDIR
"jp2/"
done
done
else
else
...
@@ -136,5 +145,9 @@ else
...
@@ -136,5 +145,9 @@ else
cd
json
cd
json
mergeL2ASCL_JSON.py
$USERDIR
"jp2/merge_out/SCL/json/"
>
$USERDIR
"scl_data.json"
mergeL2ASCL_JSON.py
$USERDIR
"jp2/merge_out/SCL/json/"
>
$USERDIR
"scl_data.json"
fi
fi
echo
"Archivo"
echo
$USERDIR
#mv *SCL_60m.tif json
#mv *SCL_60m.tif json
#cd json
#cd json
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