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