def monthly_means()

in src/guclimate/requests/shortcuts/ecv.py [0:0]


def monthly_means():
    answers = collect_ecv_answers()

    # CDS expects all parameters to be arrays, even if they're single values
    answers["variable"] = [answers["variable"]]
    answers["time_aggregation"] = [answers["time_aggregation"]]
    answers["climate_reference_period"] = [answers["climate_reference_period"]]

    return requests.createCDSRequest(
        {
            "product": "ecv-for-climate-change",
            "product_type": ["monthly_mean"],
            "origin": ["era5"],
            **answers,
        }
    )