GWCat demo

Summary: It doesn't work :'(

The data here is a compilation of data from the Gravitational Wave Open Science Centre and GraceDB. It is intended for public outreach purposes only. If you require the latest scientific data, then please use the source repositories.

More info

Initialisation

In the <head> of the page, include the gwcat library.

		<script type="text/javascript" src="js/gwcat.js"></script>
	

To initialise the database of events


		gwcat = new GWCat(callback, {parameters});
	

The resulting object contains the following objects:

Data format

The data array contains an object for each event. Each event has a set of parameters (M1, M2, Mchirp, UTC, etc.), within which is an object containing the relevant values.


	gwcat.data = [
		{
            "name": Event name,
            "meta": object containing metadata, such as source, date retrieved etc.
            "ref": Reference to paper (if applicable)
            "opendata": Reference to open-data source
			"Event1 Parameter1": {
				"Event1 Parameter1 Value1": string/number/array
			},
			"Event1 Parameter2": {
				"Event1 Parameter2 Value1": string/array/value
				"Event1 Parameter2 Value2": string/array/value
			},...
		},
		{
			"Event2 Parameter1":{
				"Event2 Parameter1 Value1": string/number/array
			},...
		},...
	]
	

The parameters are those recorded for each event. Note that not all are present for each event.

The values can be any of:

Link format

The link object contains an object for each event, labelled by event name. A few links are specifically listed, where available, but most are in list.


	gwcat.links = [
		event1:{
            "Det Paper": Detection paper,
            "GWOSCData": Open-data on GWOSC or GraceDB
            "SkyMapFile": Localisation map
            "all": [
			          {Link 1 for event 1},
                {Link 2 for event 1},
                ...
			]
		},
        event2:{
            "Det Paper": Detection paper,
            "GWOSCData": Open-data on GWOSC or GraceDB
            "SkyMapFile": Localisation map
            "SkyMapPlots": Plots of skymaps
            "all": [
			          {Link 1 for event 2},
                {Link 2 for event 2},
                ...
			]
		},...
	]
	

Each link contains:

The skymaps available are:

Built-in functions

A number of functions exist to allow access to the data.

Example Tests