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
e6542a27
Commit
e6542a27
authored
Sep 28, 2018
by
Mario Chirinos Colunga
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
readme MD
parent
fc4c5e73
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
7 deletions
+11
-7
README.md
README.md
+4
-3
L1CProductListToL2A.sh
tools/L1CProductListToL2A.sh
+7
-4
No files found.
README.md
View file @
e6542a27
...
@@ -19,7 +19,7 @@ The class constructor requires a username and password from [copernicus project]
...
@@ -19,7 +19,7 @@ The class constructor requires a username and password from [copernicus project]
sudo
pip
install
sentinelsat
sudo
pip
install
sentinelsat
sudo
apt-get
install
libgdal-dev
sudo
apt-get
install
libgdal-dev
```
```
###
E
xample
###
Download products e
xample
```
python
```
python
from
geosentinel
import
APISentinel
from
geosentinel
import
APISentinel
sentinel
=
APISentinel
(
'username'
,
'password'
)
sentinel
=
APISentinel
(
'username'
,
'password'
)
...
@@ -28,6 +28,7 @@ print len(products)
...
@@ -28,6 +28,7 @@ print len(products)
sentinel
.
downloadProducts
(
products
,
"."
)
sentinel
.
downloadProducts
(
products
,
"."
)
```
```
## Download Tool
## L2A Products
## L2A Product conversion
To convert all the L1C products in a directory to L2C Products
``tools/L1CProductListToL2A.sh``
is used.
tools/L1CProductListToL2A.sh
View file @
e6542a27
#!/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:-8
)
if
[
"$#"
-ne
1
]
;
then
echo
"Usage "
$0
" <Directory with a L1C Subirectory> [jobs]"
exit
fi
cd
$INPUTDIR
/L1C
cd
$INPUTDIR
/L1C
if
[
!
-d
../L2A
]
;
then
if
[
!
-d
../L2A
]
;
then
mkdir
../L2A
mkdir
../L2A
fi
fi
echo
\n\n
cd
$INPUTDIR
/L2A
ls
../L1C/
*
.zip | parallel
--jobs
12 L1CToL2A.sh
cd
$INPUTDIR
/L2A
ls
../L1C/
*
.zip | parallel
--jobs
$JOBS
L1CToL2A.sh
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