parsing latitude-longitude strings
copied from cf-staging / lat_lon_parserCode for parsing lat-long coordinates in "various" formats, and for converting between lat-long formats (e.g. decimal degrees to degrees-minutes-seconds). It can also format latitude-longitude strings with proper unicode symbols.