cogwheel.data.download_timeseries¶
- cogwheel.data.download_timeseries(eventname, outdir=None, tgps=None, interval=(-2048, 2048), overwrite=False, **kwargs)¶
Download data from GWOSC, save as hdf5 format that can be read by gwpy.timeseries.Timeseries.read().
Files are saved as
'{det}_{eventname}.hdf5', e.g.'H_GW150914.hdf5'. Return the paths to the files, the detector names and the GPS time; these are useful inputs toEventData.from_timeseries.- Parameters:
- eventnamestr
Name of event.
- outdirpath
Directory into which to save the files. Defaults to
GWOSC_FILES_DIR/eventname.- tgpsfloat, optional
GPS time of event. Can be
Noneif eventname is known to GWOSC.- interval(float, float)
Start and end time relative to tgps (s).
- overwritebool
If
False, will skip the download when a file already exists.- **kwargs
Passed to
gwpy.timeseries.TimeSeries.fetch_open_data.
- Returns:
- filenameslist of pathlib.Path
Paths to the hdf5 files with the downloaded data.
- detector_namestuple of str
E.g.
('H', 'L', 'V').- tgpsfloat
GPS time of the event.