farmingpy.eo.BioPhysS2tbx#
- class BioPhysS2tbx(product='LAI', resolution=20, stbx_version='3.0')[source]#
Implementation of Sentinel 2 Toolbox Neural Network for predicting biophysical parameters from Sentinel 2 data. Uses weights from s2tbx-biophysical: senbox-org/s2tbx
The model does input and output range validation, but omits convexity checks.
Based on: Weiss, M., Baret, F., Jay, S., 2020. S2ToolBox level 2 products LAI, FAPAR, FCOVER. EMMAH-CAPTE, INRAe Avignon. http://step.esa.int/docs/extra/ATBD_S2ToolBox_V2.0.pdf
- __init__(product='LAI', resolution=20, stbx_version='3.0')[source]#
- Parameters:
product (str, optional) – Output product, “LAI”, “FAPAR”, “FCOVER”, “LAI_Cab” or “LAI_cw”. Defaults to “LAI”.
resolution (int, optional) – Model resolution to use 10 or 20. Defaults to 20.
stbx_version (str, optional) – Toolbox version for weights 2.1 or 3.0. Defaults to “3.0”.
Methods
__init__
([product, resolution, stbx_version])clean_input
(ds)denormalize
(normalized, min, max)normalize
(unnormalized, min, max)