| 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 PYGEODESY3_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-2015 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.02.20
| Functions | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
| Variables | |
__all__ = _ALL_LAZY.miscs_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 pygeodesy3.NN
|
|
S_DMS = TrueIf True include, otherwise cancel all DMS symbols,
default True.
|
|
S_SEP = ''Separator between deg°|min′|sec″|suffix, default
"" aka pygeodesy3.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 pygeodesy3.toDMS. |
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 pygeodesy3.toDMS. |
Convert bearing to a compass point.
See Also: Dms.compassPoint and Compass rose. Example: >>> p = compassPoint(24, 1) # 'N' >>> p = compassPoint(24, 2) # 'NE' >>> p = compassPoint(24, 3) # 'NNE' >>> p = compassPoint(24) # 'NNE' >>> p = compassPoint(11, 4) # 'NbE' >>> p = compassPoint(30, 4) # 'NEbN' >>> p = compassPoint(11.249) # 'N' >>> p = compassPoint(11.25) # 'NNE' >>> p = compassPoint(-11.25) # 'N' >>> p = compassPoint(348.749) # 'NNW' |
Convert degrees to a string in degrees, minutes or seconds.
See Also: Function pygeodesy3.toDMS. |
Convert latitude to a string, optionally suffixed with N or S.
See Also: Functions pygeodesy3.toDMS and pygeodesy3.lonDMS. |
Convert one or more
See Also:
Functions pygeodesy3.latDMS, pygeodesy3.latlonDMS_, pygeodesy3.lonDMS and pygeodesy3.toDMS and method
Note:
Keyword argument |
Convert one or more
See Also: Function pygeodesy3.latlonDMS. Note:
Keyword argument |
Convert longitude to a string, optionally suffixed with E or W.
See Also: Functions pygeodesy3.toDMS and pygeodesy3.latDMS. |
Normalize all degrees, minutes and seconds (DMS) symbols 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 pygeodesy3.parseDMS, pygeodesy3.parseDMS2 and pygeodesy3.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 pygeodesy3.parseDDDMMSS, pygeodesy3.parseDMS2, pygeodesy3.parse3llh and pygeodesy3.toDMS. |
Parse a lat- and a longitude representions
Note: See the Notes at function parseDMS. See Also: Functions pygeodesy3.parseDDDMMSS, pygeodesy3.parseDMS, pygeodesy3.parse3llh and pygeodesy3.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 pygeodesy3.parseDDDMMSS, pygeodesy3.parseDMS, pygeodesy3.parseDMS2 and pygeodesy3.toDMS. |
Parse a string representing angle in
|
Set the default precison for a given F_ form.
|
Convert signed
Notes:
See Also: Function pygeodesy3.degDMS |
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Mon Mar 4 16:45:44 2024 | http://epydoc.sourceforge.net |