utm2dd/utm2dd.py
def list_transform(utm_list, coordinate_pairs=True, easting_northing=True):
    """Parse a list of UTM coordinates into either a list of latitude,longitude tuples or a dict of latitude and longitude lists

    Parameters
    ----------
    utm_list : list
        a list of UTM coordinate strings. Strings formated as: "10M 551884.29mE 5278575.64mN"
    coordinate_pairs : bool, optional
        Default = True. Set to False to output a dict of latitude and longitude lists
    easting_northing : bool, optional
        Default=True. Set to False if UTM is formated with mN before mE.
    
    Returns
    -------
    If coordinate_pairs is set to True:

    list
        list of tuples: (Latitude, Longitude)
    
    If coordinate_pairs is set to False:

    dict
        dict of latitude and longitude lists: {"lat":lat, "lon":lon}

    """
    
    if coordinate_pairs == True:
        output = [string_transform(coordinate, easting_northing=easting_northing) for coordinate in utm_list]
    
    elif coordinate_pairs == False:
        lat = []
        lon = []
        
        for coordinate in utm_list:
            latlong = string_transform(coordinate, easting_northing=easting_northing)
            lat.append(latlong[0])
            lon.append(latlong[1])
        
        output = {"lat":lat, "lon":lon}
    return output
Parse a list of UTM coordinates into either a list of latitude,longitude tuples or a dict of latitude and longitude lists

    Parameters
    ----------
    utm_list : list
        a list of UTM coordinate strings. Strings formated as: "10M 551884.29mE 5278575.64mN"
    coordinate_pairs : bool, optional
        Default = True. Set to False to output a dict of latitude and longitude lists
    easting_northing : bool, optional
        Default=True. Set to False if UTM is formated with mN before mE.
    
    Returns
    -------
    If coordinate_pairs is set to True:

    list
        list of tuples: (Latitude, Longitude)
    
    If coordinate_pairs is set to False:

    dict
        dict of latitude and longitude lists: {"lat":lat, "lon":lon}

    
Parse a list of UTM coordinates into either a list of latitude,longitude tuples or a dict of latitude and longitude lists
Parse a list of UTM coordinates into either a list of latitude longitude tuples or a dict of latitude and longitude lists
def list_transform(utm_list, coordinate_pairs=True, easting_northing=True):
    if coordinate_pairs == True:
        output = [string_transform(coordinate, easting_northing=easting_northing) for coordinate in utm_list]
    elif coordinate_pairs == False:
        lat = []
        lon = []
        for coordinate in utm_list:
            latlong = string_transform(coordinate, easting_northing=easting_northing)
            lat.append(latlong[0])
            lon.append(latlong[1])
        output = {"lat":lat, "lon":lon}
    return output
def list_transform ( utm_list , coordinate_pairs = True , easting_northing = True ) : if coordinate_pairs == True : output = [ string_transform ( coordinate , easting_northing = easting_northing ) for coordinate in utm_list ] elif coordinate_pairs == False : lat = [ ] lon = [ ] for coordinate in utm_list : latlong = string_transform ( coordinate , easting_northing = easting_northing ) lat . append ( latlong [ 0 ] ) lon . append ( latlong [ 1 ] ) output = { "lat" : lat , "lon" : lon } return output
Parse a list of UTM coordinates into either a list of latitude,longitude tuples or a dict of latitude and longitude lists
Parse a list of UTM coordinates into either a list of latitude longitude tuples or a dict of latitude and longitude lists
"""Parse a list of UTM coordinates into either a list of latitude,longitude tuples or a dict of latitude and longitude lists

    Parameters
    ----------
    utm_list : list
        a list of UTM coordinate strings. Strings formated as: "10M 551884.29mE 5278575.64mN"
    coordinate_pairs : bool, optional
        Default = True. Set to False to output a dict of latitude and longitude lists
    easting_northing : bool, optional
        Default=True. Set to False if UTM is formated with mN before mE.
    
    Returns
    -------
    If coordinate_pairs is set to True:

    list
        list of tuples: (Latitude, Longitude)
    
    If coordinate_pairs is set to False:

    dict
        dict of latitude and longitude lists: {"lat":lat, "lon":lon}

    """
None
list of tuples: (Latitude, Longitude)
list of tuples : ( Latitude Longitude )
list

None
dict of latitude and longitude lists: {"lat":lat, "lon":lon}
dict of latitude and longitude lists : { " lat " : lat " lon " : lon }
dict

utm_list
a list of UTM coordinate strings.
a list of UTM coordinate strings .
coordinate_pairs
Default = True. Set to False to output a dict of latitude and longitude lists
Default = True . Set to False to output a dict of latitude and longitude lists
True
easting_northing
Default=True. Set to False if UTM is formated with mN before mE.
Default = True . Set to False if UTM is formated with mN before mE .