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 ole

Owner: changed from ole to duncan

comment:2 Changed 18 years ago by Duncan <duncan@…>

Owner: changed from duncan to anonymous
Status: newassigned

We don't need elevation_range and friction_range.

comment:3 Changed 18 years ago by duncan

Owner: changed from anonymous to duncan
Status: assignednew

comment:4 Changed 18 years ago by duncan

Resolution: fixed
Status: newclosed

comment:5 Changed 18 years ago by ole

Component: Appearance and visualisationFunctionality and features
Resolution: fixed
Status: closedreopened

Please put a pointer to the changeset that implemented this ticket.

comment:6 Changed 17 years ago by duncan

Resolution: fixed
Status: reopenedclosed

This was implemented by changeset:4455.

Note: See TracTickets for help on using tickets.