Feature #32

Color cpt "hinge" feature?

Added by Paul about 5 years ago. Updated 4 months ago.

Status:ClosedStart date:2012-03-07
Priority:NormalDue date:
Assignee:Paul% Done:

90%

Category:-
Target version:Candidate for next bugfix release
Platform:

Description

Should we add metadata to the color tables having a "hinge" at 0. Many cpt files are designed with a hinge for z = 0 (e.g. bathy vs topo). When such cpts are used it would be useful if programs like grd2cpt/makecpt could know that z = 0 (or any other special z for that matter) is such a hinge and that the color change at that z should still map to the new z = 0 even if the new zmin/zmax is not symmetric about 0. This would require a flag in the CPT files, e.g. # HINGE = 0. Several of our cpt files would then acquire a HINGE comment.

History

#1 Updated by Florian about 5 years ago

the color change at that z should still map to the new z = 0 even if the new zmin/zmax is not symmetric about 0

I would like that very much!

#2 Updated by Paul 9 months ago

  • Status changed from New to Resolved
  • Assignee set to Paul
  • Target version set to Candidate for next bugfix release
  • % Done changed from 0 to 90

Only took 4 years but today we updated the CPT system to honor the HINGE = zm comment and treat the two halves of the CPT differently when stretching to fit the users range. In r16564. Also added optional RANGE = z0/z1 to set the default range. All master CPTs are now in 0-1 range (no hinge) or -1/+1 range (if hinge).

#3 Updated by Joaquim 4 months ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF