What would be great though, is if a guy could create a codeblock like "Temperature0-100" and create 100 RH subs("Temperature0.RH0") which is possible but I don't know of a way to index through the .RH files.
Yes there is math behind it, I think it uses the modified Henderson equation. I did incorporate that equation along with a few other moisture curves into a math box and it works. But there seems to be a lot of inconsistency between the moisture curves I think in part due to all the different variety and breeds of grain out there. I just wanted to be able to have a backup plan in place in case the formulas are not effective. Also I can't seem to find any formulas for peas and lentils although there are charts available on the internet and while probably possible to sketch it out in excel and derive a formula I thought it would be easier to program a chart.
There's curve-fitting software where you can input the points and it will kick out an equation or equations together with correlation coefficients that gauge how good the fit is for each equation. Plus yeah, a chart is easy too.