Skip to content

Commit

Permalink
Added test voevents to be used to test real time settings
Browse files Browse the repository at this point in the history
  • Loading branch information
jjd330 committed Jul 13, 2017
1 parent dac2d4b commit 5c4eb44
Show file tree
Hide file tree
Showing 4 changed files with 277 additions and 0 deletions.
88 changes: 88 additions & 0 deletions AmonPy/data/test_voevents/augevent_0.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
<?xml version="1.0" ?>
<voe:VOEvent xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:voe="http://www.ivoa.net/xml/VOEvent/v2.0"
xsi:schemaLocation="http://www.ivoa.net/xml/VOEvent/v2.0 http://www.ivoa.net/xml/VOEvent/VOEvent-v2.0.xsd"
version="2.0" role="sim" ivorn="ivo://3/test#3772">
<Who>
<AuthorIVORN>ivo://Auger</AuthorIVORN>
<Date>2014-08-07T15:46:02.011841</Date>
</Who>
<What>
<Param name="stream" dataType="float" value="3" ucd="meta.number" unit=" ">
<Description>Stream number</Description>
</Param>
<Param name="id" dataType="float" value="0" ucd="meta.number" unit=" ">
<Description>Id number</Description>
</Param>
<Param name="rev" dataType="float" value="0" ucd="meta.number" unit=" ">
<Description>Revision number</Description>
</Param>
<Param name="nevents" dataType="float" value="1" ucd="meta.number" unit=" ">
<Description>Number of events</Description>
</Param>
<Param name="deltaT" dataType="float" value="0.0" ucd="time.duration" unit="s">
<Description>Time window of the burst</Description>
</Param>
<Param name="sigmaT" dataType="float" value="0.0" ucd="time" unit="s">
<Description>Uncertainty of the time window</Description>
</Param>
<Param name="false_pos" dataType="float" value="0.0012104" ucd="stat.probability" unit="s-1.sr-1 ">
<Description>False positive rate</Description>
</Param>
<Param name="pvalue" dataType="float" value="1.0" ucd="stat.probability" unit=" ">
<Description>Pvalue</Description>
</Param>
<Param name="point_RA" dataType="float" value="-1.0" ucd="os.eq.ra" unit="deg">
<Description>Pointing RA</Description>
</Param>
<Param name="point_dec" dataType="float" value="0.0" ucd="os.eq.dec" unit="deg">
<Description>Pointing Dec</Description>
</Param>
<Param name="psf_type" dataType="string" value="fisher" ucd="meta.code.multip" unit=" ">
<Description>Type of psf (skymap, fisher, kent, king)</Description>
</Param>
<Group name="aux_params">
<Param name="energy" dataType="float" value="0.0" ucd="phys.energy" unit="nounits"/>
</Group>
</What>
<WhereWhen>
<ObsDataLocation>
<ObservatoryLocation>
<AstroCoordSystem id="UTC-GEOD-TOPO"/>
<AstroCoords coord_system_id="UTC-GEOD-TOPO">
<Position3D unit="deg-deg-m">
<Name1>longitude</Name1>
<Name2>latitude</Name2>
<Name3>elevation</Name3>
<Value3>
<C1>-69.311400</C1>
<C2>-35.466700</C2>
<C3>0.000000</C3>
</Value3>
</Position3D>
</AstroCoords>
</ObservatoryLocation>
<ObservationLocation>
<AstroCoordSystem id="UTC-ICRS-TOPO"/>
<AstroCoords coord_system_id="UTC-ICRS-TOPO">
<Time unit="s">
<TimeInstant>
<ISOTime>2012-01-01T00:35:52.883010</ISOTime>
</TimeInstant>
</Time>
<Position2D unit="deg-deg">
<Name1>RA</Name1>
<Name2>Dec</Name2>
<Value2>
<C1>323.827000</C1>
<C2>8.866060</C2>
</Value2>
<Error2Radius>1.200000</Error2Radius>
</Position2D>
</AstroCoords>
</ObservationLocation>
</ObsDataLocation>
</WhereWhen>
<Description>Report of some test event information</Description>
</voe:VOEvent>

88 changes: 88 additions & 0 deletions AmonPy/data/test_voevents/iceevent_0.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
<?xml version="1.0" ?>
<voe:VOEvent xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:voe="http://www.ivoa.net/xml/VOEvent/v2.0"
xsi:schemaLocation="http://www.ivoa.net/xml/VOEvent/v2.0 http://www.ivoa.net/xml/VOEvent/VOEvent-v2.0.xsd"
version="2.0" role="sim" ivorn="ivo://0/test#0">
<Who>
<AuthorIVORN>ivo://IceCube</AuthorIVORN>
<Date>2014-05-16T19:07:35.963944</Date>
</Who>
<What>
<Param name="stream" dataType="float" value="0" ucd="meta.number" unit=" ">
<Description>Stream number</Description>
</Param>
<Param name="id" dataType="float" value="0" ucd="meta.number" unit=" ">
<Description>Id number</Description>
</Param>
<Param name="rev" dataType="float" value="0" ucd="meta.number" unit=" ">
<Description>Revision number</Description>
</Param>
<Param name="nevents" dataType="float" value="1" ucd="meta.number" unit=" ">
<Description>Number of events</Description>
</Param>
<Param name="deltaT" dataType="float" value="0.0" ucd="time.duration" unit="s">
<Description>Time window of the burst</Description>
</Param>
<Param name="sigmaT" dataType="float" value="0.0" ucd="time" unit="s">
<Description>Uncertainty of the time window</Description>
</Param>
<Param name="false_pos" dataType="float" value="0.0004438" ucd="stat.probability" unit="s-1.sr-1 ">
<Description>False positive rate</Description>
</Param>
<Param name="pvalue" dataType="float" value="1.0" ucd="stat.probability" unit=" ">
<Description>Pvalue</Description>
</Param>
<Param name="point_RA" dataType="float" value="-1.0" ucd="os.eq.ra" unit="deg">
<Description>Pointing RA</Description>
</Param>
<Param name="point_dec" dataType="float" value="0.0" ucd="os.eq.dec" unit="deg">
<Description>Pointing Dec</Description>
</Param>
<Param name="psf_type" dataType="string" value="fisher" ucd="meta.code.multip" unit=" ">
<Description>Type of psf (skymap, fisher, kent, king)</Description>
</Param>
<Group name="aux_params">
<Param name="energy" dataType="float" value="0.0" ucd="phys.energy" unit="nounits"/>
</Group>
</What>
<WhereWhen>
<ObsDataLocation>
<ObservatoryLocation>
<AstroCoordSystem id="UTC-GEOD-TOPO"/>
<AstroCoords coord_system_id="UTC-GEOD-TOPO">
<Position3D unit="deg-deg-m">
<Name1>longitude</Name1>
<Name2>latitude</Name2>
<Name3>elevation</Name3>
<Value3>
<C1>0.000000</C1>
<C2>-90.000000</C2>
<C3>0.000000</C3>
</Value3>
</Position3D>
</AstroCoords>
</ObservatoryLocation>
<ObservationLocation>
<AstroCoordSystem id="UTC-ICRS-TOPO"/>
<AstroCoords coord_system_id="UTC-ICRS-TOPO">
<Time unit="s">
<TimeInstant>
<ISOTime>2012-01-01T01:07:40.217862</ISOTime>
</TimeInstant>
</Time>
<Position2D unit="deg-deg">
<Name1>RA</Name1>
<Name2>Dec</Name2>
<Value2>
<C1>174.199000</C1>
<C2>45.207500</C2>
</Value2>
<Error2Radius>0.800000</Error2Radius>
</Position2D>
</AstroCoords>
</ObservationLocation>
</ObsDataLocation>
</WhereWhen>
<Description>Report of some test event information</Description>
</voe:VOEvent>

88 changes: 88 additions & 0 deletions AmonPy/data/test_voevents/iceevent_1.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
<?xml version="1.0" ?>
<voe:VOEvent xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:voe="http://www.ivoa.net/xml/VOEvent/v2.0"
xsi:schemaLocation="http://www.ivoa.net/xml/VOEvent/v2.0 http://www.ivoa.net/xml/VOEvent/VOEvent-v2.0.xsd"
version="2.0" role="sim" ivorn="ivo://0/test#1">
<Who>
<AuthorIVORN>ivo://IceCube</AuthorIVORN>
<Date>2014-05-16T19:07:35.965291</Date>
</Who>
<What>
<Param name="stream" dataType="float" value="0" ucd="meta.number" unit=" ">
<Description>Stream number</Description>
</Param>
<Param name="id" dataType="float" value="1" ucd="meta.number" unit=" ">
<Description>Id number</Description>
</Param>
<Param name="rev" dataType="float" value="0" ucd="meta.number" unit=" ">
<Description>Revision number</Description>
</Param>
<Param name="nevents" dataType="float" value="1" ucd="meta.number" unit=" ">
<Description>Number of events</Description>
</Param>
<Param name="deltaT" dataType="float" value="0.0" ucd="time.duration" unit="s">
<Description>Time window of the burst</Description>
</Param>
<Param name="sigmaT" dataType="float" value="0.0" ucd="time" unit="s">
<Description>Uncertainty of the time window</Description>
</Param>
<Param name="false_pos" dataType="float" value="0.0004438" ucd="stat.probability" unit="s-1.sr-1 ">
<Description>False positive rate</Description>
</Param>
<Param name="pvalue" dataType="float" value="1.0" ucd="stat.probability" unit=" ">
<Description>Pvalue</Description>
</Param>
<Param name="point_RA" dataType="float" value="-1.0" ucd="os.eq.ra" unit="deg">
<Description>Pointing RA</Description>
</Param>
<Param name="point_dec" dataType="float" value="0.0" ucd="os.eq.dec" unit="deg">
<Description>Pointing Dec</Description>
</Param>
<Param name="psf_type" dataType="string" value="fisher" ucd="meta.code.multip" unit=" ">
<Description>Type of psf (skymap, fisher, kent, king)</Description>
</Param>
<Group name="aux_params">
<Param name="energy" dataType="float" value="0.0" ucd="phys.energy" unit="nounits"/>
</Group>
</What>
<WhereWhen>
<ObsDataLocation>
<ObservatoryLocation>
<AstroCoordSystem id="UTC-GEOD-TOPO"/>
<AstroCoords coord_system_id="UTC-GEOD-TOPO">
<Position3D unit="deg-deg-m">
<Name1>longitude</Name1>
<Name2>latitude</Name2>
<Name3>elevation</Name3>
<Value3>
<C1>0.000000</C1>
<C2>-90.000000</C2>
<C3>0.000000</C3>
</Value3>
</Position3D>
</AstroCoords>
</ObservatoryLocation>
<ObservationLocation>
<AstroCoordSystem id="UTC-ICRS-TOPO"/>
<AstroCoords coord_system_id="UTC-ICRS-TOPO">
<Time unit="s">
<TimeInstant>
<ISOTime>2012-01-01T00:35:08.925930</ISOTime>
</TimeInstant>
</Time>
<Position2D unit="deg-deg">
<Name1>RA</Name1>
<Name2>Dec</Name2>
<Value2>
<C1>323.886000</C1>
<C2>8.406100</C2>
</Value2>
<Error2Radius>0.800000</Error2Radius>
</Position2D>
</AstroCoords>
</ObservationLocation>
</ObsDataLocation>
</WhereWhen>
<Description>Report of some test event information</Description>
</voe:VOEvent>

13 changes: 13 additions & 0 deletions AmonPy/data/test_voevents/readme.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Here's three events to quickly test the amonpy's real time settings.

When running the client server (both local and ssl versions), you must specify the path (-epath argument) to where the events are located. So to use these tests events have the client point to this directory.

Once the DB is set up, celery and the twisted serverpost plugin are running you can start up the client post plugin with -path pointing here.

Once these 3 events are sent by the client post plugin, these things should have succesfully happened,

- All three events should be written to the event table in the DB (2 icecube events, 1 auger event)

- There should be an alert in the Alert table of the DB (coincident between the auger event and one of the IC events).

- The Alert Voevent from the coincident should be written to the alert directory

0 comments on commit 5c4eb44

Please sign in to comment.