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
b3dad082
Commit
b3dad082
authored
Sep 29, 2018
by
Mario Chirinos Colunga
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
readme MD
parent
47afccbf
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
50 additions
and
2 deletions
+50
-2
README.md
README.md
+1
-1
L2AProductListExtractData.sh
tools/L2AProductListExtractData.sh
+48
-0
L2AproductListToRGB.sh
tools/L2AproductListToRGB.sh
+1
-1
No files found.
README.md
View file @
b3dad082
...
...
@@ -81,5 +81,5 @@ L1CProductListToL2A.sh /home/geoint/NAS/sentinelImages/ 12
## GRDHL2 Product generation (`tools/GRDHroductListToGRDHL2.sh`)
## Extract Images from Product ZIP File (`L2AProductListExtractData.sh`)
tools/L2AProductListExtractData.sh
0 → 100755
View file @
b3dad082
#!/bin/sh
PRODCUTSDIR
=
$1
#Products directory
JP2DIR
=
$2
#JP2 Directory
cd
$PRODCUTSDIR
for
f
in
$(
find
.
-type
f
-name
'*.zip'
)
do
#S2A_MSIL2A_20170515T162341_N0205_R040_T16QBJ_20170515T163103.zip
filepattern
=
$(
echo
$f
|
cut
-d
"_"
-f6
)
"_"
$(
echo
$f
|
cut
-d
"_"
-f3
)
"_"
#T16QBJ_20170515T162341_
tile
=
$(
echo
$filepattern
|
cut
-d
"_"
-f1
)
#T16QBJ
datetime
=
$(
echo
$filepattern
|
cut
-d
"_"
-f2
)
#20170515T162341
dateText
=
$(
echo
$datetime
|
cut
-d
"T"
-f1
)
#20170515
outDir
=
$JP2DIR$dateText
filePrefix
=
$outDir
"/"
$filepattern
echo
$filePrefix
echo
$JP2DIR$dateText
if
[
!
-d
$JP2DIR$dateText
]
;
then
mkdir
$JP2DIR$dateText
fi
if
[
!
-e
$filfilePrefixename
"TCI_10m.jp2"
]
;
then
unzip
-n
-j
$f
*
TCI_10m.jp2
*
TCI_20m.jp2
*
SCL_20m.jp2-d
$outDir
/
TCI10m
=
$outDir
"/L2A_"
$filepattern
"TCI_10m.jp2"
TCI20m
=
$outDir
"/L2A_"
$filepattern
"TCI_20m.jp2"
SCL20m
=
$outDir
"/L2A_"
$filepattern
"SCL_20m.jp2"
if
[
-e
$TCI10m
]
;
then
mv
$TCI10m
$filePrefix
"TCI_10m.jp2"
fi
if
[
-e
$TCI20m
]
;
then
mv
$TCI20m
$filePrefix
"TCI_20m.jp2"
fi
if
[
-e
$SCL20m
]
;
then
mv
$SCL20m
$filePrefix
"SCL_20m.jp2"
fi
else
echo
PASS
$f
fi
done
tools/L2AproductListToRGB.sh
View file @
b3dad082
...
...
@@ -24,7 +24,7 @@ do
fi
if
[
!
-e
$filename
"TCI_10m.jp2"
]
;
then
unzip
-n
-j
$f
*
TCI_10m.jp2
-d
$JP2DIR$dateText
/
unzip
-n
-j
$f
*
TCI_10m.jp2
*
TCI_20m.jp2
*
SCL_20m.jp2
-d
$JP2DIR$dateText
/
L2ANAME
=
$JP2DIR$dateText
"/L2A_"
$filepattern
"TCI_10m.jp2"
if
[
-e
$L2ANAME
]
;
then
mv
$L2ANAME
$filename
"TCI_10m.jp2"
...
...
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