This is the code repository for the scientific manuscript: "On the potential of Sentinel-2 for estimating Gross Primary Production". For further details see: https://ieeexplore.ieee.org/document/9715117
-
Example scripts for the post-processing of Sentinel-2 images are presented in the post-processing folder.
-
The scripts to generate the Sentinel-2 cubes (A netcdf file per site with 4 dimensions: Lat, Lon, Time, Variable) are presented in the cubes_generation folder.
-
The scripts to predict GPP using linear regressions and random forest are presented in the GPP_prediction folder.
-
In the folder final_models we present the random forest models pre-trained to predict GPP. You can use the function sentinel-2_gpp_function.R to upscale GPP using any Sentinel-2 L2A product from Copernicus. An example of how to use the function is presented in the script example_upscaling_GPP_Sentinel2.R