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
a1e7ec31
Commit
a1e7ec31
authored
May 17, 2018
by
Mario Chirinos Colunga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
e35b8020
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
3 deletions
+4
-3
downloadTest.py
examples/downloadTest.py
+3
-2
APISentinel.py
geosentinel/APISentinel.py
+1
-1
APISentinel.pyc
geosentinel/APISentinel.pyc
+0
-0
__init__.pyc
geosentinel/__init__.pyc
+0
-0
No files found.
examples/downloadTest.py
View file @
a1e7ec31
...
@@ -5,7 +5,8 @@ sys.path.append('../')
...
@@ -5,7 +5,8 @@ sys.path.append('../')
from
geosentinel
import
APISentinel
from
geosentinel
import
APISentinel
from
datetime
import
date
from
datetime
import
date
sentinel
=
APISentinel
.
APISentinel
(
'asalazarg'
,
'geo135asg'
)
sentinel
=
APISentinel
.
APISentinel
(
'asalazarg'
,
'geo135asg'
)
polygon
=
"POLYGON((-89.79030210118333 21.122657323983717,-89.77308220413153 21.122657323983717,-89.77308220413153 21.140540053466538,-89.79030210118333 21.140540053466538,-89.79030210118333 21.122657323983717))"
area
=
"POLYGON((-89.79030210118333 21.122657323983717,-89.77308220413153 21.122657323983717,-89.77308220413153 21.140540053466538,-89.79030210118333 21.140540053466538,-89.79030210118333 21.122657323983717))"
products
=
sentinel
.
getProducts
(
polygon
,
(
'20150101'
,
'20180517'
),
{
"platformname"
:
"Sentinel-2"
,
"cloudcoverpercentage"
:
"[0 TO 0]"
})
footprint
=
"Intersects(POLYGON((-89.79030210118333 21.122657323983717,-89.77308220413153 21.122657323983717,-89.77308220413153 21.140540053466538,-89.79030210118333 21.140540053466538,-89.79030210118333 21.122657323983717)))"
products
=
sentinel
.
getProducts
(
area
,
(
'20150101'
,
'20180517'
),
{
"platformname"
:
"Sentinel-2"
,
"cloudcoverpercentage"
:
"[0 TO 10]"
})
print
len
(
products
)
print
len
(
products
)
#sentinel.downloadProducts(products,dir)
#sentinel.downloadProducts(products,dir)
geosentinel/APISentinel.py
View file @
a1e7ec31
...
@@ -67,7 +67,7 @@ class APISentinel(object):
...
@@ -67,7 +67,7 @@ class APISentinel(object):
Returns:
Returns:
OrderedDict: Sentinel Product list found.
OrderedDict: Sentinel Product list found.
"""
"""
products_list
=
self
.
api
.
query
(
area
,
date
,
**
searchParameters
)
products_list
=
self
.
api
.
query
(
area
,
date
,
area_relation
=
'Contains'
,
**
searchParameters
)
return
products_list
return
products_list
def
downloadProducts
(
self
,
products
,
dir
):
def
downloadProducts
(
self
,
products
,
dir
):
...
...
geosentinel/APISentinel.pyc
View file @
a1e7ec31
No preview for this file type
geosentinel/__init__.pyc
View file @
a1e7ec31
No preview for this file type
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