-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Output of 'CO2EFFECTS' does not match output function #78
Comments
The culprit is the function |
So, yes, How would you approach this problem? The current solution is the way it is partly because I didn't see a straightforward way to integrate CO2 effects into the existing scheme, so your advice would be appreciated. I wish I could ask specific questions, but I don't really know where to start. So, I will just mention what I've observed and please correct me as I do so. From my understanding, What I don't completely understand is how the sums and averages are being generated. For instance, how are values given to the variables in I also see that there is a function
And then I will be able to access the averages. For CO2 output, do I have to do something similar in any other functions? e.g. To give you an example of why it is hard for me to understand, I initially did look at similar outputs to try to develop CO2 in the same way. For instance, So, I hope that you could kindly explain a bit about the approach to aggregating in SOILWAT2. I would be happy to formally document your explanation within SW_Output/SW_Soilwater/SW_Weather. |
I've investigated this much more and think I understand the concept now. What was confusing beforehand was that I was trying to add biomass/biolive variables to |
- close DrylandEcology/rSOILWAT2#78 - close DrylandEcology/rSOILWAT2#73 - file 'testing/Input/outsetup_v31.in' * fully explain what output columns are * rename output file to 'vegetation' from 'co2_effects' - function '_collect_values()' did not call `SW_OUT_sum_today(eVPD)` - return value of function 'get_co2effects' was 'void' instead of 'static void' as every other 'get_*' function - function 'SW_OUT_flush' did not call `SW_OUT_sum_today(eVPD)` - function 'sumof_vpd' only ever added biomass values into output slots from 'Today' which is 1 -- the correct index is 'SW_Model.doy' - function 'average_for' precluded 'ObjType's other than 'eSWC' and 'eWTH' to perform averaging
Values in output slot "CO2EFFECTS" are not calculated with the aggregation function that is specified.
This causes unit tests to fail:
The output itself looks reasonable, so I don't think we need to change anything there.
The text was updated successfully, but these errors were encountered: