Home | Trees | Indices | Help |
|
---|
|
Parsers and formatters of angles in degrees, minutes and seconds or radians.
Functions to parse and format bearing, compass, lat- and longitudes in
various forms of degrees, minutes and seconds with or without degrees,
minute and second symbols plus a compass point suffix, including parsing
of decimal
and sexagecimal
degrees.
Set env variable PYGEODESY_FMT_FORM
to any
F_...
form to override default F_DMS
formatting
of lat- and longitudes or to an empty string to restore the default.
After (C) Chris Veness 2011-2024 published under the same MIT Licence**, see Latitude/Longitude and Vector-based geodesy.
Note:
In Python 2-, S_DEG, S_MIN, S_SEC, S_RAD and S_SEP may
be multi-byte, non-ascii characters and if so, not
unicode
.
Version: 24.10.18
Functions | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Variables | |
__all__ = _ALL_LAZY.dms
|
|
S_DEG =
Degrees symbol, default "°"
|
|
S_MIN =
Minutes symbol, default "′" aka PRIME
|
|
S_SEC =
Seconds symbol, default "″" aka
DOUBLE_PRIME
|
|
S_RAD = '' Radians symbol, default "" aka pygeodesy.NN
|
|
S_DMS = True If True include, otherwise cancel all DMS symbols,
default True .
|
|
S_SEP = '' Separator between deg°|min′|sec″|suffix , default
"" aka pygeodesy.NN
|
|
F_D =
Format degrees as unsigned "deg°" with symbol, plus compass point suffix N, S, E or W
(str ).
|
|
F_D60 =
Format degrees as unsigned "[D]DD.MMSS" sexagecimal without symbols, plus suffix
(str ).
|
|
F_D60_ = '-d60' Format degrees as signed "-/[D]DD.MMSS" sexagecimal without symbols, without
suffix (str ).
|
|
F_D60__ = '+d60' Format degrees as signed "-/+[D]DD.MMSS" sexagecimal without symbols, without
suffix (str ).
|
|
F_DEG =
Format degrees as unsigned "[D]DD" without symbol, plus suffix ( str ).
|
|
F_DEG_ = '-deg' Format degrees as signed "-/[D]DD" without symbol, without suffix ( str ).
|
|
F_DEG__ = '+deg' Format degrees as signed "-/+[D]DD" without symbol, without suffix ( str ).
|
|
F_DM =
Format degrees as unsigned "deg°min′" with symbols, plus suffix ( str ).
|
|
F_DMS =
Format degrees as unsigned "deg°min′sec″" with symbols, plus suffix ( str ).
|
|
F_DMS_ = '-dms' Format degrees as signed "-/deg°min′sec″" with symbols, without suffix ( str ).
|
|
F_DMS__ = '+dms' Format degrees as signed "-/+deg°min′sec″" with symbols, without suffix ( str ).
|
|
F_DM_ = '-dm' Format degrees as signed "-/deg°min′" with symbols, without suffix ( str ).
|
|
F_DM__ = '+dm' Format degrees as signed "-/+deg°min′" with symbols, without suffix ( str ).
|
|
F_D_ = '-d' Format degrees as signed "-/deg°" with symbol, without suffix ( str ).
|
|
F_D__ = '+d' Format degrees as signed "-/+deg°" with symbol, without suffix ( str ).
|
|
F_MIN =
Format degrees as unsigned "[D]DDMM" without symbols, plus suffix ( str ).
|
|
F_MIN_ = '-min' Format degrees as signed "-/[D]DDMM" without symbols, without suffix ( str ).
|
|
F_MIN__ = '+min' Format degrees as signed "-/+[D]DDMM" without symbols, without suffix ( str ).
|
|
F_RAD =
Convert degrees to radians and format as unsigned "RR" with symbol, plus suffix ( str ).
|
|
F_RAD_ = '-rad' Convert degrees to radians and format as signed "-/RR" without symbol, without suffix ( str ).
|
|
F_RAD__ = '+rad' Convert degrees to radians and format as signed "-/+RR" without symbol, without suffix ( str ).
|
|
F_SEC =
Format degrees as unsigned "[D]DDMMSS" without symbols, plus suffix ( str ).
|
|
F_SEC_ = '-sec' Format degrees as signed "-/[D]DDMMSS" without symbols, without suffix ( str ).
|
|
F_SEC__ = '+sec' Format degrees as signed "-/+[D]DDMMSS" without symbols, without suffix ( str ).
|
|
F__E =
Format degrees as unsigned "%E" without symbols, plus suffix ( str ).
|
|
F__E_ = '-e' Format degrees as signed "-/%E" without symbols, without suffix ( str ).
|
|
F__E__ = '+e' Format degrees as signed "-/+%E" without symbols, without suffix ( str ).
|
|
F__F =
Format degrees as unsigned "%F" without symbols, plus suffix ( str ).
|
|
F__F_ = '-f' Format degrees as signed "-/%F" without symbols, without suffix ( str ).
|
|
F__F__ = '+f' Format degrees as signed "-/+%F" without symbols, without suffix ( str ).
|
|
F__G =
Format degrees as unsigned "%G" without symbols, plus suffix ( str ).
|
|
F__G_ = '-g' Format degrees as signed "-/%G" without symbols, without suffix ( str ).
|
|
F__G__ = '+g' Format degrees as signed "-/+%G" without symbols, without suffix ( str ).
|
Function Details |
Convert bearing to a string (without compass point suffix).
See Also: Function pygeodesy.toDMS and its Notes for further details. |
Clip a lat- or longitude to the given range.
|
Clip a lat- or longitude to the given range.
|
Convert bearing to a string suffixed with compass point.
See Also: Function pygeodesy.toDMS and its Notes for further details. |
Convert a
See Also: Dms.compassPoint and Compass rose. |
Convert degrees to a string in degrees, minutes or seconds.
See Also: Function pygeodesy.toDMS. |
Convert latitude to a string, optionally suffixed with N or S.
See Also: Function pygeodesy.toDMS and its Notes for further details. |
Convert one or more
See Also:
Functions pygeodesy.latlonDMS_, pygeodesy.latDMS, pygeodesy.lonDMS and pygeodesy.toDMS and method
Note:
Keyword argument |
Convert one or more
See Also:
Functions pygeodesy.latlonDMS, pygeodesy.latDMS and pygeodesy.lonDMS and pygeodesy.toDMS and method
Note:
Keyword argument |
Convert longitude to a string, optionally suffixed with E or W.
See Also: Function pygeodesy.toDMS and its Notes for further details. |
Normalize all degrees, minutes and seconds (DMS) symbol suffixes in a string to the default symbols S_DEG, S_MIN, S_SEC.
|
Parse a lat- or longitude represention forms as [D]DDMMSS in degrees.
Notes:
See Also: Functions pygeodesy.parseDMS, pygeodesy.parseDMS2 and pygeodesy.parse3llh. |
Parse a lat- or longitude representation in This is very flexible on formats, allowing signed decimal degrees, degrees and minutes or degrees minutes and seconds optionally suffixed by a cardinal compass point. A variety of symbols, separators and suffixes are accepted, for example "3°37′09″W". Minutes and seconds may be omitted.
Note:
Unlike function parseDDDMMSS, type See Also: Functions pygeodesy.parseDDDMMSS, pygeodesy.parseDMS2, pygeodesy.parse3llh and pygeodesy.toDMS. |
Parse a lat- and a longitude representions
Note: See the Notes at function parseDMS. See Also: Functions pygeodesy.parseDDDMMSS, pygeodesy.parseDMS, pygeodesy.parse3llh and pygeodesy.toDMS. |
Parse a string The lat- and longitude value must be separated by a separator character. If height is present it must follow, separated by another separator. The lat- and longitude values may be swapped, provided at least one ends with the proper compass point.
Note: See the Notes at function parseDMS. See Also: Functions pygeodesy.parseDDDMMSS, pygeodesy.parseDMS, pygeodesy.parseDMS2 and pygeodesy.toDMS. |
Parse a string representing angle in
|
Set the default precison for a given F_ form.
|
Convert signed
Notes:
See Also: Function pygeodesy.degDMS |
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Tue Oct 22 17:06:19 2024 | http://epydoc.sourceforge.net |