This tutorial constructs a cloudless mosaic (also known as a composite) from a time series of satellite images. We'll see the following:
This example uses Sentinel-2 Level-2A data. The techniques used here apply equally well to other remote-sensing datasets.
import numpy as np
import xarray as xr
import rasterio.features
import stackstac
import pystac_client
import planetary_computer
import xrspatial.multispectral as ms
from dask_gateway import GatewayCluster
We're going to process a large amount of data. To cut down on the execution time, we'll use a Dask cluster to do the computation in parallel, adaptively scaling to add and remove workers as needed. See Scale With Dask for more on using Dask.
cluster = GatewayCluster() # Creates the Dask Scheduler. Might take a minute.
client = cluster.get_client()
cluster.adapt(minimum=4, maximum=24)
print(cluster.dashboard_link)
https://pcc-staging.westeurope.cloudapp.azure.com/compute/services/dask-gateway/clusters/staging.5d235feb3f08434baf1868f21aeb3e99/status
In this example, we define our area of interest as a GeoJSON object. It's near Redmond, Washington.
area_of_interest = {
"type": "Polygon",
"coordinates": [
[
[-122.27508544921875, 47.54687159892238],
[-121.96128845214844, 47.54687159892238],
[-121.96128845214844, 47.745787772920934],
[-122.27508544921875, 47.745787772920934],
[-122.27508544921875, 47.54687159892238],
]
],
}
bbox = rasterio.features.bounds(area_of_interest)
Using pystac_client
we can search the Planetary Computer's STAC endpoint for items matching our query parameters.
stac = pystac_client.Client.open(
"https://planetarycomputer.microsoft.com/api/stac/v1",
modifier=planetary_computer.sign_inplace,
)
search = stac.search(
bbox=bbox,
datetime="2016-01-01/2020-12-31",
collections=["sentinel-2-l2a"],
query={"eo:cloud_cover": {"lt": 25}},
)
items = search.item_collection()
print(len(items))
138
So 138 items match our search requirements, over space, time, and cloudiness. Those items will still have some clouds over portions of the scenes, though. To create our cloudless mosaic, we'll load the data into an xarray DataArray using stackstac and then reduce the time-series of images down to a single image.
data = (
stackstac.stack(
items,
assets=["B04", "B03", "B02"], # red, green, blue
chunksize=4096,
resolution=100,
)
.where(lambda x: x > 0, other=np.nan) # sentinel-2 uses 0 as nodata
.assign_coords(band=lambda x: x.common_name.rename("band")) # use common names
)
data
<xarray.DataArray 'stackstac-6f1865b36c5ddc90ada70893ec944f5f' (time: 138, band: 3, y: 1099, x: 1099)> dask.array<where, shape=(138, 3, 1099, 1099), dtype=float64, chunksize=(1, 1, 1099, 1099), chunktype=numpy.ndarray> Coordinates: (12/46) * time (time) datetime64[ns] 2016-02-08... id (time) <U54 'S2A_MSIL2A_20160208... * band (band) <U5 'red' 'green' 'blue' * x (x) float64 4.999e+05 ... 6.097e+05 * y (y) float64 5.3e+06 ... 5.19e+06 s2:processing_baseline (time) <U5 '03.00' ... '02.12' ... ... proj:bbox object {5190240.0, 609780.0, 499... gsd float64 10.0 common_name (band) <U5 'red' 'green' 'blue' center_wavelength (band) float64 0.665 0.56 0.49 full_width_half_max (band) float64 0.038 0.045 0.098 epsg int64 32610 Attributes: spec: RasterSpec(epsg=32610, bounds=(499900, 5190200, 609800, 5300... crs: epsg:32610 transform: | 100.00, 0.00, 499900.00|\n| 0.00,-100.00, 5300100.00|\n| 0... resolution: 100
|
array(['2016-02-08T19:05:42.030000000', '2016-04-08T19:03:02.030000000', '2016-04-21T19:10:22.030000000', '2016-07-20T19:09:22.026000000', '2016-07-27T18:59:22.026000000', '2016-08-16T18:59:22.026000000', '2016-08-29T19:09:12.026000000', '2016-09-25T19:01:22.026000000', '2016-12-07T19:18:02.026000000', '2017-01-03T19:08:02.026000000', '2017-01-06T19:17:51.026000000', '2017-05-23T18:59:21.026000000', '2017-06-05T19:09:21.026000000', '2017-06-25T19:09:11.026000000', '2017-07-02T18:59:21.026000000', '2017-07-15T19:09:11.026000000', '2017-07-22T18:59:21.026000000', '2017-07-30T19:09:09.027000000', '2017-08-04T19:09:21.026000000', '2017-08-06T18:59:19.027000000', '2017-08-11T18:59:21.026000000', '2017-08-19T19:09:09.027000000', '2017-08-26T18:59:09.027000000', '2017-09-15T19:00:09.027000000', '2017-09-28T19:11:39.027000000', '2017-10-03T19:12:31.026000000', '2017-10-05T19:02:29.027000000', '2017-10-23T19:14:41.026000000', '2017-10-30T19:05:21.026000000', '2017-12-07T19:17:49.027000000', '2017-12-09T19:08:01.026000000', '2018-01-03T19:07:59.027000000', '2018-01-16T19:17:29.027000000', '2018-02-12T19:05:09.027000000', '2018-02-22T19:03:59.027000000', '2018-04-23T18:59:19.027000000', '2018-04-26T19:09:09.027000000', '2018-05-13T18:59:19.027000000', '2018-05-23T18:59:19.027000000', '2018-06-02T18:59:19.024000000', '2018-06-17T18:59:21.024000000', '2018-07-05T19:09:09.024000000', '2018-07-12T18:59:19.024000000', '2018-07-15T19:09:09.024000000', '2018-07-17T18:59:21.024000000', '2018-07-22T18:59:19.024000000', '2018-07-25T19:09:09.024000000', '2018-07-27T18:59:21.024000000', '2018-07-30T19:09:11.024000000', '2018-08-04T19:09:39.024000000', '2018-08-06T18:59:21.024000000', '2018-08-09T19:09:11.024000000', '2018-08-14T19:10:09.024000000', '2018-08-19T19:09:11.024000000', '2018-08-21T18:59:09.024000000', '2018-08-29T19:09:11.024000000', '2018-09-05T18:59:11.024000000', '2018-09-18T19:10:41.024000000', '2018-09-28T19:11:51.024000000', '2018-10-13T19:13:39.024000000', '2018-10-15T19:03:41.024000000', '2018-10-18T19:14:11.024000000', '2018-11-17T19:16:51.024000000', '2018-11-19T19:06:59.024000000', '2018-11-27T19:17:31.024000000', '2018-12-04T19:07:41.024000000', '2019-01-01T19:18:09.024000000', '2019-01-13T19:07:41.024000000', '2019-01-16T19:17:31.024000000', '2019-02-25T19:13:51.024000000', '2019-03-02T19:13:19.024000000', '2019-03-04T19:02:51.024000000', '2019-03-09T19:02:19.024000000', '2019-03-17T19:11:21.024000000', '2019-03-19T19:01:09.024000000', '2019-03-22T19:10:49.024000000', '2019-04-26T19:09:21.024000000', '2019-04-28T18:59:29.024000000', '2019-05-01T19:09:19.024000000', '2019-05-06T19:09:21.024000000', '2019-05-08T18:59:29.024000000', '2019-05-11T19:09:19.024000000', '2019-05-23T18:59:21.024000000', '2019-05-31T19:09:19.024000000', '2019-06-02T18:59:21.024000000', '2019-06-10T19:09:19.024000000', '2019-06-30T19:09:19.024000000', '2019-07-20T19:09:19.024000000', '2019-07-22T18:59:21.024000000', '2019-07-25T19:09:21.024000000', '2019-08-01T18:59:21.024000000', '2019-08-04T19:09:21.024000000', '2019-08-06T18:59:29.024000000', '2019-08-14T19:09:21.024000000', '2019-08-26T18:59:19.024000000', '2019-09-03T19:09:11.024000000', '2019-09-30T19:02:01.024000000', '2019-10-10T19:03:11.024000000', '2019-10-28T19:15:09.024000000', '2019-10-30T19:05:21.024000000', '2019-11-02T19:15:41.024000000', '2019-11-29T19:07:41.024000000', '2020-02-02T19:06:09.024000000', '2020-02-20T19:14:21.024000000', '2020-03-16T19:10:29.024000000', '2020-03-18T19:01:11.024000000', '2020-04-10T19:09:11.024000000', '2020-04-12T18:59:09.024000000', '2020-05-05T19:09:09.024000000', '2020-05-07T18:59:21.024000000', '2020-05-10T19:09:21.024000000', '2020-05-27T18:59:21.024000000', '2020-06-26T18:59:21.024000000', '2020-07-14T19:09:19.024000000', '2020-07-19T19:09:21.024000000', '2020-07-21T18:59:19.024000000', '2020-07-26T18:59:21.024000000', '2020-07-29T19:09:21.024000000', '2020-07-31T18:59:19.024000000', '2020-08-05T18:59:21.024000000', '2020-08-10T18:59:19.024000000', '2020-08-13T19:09:19.024000000', '2020-08-15T18:59:21.024000000', '2020-08-23T19:09:19.024000000', '2020-08-25T18:59:21.024000000', '2020-08-28T19:09:21.024000000', '2020-08-30T18:59:19.024000000', '2020-09-02T19:09:19.024000000', '2020-09-04T18:59:21.024000000', '2020-09-07T19:09:31.024000000', '2020-09-09T18:59:29.024000000', '2020-09-29T19:01:09.024000000', '2020-10-02T19:12:29.024000000', '2020-11-01T19:15:39.024000000', '2020-11-08T19:06:19.024000000', '2020-11-21T19:17:19.024000000', '2020-12-01T19:17:49.024000000', '2020-12-28T19:08:09.024000000'], dtype='datetime64[ns]')
array(['S2A_MSIL2A_20160208T190542_R013_T10TET_20210528T041016', 'S2A_MSIL2A_20160408T190302_R013_T10TET_20210211T023334', 'S2A_MSIL2A_20160421T191022_R056_T10TET_20210211T052628', 'S2A_MSIL2A_20160720T190922_R056_T10TET_20210212T062705', 'S2A_MSIL2A_20160727T185922_R013_T10TET_20210212T083544', 'S2A_MSIL2A_20160816T185922_R013_T10TET_20210212T150059', 'S2A_MSIL2A_20160829T190912_R056_T10TET_20210212T192817', 'S2A_MSIL2A_20160925T190122_R013_T10TET_20210213T043555', 'S2A_MSIL2A_20161207T191802_R056_T10TET_20210213T184712', 'S2A_MSIL2A_20170103T190802_R013_T10TET_20210529T144102', 'S2A_MSIL2A_20170106T191751_R056_T10TET_20210530T001658', 'S2A_MSIL2A_20170523T185921_R013_T10TET_20210209T173835', 'S2A_MSIL2A_20170605T190921_R056_T10TET_20210209T204522', 'S2A_MSIL2A_20170625T190911_R056_T10TET_20210210T014052', 'S2A_MSIL2A_20170702T185921_R013_T10TET_20210210T034922', 'S2A_MSIL2A_20170715T190911_R056_T10TET_20210210T092242', 'S2A_MSIL2A_20170722T185921_R013_T10TET_20210210T124653', 'S2B_MSIL2A_20170730T190909_R056_T10TET_20210210T170310', 'S2A_MSIL2A_20170804T190921_R056_T10TET_20210210T192103', 'S2B_MSIL2A_20170806T185919_R013_T10TET_20210210T204526', ... 'S2A_MSIL2A_20200805T185921_R013_T10TET_20201025T023207', 'S2B_MSIL2A_20200810T185919_R013_T10TET_20200814T140814', 'S2B_MSIL2A_20200813T190919_R056_T10TET_20201025T101153', 'S2A_MSIL2A_20200815T185921_R013_T10TET_20200818T093648', 'S2B_MSIL2A_20200823T190919_R056_T10TET_20200918T171910', 'S2A_MSIL2A_20200825T185921_R013_T10TET_20200827T175050', 'S2A_MSIL2A_20200828T190921_R056_T10TET_20200907T112416', 'S2B_MSIL2A_20200830T185919_R013_T10TET_20200907T164839', 'S2B_MSIL2A_20200902T190919_R056_T10TET_20200907T231347', 'S2A_MSIL2A_20200904T185921_R013_T10TET_20200908T004502', 'S2A_MSIL2A_20200907T190931_R056_T10TET_20200911T172006', 'S2B_MSIL2A_20200909T185929_R013_T10TET_20200911T225318', 'S2B_MSIL2A_20200929T190109_R013_T10TET_20201001T085751', 'S2B_MSIL2A_20201002T191229_R056_T10TET_20201004T193349', 'S2B_MSIL2A_20201101T191539_R056_T10TET_20201102T211503', 'S2B_MSIL2A_20201108T190619_R013_T10TET_20201109T194251', 'S2B_MSIL2A_20201121T191719_R056_T10TET_20201123T062421', 'S2B_MSIL2A_20201201T191749_R056_T10TET_20201203T103951', 'S2B_MSIL2A_20201228T190809_R013_T10TET_20210113T180911'], dtype='<U54')
array(['red', 'green', 'blue'], dtype='<U5')
array([499900., 500000., 500100., ..., 609500., 609600., 609700.])
array([5300100., 5300000., 5299900., ..., 5190500., 5190400., 5190300.])
array(['03.00', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '03.00', '03.00', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '03.00', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12', '02.12'], dtype='<U5')
array([160.70663753, 157.59333103, 160.7745074 , 153.21494786, 149.80316568, 154.09135857, 161.11569784, 163.8324209 , 170.33974524, 164.81520286, 166.81956517, 152.87200633, 155.43405644, 152.81678585, 147.72091922, 152.72248784, 148.97486124, 154.52994564, 155.443401 , 151.66474465, 152.81797412, 158.6510283 , 156.52613181, 161.52832249, 167.50702184, 168.43615745, 165.62450317, 170.90797931, 168.65031576, 170.33259695, 167.76699979, 164.83688916, 165.6084519 , 160.29855547, 159.54782934, 156.69800208, 160.4958807 , 154.45524584, 152.86310479, 151.1386151 , 148.84751657, 152.38278903, 147.92822648, 152.67741785, 148.34586943, 148.90888158, 153.71159441, 149.68947758, 154.49774207, 155.35766627, 151.61872091, 156.38125504, 157.42542993, 158.60235316, 155.15717551, 160.98210309, 159.05288411, 165.55192346, 167.52811023, 169.83873537, 167.16224649, 170.41257192, 171.57490709, 169.01087529, 171.13842788, 168.20683517, 167.53789437, 163.59447657, 165.65062375, 162.20982697, 162.01104412, 158.99749798, 158.77526709, 161.59797899, 158.39158048, 161.53146812, 160.53626068, 156.33399226, 160.207675 , 159.73546583, 155.22433165, 159.23672657, 152.94120917, 156.3645278 , 151.20641436, 154.75132711, 152.59760226, 153.16209766, 148.92850823, 153.73304233, 150.56795235, 155.36170799, 151.60828571, 157.43193791, 156.45671858, 162.12553452, 164.71621094, 166.44981958, 171.24484413, 168.64415435, 171.50702967, 168.60512219, 161.27366904, 162.47471241, 161.61090565, 158.38771577, 161.16242653, 157.37393317, 159.7112153 , 155.22823076, 159.24113777, 152.14255584, 147.98616803, 152.66586214, 153.10842649, 148.86916411, 149.63456111, 154.44531626, 150.50706819, 151.54902338, 152.65280533, 157.37977495, 153.86608818, 159.69344332, 156.39362624, 160.90162296, 157.67449547, 162.08618713, 158.9674703 , 163.27013149, 160.21257042, 164.67388951, 168.34785842, 171.49511126, 169.05422731, 171.45575446, 170.86169793, 165.6035432 ])
array([ 7.394707, 1.642846, 2.581037, 3.39089 , 0.831299, 0.954235, 1.040057, 6.929415, 9.89888 , 17.584589, 11.237461, 1.045946, 0.968423, 1.287026, 2.661785, 1.413407, 1.78506 , 2.781743, 1.395254, 23.874344, 8.784979, 3.517615, 0.947251, 1.229446, 1.354649, 1.514849, 1.724728, 5.536677, 3.103264, 7.381662, 16.076301, 6.319089, 8.647749, 3.771619, 12.500228, 1.554081, 1.535233, 1.155485, 1.115543, 5.280934, 0.992742, 0.859349, 0.880596, 0.962961, 0.886551, 0.876055, 0.885221, 0.985073, 1.922145, 1.296947, 1.495552, 1.547155, 17.033267, 30.283281, 20.561394, 2.354963, 1.645919, 2.535644, 1.435831, 2.116798, 2.325785, 2.517947, 4.594145, 5.170112, 7.024218, 5.261704, 19.617042, 6.921792, 12.343723, 5.753214, 6.333546, 4.455166, 12.109125, 2.71259 , 2.371329, 2.569954, 5.016675, 2.88201 , 1.377552, 1.224048, 7.575382, 1.094998, 1.263709, 3.124019, 1.65608 , 1.467886, 1.113172, 0.908596, 1.221252, 0.908207, 1.113814, 1.023872, 1.209844, 1.884312, 1.10879 , 4.480464, 3.574212, 2.072757, 3.041011, 3.221381, 3.247831, 5.399246, 10.142557, 3.158413, 2.246277, 5.294009, 3.257182, 1.632022, 3.700474, 1.446511, 1.732896, 1.103155, 1.277646, 0.991991, 1.167407, 1.26263 , 0.923307, 0.932377, 2.562061, 1.394824, 0.984245, 1.738879, 1.035986, 0.982437, 1.275216, 1.049667, 1.4299 , 1.756933, 2.124291, 1.210631, 1.313668, 1.603998, 3.394891, 3.067507, 4.377814, 5.895722, 6.460319, 8.579691])
array(['S2A_OPER_MSI_L2A_DS_ESRI_20210528T041017_S20160208T190605_N03.00', 'S2A_OPER_MSI_L2A_DS_ESRI_20210211T023336_S20160408T190712_N02.12', 'S2A_OPER_MSI_L2A_DS_ESRI_20210211T052629_S20160421T191704_N02.12', 'S2A_OPER_MSI_L2A_DS_ESRI_20210212T062706_S20160720T191655_N02.12', 'S2A_OPER_MSI_L2A_DS_ESRI_20210212T083546_S20160727T190238_N02.12', 'S2A_OPER_MSI_L2A_DS_ESRI_20210212T150100_S20160816T190939_N02.12', 'S2A_OPER_MSI_L2A_DS_ESRI_20210212T192820_S20160829T191558_N02.12', 'S2A_OPER_MSI_L2A_DS_ESRI_20210213T043556_S20160925T190612_N02.12', 'S2A_OPER_MSI_L2A_DS_ESRI_20210213T184714_S20161207T191829_N02.12', 'S2A_OPER_MSI_L2A_DS_ESRI_20210529T144104_S20170103T190949_N03.00', 'S2A_OPER_MSI_L2A_DS_ESRI_20210530T001658_S20170106T191754_N03.00', 'S2A_OPER_MSI_L2A_DS_ESRI_20210209T173835_S20170523T191059_N02.12', 'S2A_OPER_MSI_L2A_DS_ESRI_20210209T204524_S20170605T191534_N02.12', 'S2A_OPER_MSI_L2A_DS_ESRI_20210210T014054_S20170625T191841_N02.12', 'S2A_OPER_MSI_L2A_DS_ESRI_20210210T034924_S20170702T190708_N02.12', 'S2A_OPER_MSI_L2A_DS_ESRI_20210210T092243_S20170715T191515_N02.12', 'S2A_OPER_MSI_L2A_DS_ESRI_20210210T124654_S20170722T191032_N02.12', 'S2B_OPER_MSI_L2A_DS_ESRI_20210210T170311_S20170730T191621_N02.12', 'S2A_OPER_MSI_L2A_DS_ESRI_20210210T192105_S20170804T191650_N02.12', 'S2B_OPER_MSI_L2A_DS_ESRI_20210210T204527_S20170806T190802_N02.12', ... 'S2A_OPER_MSI_L2A_DS_ESRI_20201025T023208_S20200805T190700_N02.12', 'S2B_OPER_MSI_L2A_DS_ESRI_20200814T140817_S20200810T190422_N02.12', 'S2B_OPER_MSI_L2A_DS_ESRI_20201025T101155_S20200813T191815_N02.12', 'S2A_OPER_MSI_L2A_DS_ESRI_20200818T093651_S20200815T190251_N02.12', 'S2B_OPER_MSI_L2A_DS_ESRI_20200918T171913_S20200823T191123_N02.12', 'S2A_OPER_MSI_L2A_DS_ESRI_20200827T175052_S20200825T190743_N02.12', 'S2A_OPER_MSI_L2A_DS_ESRI_20200907T112418_S20200828T191522_N02.12', 'S2B_OPER_MSI_L2A_DS_ESRI_20200907T164841_S20200830T190346_N02.12', 'S2B_OPER_MSI_L2A_DS_ESRI_20200907T231350_S20200902T191252_N02.12', 'S2A_OPER_MSI_L2A_DS_ESRI_20200908T004503_S20200904T190750_N02.12', 'S2A_OPER_MSI_L2A_DS_ESRI_20200911T172010_S20200907T191727_N02.12', 'S2B_OPER_MSI_L2A_DS_ESRI_20200911T225319_S20200909T191047_N02.12', 'S2B_OPER_MSI_L2A_DS_ESRI_20201001T085757_S20200929T190122_N02.12', 'S2B_OPER_MSI_L2A_DS_ESRI_20201004T193351_S20201002T192031_N02.12', 'S2B_OPER_MSI_L2A_DS_ESRI_20201102T211503_S20201101T191542_N02.12', 'S2B_OPER_MSI_L2A_DS_ESRI_20201109T194252_S20201108T190937_N02.12', 'S2B_OPER_MSI_L2A_DS_ESRI_20201123T062422_S20201121T191908_N02.12', 'S2B_OPER_MSI_L2A_DS_ESRI_20201203T103952_S20201201T191748_N02.12', 'S2B_OPER_MSI_L2A_DS_ESRI_20210113T180913_S20201228T191049_N02.12'], dtype='<U64')
array([ 4.059688, 4.447188, 1.04202 , 1.098099, 3.691949, 3.634208, 1.168228, 4.369896, 1.308297, 4.293055, 0.830767, 3.636819, 1.084887, 0.840379, 4.266877, 1.042087, 3.821586, 1.306761, 1.190626, 3.362928, 3.476863, 1.257269, 3.393837, 3.657532, 0.73098 , 1.101221, 4.678342, 1.17272 , 3.676673, 1.117976, 3.989081, 3.915767, 1.033172, 3.811059, 3.771597, 3.770405, 1.056088, 3.912907, 4.092432, 4.144485, 4.116556, 1.087452, 3.758833, 1.073726, 3.676265, 3.797416, 1.03277 , 3.671952, 1.158443, 1.021277, 3.661146, 1.167275, 0.952007, 1.2333 , 4.105053, 1.295487, 3.367706, 1.400951, 1.166466, 1.131174, 3.647393, 1.165043, 1.014808, 3.418764, 0.946739, 4.041141, 0.953318, 3.890551, 1.014499, 1.038241, 0.972963, 3.949801, 3.829423, 0.857688, 10.47682 , 0.896059, 1.076493, 3.501176, 1.182962, 1.097342, 3.38839 , 1.236081, 3.921205, 1.162873, 4.138735, 1.098092, 1.177007, 1.229432, 3.48111 , 1.234203, 3.482759, 1.25279 , 21.413316, 1.23491 , 3.595718, 1.23778 , 3.76014 , 3.68317 , 1.024456, 3.530788, 1.240739, 3.66593 , 4.415931, 0.798342, 0.965703, 3.957498, 0.991931, 3.871566, 0.88858 , 3.493714, 1.282716, 3.316469, 3.652413, 0.863242, 1.065909, 4.176993, 3.690336, 1.121065, 4.044588, 3.621408, 3.894635, 1.003202, 3.553024, 1.040657, 3.453157, 1.243095, 3.742994, 1.045133, 3.456634, 1.268738, 3.60455 , 3.834702, 1.011267, 1.07412 , 3.727648, 1.124625, 1.109927, 3.946998])
array(['S2A_MSIL2A_20160208T190542_N0300_R013_T10TET_20210528T041016.SAFE', 'S2A_MSIL2A_20160408T190302_N0212_R013_T10TET_20210211T023334.SAFE', 'S2A_MSIL2A_20160421T191022_N0212_R056_T10TET_20210211T052628.SAFE', 'S2A_MSIL2A_20160720T190922_N0212_R056_T10TET_20210212T062705.SAFE', 'S2A_MSIL2A_20160727T185922_N0212_R013_T10TET_20210212T083544.SAFE', 'S2A_MSIL2A_20160816T185922_N0212_R013_T10TET_20210212T150059.SAFE', 'S2A_MSIL2A_20160829T190912_N0212_R056_T10TET_20210212T192817.SAFE', 'S2A_MSIL2A_20160925T190122_N0212_R013_T10TET_20210213T043555.SAFE', 'S2A_MSIL2A_20161207T191802_N0212_R056_T10TET_20210213T184712.SAFE', 'S2A_MSIL2A_20170103T190802_N0300_R013_T10TET_20210529T144102.SAFE', 'S2A_MSIL2A_20170106T191751_N0300_R056_T10TET_20210530T001658.SAFE', 'S2A_MSIL2A_20170523T185921_N0212_R013_T10TET_20210209T173835.SAFE', 'S2A_MSIL2A_20170605T190921_N0212_R056_T10TET_20210209T204522.SAFE', 'S2A_MSIL2A_20170625T190911_N0212_R056_T10TET_20210210T014052.SAFE', 'S2A_MSIL2A_20170702T185921_N0212_R013_T10TET_20210210T034922.SAFE', 'S2A_MSIL2A_20170715T190911_N0212_R056_T10TET_20210210T092242.SAFE', 'S2A_MSIL2A_20170722T185921_N0212_R013_T10TET_20210210T124653.SAFE', 'S2B_MSIL2A_20170730T190909_N0212_R056_T10TET_20210210T170310.SAFE', 'S2A_MSIL2A_20170804T190921_N0212_R056_T10TET_20210210T192103.SAFE', 'S2B_MSIL2A_20170806T185919_N0212_R013_T10TET_20210210T204526.SAFE', ... 'S2A_MSIL2A_20200805T185921_N0212_R013_T10TET_20201025T023207.SAFE', 'S2B_MSIL2A_20200810T185919_N0212_R013_T10TET_20200814T140814.SAFE', 'S2B_MSIL2A_20200813T190919_N0212_R056_T10TET_20201025T101153.SAFE', 'S2A_MSIL2A_20200815T185921_N0212_R013_T10TET_20200818T093648.SAFE', 'S2B_MSIL2A_20200823T190919_N0212_R056_T10TET_20200918T171910.SAFE', 'S2A_MSIL2A_20200825T185921_N0212_R013_T10TET_20200827T175050.SAFE', 'S2A_MSIL2A_20200828T190921_N0212_R056_T10TET_20200907T112416.SAFE', 'S2B_MSIL2A_20200830T185919_N0212_R013_T10TET_20200907T164839.SAFE', 'S2B_MSIL2A_20200902T190919_N0212_R056_T10TET_20200907T231347.SAFE', 'S2A_MSIL2A_20200904T185921_N0212_R013_T10TET_20200908T004502.SAFE', 'S2A_MSIL2A_20200907T190931_N0212_R056_T10TET_20200911T172006.SAFE', 'S2B_MSIL2A_20200909T185929_N0212_R013_T10TET_20200911T225318.SAFE', 'S2B_MSIL2A_20200929T190109_N0212_R013_T10TET_20201001T085751.SAFE', 'S2B_MSIL2A_20201002T191229_N0212_R056_T10TET_20201004T193349.SAFE', 'S2B_MSIL2A_20201101T191539_N0212_R056_T10TET_20201102T211503.SAFE', 'S2B_MSIL2A_20201108T190619_N0212_R013_T10TET_20201109T194251.SAFE', 'S2B_MSIL2A_20201121T191719_N0212_R056_T10TET_20201123T062421.SAFE', 'S2B_MSIL2A_20201201T191749_N0212_R056_T10TET_20201203T103951.SAFE', 'S2B_MSIL2A_20201228T190809_N0212_R013_T10TET_20210113T180911.SAFE'], dtype='<U65')
array('msi', dtype='<U3')
array('Sentinel 2', dtype='<U10')
array('10TET', dtype='<U5')
array('INS-NOBS', dtype='<U8')
array([46.515167, 72.653878, 56.114304, 55.50977 , 76.617217, 72.334498, 73.584998, 55.149132, 39.42329 , 32.658413, 36.68566 , 76.602352, 74.018842, 65.79327 , 63.618165, 73.242867, 70.135695, 64.514399, 72.826201, 41.439322, 49.738026, 51.144123, 73.62029 , 64.977741, 72.338444, 72.624582, 72.384769, 55.00198 , 66.142112, 43.985283, 31.907746, 43.331501, 25.246242, 60.282832, 20.04838 , 70.864141, 72.43343 , 76.103616, 75.695235, 54.707289, 72.487032, 76.252085, 76.350045, 72.362751, 75.191784, 74.972922, 74.309689, 74.402487, 71.297574, 71.319228, 71.295893, 71.853918, 51.648289, 45.058492, 35.183391, 61.564267, 70.857608, 62.990016, 73.801088, 72.592223, 70.764112, 56.994951, 58.508086, 52.176237, 18.280508, 50.980413, 19.33676 , 48.060387, 29.892454, 38.932267, 50.91905 , 56.474954, 29.578462, 61.694038, 60.521543, 45.749921, 47.310326, 59.871876, 72.44454 , 70.826679, 56.827962, 58.99632 , 72.833282, 64.058822, 69.194925, 67.082822, 73.46614 , 76.101834, 72.60564 , 75.747275, 74.878979, 74.835002, 72.732955, 65.148211, 74.875361, 55.914927, 56.863332, 73.250502, 68.046623, 65.941983, 62.176001, 50.325513, 32.280433, 55.795294, 67.092711, 53.03815 , 53.186488, 70.413566, 60.27838 , 75.389236, 67.789984, 74.4048 , 73.603088, 68.675959, 72.683269, 76.473564, 77.052945, 76.423806, 70.652926, 73.470461, 75.761062, 66.351765, 75.416315, 74.643224, 73.5847 , 74.396992, 71.554184, 66.638041, 70.813137, 62.234098, 72.071505, 74.461645, 60.075766, 70.821804, 60.614246, 36.894995, 47.506449, 32.162049])
array(['S2A_OPER_MSI_L2A_TL_ESRI_20210528T041017_A003299_T10TET_N03.00', 'S2A_OPER_MSI_L2A_TL_ESRI_20210211T023336_A004157_T10TET_N02.12', 'S2A_OPER_MSI_L2A_TL_ESRI_20210211T052629_A004343_T10TET_N02.12', 'S2A_OPER_MSI_L2A_TL_ESRI_20210212T062706_A005630_T10TET_N02.12', 'S2A_OPER_MSI_L2A_TL_ESRI_20210212T083546_A005730_T10TET_N02.12', 'S2A_OPER_MSI_L2A_TL_ESRI_20210212T150100_A006016_T10TET_N02.12', 'S2A_OPER_MSI_L2A_TL_ESRI_20210212T192820_A006202_T10TET_N02.12', 'S2A_OPER_MSI_L2A_TL_ESRI_20210213T043556_A006588_T10TET_N02.12', 'S2A_OPER_MSI_L2A_TL_ESRI_20210213T184714_A007632_T10TET_N02.12', 'S2A_OPER_MSI_L2A_TL_ESRI_20210529T144104_A008018_T10TET_N03.00', 'S2A_OPER_MSI_L2A_TL_ESRI_20210530T001658_A008061_T10TET_N03.00', 'S2A_OPER_MSI_L2A_TL_ESRI_20210209T173835_A010020_T10TET_N02.12', 'S2A_OPER_MSI_L2A_TL_ESRI_20210209T204524_A010206_T10TET_N02.12', 'S2A_OPER_MSI_L2A_TL_ESRI_20210210T014054_A010492_T10TET_N02.12', 'S2A_OPER_MSI_L2A_TL_ESRI_20210210T034924_A010592_T10TET_N02.12', 'S2A_OPER_MSI_L2A_TL_ESRI_20210210T092243_A010778_T10TET_N02.12', 'S2A_OPER_MSI_L2A_TL_ESRI_20210210T124654_A010878_T10TET_N02.12', 'S2B_OPER_MSI_L2A_TL_ESRI_20210210T170311_A002084_T10TET_N02.12', 'S2A_OPER_MSI_L2A_TL_ESRI_20210210T192105_A011064_T10TET_N02.12', 'S2B_OPER_MSI_L2A_TL_ESRI_20210210T204527_A002184_T10TET_N02.12', ... 'S2A_OPER_MSI_L2A_TL_ESRI_20201025T023208_A026751_T10TET_N02.12', 'S2B_OPER_MSI_L2A_TL_ESRI_20200814T140817_A017914_T10TET_N02.12', 'S2B_OPER_MSI_L2A_TL_ESRI_20201025T101155_A017957_T10TET_N02.12', 'S2A_OPER_MSI_L2A_TL_ESRI_20200818T093651_A026894_T10TET_N02.12', 'S2B_OPER_MSI_L2A_TL_ESRI_20200918T171913_A018100_T10TET_N02.12', 'S2A_OPER_MSI_L2A_TL_ESRI_20200827T175052_A027037_T10TET_N02.12', 'S2A_OPER_MSI_L2A_TL_ESRI_20200907T112418_A027080_T10TET_N02.12', 'S2B_OPER_MSI_L2A_TL_ESRI_20200907T164841_A018200_T10TET_N02.12', 'S2B_OPER_MSI_L2A_TL_ESRI_20200907T231350_A018243_T10TET_N02.12', 'S2A_OPER_MSI_L2A_TL_ESRI_20200908T004503_A027180_T10TET_N02.12', 'S2A_OPER_MSI_L2A_TL_ESRI_20200911T172010_A027223_T10TET_N02.12', 'S2B_OPER_MSI_L2A_TL_ESRI_20200911T225319_A018343_T10TET_N02.12', 'S2B_OPER_MSI_L2A_TL_ESRI_20201001T085757_A018629_T10TET_N02.12', 'S2B_OPER_MSI_L2A_TL_ESRI_20201004T193351_A018672_T10TET_N02.12', 'S2B_OPER_MSI_L2A_TL_ESRI_20201102T211503_A019101_T10TET_N02.12', 'S2B_OPER_MSI_L2A_TL_ESRI_20201109T194252_A019201_T10TET_N02.12', 'S2B_OPER_MSI_L2A_TL_ESRI_20201123T062422_A019387_T10TET_N02.12', 'S2B_OPER_MSI_L2A_TL_ESRI_20201203T103952_A019530_T10TET_N02.12', 'S2B_OPER_MSI_L2A_TL_ESRI_20210113T180913_A019916_T10TET_N02.12'], dtype='<U62')
array(0.)
array(0.)
array([64.3851963 , 41.73880353, 36.46643523, 29.0427888 , 31.25249081, 36.31507522, 39.72083242, 49.78069255, 70.63607555, 71.49845093, 70.80134411, 28.82206302, 26.41642839, 26.03252712, 27.34875801, 28.1370093 , 30.19437488, 31.08727279, 32.28730592, 33.54450158, 34.85011255, 36.46421408, 39.28308764, 46.07432605, 50.39496136, 52.24827156, 53.36994145, 59.46246991, 62.08247794, 70.61101162, 71.15258097, 71.5201399 , 69.41120583, 62.96116187, 59.50567827, 36.5775642 , 34.98210724, 30.88840574, 28.8703196 , 27.49235263, 26.68029497, 26.77431626, 28.48524484, 28.10297568, 29.25593747, 30.15465208, 29.94218694, 31.15616519, 31.02954373, 32.23239897, 33.4814088 , 33.52546806, 34.92098189, 36.38989675, 37.66295207, 39.56325258, 42.48948756, 46.59394979, 50.29541322, 55.83979463, 56.89310097, 57.63428187, 66.87571941, 67.63650219, 69.04039079, 70.49779583, 71.27584395, 70.39037437, 69.45211485, 57.93256474, 56.03719429, 55.83488797, 53.87621654, 50.10920189, 49.88435059, 48.09795685, 35.05516128, 35.04124953, 33.49822025, 32.0648655 , 32.17149765, 30.75085888, 28.90466737, 26.98802076, 27.51195661, 26.08800852, 26.2929003 , 28.90465739, 30.09782179, 29.88261165, 32.2083791 , 32.16443795, 33.41293665, 34.84188766, 39.11815479, 41.16448029, 51.3437868 , 55.00182794, 60.97800263, 61.92160015, 62.58679977, 69.65256061, 66.12794976, 59.84723964, 50.20650017, 49.98518469, 40.37985243, 40.24304887, 32.13736789, 32.2393255 , 30.81477695, 28.15469538, 26.92230609, 28.02159918, 28.86440904, 30.05688459, 31.04824418, 30.91420557, 32.15474265, 33.35257573, 34.65230402, 34.77139642, 36.03408415, 37.78401298, 39.04290975, 39.39861229, 40.65297976, 41.07906148, 42.31869862, 42.81163815, 44.04000347, 51.25564906, 51.97344607, 62.51174953, 64.89541828, 67.92303888, 69.81589416, 71.84870255])
array([13, 13, 56, 56, 13, 13, 56, 13, 56, 13, 56, 13, 56, 56, 13, 56, 13, 56, 56, 13, 13, 56, 13, 13, 56, 56, 13, 56, 13, 56, 13, 13, 56, 13, 13, 13, 56, 13, 13, 13, 13, 56, 13, 56, 13, 13, 56, 13, 56, 56, 13, 56, 56, 56, 13, 56, 13, 56, 56, 56, 13, 56, 56, 13, 56, 13, 56, 13, 56, 56, 56, 13, 13, 56, 13, 56, 56, 13, 56, 56, 13, 56, 13, 56, 13, 56, 56, 56, 13, 56, 13, 56, 13, 56, 13, 56, 13, 13, 56, 13, 56, 13, 13, 56, 56, 13, 56, 13, 56, 13, 56, 13, 13, 56, 56, 13, 13, 56, 13, 13, 13, 56, 13, 56, 13, 56, 13, 56, 13, 56, 13, 13, 56, 56, 13, 56, 56, 13])
array([ 0.285605, 0.14837 , 10.246203, 12.483446, 0.313549, 0.097646, 0.265664, 3.963944, 0.776288, 0.33454 , 0.601906, 0.294874, 0.100556, 0.3931 , 12.900212, 1.919546, 3.66828 , 5.899546, 0.163344, 0.236115, 8.706082, 10.328536, 0.236287, 0.032392, 0.197184, 0.244346, 0.212575, 2.648533, 0.143304, 7.431173, 5.646962, 4.582605, 13.930969, 0.253361, 13.049285, 0.120785, 0.134224, 0.276868, 0.683303, 2.000993, 2.781352, 0.220563, 0.321 , 0.112337, 0.187389, 0.311099, 0.24653 , 0.172271, 0.041778, 1.115962, 0.295324, 0.205306, 0.051549, 0.098773, 0.044868, 3.502197, 0.250959, 2.373755, 0.271302, 0.246134, 0.098121, 0.065894, 1.869688, 10.136931, 14.759968, 0.109605, 5.912551, 2.155762, 5.358348, 5.819697, 1.634548, 0.301558, 14.184333, 0.258032, 0.166705, 11.815285, 12.800586, 8.136448, 0.482125, 0.163596, 1.40484 , 0.181674, 1.270847, 11.772918, 0.693823, 0.890509, 1.793509, 0.244491, 1.192033, 0.325765, 0.502843, 0.297089, 0.381224, 0.908956, 0.308986, 9.150688, 10.577255, 0.269497, 0.097957, 0.05161 , 0.189376, 0.243852, 10.50898 , 0.117594, 0.220701, 4.100209, 3.613033, 0.412315, 8.38332 , 0.265142, 1.256071, 0.07389 , 0.641728, 0.052805, 0.104454, 0.65353 , 0.346137, 0.396209, 1.641863, 1.528937, 0.353118, 2.063675, 0.342871, 0.274552, 0.616915, 0.339397, 0.381381, 5.628673, 0.252445, 0.377274, 0.273848, 0.245964, 14.868201, 0.219621, 1.145752, 6.04236 , 3.675069, 16.30924 ])
array(['2021-05-28T04:10:16.423480Z', '2021-02-11T02:33:34.188Z', '2021-02-11T05:26:28.165Z', '2021-02-12T06:27:05.547Z', '2021-02-12T08:35:44.941Z', '2021-02-12T15:00:59.367Z', '2021-02-12T19:28:17.892Z', '2021-02-13T04:35:55.326Z', '2021-02-13T18:47:12.926Z', '2021-05-29T14:41:02.890945Z', '2021-05-30T00:16:58.40940Z', '2021-02-09T17:38:35.890Z', '2021-02-09T20:45:22.964Z', '2021-02-10T01:40:52.451Z', '2021-02-10T03:49:22.876Z', '2021-02-10T09:22:42.131Z', '2021-02-10T12:46:53.452Z', '2021-02-10T17:03:10.540Z', '2021-02-10T19:21:03.907Z', '2021-02-10T20:45:26.500Z', '2021-02-10T22:49:50.483Z', '2020-10-19T22:38:59.762Z', '2021-02-01T11:52:51.748Z', '2021-02-02T03:38:56.824Z', '2021-02-02T11:23:47.503Z', '2021-02-02T13:21:07.307Z', '2021-02-02T14:30:53.656Z', '2020-10-15T01:46:33.723Z', '2020-10-15T03:11:24.166Z', '2020-10-14T12:39:49.671Z', '2020-10-14T12:58:31.674Z', '2020-10-14T03:10:26.551Z', '2020-10-14T06:23:28.228Z', '2020-10-13T20:40:24.353Z', '2020-10-14T00:23:45.520Z', '2020-10-13T01:54:44.967Z', '2020-10-13T03:08:05.878Z', '2020-10-12T09:33:21.879Z', '2020-10-12T13:30:37.132Z', '2020-10-26T13:16:33.309Z', ... '2020-10-03T12:17:02.145Z', '2020-10-03T20:45:22.572Z', '2020-09-30T14:05:04.766Z', '2020-09-30T04:23:36.838Z', '2020-10-10T09:26:25.892Z', '2020-10-10T13:52:56.394Z', '2020-09-25T19:13:01.583Z', '2020-09-23T06:53:46.473Z', '2020-09-20T16:30:47.322Z', '2020-09-20T21:23:58.743Z', '2020-09-19T22:01:57.947Z', '2020-09-11T04:00:58.733Z', '2020-08-24T04:44:17.115Z', '2020-09-18T17:19:07.543Z', '2020-08-16T17:49:17.368Z', '2020-08-17T01:30:18.783Z', '2020-10-24T18:38:33.928Z', '2020-08-18T00:37:39.827Z', '2020-08-18T08:55:54.939Z', '2020-10-25T02:32:07.311Z', '2020-08-14T14:08:14.944Z', '2020-10-25T10:11:53.422Z', '2020-08-18T09:36:48.464Z', '2020-09-18T17:19:10.769Z', '2020-08-27T17:50:50.878Z', '2020-09-07T11:24:16.977Z', '2020-09-07T16:48:39.196Z', '2020-09-07T23:13:47.965Z', '2020-09-08T00:45:02.187Z', '2020-09-11T17:20:06.830Z', '2020-09-11T22:53:18.279Z', '2020-10-01T08:57:51.731Z', '2020-10-04T19:33:49.388Z', '2020-11-02T21:15:03.594Z', '2020-11-09T19:42:51.793Z', '2020-11-23T06:24:21.864Z', '2020-12-03T10:39:51.912Z', '2021-01-13T18:09:11.872Z'], dtype='<U27')
array([2.561623e+00, 2.935074e+00, 8.289340e-01, 3.497380e-01, 4.520910e-01, 3.260660e-01, 1.973110e-01, 2.334350e-01, 5.331167e+00, 7.609898e+00, 4.310875e+00, 2.902307e+00, 1.758357e+00, 1.143739e+00, 9.964520e-01, 4.215210e-01, 4.347970e-01, 3.375720e-01, 3.143250e-01, 3.512370e-01, 2.352250e-01, 2.352190e-01, 2.240190e-01, 1.631290e-01, 2.410480e-01, 6.915780e-01, 4.986970e-01, 8.848900e-01, 4.075440e-01, 1.286891e+00, 1.416255e+00, 1.345717e+00, 2.942364e+00, 1.500574e+00, 2.172507e+01, 3.594983e+00, 3.124473e+00, 2.676444e+00, 1.954620e+00, 1.397154e+00, 8.424650e-01, 6.506430e-01, 5.473400e-01, 4.208240e-01, 4.483180e-01, 3.720850e-01, 3.005280e-01, 3.332890e-01, 3.108090e-01, 1.946720e-01, 2.505490e-01, 2.174080e-01, 1.814380e-01, 1.669520e-01, 2.383370e-01, 1.141760e-01, 1.121850e-01, 3.243810e-01, 1.390430e-01, 1.996130e-01, 2.054970e-01, 1.115610e-01, 4.395190e-01, 4.881470e-01, 8.789977e+00, 1.169355e+00, 2.187814e+00, 1.393376e+00, 1.161350e+00, 6.010298e+00, 5.767725e+00, 6.543998e+00, 7.356995e+00, 4.929717e+00, 4.370968e+00, 2.417755e+00, 1.710314e+00, 1.595673e+00, 2.139083e+00, 1.987419e+00, 2.129017e+00, 1.647922e+00, 1.640531e+00, 1.165907e+00, 1.464468e+00, 1.127621e+00, 4.602230e-01, 3.644800e-01, 2.704450e-01, 3.115450e-01, 2.808620e-01, 2.331520e-01, 1.123000e-03, 1.765860e-01, 1.371780e-01, 6.144000e-02, 5.722000e-01, 1.832812e+00, 5.600660e-01, 7.649290e-01, 4.947700e-01, 1.746550e+00, 2.910049e+00, 2.682839e+00, 3.400012e+00, 3.716356e+00, 2.641043e+00, 3.693281e+00, 1.935848e+00, 2.990392e+00, 1.988950e+00, 2.321871e+00, 1.323742e+00, 7.996680e-01, 6.559010e-01, 6.308410e-01, 5.456800e-01, 3.923740e-01, 4.282970e-01, 3.572250e-01, 3.313750e-01, 2.791970e-01, 2.912670e-01, 2.105150e-01, 2.310540e-01, 1.831320e-01, 2.031650e-01, 1.506680e-01, 1.837670e-01, 1.550320e-01, 1.307650e-01, 2.540270e-01, 1.846100e-01, 1.640270e-01, 1.587358e+00, 1.279200e+00, 1.234377e+00, 1.404385e+00])
array([ 1.120301, 0.133071, 4.597229, 3.090415, 0.133261, 0.04428 , 0.120669, 4.052807, 1.180914, 2.116943, 3.208586, 0.126429, 0.057468, 3.92868 , 3.014415, 0.864319, 1.47875 , 2.731263, 0.066196, 1.982088, 6.185678, 2.893775, 0.09151 , 0.329671, 0.057774, 0.080968, 0.08206 , 4.00219 , 0.367698, 6.473003, 4.631456, 3.066425, 5.49208 , 0.659074, 6.193522, 0.48952 , 0.18578 , 0.150963, 0.311991, 6.511289, 0.63427 , 0.075368, 0.134463, 0.080905, 0.123312, 0.134462, 0.085676, 0.091081, 0.085385, 0.615538, 0.148402, 0.068691, 0.121686, 1.435127, 5.584598, 3.592366, 0.111581, 1.271717, 0.080622, 0.16833 , 0.15399 , 0.546884, 0.826577, 3.061614, 6.770919, 0.584197, 8.89608 , 2.522587, 7.845623, 7.07762 , 1.832153, 0.637877, 5.921916, 0.164827, 0.371832, 5.959338, 5.265444, 2.794383, 0.411771, 0.087587, 10.333768, 0.480634, 0.494184, 4.713845, 0.720816, 0.880529, 0.440817, 0.07248 , 0.77173 , 0.093664, 0.231815, 0.091625, 0.290491, 0.453895, 0.115293, 3.462468, 2.777688, 0.163813, 0.035781, 0.103151, 0.729406, 0.680595, 6.208298, 0.863962, 0.24766 , 3.246371, 13.677785, 0.345709, 3.32767 , 0.38603 , 1.844523, 0.096954, 0.366022, 0.069933, 0.105276, 0.454663, 0.151699, 0.120276, 1.940389, 0.73282 , 0.15053 , 1.072746, 0.151356, 0.074142, 0.339427, 0.114976, 0.235713, 1.149968, 0.115034, 1.699547, 0.097726, 0.082752, 4.575134, 0.065712, 0.680831, 3.296361, 2.071489, 6.466416])
array([ 1.604741, 6.902468, 4.724148, 6.948723, 8.550293, 9.963327, 10.276374, 12.422416, 2.924788, 0.704239, 0.779509, 5.919183, 5.934767, 4.115782, 6.343908, 8.072497, 9.532221, 8.064041, 11.635447, 15.643227, 11.331534, 10.283131, 11.114543, 11.232299, 9.412866, 7.937858, 8.986429, 5.49212 , 7.365024, 2.128917, 7.07203 , 3.580826, 3.125614, 6.841119, 3.81203 , 8.123927, 8.154818, 6.578456, 6.728648, 5.777806, 7.503787, 8.337517, 9.033713, 9.3978 , 10.215703, 10.309087, 10.4978 , 11.129207, 12.686205, 10.54291 , 11.950668, 11.851352, 17.082109, 9.101593, 25.454056, 9.155177, 12.829532, 9.407167, 7.911204, 6.624693, 6.853767, 6.987761, 4.650573, 4.303812, 3.164481, 4.115615, 10.556612, 4.637731, 3.769262, 5.584985, 9.453391, 10.659599, 6.355129, 11.099904, 12.894069, 9.293219, 6.319515, 6.29259 , 7.128216, 7.106584, 5.671044, 6.436598, 6.784862, 5.936987, 6.015147, 7.127014, 8.472857, 8.473642, 9.182119, 8.745634, 9.816406, 9.575225, 10.046456, 9.15754 , 9.766462, 10.29752 , 5.191671, 5.15778 , 5.589751, 6.331439, 5.722966, 5.191853, 3.619178, 5.659757, 7.21643 , 8.434015, 6.566054, 8.423138, 6.156155, 6.137389, 6.329153, 6.045223, 6.290432, 6.480319, 6.767954, 7.708924, 7.928471, 7.950327, 9.535755, 9.016984, 9.12929 , 9.060695, 9.453898, 9.139152, 9.787615, 9.285574, 10.141966, 9.488664, 12.374111, 8.90085 , 11.759762, 7.954067, 6.086313, 4.860784, 4.797184, 3.894184, 3.469761, 1.764327])
array([1.6045600e+01, 2.4170140e+00, 9.4630580e+00, 7.3384000e-02, 1.2700000e-04, 3.0470640e+00, 3.4900000e-04, 3.0614610e+00, 2.8443000e-01, 2.0800000e-04, 3.7260190e+00, 3.6996000e-02, 5.4186460e+00, 1.4776215e+01, 3.0000000e-06, 1.5114000e-02, 1.9722500e-01, 3.1300000e-04, 1.1400000e-04, 8.5142020e+00, 3.8991520e+00, 6.2502940e+00, 0.0000000e+00, 1.1038902e+01, 1.2000000e-04, 3.9300000e-04, 2.8554100e-01, 1.0217396e+01, 2.1302910e+00, 3.1368200e-01, 2.7603010e+00, 1.4132340e+00, 3.5998900e-01, 1.3906930e+00, 1.8256350e+00, 3.0728980e+00, 2.3788340e+00, 3.6900000e-04, 4.8172300e-01, 1.2892440e+01, 8.6038900e-01, 4.5600000e-04, 4.4800000e-04, 4.5470190e+00, 4.8475940e+00, 9.7600000e-04, 1.3400000e-04, 4.5630870e+00, 4.7000000e-05, 6.6475000e-02, 1.3477360e+00, 2.5200000e-04, 7.0000000e-06, 6.4000000e-05, 8.8831400e-01, 1.1563729e+01, 2.2208000e-02, 5.4082040e+00, 1.1700000e-04, 1.4484000e-02, 4.7569190e+00, 1.8437168e+01, 1.6453600e-01, 5.0570000e-03, 9.4301200e-01, 9.9871700e-01, 3.5777990e+00, 1.5707230e+00, 4.8474020e+00, 5.7815200e+00, 4.2787400e-01, 3.3020800e-01, 5.2580700e-01, 1.8740000e-03, 2.7670690e+00, 6.6129100e+00, 4.8978480e+00, 1.3651820e+00, 2.5030590e+00, 6.6744980e+00, 5.5907080e+00, 2.2413065e+01, 2.7809140e+00, 3.2807000e-02, 1.0758012e+01, 1.0771953e+01, 2.3515000e-02, 1.1005000e-02, 1.5105380e+00, 3.5300000e-04, 1.4183000e-02, 9.5800000e-04, 3.8000000e-04, 8.9517850e+00, 8.9000000e-05, 7.1569400e-01, 1.2040940e+00, 3.4000000e-05, 4.0347750e+00, 4.8142040e+00, 7.3010580e+00, 1.2683680e+00, 6.1942200e-01, 8.2919230e+00, 3.6665800e-01, 8.4177000e-02, 6.8965680e+00, 5.8185100e-01, 2.0971350e+00, 1.3137800e-01, 6.2570880e+00, 3.0506360e+00, 5.0338030e+00, 1.0001393e+01, 7.0697800e+00, 0.0000000e+00, 2.4000000e-05, 1.7100000e-04, 2.4887230e+00, 4.7091800e-01, 1.5200000e-04, 5.8644800e+00, 2.1700000e-04, 1.3173900e-01, 3.4712000e-02, 3.4000000e-05, 3.0941860e+00, 4.7900000e-04, 6.8915000e-02, 1.5246893e+01, 4.6500000e-04, 1.6390000e-03, 3.0000000e-06, 1.8400000e-04, 3.6979000e-02, 1.3144411e+01, 3.2467100e-01, 1.6510300e-01])
array(['descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'ascending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'ascending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'ascending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending', 'descending'], dtype='<U10')
array([11.393227, 1.883304, 1.254438, 1.435369, 0.668635, 1.037303, 1.772848, 1.926506, 17.944776, 16.942337, 15.714604, 0.795573, 1.003072, 0.720823, 0.502837, 0.961647, 0.704092, 1.316042, 1.005801, 0.436898, 0.957093, 1.689518, 1.210082, 2.043322, 3.404697, 3.977289, 3.571185, 5.218877, 7.353386, 12.954621, 17.746142, 15.506771, 11.165585, 10.685308, 6.130205, 1.508425, 1.740465, 0.932763, 0.795312, 0.568645, 0.772031, 0.920028, 0.682162, 1.050262, 0.647102, 0.692982, 1.11168 , 0.781563, 1.027869, 1.287833, 0.915537, 1.540341, 1.18084 , 0.962746, 0.624482, 1.47593 , 1.573164, 2.903501, 3.385444, 4.462276, 4.368141, 5.660524, 11.419559, 11.217753, 10.423861, 16.906492, 12.277314, 15.337169, 13.195354, 9.157237, 8.68753 , 7.230577, 7.18889 , 5.757732, 4.224869, 4.340592, 1.673682, 1.6889 , 1.594034, 1.377286, 0.627587, 0.94164 , 0.834553, 0.806274, 0.622407, 0.86974 , 1.024185, 1.224301, 0.70661 , 1.057555, 0.8352 , 1.297065, 0.715728, 1.45321 , 1.229191, 1.754266, 2.931931, 4.350612, 7.174431, 7.013633, 8.032735, 17.10532 , 12.394475, 10.535976, 5.860343, 4.196774, 2.162981, 2.20901 , 1.627589, 1.064046, 1.331803, 0.738058, 0.551698, 0.949986, 1.010717, 0.750271, 0.649873, 0.981145, 0.833694, 0.871897, 0.859027, 1.331455, 0.927462, 1.698198, 1.154426, 1.693115, 1.369677, 2.047128, 1.709112, 1.665192, 1.754655, 2.994806, 2.97027 , 6.86717 , 11.21957 , 11.64913 , 13.50642 , 14.55939 ])
array([ 9.50655 , 11.078427, 9.522738, 12.166195, 12.358206, 12.111901, 12.623948, 11.440548, 14.552569, 14.030987, 13.723172, 12.202537, 10.678335, 7.79475 , 9.807698, 12.463288, 11.643954, 12.567572, 12.540732, 7.49978 , 9.353431, 10.343223, 12.46073 , 8.803819, 12.769775, 12.607631, 11.930222, 9.655255, 11.582006, 11.395565, 8.776964, 13.287163, 11.911427, 12.627967, 12.041708, 10.535168, 10.173476, 12.040273, 11.942192, 10.679466, 12.061919, 12.62815 , 11.997959, 10.939525, 7.389108, 12.278592, 12.508832, 7.477526, 12.500164, 12.749746, 12.104511, 12.53145 , 12.604313, 12.679513, 11.376186, 6.359835, 12.451805, 10.611211, 12.717786, 12.737152, 10.029124, 8.014225, 13.432544, 9.562228, 14.203618, 13.455723, 9.590477, 10.347567, 8.982384, 12.344429, 12.669927, 12.335793, 9.963148, 12.831722, 11.891421, 9.990828, 10.606579, 11.303122, 11.315694, 10.36147 , 9.766088, 7.583397, 11.480554, 8.194559, 8.630643, 9.664138, 12.459069, 12.513445, 12.275331, 12.742659, 12.062199, 12.556243, 14.541484, 10.960045, 12.375207, 11.519795, 11.897369, 12.26655 , 10.009886, 10.584774, 10.320424, 12.249617, 11.050572, 11.182211, 12.910089, 12.157055, 7.803454, 12.064723, 9.95704 , 12.080286, 10.513621, 12.085 , 10.816842, 11.918814, 10.358963, 11.832625, 12.329768, 12.724151, 9.589529, 11.699309, 12.326572, 11.031749, 12.305065, 12.745297, 12.474465, 12.78944 , 11.116999, 12.473881, 12.214094, 8.251854, 12.486327, 12.196962, 7.055665, 12.891929, 12.825294, 8.046945, 12.740107, 9.798116])
array([17.451507, 2.698454, 24.30649 , 15.647245, 0.446937, 3.18899 , 0.386683, 11.078212, 2.241632, 2.451691, 7.536511, 0.458298, 5.57667 , 19.097995, 15.91463 , 2.798979, 5.344255, 8.631121, 0.229655, 10.732405, 18.790912, 19.472606, 0.327796, 11.400965, 0.255079, 0.325706, 0.580177, 16.86812 , 2.641294, 14.217858, 13.038719, 9.062264, 19.783037, 2.303128, 21.068442, 3.683203, 2.698838, 0.4282 , 1.477017, 21.404722, 4.276011, 0.296387, 0.455911, 4.740261, 5.158296, 0.446537, 0.33234 , 4.826439, 0.12721 , 1.797975, 1.791461, 0.274249, 0.173241, 1.533963, 6.51778 , 18.658292, 0.384748, 9.053676, 0.352042, 0.428948, 5.00903 , 19.049945, 2.860801, 13.203601, 22.473899, 1.692519, 18.386429, 6.249072, 18.051373, 18.678837, 3.894575, 1.269643, 20.632056, 0.424733, 3.305606, 24.387533, 22.963878, 12.296013, 3.396955, 6.92568 , 17.329316, 23.075373, 4.545946, 16.51957 , 12.17265 , 12.542991, 2.257842, 0.327976, 3.474301, 0.419781, 0.748842, 0.389671, 0.672094, 10.314635, 0.424369, 13.32885 , 14.559036, 0.433345, 4.168514, 4.968965, 8.21984 , 2.192815, 17.3367 , 9.273479, 0.835019, 7.430757, 24.187386, 1.339876, 13.808125, 0.78255 , 9.357683, 3.221481, 6.041552, 10.124131, 7.27951 , 1.108193, 0.49786 , 0.516656, 6.070975, 2.732675, 0.5038 , 9.000901, 0.494444, 0.480433, 0.991054, 0.454406, 3.71128 , 6.77912 , 0.436394, 17.323714, 0.372039, 0.330355, 19.443338, 0.285518, 1.863562, 22.483132, 6.071228, 22.940759])
array([ 3.572479, 0.205547, 0.66791 , 4.552068, 0.075319, 0.083674, 0.117782, 0.820338, 7.682899, 8.017848, 10.012206, 0.073798, 0.061533, 0.046616, 0.154519, 0.625793, 0.419928, 1.787517, 0.05259 , 0.02279 , 0.808802, 3.314562, 0.095291, 0.149282, 0.223441, 0.320506, 0.323793, 1.342088, 1.405366, 6.649205, 3.965839, 7.56667 , 17.177983, 1.987445, 2.673941, 0.136072, 0.139271, 0.084766, 0.291435, 0.183982, 1.064013, 0.055846, 0.052273, 0.125618, 0.063141, 0.051732, 0.053911, 0.064412, 0.128029, 0.810689, 0.195822, 0.184129, 0.096506, 0.213458, 0.04438 , 0.317355, 0.145043, 2.174404, 0.257566, 0.838289, 0.444547, 0.663088, 4.094775, 3.878115, 15.639436, 6.41818 , 8.047555, 7.052904, 12.604101, 3.538736, 2.274257, 1.030269, 6.816191, 0.549566, 0.420193, 1.250196, 4.399033, 4.069814, 0.603927, 0.190836, 0.073602, 0.22375 , 0.616564, 0.193866, 0.243688, 0.117793, 0.746515, 0.085722, 0.264306, 0.067344, 0.263702, 0.089767, 0.080313, 0.905459, 0.083438, 2.642739, 4.410247, 0.635643, 1.409716, 1.172895, 1.785428, 5.789087, 10.266036, 1.712026, 0.43912 , 5.732886, 0.195408, 0.224383, 2.536392, 0.109585, 0.955915, 0.08041 , 0.094999, 0.059137, 0.076277, 0.232951, 0.072096, 0.079162, 0.326765, 0.456621, 0.104632, 1.205356, 0.075554, 0.100743, 0.501472, 0.147678, 0.472829, 0.66556 , 0.145095, 0.258632, 0.111284, 0.204145, 0.789139, 1.041254, 2.714972, 9.856695, 9.011336, 8.79128 ])
array(['GS2A_20160208T190542_003299_N03.00', 'GS2A_20160408T190302_004157_N02.12', 'GS2A_20160421T191022_004343_N02.12', 'GS2A_20160720T190922_005630_N02.12', 'GS2A_20160727T185922_005730_N02.12', 'GS2A_20160816T185922_006016_N02.12', 'GS2A_20160829T190912_006202_N02.12', 'GS2A_20160925T190122_006588_N02.12', 'GS2A_20161207T191802_007632_N02.12', 'GS2A_20170103T190802_008018_N03.00', 'GS2A_20170106T191751_008061_N03.00', 'GS2A_20170523T185921_010020_N02.12', 'GS2A_20170605T190921_010206_N02.12', 'GS2A_20170625T190911_010492_N02.12', 'GS2A_20170702T185921_010592_N02.12', 'GS2A_20170715T190911_010778_N02.12', 'GS2A_20170722T185921_010878_N02.12', 'GS2B_20170730T190909_002084_N02.12', 'GS2A_20170804T190921_011064_N02.12', 'GS2B_20170806T185919_002184_N02.12', ... 'GS2B_20200731T185919_017771_N02.12', 'GS2A_20200805T185921_026751_N02.12', 'GS2B_20200810T185919_017914_N02.12', 'GS2B_20200813T190919_017957_N02.12', 'GS2A_20200815T185921_026894_N02.12', 'GS2B_20200823T190919_018100_N02.12', 'GS2A_20200825T185921_027037_N02.12', 'GS2A_20200828T190921_027080_N02.12', 'GS2B_20200830T185919_018200_N02.12', 'GS2B_20200902T190919_018243_N02.12', 'GS2A_20200904T185921_027180_N02.12', 'GS2A_20200907T190931_027223_N02.12', 'GS2B_20200909T185929_018343_N02.12', 'GS2B_20200929T190109_018629_N02.12', 'GS2B_20201002T191229_018672_N02.12', 'GS2B_20201101T191539_019101_N02.12', 'GS2B_20201108T190619_019201_N02.12', 'GS2B_20201121T191719_019387_N02.12', 'GS2B_20201201T191749_019530_N02.12', 'GS2B_20201228T190809_019916_N02.12'], dtype='<U34')
array([1.02901433, 0.99938378, 0.99202579, 0.96812428, 0.96918193, 0.97455418, 0.97970708, 0.99341194, 1.0297826 , 1.03427499, 1.03431875, 0.97671247, 0.97224036, 0.96810072, 0.96750671, 0.9676223 , 0.9683392 , 0.96970937, 0.97085335, 0.9713692 , 0.97280888, 0.97552763, 0.97828709, 0.9878139 , 0.99493153, 0.99777565, 0.99891836, 1.00922617, 1.01308531, 1.02969298, 1.03027017, 1.03426542, 1.03381977, 1.02753569, 1.02360463, 0.99126155, 0.98962815, 0.98110364, 0.97683101, 0.97325402, 0.96939166, 0.96739965, 0.96744203, 0.96760163, 0.96775407, 0.96829897, 0.96873739, 0.96907327, 0.96964739, 0.97077831, 0.97128902, 0.97212268, 0.97367233, 0.97541647, 0.97616363, 0.97944311, 0.98263819, 0.98924987, 0.99476152, 1.00335517, 1.00450098, 1.00622308, 1.02196793, 1.02285992, 1.02616825, 1.0286577 , 1.03416161, 1.03409941, 1.03384991, 1.02241794, 1.02010288, 1.01913938, 1.01663057, 1.0123827 , 1.01128951, 1.00961874, 0.98979049, 0.98872269, 0.98714028, 0.98459443, 0.98361263, 0.98217056, 0.97695016, 0.97400805, 0.97335073, 0.97103204, 0.967674 , 0.96802019, 0.96825957, 0.96868974, 0.97000561, 0.97070394, 0.97120963, 0.9735731 , 0.978036 , 0.98155853, 0.99571823, 1.00144925, 1.01166946, 1.01275847, 1.01437569, 1.02680648, 1.03081581, 1.02469623, 1.0125473 , 1.01145564, 0.99835118, 0.99721056, 0.98474471, 0.98375989, 0.98231294, 0.97516647, 0.96797835, 0.96756284, 0.96798717, 0.96822101, 0.96896789, 0.96952584, 0.96993992, 0.97113095, 0.97253332, 0.97347475, 0.97413802, 0.9771026 , 0.97791134, 0.97918147, 0.98005514, 0.98141892, 0.98235171, 0.98380003, 0.98478558, 0.99554701, 0.99725851, 1.01421506, 1.01784208, 1.02390093, 1.02778005, 1.03388801])
array(['Sentinel-2A', 'Sentinel-2A', 'Sentinel-2A', 'Sentinel-2A', 'Sentinel-2A', 'Sentinel-2A', 'Sentinel-2A', 'Sentinel-2A', 'Sentinel-2A', 'Sentinel-2A', 'Sentinel-2A', 'Sentinel-2A', 'Sentinel-2A', 'Sentinel-2A', 'Sentinel-2A', 'Sentinel-2A', 'Sentinel-2A', 'Sentinel-2B', 'Sentinel-2A', 'Sentinel-2B', 'Sentinel-2A', 'Sentinel-2B', 'Sentinel-2B', 'Sentinel-2B', 'Sentinel-2B', 'Sentinel-2A', 'Sentinel-2B', 'Sentinel-2A', 'Sentinel-2A', 'Sentinel-2B', 'Sentinel-2A', 'Sentinel-2B', 'Sentinel-2B', 'Sentinel-2B', 'Sentinel-2B', 'Sentinel-2B', 'Sentinel-2B', 'Sentinel-2B', 'Sentinel-2B', 'Sentinel-2B', 'Sentinel-2A', 'Sentinel-2B', 'Sentinel-2B', 'Sentinel-2B', 'Sentinel-2A', 'Sentinel-2B', 'Sentinel-2B', 'Sentinel-2A', 'Sentinel-2A', 'Sentinel-2B', 'Sentinel-2A', 'Sentinel-2A', 'Sentinel-2B', 'Sentinel-2A', 'Sentinel-2B', 'Sentinel-2A', 'Sentinel-2A', 'Sentinel-2A', 'Sentinel-2A', 'Sentinel-2B', 'Sentinel-2A', 'Sentinel-2A', 'Sentinel-2A', 'Sentinel-2B', 'Sentinel-2A', 'Sentinel-2A', 'Sentinel-2B', 'Sentinel-2A', 'Sentinel-2A', 'Sentinel-2A', 'Sentinel-2B', 'Sentinel-2A', 'Sentinel-2B', 'Sentinel-2A', 'Sentinel-2B', 'Sentinel-2B', 'Sentinel-2A', 'Sentinel-2B', 'Sentinel-2B', 'Sentinel-2A', 'Sentinel-2B', 'Sentinel-2B', 'Sentinel-2A', 'Sentinel-2B', 'Sentinel-2A', 'Sentinel-2B', 'Sentinel-2B', 'Sentinel-2B', 'Sentinel-2A', 'Sentinel-2A', 'Sentinel-2A', 'Sentinel-2A', 'Sentinel-2B', 'Sentinel-2A', 'Sentinel-2B', 'Sentinel-2A', 'Sentinel-2A', 'Sentinel-2A', 'Sentinel-2B', 'Sentinel-2A', 'Sentinel-2A', 'Sentinel-2A', 'Sentinel-2B', 'Sentinel-2A', 'Sentinel-2B', 'Sentinel-2A', 'Sentinel-2A', 'Sentinel-2B', 'Sentinel-2B', 'Sentinel-2A', 'Sentinel-2A', 'Sentinel-2A', 'Sentinel-2A', 'Sentinel-2B', 'Sentinel-2A', 'Sentinel-2B', 'Sentinel-2A', 'Sentinel-2A', 'Sentinel-2B', 'Sentinel-2A', 'Sentinel-2B', 'Sentinel-2B', 'Sentinel-2A', 'Sentinel-2B', 'Sentinel-2A', 'Sentinel-2A', 'Sentinel-2B', 'Sentinel-2B', 'Sentinel-2A', 'Sentinel-2A', 'Sentinel-2B', 'Sentinel-2B', 'Sentinel-2B', 'Sentinel-2B', 'Sentinel-2B', 'Sentinel-2B', 'Sentinel-2B', 'Sentinel-2B'], dtype='<U11')
array('S2MSI2A', dtype='<U7')
array(32610)
array({10980}, dtype=object)
array({0.0, 5300040.0, 10.0, 499980.0, -10.0}, dtype=object)
array(['Band 4 - Red - 10m', 'Band 3 - Green - 10m', 'Band 2 - Blue - 10m'], dtype='<U20')
array({5190240.0, 609780.0, 499980.0, 5300040.0}, dtype=object)
array(10.)
array(['red', 'green', 'blue'], dtype='<U5')
array([0.665, 0.56 , 0.49 ])
array([0.038, 0.045, 0.098])
array(32610)
Since the data matching our query isn't too large we can persist it in distributed memory. Once in memory, subsequent operations will be much faster.
data = data.persist()
Using normal xarray operations, we can compute the median over the time dimension. Under the assumption that clouds are transient, the composite shouldn't contain (many) clouds, since they shouldn't be the median pixel value at that point over many images.
This will be computed in parallel on the cluster (make sure to open the Dask Dashboard using the link printed out above).
median = data.median(dim="time").compute()
To visualize the data, we'll use xarray-spatial's true_color
method to convert to red/green/blue values.
image = ms.true_color(*median) # expects red, green, blue DataArrays
import matplotlib.pyplot as plt
fig, ax = plt.subplots(figsize=(8, 8))
ax.set_axis_off()
image.plot.imshow(ax=ax);
Now suppose we don't want to combine images from different parts of the year (for example, we might not want to combine images from January that often include snow with images from July). Again using standard xarray syntax, we can create set of per-month composites by grouping by month and then taking the median.
monthly = data.groupby("time.month").median().compute()
Let's convert each of those arrays to a true-color image and plot the results as a grid.
images = [ms.true_color(*x) for x in monthly]
images = xr.concat(images, dim="time")
g = images.plot.imshow(x="x", y="y", rgb="band", col="time", col_wrap=3, figsize=(6, 8))
for ax in g.axes.flat:
ax.set_axis_off()
plt.tight_layout()
To learn more about using the the Planetary Computer's STAC API, see Reading data from the STAC API. To learn more about Dask, see Scaling with Dask.