Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
geomultisens
gms_preprocessing
Commits
a73f14de
Commit
a73f14de
authored
Dec 01, 2017
by
Daniel Eggert
Browse files
fixed indentation issues
parent
2d13fb28
Pipeline
#1669
canceled with stage
in 4 minutes and 7 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
gms_preprocessing/misc/spatial_index_mediator.py
View file @
a73f14de
...
...
@@ -140,8 +140,8 @@ class SpatialIndexMediator:
return
seasonCode
def
getFullSceneDataForDataset
(
self
,
envelope
,
timeStart
,
timeEnd
,
minCloudCover
,
maxCloudCover
,
datasetid
,
dayNight
=
0
,
refDate
=
None
,
maxDaysDelta
=
None
):
def
getFullSceneDataForDataset
(
self
,
envelope
,
timeStart
,
timeEnd
,
minCloudCover
,
maxCloudCover
,
datasetid
,
dayNight
=
0
,
refDate
=
None
,
maxDaysDelta
=
None
):
"""
Query the spatial index with the given parameters in order to get a list of matching scenes intersecting the
given envelope
...
...
@@ -155,7 +155,7 @@ class SpatialIndexMediator:
:param minCloudCover: minimum cloudcover in percent, e.g. 12, will return scenes with cloudcover >= 12% only
:param maxCloudCover: maximum cloudcover in percent, e.g. 23, will return scenes with cloudcover <= 23% only
:param datasetid: datasetid of the dataset in question, e.g. 104 for Landsat-8
:param dayNight
day/night indicator, with (0 = both, 1 = day, 2 = night)
:param dayNight
day/night indicator, with (0 = both, 1 = day, 2 = night)
:param refDate: reference timestamp as datetime instance, e.g. datetime(2015, 1, 1) [optional]
:param maxDaysDelta: maximum allowed number of days the target scenes might be apart from the given refDate
[optional]
...
...
@@ -185,7 +185,8 @@ class SpatialIndexMediator:
# pack the rest
# TODO: send unconstraint min/max proclevel values
struct
.
pack_into
(
'> i 2b h 3b'
,
b
,
offset
,
seasonCode
,
minCloudCover
,
maxCloudCover
,
datasetid
,
0
,
127
,
dayNight
)
struct
.
pack_into
(
'> i 2b h 3b'
,
b
,
offset
,
seasonCode
,
minCloudCover
,
maxCloudCover
,
datasetid
,
0
,
127
,
dayNight
)
# get connection and lock the channel
con
=
Connection
(
self
.
host
,
self
.
port
,
self
.
timeout
)
...
...
@@ -325,7 +326,7 @@ class Scene:
:param sceneid: database sceneid, e.g. 26366229
:param acquisitiondate: acquisition date of the scene as datetime instance, e.g. 2016-03-25 10:15:26
:param cloudcover: cloudcover value of the scene, e.g. 11
:param daynight:
day/night indicator (0=unknown, 1=day, 2=night)
:param daynight:
day/night indicator (0=unknown, 1=day, 2=night)
:param bounds: scene bounds as list of lat/lon wgs84 coordinates (lon1, lat1, lon2, lat2, ...),
e.g. (10.00604, 49.19385, 7.45638, 49.64513, 8.13739, 51.3515, 10.77705, 50.89307)
"""
...
...
Daniel Eggert
@eggi
mentioned in commit
56f3f29c
·
Feb 06, 2018
mentioned in commit
56f3f29c
mentioned in commit 56f3f29c17ba929a534ac3193de212aaf516fe83
Toggle commit list
Write
Preview
Supports
Markdown
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