Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
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
65d7a8e7
Commit
65d7a8e7
authored
7 years ago
by
Alfonso Ramire Pedraza
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
a1e7ec31
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
0 deletions
+36
-0
sentinelToRGBJPG.sh
geosentinel/sentinelToRGBJPG.sh
+36
-0
No files found.
geosentinel/sentinelToRGBJPG.sh
0 → 100644
View file @
65d7a8e7
#!/bin/sh
BASEDIR
=
"
$1
"
acu
=
1
ext
=
.jpg
for
f
in
$(
find
.
-type
f
-name
'*.zip'
)
do
unzip
-j
$f
*
B02.jp2
*
B03.jp2
*
B04.jp2
-d
.
red
=
$(
ls
*
B04.jp2
-t
|head
-1
)
green
=
$(
ls
*
B03.jp2
-t
|head
-1
)
blue
=
$(
ls
*
B02.jp2
-t
|head
-1
)
m
=
$(
pwd
)
red
=
$m
/
$red
green
=
$m
/
$green
blue
=
$m
/
$blue
./jp2ToJPGandStretch
$red
./jp2ToJPGandStretch
$green
./jp2ToJPGandStretch
$blue
red
=
$(
ls
*
B04.jpg
-t
|head
-1
)
green
=
$(
ls
*
B03.jpg
-t
|head
-1
)
blue
=
$(
ls
*
B02.jpg
-t
|head
-1
)
m
=
$(
pwd
)
red
=
$m
/
$red
green
=
$m
/
$green
blue
=
$m
/
$blue
convert
$red
$green
$blue
-combine
$2$acu$ext
rm
*
.jp2
rm
*
B04.jpg
rm
*
B03.jpg
rm
*
B02.jpg
acu
=
$((
acu+1
))
done
This diff is collapsed.
Click to expand it.
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