5. Utils
General functions that may be useful.
|
Compute the orthodromic distance in kilometers between (lon_1, lat_1) and (lon_2, lat_2). |
|
Compute the spherical heading in degrees between the north and the direction formed by the two positions (lon_1, lat_1) and (lon_2, lat_2). |
|
Convert |
|
Convert |
Apply a chosen function (e.g. sum, mean, min, max) over every high resolution elements between two subsamples defined by a given resolution. |
|
Compute the largest factor. |
|
|
Compute the near-square grid layout dimensions with a width to height ratio being smaller than a given tolerance. |