Next / Previous / Contents / Shipman's homepage

6.11. parseLon(): Parse longitude

This function parses a latitude string in the form described in Section 4.3, “Specifying latitude and longitude on command lines”.


If the argument s is a valid longitude string in degrees, it is returned as a value in radians in the interval [0, 2π). It will raise a SyntaxError if s does not have the correct format.