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
26a09754
Commit
26a09754
authored
Oct 06, 2018
by
Mario Chirinos Colunga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user input
parent
8280178e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
8 deletions
+11
-8
L1CProductListToL2A.sh
tools/L1CProductListToL2A.sh
+10
-8
L1CToL2A.sh
tools/L1CToL2A.sh
+1
-0
No files found.
tools/L1CProductListToL2A.sh
View file @
26a09754
#!/bin/sh
#!/bin/sh
#Convert L1C Products to L2A using L2A_Process
#Convert L1C Products to L2A using L2A_Process
INPUTDIR
=
$1
#Top directory with a L1C Subirectory
INPUTDIR
=
$1
#Top directory with a L1C Subirectory
JOBS
=
${
2
:-
1
}
OUTPUTDIR
=
$2
if
[
"$#"
-le
1
]
;
then
JOBS
=
${
3
:-
1
}
echo
"Usage "
$0
" <Directory with a L1C Subirectory> [jobs]"
if
[
"$#"
-le
2
]
;
then
echo
"Usage "
$0
" <L1C Directory> <L2A Directory> [jobs]"
exit
exit
fi
fi
cd
$INPUTDIR
/L1C
#cd $INPUTDIR
if
[
!
-d
../L2A
]
;
then
if
[
!
-d
$OUTPUTDIR
]
;
then
mkdir
../L2A
mkdir
$OUTPUTDIR
fi
fi
cd
$INPUTDIR
/L2A
cd
$OUTPUTDIR
ls
../L1C/
*
.zip | parallel
--jobs
$JOBS
L1CToL2A.sh
ls
$INPUTDIR
*
.zip | parallel
--jobs
$JOBS
echo
#L1CToL2A.sh
tools/L1CToL2A.sh
View file @
26a09754
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
#Convert L1C Products to L2A using L2A_Process
#Convert L1C Products to L2A using L2A_Process
filename
=
$1
#L1C Filename
filename
=
$1
#L1C Filename
Z1
=
$(
echo
$(
echo
$filename
|
cut
-d
"_"
-f1
)
|
cut
-d
"/"
-f3
)
Z1
=
$(
echo
$(
echo
$filename
|
cut
-d
"_"
-f1
)
|
cut
-d
"/"
-f3
)
Z2
=
$(
echo
$filename
|
cut
-d
"_"
-f3
,4,5,6,7 |
cut
-d
"."
-f1
)
Z2
=
$(
echo
$filename
|
cut
-d
"_"
-f3
,4,5,6,7 |
cut
-d
"."
-f1
)
...
...
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