Opened 6 years ago

Last modified 6 years ago

#2007 closed enhancement

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

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 (1)

comment:1 by Bang Pham Huu, 6 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
Note: See TracTickets for help on using tickets.