def list_to_ccd(weather_list: list, parameter_info: dict, file_path: str) -> bool:
    """
    Converts a weather list into a Delphin weather file (.ccd)

    :param weather_list: List with hourly weather values
    :param parameter_info: Dict with meta data for the weather file. Should contain the following keys: location_name, year, description and intro.
    :param file_path: Full file path for where the .ccd file should be saved.
    :return: True
    """

    # Write meta data
    file_obj = open(file_path, 'w')
    file_obj.write(f"# {parameter_info['location_name']}\n")
    file_obj.write(f"# Year {parameter_info['year']}\n")
    file_obj.write(f"# RIBuild - Hourly values, {parameter_info['description']} \n\n")
    file_obj.write(parameter_info["intro"] + "\n\n")

    # Write data
    day = 0
    hour = 0
    for i in range(len(weather_list)):

        # leap year 29th febuary removal

        if i % 24 == 0 and i != 0:
            hour = 0
            day += 1

        hour_str = str(hour) + ":00:00"
        data = weather_list[i]
        file_obj.write(f'{day:>{6}}{hour_str:>{9}}  {data:.2f}\n')

        hour += 1

    file_obj.close()

    return True