Utility, geodetic/geometric functions and constants.
|
degrees(x)
Convert angle x from radians to degrees. |
|
|
|
radians(x)
Convert angle x from degrees to radians. |
|
|
|
anStr(name,
OKd=' ._- ' ,
sub=' _ ' )
Make string a valid name of alphanumeric and OKd characters. |
|
|
|
degrees90(rad)
Convert and wrap radians to degrees (-270..+90]. |
|
|
|
degrees180(rad)
Convert and wrap radians to degrees (-180..+180]. |
|
|
|
degrees360(rad)
Convert and wrap radians to degrees (0..+360]. |
|
|
|
degrees2m(deg,
radius=6371008.77141,
lat=0)
Convert angle to distance along equator. |
|
|
|
enStr2(easting,
northing,
prec,
*extras)
Return easting, northing string representations. |
|
|
|
false2f(value,
name=' value ' ,
false=True)
Convert a false east-/northing to non-negative float. |
|
|
|
ft2m(feet)
Convert International feet to meter (m). |
|
|
|
halfs(str2)
Split a string in 2 halfs. |
|
|
|
isNumpy2(obj)
Check for an Numpy2LatLon points wrapper. |
|
|
|
isPoints2(obj)
Check for an LatLon2psxy points wrapper. |
|
|
|
issequence(obj,
*excluded)
Check for sequence types. |
|
|
|
isTuple2(obj)
Check for an Tuple2LatLon points wrapper. |
|
|
|
iterNumpy2(obj)
Iterate over Numpy2 wrappers or other sequences exceeding the
threshold. |
|
|
|
|
|
limiterrors(raiser=None)
Get/set the raising of limit errors. |
|
|
|
m2degrees(meter,
radius=6371008.77141)
Convert distance to angle along equator. |
|
|
|
m2ft(meter)
Convert meter to International feet (ft). |
|
|
|
m2km(meter)
Convert meter to kilo meter (km). |
|
|
|
m2NM(meter)
Convert meter to nautical miles (NM). |
|
|
|
m2SM(meter)
Convert meter to statute miles (SM). |
|
|
|
points2(points,
closed=True,
base=None)
Check a polygon represented by points. |
|
|
|
polygon(points,
closed=True,
base=None)
DEPRECATED, use function points2. |
|
|
|
|
|
radiansPI(deg)
Convert and wrap degrees to radians (-PI..+PI]. |
|
|
|
radiansPI2(deg)
Convert and wrap degrees to radians (0..+2PI]. |
|
|
|
radiansPI_2(deg)
Convert and wrap degrees to radians (-3PI/2..+PI/2]. |
|
|
|
tan_2(rad)
Compute the tangent of half angle. |
|
|
|
tanPI_2_2(rad)
Compute the tangent of half angle, 90 degrees rotated. |
|
|
|
unroll180(lon1,
lon2,
wrap=True)
Unroll longitudinal delta and wrap longitude in degrees. |
|
|
|
unrollPI(rad1,
rad2,
wrap=True)
Unroll longitudinal delta and wrap longitude in radians. |
|
|
|
unStr(name,
*args,
**kwds)
Return the string representation of an invokation. |
|
|
|
wrap90(deg)
Wrap degrees to (-270..+90]. |
|
|
|
wrap180(deg)
Wrap degrees to (-180..+180]. |
|
|
|
wrap360(deg)
Wrap degrees to (0..+360]. |
|
|
|
wrapPI(rad)
Wrap radians to (-PI..+PI]. |
|
|
|
wrapPI2(rad)
Wrap radians to (0..+2PI]. |
|
|
|
wrapPI_2(rad)
Wrap radians to (-3PI/2..+PI/2]. |
|
|