Open rjplevin opened 1 month ago
@rjplevin Proposed modifications #1 and #2 above look great. I approve converting output files to long format and having a units column in all cases.
As for the trial numbers in MCS mode, I don't know if any users will need actual outputs from each realization. More important I think are the statistics (mean, median, percentiles) of the variables if run in MCS mode. If we think there is a use case for seeing all trial outputs when run in MCS mode, then I think including trial numbers of course makes sense. But I think at least having an option to only see the statistics from each MCS run is much more useful.
The output files were already being generated for MCS, it was just that some were missing trial numbers. I see no reason to prevent their generation, which happens only if --results detailed
is specified.
For the statistics, I assume you mean just for overall carbon intensity at the designated system boundary? Yes, we can produce statistics for that, or for whatever else you think is useful (total emissions? total produced energy?) @lschmeisser-rmi
@rjplevin Great, if the trial output was already generated, I agree there's no reason to stop that if the work is already done! So in that case, agreed to add trial numbers.
And yes, if we can get statistics at the designated system boundary for all trials for variables of interest - CI, gases- that would be great. This is important for us because it helps us quantify uncertainty of the model estimates.
In adding an output for total energy output, I noticed that several of the output files were incorrect when running in MCS mode. Namely, they didn't include the trial number in the output data so data for a field were repeated without distinguishing by trial. I corrected this in a few of the files.
I also noticed that the files are pretty inconsistent in how they represent data and units:
They also differ as to whether process or field names are column headers or data. Most of the files are in "long" format, which is more verbose, but more flexible.
I propose to modify output files as follows:
I've made several of these changes in the branch I'm working on ("add-energy-output") but wanted to verify that these changes are acceptable and not going to cause much trouble downstream (particularly, converting energy and emissions data to long format.)