pyTMD.datasets.fetch_database
Downloads an updated model JSON database file from the project GitHub repository
- pyTMD.datasets.fetch_database(username: str = 'pyTMD', repository: str = 'pyTMD', branch: str = 'main', timeout: int | None = 360, mode: oct = 509)[source]
Downloads an updated pyTMD model JSON database file from the project GitHub repository
- Parameters:
- username: str, default ‘pyTMD’
GitHub username for project repository
- repository: str, default ‘pyTMD’
name of the GitHub repository
- branch: str, default ‘main’
branch of the GitHub repository for downloading files
- timeout: int or None, default 360
timeout for the HTTP request in seconds
- mode: oct, default 0o775
permissions mode of output file
CLI
usage: fetch_database.py [-h] [--timeout TIMEOUT] [--mode MODE]
Named Arguments
- --timeout, -t
Timeout in seconds for blocking operations
- --mode, -M
Permissions mode of the files downloaded