Opened 6 years ago
Closed 6 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 )
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 axis should be Long:"CRS:1"(0:512)
.
Change History (3)
comment:1 by , 6 years ago
Description: | modified (diff) |
---|---|
Summary: | Auto-ratio for scale in WCPS → Auto-ratio for scale in WCPS for XY axes if only 1 is specified |
comment:2 by , 6 years ago
comment:3 by , 6 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
interesting idea - once we know exactly how to do it this could go into the next evolution of the WCPS standard.