Opened 18 years ago
Closed 17 years ago
#147 closed enhancement (fixed)
Store min and max values of all quantities in sww file
Reported by: | ole | Owned by: | duncan |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Functionality and features | Version: | 1.0 |
Severity: | normal | Keywords: | store min and max values |
Cc: |
Description
A viewer that colour-codes surfaces based on values of quantities will need the range of each quantities. Otherwise the viewer would have to read the entire sww file everytime it is launched.
To alleviate that, I propose that we introduce an array of lenght 2 for each quantity in the sww file which will store the minimal vertex value and the maximal vertex value encountered for all triangles and all timesteps. These should be updated every time a new timestep is stored into the sww file.
Example
stage_range = [3.1, 10.7]
means that vertex values in stage have never been smaller than 3.1 or larger than 10.7 anywhere or anytime so far.
The arrays could be named:
stage_range xmomentum_range ymomentum_range elevation_range (just in case) friction_range
Change History (6)
comment:1 Changed 18 years ago by
Owner: | changed from ole to duncan |
---|
comment:2 Changed 18 years ago by
Owner: | changed from duncan to anonymous |
---|---|
Status: | new → assigned |
comment:3 Changed 18 years ago by
Owner: | changed from anonymous to duncan |
---|---|
Status: | assigned → new |
comment:4 Changed 18 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:5 Changed 18 years ago by
Component: | Appearance and visualisation → Functionality and features |
---|---|
Resolution: | fixed |
Status: | closed → reopened |
Please put a pointer to the changeset that implemented this ticket.
comment:6 Changed 17 years ago by
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
This was implemented by changeset:4455.
We don't need elevation_range and friction_range.