-
Notifications
You must be signed in to change notification settings - Fork 5
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
Stepwat soilwat output new may #44
Conversation
…and changed stat_Output_AllSoilwatVariables to store PPT in month formate
…on averaging values over iterations
This functionality does not work with STEPWAT. We can not have multiple time periods for a single value when USE_TIMESTEP = 0 |
Yes, I know that USE_TIMESTEP = 0 was not previously functional in STEPWAT2. But Daniel's previous comment on Issue #120 in soil_save_output (copied below), indicated the potential for this functionality exists. @BrendenBe1 @dschlaep We should discuss how long this would take/how easy it would be. Daniel's comment: From documentation of SW_OUT_read: We have two options to specify time steps:
However, either way, the global variable OutPeriod timeSteps[SW_OUTNKEYS][SW_OUTNPERIODS];// array to keep track of the periods that will be used for each output int used_OUTNPERIODS; // number of different time steps/periods that are used/requested used_OUTNPERIODS = 2; |
…values for veg types. Moved variables around to put them in locations that make the most logical sense.
…where 2 extra columns were being added.
I was looking into making this work but I don't see an easy or quick way to implement it. Based off of Daniels comment it sounds like it is possible in rSOILWAT but the way that it is currently working in SOILWAT I don't see how to implement this without a big change to reading the input files. |
…e SOILWAT changes
@dschlaep - do you see an easy solution to implementing multiple (but potentially different) time periods for output variables in SOILWAT2? If this can't be implemented easily for now, I suppose we can add this as a long term goal. @BrendenBe1 Thanks for your ongoing changes - I will plan on reviewing again once you address Daniel's comments, which I see you are actively working on. |
…ome unnecessary and redundant code
@kpalmqui Re: easy solution to implementing multiple (but potentially different) time periods for output variables in SOILWAT2
|
Note that _write_sw_outin has been removed from stepwat_soilwat_output_new_may. Perhaps it is clear to Brenden, but let's talk about and may sure he understands what you mean by "would externalize and manipulate the content of the global SOILWAT2 variables SW_Output and timeSteps (which are defined in SW_Output.c. ". |
This function (_res_part_extra) is already called above on lines 123-124 and were accidentally duplicated here. We don’t need to call it twice.
…OILWAT issue #157 SWA no longer requires SWCBULK to run SOILWAT or STEPWAT and is not broken if SWCBULK is set to another sumtype other than AVG.
…culations. The Values need testing under the STEPWAT flag and a few variables in the structure need altering still.
…ded due to moving the SWA calculations to SOILWAT.
Updated comment on what SWA represents
…imeperiods seperate.
…into stepwat_soilwat_output_new_may
…0. Also added call to closeFile function and fixed some compiler warnings.
…_params.c and ST_grid.c
…ke new variables work with STEPWAT.
Check SWA_master and dSWAbulk values to verify that available soil water is being calculated correctly in SWA_master. Also check in dSWAbulk that soilwater for each vegetation type at all critical values is correct.