Geometric and other utility functions and constants.
|
degrees(x)
Convert angle x from radians to degrees. |
|
|
|
radians(x)
Convert angle x from degrees to radians. |
|
|
|
degrees90(rad)
Convert radians to degrees and wrap [-270..+90]. |
|
|
|
degrees180(rad)
Convert radians to degrees and wrap [-180..+180]. |
|
|
|
degrees360(rad)
Convert radians to degrees and wrap [0..+360). |
|
|
|
degrees2m(deg,
radius=6371008.77141,
lat=0)
Convert angle to distance along the equator or along a parallel at an
other latitude. |
|
|
|
falsed2f(falsed=True,
**name_value_Error)
Convert a falsed east-/northing to non-negative float . |
|
|
|
ft2m(feet,
usurvey=False)
Convert International or US Survey feet to meter. |
|
|
|
isNumpy2(obj)
Check for an Numpy2LatLon points wrapper. |
|
|
|
isPoints2(obj)
Check for an LatLon2psxy points wrapper. |
|
|
|
isTuple2(obj)
Check for an Tuple2LatLon points wrapper. |
|
|
|
iterNumpy2(obj)
Iterate over Numpy2 wrappers or other sequences exceeding the
threshold. |
|
|
|
|
|
m2degrees(meter,
radius=6371008.77141)
Convert distance to angle along equator. |
|
|
|
m2ft(meter,
usurvey=False)
Convert meter to International or US Survey 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). |
|
|
|
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]. |
|
|
|
sincos2(*rad)
Return the sine and cosine of angle(s). |
|
|
|
sincos2d(*deg)
Return the sine and cosine of angle(s) in
degrees . |
|
|
|
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. |
|
|
|
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]. |
|
|