vcs icon indicating copy to clipboard operation
vcs copied to clipboard

vector needs clamping scaletype

Open danlipsa opened this issue 6 years ago • 4 comments

Besides the list of options already available for scaletype, we need to add clamping. So instead of mapping [minnorm, maxnorm] to a range of colors we map a user specified [scalerange[0], scalerange[1]].

This will give us the ability to ignore possible outliers in the vector data.

danlipsa avatar Jun 17 '19 16:06 danlipsa

@scottwittenburg @doutriaux1 @aashish24 Please comment.

danlipsa avatar Jun 17 '19 16:06 danlipsa

See the comment in vector.py scaletype for the available scaling options.

danlipsa avatar Jun 17 '19 16:06 danlipsa

@danlipsa sounds good, what is it doing currently?

doutriaux1 avatar Jun 17 '19 16:06 doutriaux1

This is the help for scaletype. The default is constantNNormalize.

      off - No scaling is performed on the vector values
      constant: vector value *  self.scale
      normalize: vector value /  max_norm
      constantNNormalize: vector value * self.scale / max_norm
      linear: map [min_norm, max_norm] to self.scalerange
      constantNLinear - map [min_norm, max_norm] to self.scalerange and then multiply by self.scale

danlipsa avatar Jun 17 '19 16:06 danlipsa