Color cpt "hinge" feature?
|Target version:||Candidate for next bugfix release|
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.
#2 Updated by Paul about 5 years 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).