Subject: Export crop production results from API Posted: 3/18/2021 Viewed: 3740 times
I would like to export the "Annual crop production" from MABIA catchments in my model using the API. I am not exporting favorite results, but the values that the variable take at each time step with two nested loops:
For CalcYear = 1990 to 2010
For CalcTS = 1 to 12
WEAP.Branch("Demand Sites and Catchments\MABIA_Catchment").Variables("Annual Crop Production").Value(CalcYear, CalcTS)
This does not produce any result as I think it gets confused with another variable with the same name for SMM catchments (for which I have not added potential yield data). Is there anything I am missing here or it is simply that having the same name in the API the two variables get confused and WEAO exports the SMM one by default?