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
ea082017
Commit
ea082017
authored
Oct 03, 2018
by
Mario Chirinos Colunga
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
links
parent
998a842d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
20 deletions
+20
-20
ExtractData.sh
tools/ExtractData.sh
+20
-20
No files found.
tools/ExtractData.sh
View file @
ea082017
...
@@ -16,26 +16,26 @@ echo $FILEilePrefix
...
@@ -16,26 +16,26 @@ echo $FILEilePrefix
echo
$outDir
echo
$outDir
if
[
!
-d
$outDir
]
;
then
if
[
!
-d
$outDir
]
;
then
mkdir
$outDir
mkdir
$outDir
fi
#
fi
if
[
!
-e
$FILEilePrefix
"TCI_10m.jp2"
-o
!
-e
$FILEilePrefix
"TCI_20m.jp2"
-o
!
-e
$FILEilePrefix
"SCL_20m.jp2"
]
;
then
#
if [ ! -e $FILEilePrefix"TCI_10m.jp2" -o ! -e $FILEilePrefix"TCI_20m.jp2" -o ! -e $FILEilePrefix"SCL_20m.jp2" ]; then
unzip
-n
-j
$FILE
*
TCI_10m.jp2
*
TCI_20m.jp2
*
SCL_20m.jp2
-d
$JP2DIR$dateText
#
unzip -n -j $FILE *TCI_10m.jp2 *TCI_20m.jp2 *SCL_20m.jp2 -d $JP2DIR$dateText
TCI10m
=
$outDir
"L2A_"
$FILEilepattern
"TCI_10m.jp2"
#
TCI10m=$outDir"L2A_"$FILEilepattern"TCI_10m.jp2"
TCI20m
=
$outDir
"L2A_"
$FILEilepattern
"TCI_20m.jp2"
#
TCI20m=$outDir"L2A_"$FILEilepattern"TCI_20m.jp2"
SCL20m
=
$outDir
"L2A_"
$FILEilepattern
"SCL_20m.jp2"
#
SCL20m=$outDir"L2A_"$FILEilepattern"SCL_20m.jp2"
if
[
-e
$TCI10m
]
;
then
#
if [ -e $TCI10m ]; then
mv
$TCI10m
$FILEilePrefix
"TCI_10m.jp2"
#
mv $TCI10m $FILEilePrefix"TCI_10m.jp2"
fi
#
fi
if
[
-e
$TCI20m
]
;
then
#
if [ -e $TCI20m ]; then
mv
$TCI20m
$FILEilePrefix
"TCI_20m.jp2"
#
mv $TCI20m $FILEilePrefix"TCI_20m.jp2"
fi
#
fi
if
[
-e
$SCL20m
]
;
then
#
if [ -e $SCL20m ]; then
mv
$SCL20m
$FILEilePrefix
"SCL_20m.jp2"
#
mv $SCL20m $FILEilePrefix"SCL_20m.jp2"
fi
#
fi
else
#
else
echo
PASS
$FILE
#
echo PASS $FILE
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