i think it is a good challenge and maybe other people can have this problem otherwise i did not say it public!! i am enough motivated to understant what is my problem, so i have to change to python, but if anyone can help me with matlab , i will very grateful. i download data from https://cds.climate.copernicus.eu/datasets/reanalysis-era5-single-levels?tab=download and for better understanding the data import "cdsapi"
dataset = "reanalysis-era5-single-levels"
request = {
"product_type": ["reanalysis"],
"variable": [
"10m_u_component_of_wind",
"10m_v_component_of_wind"
],
"year": [
"1940", "1941", "1942",
"1943", "1944", "1945",
"1946", "1947", "1948",
"1949", "1950", "1951",
"1952", "1953", "1954",
"1955", "1956", "1957",
"1958", "1959", "1960",
"1961", "1962", "1963",
"1964", "1965", "1966",
"1967", "1968", "1969",
"1970", "1971", "1972",
"1973", "1974", "1975",
"1976", "1977", "1978",
"1979", "1980", "1981",
"1982", "1983", "1984",
"1985", "1986", "1987",
"1988", "1989", "1990",
"1991", "1992", "1993",
"1994", "1995", "1996",
"1997", "1998", "1999",
"2000", "2001", "2002",
"2003", "2004", "2005",
"2006", "2007", "2008",
"2009", "2010", "2011",
"2012", "2013", "2014",
"2015", "2016", "2017",
"2018", "2019", "2020",
"2021", "2022", "2023",
"2024", "2025"
],
"month": ["01"],
"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"
],
"time": [
"00:00", "06:00", "12:00",
"18:00"
],
"data_format": "netcdf",
"download_format": "unarchived",
"area": [50, 45, 35, 55]
}
client = cdsapi.Client()
client.retrieve(dataset, request).download()
Because all the years, months, days, and hours are consecutive and in the form of a third dimension of the matrix, I cannot easily separate the dates so that I can find the appropriate mathematical function for each day, which could be, for example, the maximum value of a day or, for example, the average of the hours of that day.
again for e view of my file , it is Lon , lat , date that date for example for jan is a vector 1940/01/01 0:00, 1940/01/01 6:00, ......, 2024/01/31 18:00