RiverWare 6.3 Prep / SCT Unit Scheme Testing / Phil Weinstein, March 2013
3-21-2013 -- Ready for Review
Refer to David Neumann's testing guide ... Unit Scheme Test Plan (2-06-2013)
Issue Summary:
Aside: The new ability to select MULTIPLE slots in the Open Object Dialog and show them in an SCT is a big win. That was not possible prior to the Qt3-to-Qt4 port of the Open Object Dialog, which supported only single slot item selection.
Questions from the Unit Scheme Test Plan:
What happens when you change the unit scheme? | |
When you switch to a different scheme, or modify or add an exception: SERIES TAB:
SCALAR TAB:
OBJECT GRID:
|
|
(1) Does the SCT update if units are shown? (2) Does it give an indication if they are not shown? |
|
(1) Addressed above. YES for Series and Scalar Tabs. NO for the Object Grid Tab. NOTE: Operating the SCT Config Dialog with the Object Grid Tab is in use (i.e. at least one cell defined) results in a CRASH:
|
|
Does the aggregation configuration still work? | |
Yes. And the Aggregation Summary Cells do get recomputed correctly with respect to Unit Scheme changes. | |
What about the Object Grid and Scalar slot tab? Show Units toggle? |
|
See above. The "Show Units" toggle does work. |
|
Do Adjust Values and Interpolation still work correctly? | |
YES. With respect to Unit Schemes, only the Adjust Values operation is particularly relevant. This brings up a modal dialog box which includes an option in which a numeric value is specified in the currently active units for the slot. The units for the slot from the Unit Scheme are correctly presented, and the result of the Adjust Values operation on the set of selected cells is numerically correct. Note-1: Suggested Change: In the Adjust Values dialog, the user can't just enter a number and HIT THE ENTER KEY to apply the offset. The "OK" button is not the default button (nor is the "Cancel" button). Generally we don't want default buttons active in dialogs with muliple entry widgets. But in this case, the "OK" button should be an active default button so that when the user hits the Enter key, the offset is applied. Note-2: There is an enhancement (since RW 6.2) to the Interplotion function -- in both the SCT and the Open Slot Dialog -- which should perhaps be featured in "What's New" notes. The Interpolate function now supports an operation to interpolate BETWEEN (and not overwrite) intervening Inputs (if any are found). See this image. One possible application of this is filling in GAPS within series data. For that particular purpose, it might be good for the text message accompanying that option to indicate how many intervening timesteps DON'T have an Input flag, rather than only how many timesteps do.
|
|
Copy / Paste still work? | |
Yes. There is a distinction between ordinary (application-internal) copy and paste of values and Export/Import Copy and Paste. Both types work as expected -- and differently from each other -- with the various types of Unit Scheme change operations. With ordinary copy and paste, when slot values are copied, and unit scheme changes are made, the ultimate paste operation is performed in such a way that the actual physical quantities are preserved, and are presented in the target's current units according to Unit Schemes. This was tested in "both" directions to and from regular and irregular per-time units (e.g. cfs and acre-feet/month). See the next section regarding the Export/Import Copy and Paste operation. A general observation I have about Copy / Paste in the SCT is that the "paste / paste as inputs" distinction nuance was a mistaken notion, and should be greatly simplified. If the user is doing a paste operation in the first place, they should just go in AS INPUTS, regardless of whether or not the original values were copied from input-flagged cells. |
|
Export Data? | |
This is working correctly. The SCT's Export/Import Copy and Paste involves copying values in a unitless manner -- basically in display units, but optionally with full precision. So, if the copy source and paste target have different units, the physical quantities become different, as expected. This can even be between different unit types -- it's up to the user to insure that the operation makes sense. Note that the Import Paste operation does provide a preview window so that the user can examine the data in the "clipboard" before completing the paste operation. |
--- (end) ---