Skip to content

Commit

Permalink
prevent lat wrap-around and refactor elevation rules
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaseberle committed Dec 10, 2024
1 parent 3fddb51 commit 9f30168
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bin/genMakefileElevationRules
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,16 @@ for lat in $(seq -90 90); do
for dLon in -1 0 1; do
for dLat in -1 0 1; do
_lat="$((lat + dLat))"
[ $_lat -lt -90 -o $_lat -gt 90 ] && continue
# wrap around although not needed in 100 years. Elevation data for the Aleutians anybody?
_lon="$(( ($lon + $dLon + 540) % 360 - 180))"
printf "var/run/tile_%+03d%+04d.elevation " "$_lat" "$_lon"
done
done
echo '|$(@D)'
echo
echo ' @touch $@'
echo ' @echo "[$@]"'
echo ' @mkdir -p var/run/'
echo ' @touch $@'
done
done

0 comments on commit 9f30168

Please sign in to comment.