farmingpy.eo.planet_to_S2_dataset

farmingpy.eo.planet_to_S2_dataset#

planet_to_S2_dataset(ds)[source]#

Convert PlanetScope 8 band image to fake Sentinel2 dataset to be used with twinyields.eo.BioPhysStbx models.

Parameters:

ds (xarray.DataArray) – Planet image loaded using read_planet.

Returns:

Dataset with bands that can be used with twinyields.eo.BioPhysStbx 10m models.

Return type:

xarray.DataArray