GravitySpyTable#
- class gwpy.table.GravitySpyTable(
- data=None,
- masked=False,
- names=None,
- dtype=None,
- meta=None,
- copy=True,
- rows=None,
- copy_indices=True,
- units=None,
- descriptions=None,
- **kwargs,
Bases:
EventTableA container for a table of Gravity Spy Events.
As well as Events from the O1 Glitch Classification Paper which includes:
PCAT
PC-LIB
WDF
WDNN
Karoo GP
See also
astropy.table.Tablefor details on parameters for creating a
GravitySpyTable
Methods Summary
download([download_path, parallel, ...])Download image files associated with entries in a
GravitySpyTable.search(gravityspy_id[, howmany, era, ifos, ...])Perform a GravitySpy 'Similarity Search' for the given ID.
Methods Documentation
- download(
- download_path: str | Path = 'download',
- parallel: int = 1,
- download_durs: Sequence[float] = (0.5, 1.0, 2.0, 4.0),
- *,
- training_set: bool = False,
- labelled_samples: bool = False,
Download image files associated with entries in a
GravitySpyTable.- Parameters:
- parallel
int, optional Number of parallel threads to use for parallel file reading.
- download_path
stroptional Target directory for downloaded images.
- download_durs
listoptional List of durations to download, must be a subset of
[0.5, 1.0, 2.0, 4.0]. Default is to download all the available GSpy durations.- training_set
bool, optional If
Truedownload training set data.- labelled_samples
bool, optional If
Truedownload only labelled samples.
- parallel
- classmethod search(
- gravityspy_id: str,
- howmany: int = 10,
- era: str = 'ALL',
- ifos: tuple[str, ...] | str = ('H1', 'L1'),
- database: str = 'similarity_index_o3',
- host: str = 'https://gravityspytools.ciera.northwestern.edu',
- timeout: float | None = 30.0,
- **kwargs,
Perform a GravitySpy ‘Similarity Search’ for the given ID.
- Parameters:
- gravityspy_id
str The unique 10 character hash that identifies a Gravity Spy image.
- howmany
int, optional The number of similar images you would like.
- era
str, optional Which era to search, see online for more information.
- ifos
tuple, str`, optional The list of interferometers to include in the search.
- database
str, optional The database to query.
- host
str, optional The URL (scheme and FQDN) of the Gravity Spy host to query
- timeout
float, optional How long to wait for the server to respond before giving up.
- **kwargs
Other kwargs are passed to
requests.getto perform the actual remote communication.
- gravityspy_id
- Returns:
- table
GravitySpyTable A
GravitySpyTablecontaining similar events based on an evaluation of the Euclidean distance of the input image to all other images in some Feature Space.
- table
Notes
For an online version, and documentation of the search, see