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
76cdbe22
Commit
76cdbe22
authored
Aug 24, 2018
by
Mario Chirinos Colunga
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
date directory
parent
a1c33d82
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
L2AproductListToRGB.sh
tools/L2AproductListToRGB.sh
+3
-2
No files found.
tools/L2AproductListToRGB.sh
View file @
76cdbe22
...
@@ -11,10 +11,11 @@ for f in $(find . -type f -name '*.zip')
...
@@ -11,10 +11,11 @@ for f in $(find . -type f -name '*.zip')
do
do
#S2A_MSIL2A_20170515T162341_N0205_R040_T16QBJ_20170515T163103.zip
#S2A_MSIL2A_20170515T162341_N0205_R040_T16QBJ_20170515T163103.zip
filepattern
=
$(
echo
$f
|
cut
-d
"_"
-f6
)
"_"
$(
echo
$f
|
cut
-d
"_"
-f3
)
"_"
#T16QBJ_20170515T162341_
filepattern
=
$(
echo
$f
|
cut
-d
"_"
-f6
)
"_"
$(
echo
$f
|
cut
-d
"_"
-f3
)
"_"
#T16QBJ_20170515T162341_
filename
=
$JP2DIR$filepattern
fileout1
=
$(
echo
$filepattern
|
cut
-d
"_"
-f1
)
#T16QBJ
fileout1
=
$(
echo
$filepattern
|
cut
-d
"_"
-f1
)
#T16QBJ
fileout2
=
$(
echo
$filepattern
|
cut
-d
"_"
-f2
)
#20170515T162341
fileout2
=
$(
echo
$filepattern
|
cut
-d
"_"
-f2
)
#20170515T162341
dateText
=
$(
echo
$fileout2
|
cut
-d
"T"
-f1
)
#20170515
dateText
=
$(
echo
$fileout2
|
cut
-d
"T"
-f1
)
#20170515
filename
=
$JP2DIR$dateText
"/"
$filepattern
echo
$filename
echo
$filename
echo
$JP2DIR$dateText
echo
$JP2DIR$dateText
...
@@ -55,7 +56,7 @@ do
...
@@ -55,7 +56,7 @@ do
## wktToShape.py "$POLYGON" myShape.shp
## wktToShape.py "$POLYGON" myShape.shp
## gdal_rasterize -b 1 -b 2 -b 3 -burn 10 -burn 200 -burn 10 -l wtk myShape.shp $OUTIMG
## gdal_rasterize -b 1 -b 2 -b 3 -burn 10 -burn 200 -burn 10 -l wtk myShape.shp $OUTIMG
##
rm myShape.*
rm
myShape.
*
### convert rgb/$fileout1/$fileout2"_"$fileout1"_t.jpg" -resize 640x480\! rgb/$fileout1/$fileout2"_"$fileout1".jpg"
### convert rgb/$fileout1/$fileout2"_"$fileout1"_t.jpg" -resize 640x480\! rgb/$fileout1/$fileout2"_"$fileout1".jpg"
### rm rgb/$fileout1/$fileout2"_"$fileout1"_t.jpg"
### rm rgb/$fileout1/$fileout2"_"$fileout1"_t.jpg"
## fi
## fi
...
...
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