vezy / dynacof Goto Github PK
View Code? Open in Web Editor NEWThe Dynamic Agroforestry Coffee Crop Model
Home Page: https://vezy.github.io/DynACof/
License: GNU General Public License v3.0
The Dynamic Agroforestry Coffee Crop Model
Home Page: https://vezy.github.io/DynACof/
License: GNU General Public License v3.0
TairCanopy_Tree is very much equal to Tair. Investigate why (either H is very low, either conductance is too high)
Sometimes coffee resprouts are pruned just before harvest in the model. This is nonsense as coffees always are pruned after harvest to avoid fruit loss.
Intercrevapor, the evaporation from the leaves -i.e. the precipitation intercepted by leaves and re-evaporated- is computed using the net radiation computed in the meteorology with Allen et al. (1998) equations. This should be replaced by an Rn computed by the model.
The difficulty is that Rn can only be computed knowing Intercrevapor, so an iteration process is needed. We could maybe find another equation to avoid that because it will increase the computation time that is already long.
Create a variable that keeps track of the total number of fruits on the coffee each days.
For now, lifespan is used as a ratio over the total dry mass for each organ. It should be used to remove organ mass that was created lifespan_organ days before "i".
This is what we do:
S$Sim$Mact_CR_Tree[i]=
S$Sim$CM_CR_Tree[previous_i(i,1)]/S$Parameters$lifespanCR_Tree
This is what we should do:
S$Sim$Mact_CR_Tree[i]=
S$Sim$NPP_CR_Tree[previous_i(i,S$Parameters$lifespanCR_Tree)]*
after(i,S$Parameters$lifespanCR_Tree)
With after() a function to avoid a positive value of NPP if i is before any mortality:
after= function(x,ref){
index= x-ref
index[index<=0]= 0
index[index>0]=1
return(index)
}
This technique will remove only the old dry mass instead of a constant ratio of the dry mass.
Using this formula:
humedadRelativaTavg: tAvg tempMax: tMax tempMin: tMin
"RH = 100 - 5 (T - Td) Td= temp dewpoint : point de rosée.
RH = (Td - T + 20) * 5
Td = 0.38 Tmax - 0.018 Tmax^2 + 1.4 Tmin - 5"
Many variables should only be computed (and kept) with 2 digits only. Find an efficient way to do that:
round(.,2)
.In any case, test the computation time (the first purpose here is to reduce overall computation time).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.