Hi everyone,
I am trying to read a netcdf file (downloaded using the code below) coming from the ER5 UTCI dataset. I am unable to read the files, both using ncview and with python. I use the same setup to open other netcdf files, including others downloaded from CDS but from other datasets (e.g. ERA5 surface data) and everything works as intended. Thank you in advance for any suggestion on how to proceed.
The code:
import cdsapi
years = [“1993”,
“1994”, “1995”, “1996”, “1997”, “1998”, “1999”, “2000”, “2001”, “2002”, “2003”, “2004”, “2005”, “2006”, “2007”, “2008”, “2009”, “2010”, “2011”, “2012”, “2013”, “2014”, “2015”,
“2016”
]
for year in years:
dataset = “derived-utci-historical”
request = {
“variable”: [
“universal_thermal_climate_index”,
“mean_radiant_temperature”
],
“version”: “1_1”,
“product_type”: “consolidated_dataset”,
“year”: year,
“month”: [
“04”, “05”, “06”,
“07”, “08”, “09”
],
“day”: [
“01”, “02”, “03”,
“04”, “05”, “06”,
“07”, “08”, “09”,
“10”, “11”, “12”,
“13”, “14”, “15”,
“16”, “17”, “18”,
“19”, “20”, “21”,
“22”, “23”, “24”,
“25”, “26”, “27”,
“28”, “29”, “30”,
“31”
],
“area”: [50, 3, 41, 16]
}
target = f"…/ERA5_UTCI_data/era5_{year}_UTCI.nc"
client = cdsapi.Client()
client.retrieve(dataset, request, target)