Opened 5 years ago

Closed 5 years ago

#2007 closed enhancement (fixed)

Auto-ratio for scale in WCPS for XY axes if only 1 is specified

Reported by: Dimitar Misev Owned by: Bang Pham Huu
Priority: major Milestone: 9.8
Component: petascope Version: 9.7
Keywords: Cc: Vlad Merticariu, Peter Baumann
Complexity: Medium

Description (last modified by Bang Pham Huu)

In scale() in WCPS we need to specify target extents of all coverage axes, e.g.

scale( cov, { Lat:"CRS:1"(0:767), Long:"CRS:1"(0:512) } )

It is annoying and error-prone to make sure that the ratio between Lat and Long in the original cov is preserved in the scaled one.

I propose to allow specifying the target extent for a subset of the XY axes: the extent for the remaining ones is automatically derived to preserve the ratio in cov.

E.g. for the example above

scale( cov, { Lat:"CRS:1"(0:767) } )

WCPS would automatically deduct that the Long (X) axis should be Long:"CRS:1"(0:512).

Change History (3)

comment:1 by Bang Pham Huu, 5 years ago

Description: modified (diff)
Summary: Auto-ratio for scale in WCPSAuto-ratio for scale in WCPS for XY axes if only 1 is specified

comment:2 by Peter Baumann, 5 years ago

interesting idea - once we know exactly how to do it this could go into the next evolution of the WCPS standard.

comment:3 by Bang Pham Huu, 5 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.