ESDS-Leipzig / cubo

On-Demand Earth System Data Cubes (ESDCs) in Python
https://cubo.readthedocs.io/en/latest/
MIT License
164 stars 9 forks source link

'cubo:distance_from_center' coord #16

Open Sonicious opened 5 months ago

Sonicious commented 5 months ago

The saved coord cubo:distance_from_center prevents the data to be reprojected.

data_sentinel2_subset = data_sentinel2.isel(time=0)
data_sentinel2_subset = data_sentinel2_subset.drop_vars(['cubo:distance_from_center']) # needed line
data_sentinel2_subset_reprojected = data_sentinel2_subset.rio.reproject('EPSG:3035')

Error:

ValueError: IndexVariable objects must be 1-dimensional