def _parsemeta_tmy2(columns, line):
    """Retrieves metadata from the top line of the tmy2 file.

    Parameters
    ----------

    columns : string
        String of column headings in the header

    line : string
        Header string containing DataFrame

    Returns
    -------

    meta : Dict of metadata contained in the header string

    """
    rawmeta=" ".join(line.split()).split(" ") #Remove sduplicated spaces, and read in each element
    meta=rawmeta[:3] #take the first string entries
    meta.append(int(rawmeta[3]))
    longitude=(float(rawmeta[5])+float(rawmeta[6])/60)*(1-2*(rawmeta[4]=='N'))#Convert to decimal notation with S negative
    latitude=(float(rawmeta[8])+float(rawmeta[9])/60)*(2*(rawmeta[7]=='E')-1) #Convert to decimal notation with W negative
    meta.append(longitude)
    meta.append(latitude)
    meta.append(float(rawmeta[10]))	
    
    meta_dict = dict(zip(columns.split(','),meta)) #Creates a dictionary of metadata
    pvl_logger.debug('meta: %s', meta_dict)
    
    return meta_dict
dataset/ETHPy150Open pvlib/pvlib-python/pvlib/tmy.py/_parsemeta_tmy2/swapped operands of `-`