def parse_header_file(filename):
    """Parses hdr file for grid origin and parallels (Lambert transform)

    Args
        filename: str header filename

    Returns
        (float,float,float,float): tuple of floats for latitude and longitude of the origin and
                                     the latitiudes of the first and second standard parallels
    """
    lines = open(filename).readlines()
    latitude_0 = lines[2].split()[5]
    longitude_0 = lines[2].split()[7]
    latitude_1 = lines[2].split()[9]
    latitude_2 = lines[2].split()[11]
    return latitude_0, longitude_0, latitude_1, latitude_2
