- eocrops.inputs.sentinel2.workflow_instructions_S2L2A(config, time_stamp, coverage_predicate, path_out=None, polygon=None, interpolation=None, n_threads=1)[source]#
Define the request of image from SentinelHub API using Sentinel-2 L2a product, available from 2017 with ~5 days revisit and 10-20 meters resolution
- Parameters:
- coverage_predicate: float
Upper bound of fraction of pixels contaminated by clouds Images with higher cloud percentage will be removed
- time_stamptuple
first and last date to download the picture (e.g (‘2017-01-01’, ‘2017-12-31’) for a 2017
- configsentinelhub.config
SentinelHub configuration
- path_outstr
Path to save the EOPatch. It can be also a AWS S3 bucket path if s3Bucket is specified .
- polygongpd.GeoDataFrame
Shapefile loaded using geopandas that contains the field(s) boundary(ies) of the area
- interpolationdictionary
Specify if we interpolate cloudy pixels ({“interpolate”: True}) and resample time series over fixed periods (e.g. 16 days : {“interpolate”: True, , “period_length”: 16})
- n_threadsint
Number of threads used to download the EOPatch
- Returns:
- EOPatch