Opened 16 years ago

Closed 15 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 16 years ago by ole

  • Owner changed from ole to duncan

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

  • Owner changed from duncan to anonymous
  • Status changed from new to assigned

We don't need elevation_range and friction_range.

comment:3 Changed 16 years ago by duncan

  • Owner changed from anonymous to duncan
  • Status changed from assigned to new

comment:4 Changed 16 years ago by duncan

  • Resolution set to fixed
  • Status changed from new to closed

comment:5 Changed 15 years ago by ole

  • Component changed from Appearance and visualisation to Functionality and features
  • Resolution fixed deleted
  • Status changed from closed to reopened

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

comment:6 Changed 15 years ago by duncan

  • Resolution set to fixed
  • Status changed from reopened to closed

This was implemented by changeset:4455.

Note: See TracTickets for help on using tickets.