bigworld

compute diameter of flights graph
git clone https://a3nm.net/git/bigworld/
Log | Files | Refs

commit 090eb6ef6e88254d214dabbe69a2642ee95df560
parent ab0fc2609d5ea1ef9dbedb66ca5600bb5676a1d7
Author: Antoine Amarilli <a3nm@a3nm.net>
Date:   Mon,  8 Jun 2015 20:00:42 +1000

airport altitude can be negative (changes no results)

Diffstat:
antipodes.sh | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/antipodes.sh b/antipodes.sh @@ -22,8 +22,9 @@ paste -d ' ' ellipsoid_in \ <(cut -d' ' -f4,5,7,8 ellipsoid_in | GeodSolve -i | cut -d ' ' -f3) | sort -k10,10n > ellipsoid_full cut -d' ' -f1,2,10 ellipsoid_full | sort -k3,3n > ellipsoid -cat ellipsoid_full | - awk '{printf "%s %s %lf\n", $1, $2, $10 + 0.3048 * ($6+ $9)}' | +cat ellipsoid_full | awk '{ + printf "%s %s %lf\n", + $1, $2, $10 + 0.3048 * (($6 > 0 ? $6 : -$6)+ ($9 > 0 ? $9 : -$9))}' | sort -k3,3n > altitude cat ellipsoid_full | cut -d' ' -f4-6 | CartConvert > geocentric_1 cat ellipsoid_full | cut -d' ' -f7-9 | CartConvert > geocentric_2