pyrocko.example¶
Example data download helpers.
Functions
|
Download example data file needed in tutorials. |
- get_example_data(filename, url=None, recursive=False)[source]¶
Download example data file needed in tutorials.
The file is downloaded to given
filename
. If there already exists a file with that name, nothing is done.- Parameters:
filename – name of the required file
url – if not
None
get file from given URL otherwise fetch it from http://data.pyrocko.org/examples/<filename>.
- Returns:
filename