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
1de5cdf0
Commit
1de5cdf0
authored
6 years ago
by
Mario Chirinos Colunga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user input
parent
e2abb17c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
L1CToL2A.sh
tools/L1CToL2A.sh
+8
-6
No files found.
tools/L1CToL2A.sh
View file @
1de5cdf0
#!/bin/sh
#Convert L1C Products to L2A using L2A_Process
filename
=
$1
#L1C Filename
filename
=
$1
#L1C Filename
/home/geoint/NAS/meridaL1C_2c/S2B_MSIL1C_20181005T163129_N0206_R083_T16QBH_20181005T214055.zip
basename
=
${
filename
##*/
}
basename
=
${
filename
##*/
}
#S2B_MSIL1C_20181005T163129_N0206_R083_T16QBH_20181005T214055.zip
echo
$filename
echo
$basename
#Z1=$(echo $(echo $filename | cut -d "_" -f1) | cut -d "/" -f3)
#Z2=$(echo $filename | cut -d "_" -f3,4,5,6,7 | cut -d "." -f1)
#L2A=$Z1"_MSIL2A_"$Z2
Z1
=
$(
echo
$(
echo
$basename
|
cut
-d
"_"
-f1
)
|
cut
-d
"/"
-f3
)
Z2
=
$(
echo
$basename
|
cut
-d
"_"
-f3
,4,5,6,7 |
cut
-d
"."
-f1
)
L2A
=
$Z1
"_MSIL2A_"
$Z2
echo
$L2A
#if [ ! -e $L2A.zip ]; then
# echo "Processing: " $filename " into " $L2A.zip
## unzip -o $filename
...
...
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