def parse_year(date_str):
    if date_str is None or date_str == "":
        raise ValueError('Invalid date', date_str)
    return fmt_date(parse_date_to_obj(date_str).replace(day=1, month=1))
Return the nearest USAF station (by latitude and longitude centroid) of
dataset/ETHPy150Open practo/r5d4/r5d4/mapping_functions.py/parse_year--crossover with--dataset/ETHPy150Open impactlab/eemeter/eemeter/location.py/zipcode_to_station