kartoza / tomorrownow_gap

https://kartoza.github.io/tomorrownow_gap/
0 stars 0 forks source link

Operationalise in-house models: suitable planting window (SPW R Code) #20

Open danangmassandy opened 3 months ago

danangmassandy commented 3 months ago

Check the R code that John has sent.

danangmassandy commented 2 months ago

I have checked the R code and tried to integrate the code in the system using Plumber. The required fields are evapotranspirationSum, rainAccumulationSum, LTNPET, and LTNPrecip.

danangmassandy commented 2 months ago

The R model is using Tomorrow.io data from below endpoints:

The variables that R model is using is only: rainAccumulationSum and evapotranspirationSum. I have created a data reader from tomorrow.io but currently it's only limited to these two variable and single point. We may need to add more variable for Crop Plan Generator to fetch short-term forecast.

gubuntu commented 2 months ago

SPW must fetch inputs from GAP, not directly from tomorrow.io

and write outputs to DB