Download multiple variables for multiple years across two months

I am relatively new to the CDS and toolbox. Please help.
I would like to download data from ‘reanalysis-era5-single-levels’:

  • the variables I require are ‘10m_u_component_of_wind’, ‘10m_v_component_of_wind’, ‘instantaneous_10m_wind_gust’ and ‘mean_sea_level_pressure’
  • for 19 July to 7 August
  • for the years 2004 - 2023

Concat fails.
When I download only one variable for the July days and the August days and then concatenate with ‘ct.cube.concat’ it works. However, when using multiple variables concatenate fails as it receives an array and requires a list.

Multiple years fails.
‘year’: [
‘2004’, ‘2005’, ‘2006’, ‘2007’,
‘2008’, ‘2009’, ‘2010’, ‘2011’,
‘2012’, ‘2013’, ‘2014’, ‘2015’,
‘2016’, ‘2017’, ‘2018’, ‘2019’,
‘2020’, ‘2021’, ‘2022’, ‘2023’
],
This leads to the error “The number or results obtained (4) is different from the number of defined widgets (1).”
I also tried a for loop to run through multiple years. It fails with the same error.

Can you please help?!

If you restructure your request to retrieve information per year, it should work!

Within the concatination the dimension for the concat should be specified (ussually the concat is on the dimension ‘time’, with the method ‘nested’ if the same region & variables are used, but different time-period). Hope this helps!