Commit a73f14de authored by Daniel Eggert's avatar Daniel Eggert
Browse files

fixed indentation issues

parent 2d13fb28
Pipeline #1669 canceled with stage
in 4 minutes and 7 seconds
......@@ -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)
"""
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment