PeteD wrote: ↑Thu Sep 21, 2023 4:06 pmLinear scale l is given by l
2 = a
2 cos
2 θ + b
2 sin
2 θ, where θ is the azimuth.
You're mixing up parametric angle with true (central) angle.
The Tissot ellipse (rotated to the x axis) is given by (x / a)
2 + (y / b)
2 = 1.
Linear scale at azimuth θ (relative to the direction of maximum scale) would then be the value l for which (l cos θ / a)
2 + (l sin θ / a)
2 = 1.
Solving this, I get 1 / l
2 = (cos θ / a)
2 + (sin θ / b)
2.
PeteD wrote: ↑Thu Sep 21, 2023 4:06 pmFlation p is given by p = a b.
Agreed.
PeteD wrote: ↑Thu Sep 21, 2023 4:06 pmLocal areal distortion ε
p is given by ε
p = ln p = ln a b.
Although I myself am guilty of calling this "areal distortion" above, this is possibly not usage we want to encourage. More properly it's a useful intermediate value between flation and certain finalized distortion measures.
PeteD wrote: ↑Thu Sep 21, 2023 4:06 pmε'
p = ln p' = ln a b c
2 = ln a b + ln c
2 = ε
p + ln c
2.
Thus, the rescaling factor is changed to a constant term. To obtain a metric that is scale-invariant, we need to apply a transformation which reduces constant terms to zero (which differentiation accomplishes, as do the other approaches you suggest).
PeteD wrote: ↑Thu Sep 21, 2023 4:06 pm1. Standard deviation of εp
PeteD wrote: ↑Thu Sep 21, 2023 4:06 pm2. Mean absolute deviation from the median of εp
Yes, these also work. Interesting.
PeteD wrote: ↑Thu Sep 21, 2023 4:06 pm3. Root mean square of εp
PeteD wrote: ↑Thu Sep 21, 2023 4:06 pm4. Absolute mean of εp
I do not see the value of these approaches.
And joke's on me, because they're actually the same as the first two
I do think that definitions 1/2 are more valuable in terms of highlighting the important properties of these metrics. Definitions 3 might be convenient for actual calculations (since it's a neat trick for computing the standard deviation of a dataset in a single pass, without needing to actually remember more than one data point at a time), but its scale-invariance is a non-obvious result.
PeteD wrote: ↑Thu Sep 21, 2023 4:06 pm5. Derivative of εp
As has been mentioned, the derivative of ε
p is another scale-invariant measure of how ε
p varies, and it is equivalent to (derivative of p) / p. The latter definition may appeal to those who find logarithms an unnatural function to apply to flation.
I don't see what's unnatural about it. People think about things like size according to logarithmic scales all the time.
But since, in this case, scale-invariance is intuitively obvious from either defintion, it matters little.
PeteD wrote: ↑Thu Sep 21, 2023 4:06 pmAs you said, its value depends on the azimuth. Before we can start thinking about how to obtain a global value, we therefore first have to obtain a scalar local value. There are three obvious ways of doing this:
- averaging over all azimuths, as Goldberg and Gott do with their closely related skewness;
- selecting the value perpendicular to the isoline; or
- selecting the maximum value at that point.
Are 2. and 3. always the same?
Provided that ε
p is continuously-differentiable, yes.
Wikipedia mentions this as an unnamed theorem.
I didn't remember this either, Daan had to point it out to me last time.
PeteD wrote: ↑Thu Sep 21, 2023 4:06 pmOnce you have your scalar local value, you then have to decide whether to take the root mean square or the absolute mean or some other average in order to obtain a global value.
Right, that's an open question. I'm not going to worry about deciding what works best until we've worked out the local values for some more projections than just the Mercator.
At least, simply taking the maximum is unlikely to give good results, since that's infinite for both the Mercator and Lagrange projections. (
Probably not Eisenlohr, but I'd have to check...)
PeteD wrote: ↑Thu Sep 21, 2023 4:06 pmI'm not interested in metrics that are only applicable to conformal projections.
My line of thinking is to try to come up with a metric that works well for conformal projections, try to come up with a metric that works well for equal-area projections, and
then try to come up with a generalized metric that simplifies to either of the preceding two when restricted to projections in that category, but is also applicable to other projections. Work out the simple case before worrying about the more complicated one.
My previous attempt in this field was
resolution-efficiency, which simplifies to maximum angle distortion in the equal-area case (minimized by
circular Hammer), and simplifies to total normalized area in the conformal case (minimized by Lagrange), and which when applied to compromise projections, formally demonstrates the value of the plate carree projection (as well
my projection over here, which I still wish more people would use...).
However, while I still maintain that resolution-efficiency is an important metric for certain applications, particularly related to data modelling or just source pictures for producing other projections, it doesn't actually produce the best-looking maps, which is particularly obvious in the equal-area case (circular Hammer looks bad).
Any decent metric for compromise projections would need to account for both area
and angle distortion (and have a way of balancing their relative importance), not just measure one and ignore the other. When restricted to either equal-area or conformal projections, you
can safely ignore the type of distortion that's just zero anyway.
Although I suppose you could try to investigate the
Pareto front based on area and angle distortions... Indeed, I would argue that only projections on the Pareto front qualify as compromise projections.
PeteD wrote: ↑Thu Sep 21, 2023 4:28 pmYes, it all sounds very promising. My only reservation is that, like flexion and skewness, it must be more computationally expensive since the derivative must in general be calculated for every azimuth at every point.
Ideally, you'd want to work out the derivative symbolically when you can, and then just use that formula. Numerical computation is a fallback for difficult projections, but something like Lagrange should be doable.
daan wrote: ↑Thu Sep 21, 2023 5:06 pmThe Littrow projection qualifies;
Yeah, the Littrow projection is the one that came to mind for me as well.
And it's definitely a highly specialized projection that I wouldn't recommend for practical use unless you actually need the retroazimuthal property for some reason, but it's theoretically interesting (same goes for other retroazimuthal projections, really), in part because of its bizarre rarely-seen properties.
Outside of the Littrow projection, the vast majority of conformal and compromise projections in use do have nonzero minimum flation. The orthographic projection has zero minimum flation, but finite maximum flation.
daan wrote: ↑Thu Sep 21, 2023 5:06 pmI don’t know of any others, although Snyder’s GS50 is nearly such.
Over the area it's optimized for, or when pathologically extended to the whole globe?
daan wrote: ↑Thu Sep 21, 2023 5:06 pm*Assuming that all equal-area projections with points or paths of infinite distortion never limit to both 0 and infinity in the same map at those points or paths. I haven’t checked for deviations from that.
Huh?
Equal-area projections, per definition, have the same area measure everywhere, and it is therefore never infinite or infinitesimal. Even at the singularities, where linear scale can reach infinite values, i.e. the Tissot ellipse's axes are infinite a and infinitesimal b, the product a*b is still the same finite value. Though by the same token,
any equal-area projection that reaches infinite angle distortion somewhere (even just at a single point) will have both infinite and infinitesimal
linear scales.
daan wrote: ↑Thu Sep 21, 2023 5:22 pmI think it’s not so dire. You only need to compute the derivatives in two perpendicular directions; the remainder can be calculated as points on the ellipse circumscribing the two points and their reflections. I believe this follows from directional derivative theory, but I’m at the limits of my knowledge here.
Wikipedia helps out here too: "If
f is differentiable, then the dot product (∇
f)
x ⋅
v of the gradient at a point
x with a vector
v gives the directional derivative of
f at
x in the direction
v."
This has interesting corrolaries with regard to the skewness metric that PeteD attributes to Goldberg and Gott. That metric would be the average of the above value as
v varies over all unit vectors. Since inner products and means are both linear, we find (using PeteD's angle bracket notation):
⟨∇
f(
x) ⋅ (cos θ, sin θ)⟩ = ⟨∇
f(
x1 ⋅ cos θ + ∇
f(
x2 ⋅ sin θ)⟩ = ∇
f(
x1 ⋅ ⟨cos θ⟩ + ∇
f(
x2 ⋅ ⟨sin θ⟩ = ∇
f(
x) ⋅ ⟨(cos θ, sin θ)⟩
This causes a problem, since the average of the latter vector is simply zero, so something is missing about the definition PeteD gave. Presumably, we're supposed to take the mean of the
absolute value of the directional derivatives, rather than just of the directional derivatives themselves. (Or take the mean only over the half of the directions where the derivative is positive.) This slightly complicates things, but ultimately not that much, and the same sort of logic can eventually be used to show that:
⟨|∇
f(
x) ⋅ (cos θ, sin θ)|⟩ = |∇
f(
x)| ⋅ 2/
π
So this metric is simply the same as the "perpendicular to the isoline" one, rescaled by a constant factor.