Howto use .cdsapirc with both cds-beta and ads-beta

Hi,
I’m using python-scripts to download data from both cds-beta (era5) and ads-beta (air-pollution models). These scripts use .cdsapirc with different endpoint-urls, url: https://cds-beta.climate.copernicus.eu/api and url: https://ads-beta.atmosphere.copernicus.eu/api (the key for both stores is the same).

Currently I have to rewrite the .cdsapirc to the correct url depending on the product I want to download. Is it possible to give a keyword in the python scripot to the product to select the correct endpoint-url, e.g. cds-api or ads-api?

Best regars,
Heiko

1 Like

Hi, I’ve been having this same problem using CDS for ERA5 and ADS for CAMS EAC4 - if there’s a solution I’d love to know.
Thanks
Ruth

See the switching services in my FAQ:

Hi,
Please check the right credentials from the following link (please log in first):

Thanks