Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create .cdsapirc file for CDSAPI automatically #470

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

georg198
Copy link

…credentials provided in the project folder. This will be useful when we don#t want to save the credentials in the container permanently

Modulus Pull Request

Description

When downloading the ERA5 data with /examples/weather/dataset_download/ it is required that a .cdsapirc file is located in the home directory.

The proposed changes in this merge request provide a backup solution for the creation of this file if it is not available (e.g. when using a docker container) or we don't want to save these credentials permanently in a docker container.

In that case the credentials can be specified in ./credentials/cdsapi.yaml and will be used to create the corresponding .cdsapirc automatically at runtime when needed.

Checklist

  • I am familiar with the Contributing Guidelines.
  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.
  • The CHANGELOG.md is up to date with these changes.
  • An issue is linked to this pull request.

Dependencies

None

…credentials provided in the project folder. This will be useful when we don#t want to save the credentials in the container permanently

Signed-off-by: georg198 <[email protected]>
@NickGeneva NickGeneva self-requested a review April 30, 2024 18:14
@NickGeneva NickGeneva added the 2 - In Progress Currently a work in progress label May 1, 2024
@akshaysubr akshaysubr added the external Issues/PR filed by people outside the team label May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2 - In Progress Currently a work in progress external Issues/PR filed by people outside the team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants