diff --git a/datasets/sentinel-2-l2a/baseline-change.ipynb b/datasets/sentinel-2-l2a/baseline-change.ipynb
index f69d7f98..8de001d1 100755
--- a/datasets/sentinel-2-l2a/baseline-change.ipynb
+++ b/datasets/sentinel-2-l2a/baseline-change.ipynb
@@ -90,8 +90,7 @@
" to_process = list(set(bands) & set(data.band.data.tolist()))\n",
" new = data.sel(time=slice(cutoff, None)).drop_sel(band=to_process)\n",
"\n",
- " new_harmonized = data.sel(time=slice(cutoff, None), band=to_process).copy()\n",
- " new_harmonized.clip(offset)\n",
+ " new_harmonized = data.sel(time=slice(cutoff, None), band=to_process).clip(offset)\n",
" new_harmonized -= offset\n",
"\n",
" new = xr.concat([new, new_harmonized], \"band\").sel(band=data.band.data.tolist())\n",
@@ -502,7 +501,7 @@
" stroke: currentColor;\n",
" fill: currentColor;\n",
"}\n",
- "
<xarray.DataArray 'stackstac-48d41966479ec31b57df72e75da3841b' (time: 2,\n",
+ "<xarray.DataArray 'stackstac-7f8b9fd36f84dee2d0c759174b259b65' (time: 2,\n",
" band: 6,\n",
" y: 1000, x: 1000)>\n",
"dask.array<fetch_raster_window, shape=(2, 6, 1000, 1000), dtype=float64, chunksize=(1, 1, 1000, 1000), chunktype=numpy.ndarray>\n",
@@ -512,7 +511,7 @@
" * band (band) <U3 'B02' 'B03' ... 'AOT'\n",
" * x (x) float64 6e+05 6e+05 ... 6.1e+05\n",
" * y (y) float64 7.7e+06 ... 7.69e+06\n",
- " sat:orbit_state <U10 'descending'\n",
+ " s2:reflectance_conversion_factor (time) float64 1.034 1.034\n",
" ... ...\n",
" proj:bbox object {600000.0, 7690240.0, 780...\n",
" gsd (band) float64 10.0 10.0 ... 10.0\n",
@@ -524,7 +523,7 @@
" spec: RasterSpec(epsg=32750, bounds=(600000.0, 7690240.0, 610000.0...\n",
" crs: epsg:32750\n",
" transform: | 10.00, 0.00, 600000.00|\\n| 0.00,-10.00, 7700240.00|\\n| 0.0...\n",
- " resolution: 10.0dask.array<chunksize=(1, 1, 1000, 1000), meta=np.ndarray>
\n",
+ " resolution: 10.0time
(time)
datetime64[ns]
2022-01-06T02:13:39.024000 2023-...
array(['2022-01-06T02:13:39.024000000', '2023-01-16T02:13:41.024000000'],\n",
+ " dtype='datetime64[ns]')
id
(time)
<U54
'S2B_MSIL2A_20220106T021339_R060...
array(['S2B_MSIL2A_20220106T021339_R060_T50KPC_20220107T033435',\n",
" 'S2A_MSIL2A_20230116T021341_R060_T50KPC_20230116T112621'],\n",
- " dtype='<U54')band
(band)
<U3
'B02' 'B03' 'B04' 'B05' 'B06' 'AOT'
array(['B02', 'B03', 'B04', 'B05', 'B06', 'AOT'], dtype='<U3')
x
(x)
float64
6e+05 6e+05 ... 6.1e+05 6.1e+05
array([600000., 600010., 600020., ..., 609970., 609980., 609990.])
y
(y)
float64
7.7e+06 7.7e+06 ... 7.69e+06
array([7700240., 7700230., 7700220., ..., 7690270., 7690260., 7690250.])
sat:orbit_state
()
<U10
'descending'
array('descending', dtype='<U10')s2:degraded_msi_data_percentage
()
float64
0.0
s2:product_type
()
<U7
'S2MSI2A'
array('S2MSI2A', dtype='<U7')s2:datatake_type
()
<U8
'INS-NOBS'
array('INS-NOBS', dtype='<U8')proj:epsg
()
int64
32750
s2:datatake_id
(time)
<U34
'GS2B_20220106T021339_025254_N03...
array(['GS2B_20220106T021339_025254_N03.00',\n",
- " 'GS2A_20230116T021341_039525_N04.00'], dtype='<U34')
s2:high_proba_clouds_percentage
(time)
float64
0.009021 0.06926
array([0.009021, 0.069263])
s2:datastrip_id
(time)
<U64
'S2B_OPER_MSI_L2A_DS_ESRI_202201...
array(['S2B_OPER_MSI_L2A_DS_ESRI_20220107T033435_S20220106T022252_N03.00',\n",
+ " dtype='<U54')
band
(band)
<U3
'B02' 'B03' 'B04' 'B05' 'B06' 'AOT'
array(['B02', 'B03', 'B04', 'B05', 'B06', 'AOT'], dtype='<U3')
x
(x)
float64
6e+05 6e+05 ... 6.1e+05 6.1e+05
array([600000., 600010., 600020., ..., 609970., 609980., 609990.])
y
(y)
float64
7.7e+06 7.7e+06 ... 7.69e+06
array([7700240., 7700230., 7700220., ..., 7690270., 7690260., 7690250.])
s2:reflectance_conversion_factor
(time)
float64
1.034 1.034
array([1.03431236, 1.03393585])
sat:orbit_state
()
<U10
'descending'
array('descending', dtype='<U10')s2:dark_features_percentage
(time)
float64
0.118 0.00577
array([0.117992, 0.00577 ])
s2:processing_baseline
(time)
<U5
'03.00' '04.00'
array(['03.00', '04.00'], dtype='<U5')
s2:mean_solar_azimuth
(time)
float64
99.76 96.38
array([99.75935412, 96.37513022])
eo:cloud_cover
(time)
float64
0.03192 1.856
array([0.031924, 1.855648])
s2:thin_cirrus_percentage
(time)
float64
0.0 1.648
s2:nodata_pixel_percentage
(time)
float64
0.0 7e-06
instruments
()
<U3
'msi'
array('msi', dtype='<U3')s2:not_vegetated_percentage
(time)
float64
54.74 55.23
array([54.737449, 55.233008])
s2:vegetation_percentage
(time)
float64
0.386 0.3828
array([0.385951, 0.382849])
s2:high_proba_clouds_percentage
(time)
float64
0.009021 0.06926
array([0.009021, 0.069263])
s2:product_uri
(time)
<U65
'S2B_MSIL2A_20220106T021339_N030...
array(['S2B_MSIL2A_20220106T021339_N0300_R060_T50KPC_20220107T033435.SAFE',\n",
+ " 'S2A_MSIL2A_20230116T021341_N0400_R060_T50KPC_20230116T112621.SAFE'],\n",
+ " dtype='<U65')
s2:cloud_shadow_percentage
(time)
float64
0.01462 0.2521
array([0.014618, 0.252099])
s2:mgrs_tile
()
<U5
'50KPC'
array('50KPC', dtype='<U5')constellation
()
<U10
'Sentinel 2'
array('Sentinel 2', dtype='<U10')s2:water_percentage
(time)
float64
43.82 42.21
array([43.815303, 42.207554])
sat:relative_orbit
()
int64
60
s2:snow_ice_percentage
()
float64
0.0
s2:datastrip_id
(time)
<U64
'S2B_OPER_MSI_L2A_DS_ESRI_202201...
array(['S2B_OPER_MSI_L2A_DS_ESRI_20220107T033435_S20220106T022252_N03.00',\n",
" 'S2A_OPER_MSI_L2A_DS_ESRI_20230116T112623_S20230116T021431_N04.00'],\n",
- " dtype='<U64')s2:reflectance_conversion_factor
(time)
float64
1.034 1.034
array([1.03431236, 1.03393585])
constellation
()
<U10
'Sentinel 2'
array('Sentinel 2', dtype='<U10')sat:relative_orbit
()
int64
60
s2:nodata_pixel_percentage
(time)
float64
0.0 7e-06
s2:dark_features_percentage
(time)
float64
0.118 0.00577
array([0.117992, 0.00577 ])
s2:vegetation_percentage
(time)
float64
0.386 0.3828
array([0.385951, 0.382849])
s2:granule_id
(time)
<U62
'S2B_OPER_MSI_L2A_TL_ESRI_202201...
array(['S2B_OPER_MSI_L2A_TL_ESRI_20220107T033435_A025254_T50KPC_N03.00',\n",
+ " dtype='<U64')
s2:medium_proba_clouds_percentage
(time)
float64
0.0229 0.1388
array([0.022903, 0.138752])
s2:product_type
()
<U7
'S2MSI2A'
array('S2MSI2A', dtype='<U7')s2:mean_solar_zenith
(time)
float64
25.28 26.23
array([25.28209086, 26.22624432])
s2:saturated_defective_pixel_percentage
()
float64
0.0
proj:epsg
()
int64
32750
s2:datatake_type
()
<U8
'INS-NOBS'
array('INS-NOBS', dtype='<U8')s2:datatake_id
(time)
<U34
'GS2B_20220106T021339_025254_N03...
array(['GS2B_20220106T021339_025254_N03.00',\n",
+ " 'GS2A_20230116T021341_039525_N04.00'], dtype='<U34')
s2:unclassified_percentage
(time)
float64
0.8968 0.06308
array([0.896762, 0.063075])
s2:degraded_msi_data_percentage
()
float64
0.0
s2:generation_time
(time)
<U27
'2022-01-07T03:34:35.286504Z' '2...
array(['2022-01-07T03:34:35.286504Z', '2023-01-16T11:26:21.757846Z'],\n",
+ " dtype='<U27')
s2:granule_id
(time)
<U62
'S2B_OPER_MSI_L2A_TL_ESRI_202201...
array(['S2B_OPER_MSI_L2A_TL_ESRI_20220107T033435_A025254_T50KPC_N03.00',\n",
" 'S2A_OPER_MSI_L2A_TL_ESRI_20230116T112623_A039525_T50KPC_N04.00'],\n",
- " dtype='<U62')s2:product_uri
(time)
<U65
'S2B_MSIL2A_20220106T021339_N030...
array(['S2B_MSIL2A_20220106T021339_N0300_R060_T50KPC_20220107T033435.SAFE',\n",
- " 'S2A_MSIL2A_20230116T021341_N0400_R060_T50KPC_20230116T112621.SAFE'],\n",
- " dtype='<U65')
s2:mean_solar_zenith
(time)
float64
25.28 26.23
array([25.28209086, 26.22624432])
s2:processing_baseline
(time)
<U5
'03.00' '04.00'
array(['03.00', '04.00'], dtype='<U5')
s2:mgrs_tile
()
<U5
'50KPC'
array('50KPC', dtype='<U5')eo:cloud_cover
(time)
float64
0.03192 1.856
array([0.031924, 1.855648])
s2:saturated_defective_pixel_percentage
()
float64
0.0
s2:snow_ice_percentage
()
float64
0.0
s2:water_percentage
(time)
float64
43.82 42.21
array([43.815303, 42.207554])
s2:cloud_shadow_percentage
(time)
float64
0.01462 0.2521
array([0.014618, 0.252099])
s2:medium_proba_clouds_percentage
(time)
float64
0.0229 0.1388
array([0.022903, 0.138752])
instruments
()
<U3
'msi'
array('msi', dtype='<U3')s2:generation_time
(time)
<U27
'2022-01-07T03:34:35.286504Z' '2...
array(['2022-01-07T03:34:35.286504Z', '2023-01-16T11:26:21.757846Z'],\n",
- " dtype='<U27')
s2:thin_cirrus_percentage
(time)
float64
0.0 1.648
s2:mean_solar_azimuth
(time)
float64
99.76 96.38
array([99.75935412, 96.37513022])
platform
(time)
<U11
'Sentinel-2B' 'Sentinel-2A'
array(['Sentinel-2B', 'Sentinel-2A'], dtype='<U11')
s2:not_vegetated_percentage
(time)
float64
54.74 55.23
array([54.737449, 55.233008])
s2:unclassified_percentage
(time)
float64
0.8968 0.06308
array([0.896762, 0.063075])
title
(band)
<U36
'Band 2 - Blue - 10m' ... 'Aeros...
array(['Band 2 - Blue - 10m', 'Band 3 - Green - 10m',\n",
+ " dtype='<U62')
platform
(time)
<U11
'Sentinel-2B' 'Sentinel-2A'
array(['Sentinel-2B', 'Sentinel-2A'], dtype='<U11')
title
(band)
<U36
'Band 2 - Blue - 10m' ... 'Aeros...
array(['Band 2 - Blue - 10m', 'Band 3 - Green - 10m',\n",
" 'Band 4 - Red - 10m', 'Band 5 - Vegetation red edge 1 - 20m',\n",
" 'Band 6 - Vegetation red edge 2 - 20m',\n",
- " 'Aerosol optical thickness (AOT)'], dtype='<U36')proj:bbox
()
object
{600000.0, 7690240.0, 7800040.0,...
array({600000.0, 7690240.0, 7800040.0, 709800.0}, dtype=object)gsd
(band)
float64
10.0 10.0 10.0 20.0 20.0 10.0
array([10., 10., 10., 20., 20., 10.])
common_name
(band)
object
'blue' 'green' ... 'rededge' None
array(['blue', 'green', 'red', 'rededge', 'rededge', None], dtype=object)
center_wavelength
(band)
object
0.49 0.56 0.665 0.704 0.74 None
array([0.49, 0.56, 0.665, 0.704, 0.74, None], dtype=object)
full_width_half_max
(band)
object
0.098 0.045 0.038 0.019 0.018 None
array([0.098, 0.045, 0.038, 0.019, 0.018, None], dtype=object)
epsg
()
int64
32750
PandasIndex
PandasIndex(DatetimeIndex(['2022-01-06 02:13:39.024000', '2023-01-16 02:13:41.024000'], dtype='datetime64[ns]', name='time', freq=None))
PandasIndex
PandasIndex(Index(['B02', 'B03', 'B04', 'B05', 'B06', 'AOT'], dtype='object', name='band'))
PandasIndex
PandasIndex(Float64Index([600000.0, 600010.0, 600020.0, 600030.0, 600040.0, 600050.0,\n",
+ " 'Aerosol optical thickness (AOT)'], dtype='<U36')
proj:bbox
()
object
{600000.0, 7690240.0, 7800040.0,...
array({600000.0, 7690240.0, 7800040.0, 709800.0}, dtype=object)gsd
(band)
float64
10.0 10.0 10.0 20.0 20.0 10.0
array([10., 10., 10., 20., 20., 10.])
common_name
(band)
object
'blue' 'green' ... 'rededge' None
array(['blue', 'green', 'red', 'rededge', 'rededge', None], dtype=object)
center_wavelength
(band)
object
0.49 0.56 0.665 0.704 0.74 None
array([0.49, 0.56, 0.665, 0.704, 0.74, None], dtype=object)
full_width_half_max
(band)
object
0.098 0.045 0.038 0.019 0.018 None
array([0.098, 0.045, 0.038, 0.019, 0.018, None], dtype=object)
epsg
()
int64
32750
PandasIndex
PandasIndex(DatetimeIndex(['2022-01-06 02:13:39.024000', '2023-01-16 02:13:41.024000'], dtype='datetime64[ns]', name='time', freq=None))
PandasIndex
PandasIndex(Index(['B02', 'B03', 'B04', 'B05', 'B06', 'AOT'], dtype='object', name='band'))
PandasIndex
PandasIndex(Float64Index([600000.0, 600010.0, 600020.0, 600030.0, 600040.0, 600050.0,\n",
" 600060.0, 600070.0, 600080.0, 600090.0,\n",
" ...\n",
" 609900.0, 609910.0, 609920.0, 609930.0, 609940.0, 609950.0,\n",
" 609960.0, 609970.0, 609980.0, 609990.0],\n",
- " dtype='float64', name='x', length=1000))PandasIndex
PandasIndex(Float64Index([7700240.0, 7700230.0, 7700220.0, 7700210.0, 7700200.0, 7700190.0,\n",
+ " dtype='float64', name='x', length=1000))
PandasIndex
PandasIndex(Float64Index([7700240.0, 7700230.0, 7700220.0, 7700210.0, 7700200.0, 7700190.0,\n",
" 7700180.0, 7700170.0, 7700160.0, 7700150.0,\n",
" ...\n",
" 7690340.0, 7690330.0, 7690320.0, 7690310.0, 7690300.0, 7690290.0,\n",
" 7690280.0, 7690270.0, 7690260.0, 7690250.0],\n",
- " dtype='float64', name='y', length=1000))
- spec :
- RasterSpec(epsg=32750, bounds=(600000.0, 7690240.0, 610000.0, 7700240.0), resolutions_xy=(10.0, 10.0))
- crs :
- epsg:32750
- transform :
- | 10.00, 0.00, 600000.00|\n",
+ " dtype='float64', name='y', length=1000))
- spec :
- RasterSpec(epsg=32750, bounds=(600000.0, 7690240.0, 610000.0, 7700240.0), resolutions_xy=(10.0, 10.0))
- crs :
- epsg:32750
- transform :
- | 10.00, 0.00, 600000.00|\n",
"| 0.00,-10.00, 7700240.00|\n",
"| 0.00, 0.00, 1.00|
- resolution :
- 10.0
"
],
"text/plain": [
- "\n",
"dask.array\n",
@@ -668,7 +667,7 @@
" * band (band)