busstoptaktik / geodesy

Rust geodesy
Apache License 2.0
66 stars 6 forks source link

Better basegrid #70

Closed busstoptaktik closed 11 months ago

busstoptaktik commented 11 months ago

Changed method names for BaseGrid:

Changed the plain header to expect (lat_0, lon_0) to be the coordinate tuple of the first node of the grid, and (lat_1, lon_1) to be the coordinate tuple of the first node of the grid. In ALL cases. The builtin Gravsoft reader swaps signs and orders to fit with this.

Generalized BaseGrid to handle any grid orientation (left-right, right-left, upside-down, downside-up, and any combination thereof), everything determined from the values of lat_0, lat_1, lon_0, lon_1, which are also used to assign the correct sign to dlat, dlon.