360 lines
16 KiB
HTML
360 lines
16 KiB
HTML
{% extends "base.html" %}
|
|
{% load heasarc_templates %}
|
|
|
|
|
|
|
|
{% block header %}
|
|
<a class="btn btn-success" role="button" href="/erotrans">Daily source lists</a>
|
|
<a class="btn btn-success" role="button" href="{% url 'show all transeints' %}">All transients</a>
|
|
<a class="btn btn-success" role="button" href="{% url 'show bright transients' %}">bright transients with counterparts</a>
|
|
<a class="btn btn-success" role="button" href="{% url 'show faded transients' %}">X-ray sources faded in erosita</a>
|
|
<a class="btn btn-success" role="button" href="{% url 'show rosat non-detection transients' %}">Bright sources not detected in Rosat</a>
|
|
<a class="btn btn-success" role="button" href="{% url 'erotrans alerce' %}">ZTF alerts</a>
|
|
|
|
{% endblock %}
|
|
|
|
{% block precontent %}
|
|
|
|
{% if bright %}
|
|
<h3>The list of all detected {{ bright_name }} </h3>
|
|
<!--table class="table"-->
|
|
<table id="dttrans" class="table table-striped table-bordered table-sm" cellspacing="0" width="100%">
|
|
<thead>
|
|
<tr>
|
|
<th class="th-sm">Source name</th>
|
|
<th class-"th-sm">l</th>
|
|
<th class-"th-sm">b</th>
|
|
<th class-"th-sm">obs date</th>
|
|
<th class="th-sm">DET_LIKE_0</th>
|
|
<th class="th-sm">flux</th>
|
|
<th class="th-sm">rosat</th>
|
|
<th class="th-sm">xmm</th>
|
|
<th class="th-sm">sxps</th>
|
|
<th class="th-sm">chandra</th>
|
|
<th class="th-sm">redshift | parallax | pm</th>
|
|
<th class="th-sm">offset, "</th>
|
|
<th class="th-sm">Simbad classes</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for src in bright %}
|
|
<tr>
|
|
|
|
<td>
|
|
<a href="{{ src.get_absolute_url }}"><b>{{ src.name }}</b></a> {% if src.heasarc.exists %} H{% endif %} {% if src.gaia.exists %} G{% endif %}{% if src.sdss_spec.exists %} S {% endif %}{% if src.simbad.exists %} Sb{% endif %}
|
|
{% if src.green.exists %} !Near SNR! {% endif %}
|
|
</td>
|
|
<td>{{ src.lii|floatformat:-3 }}</td>
|
|
<td>{{ src.bii|floatformat:-3 }}</td>
|
|
<td>{{ src.catalog.start|date:'Y-m-d' }}</td>
|
|
<td>{{ src.DET_LIKE_0|stringformat:"1.3e" }}</td>
|
|
<td>{{ src.flux|stringformat:"1.1e" }}</td>
|
|
<td>{% if src.rassratio %}{{ src.rassratio|stringformat:"1.1e" }}{% else %}<font color="red">{{ src.rlimratio|stringformat:"1.1e" }}</font>{%endif%}</td>
|
|
<td>{{ src.xmmratio|stringformat:"1.1e" }}</td>
|
|
<td>{{ src.sxpsratio|stringformat:"1.1e" }}</td>
|
|
<td>{{ src.cscratio|stringformat:"1.1e" }}</td>
|
|
<td> {% if src.z %}z={{ src.z|floatformat:-5 }}; {% elif src.sz %} z= {{src.sz|floatformat:-5}}; {% elif src.fz %} z={{ src.fz|floatformat:-5 }}; {% endif %}
|
|
{% if src.plx %}plx={{ src.plx|floatformat:-5 }}; {% elif src.pmr %}pm={{ src.pmr|floatformat:-5 }}; {% elif src.pmd %} pm={{src.pmd|floatformat:-5 }}; {% endif %}
|
|
</td>
|
|
<td>{{ src.offset|floatformat:3}} </td>
|
|
<td>{{ src.sclass}} </td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
<!--tfoot>
|
|
<tr>
|
|
<th class="th-sm">Source name</th>
|
|
<th class="th-sm">N/Match</th>
|
|
<th class="th-sm">RA</th>
|
|
<th class="th-sm">Dec</th>
|
|
<th class-"th-sm">l</th>
|
|
<th class-"th-sm">b</th>
|
|
<th class="th-sm">DET_LIKE_0</th>
|
|
<th class="th-sm">ML_FLUX_0</th>
|
|
<th class="th-sm">flux</th>
|
|
</tr>
|
|
</tfoot-->
|
|
</table>
|
|
{% endif %}
|
|
|
|
{% if dim %}
|
|
<h3>The list of all detected {{ faded_name }} </h3>
|
|
<!--table class="table"-->
|
|
<table id="dtfadedtransients" class="table table-striped table-bordered table-sm" cellspacing="0" width="100%">
|
|
<thead>
|
|
<tr>
|
|
<th class="th-sm">Source name</th>
|
|
<th class-"th-sm">l</th>
|
|
<th class-"th-sm">b</th>
|
|
<th class-"th-sm">obs date</th>
|
|
<th class="th-sm">DET_LIKE_0</th>
|
|
<th class="th-sm">flux</th>
|
|
<th class="th-sm">rosat</th>
|
|
<th class="th-sm">xmm</th>
|
|
<th class="th-sm">sxps</th>
|
|
<th class="th-sm">chandra</th>
|
|
<th class="th-sm">redshift | parallax | pm</th>
|
|
<th class="th-sm"> offset, "</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for src in dim %}
|
|
<tr>
|
|
|
|
<td>
|
|
<a href="{{ src.get_absolute_url }}"><b>{{ src.name }}</b></a> {% if src.heasarc.exists %} H{% endif %} {% if src.gaia.exists %} G{% endif %}{% if src.sdss_spec.exists %} S {% endif %}{% if src.simbad.exists %} Sb{% endif %}
|
|
</td>
|
|
<td>{{ src.lii|floatformat:1 }}</td>
|
|
<td>{{ src.bii|floatformat:1 }}</td>
|
|
<td>{{ src.catalog.start|date:'Y-m-d' }}</td>
|
|
<td>{{ src.DET_LIKE_0|stringformat:"1.1e" }}</td>
|
|
<td>{{ src.flux|stringformat:"1.1e" }}</td>
|
|
<td>{% if src.rassratio %}{{ src.rassratio|stringformat:"1.1e" }}{% else %}<font color="red">{{ src.rlimratio|stringformat:"1.1e" }}</font>{%endif%}</td>
|
|
<td>{{ src.xmmratio|stringformat:"1.1e" }}</td>
|
|
<td>{{ src.sxpsratio|stringformat:"1.1e" }}</td>
|
|
<td>{{ src.cscratio|stringformat:"1.1e" }}</td>
|
|
<td> {% if src.z %}z={{ src.z|floatformat:-5 }}; {% elif src.sz %} z= {{src.sz|floatformat:-5}}; {% elif src.fz %} z={{ src.fz|floatformat:-5 }}; {% endif %}
|
|
{% if src.plx %}plx={{ src.plx|floatformat:-5 }}; {% elif src.pmr %}pm={{ src.pmr|floatformat:-5 }}; {% elif src.pmd %} pm={{src.pmd|floatformat:-5}}; {% endif %}
|
|
</td>
|
|
<td>{{ src.offset|floatformat:3}} </td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
<!--tfoot>
|
|
<tr>
|
|
<th class="th-sm">Source name</th>
|
|
<th class="th-sm">N/Match</th>
|
|
<th class="th-sm">RA</th>
|
|
<th class="th-sm">Dec</th>
|
|
<th class-"th-sm">l</th>
|
|
<th class-"th-sm">b</th>
|
|
<th class="th-sm">DET_LIKE_0</th>
|
|
<th class="th-sm">ML_FLUX_0</th>
|
|
<th class="th-sm">flux</th>
|
|
</tr>
|
|
</tfoot-->
|
|
</table>
|
|
{% endif %}
|
|
|
|
|
|
{% if src %}
|
|
<h4><span class="glyphicon glyphicon-arrow-right"></span> <a href="{{ src.get_absolute_url }}"><b>{{ src.name }} ({{ src.heasarc.all.count }} matches)</b></a> RA, DEC: {{ src.ra|floatformat:4 }} {{ src.dec|floatformat:4 }} l, b: {{ src.lii|floatformat:4 }} {{ src.bii|floatformat:4 }}</h4>
|
|
<h4>Flux 2-5 keV: </h4>
|
|
|
|
{% if heasarcs %}
|
|
<h4>XMMSSC (3XMM DR8 Version) CSC (Chandra Source Catalog, v2.0) RASS2RXS</h4>
|
|
<table id="dtheasarc" class="table table-striped table-bordered table-sm" cellspacing="0" width="100%">
|
|
<thead>
|
|
<tr>
|
|
<th class="th-sm">Table</th>
|
|
<th class="th-sm">Name</th>
|
|
<th class="th-sm">RA</th>
|
|
<th class="th-sm">Dec</th>
|
|
<th class="th-sm">Lon</th>
|
|
<th class="th-sm">Lat</th>
|
|
<!--th class="th-sm">Healpix</th-->
|
|
<th class="th-sm">Error (arcsec)</th>
|
|
<th class="th-sm">Offset (arcsec)</th>
|
|
<th class="th-sm">Notes</th>
|
|
<th class="th-sm">Scaled flux</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for src in heasarcs %}
|
|
{% if src.description != 'HeasarcXrayMaster' and src.description != 'HeasarcCHANMASTER' %}
|
|
<tr>
|
|
<td>{{ src.description|remove_heasarc }}</td>
|
|
<td>
|
|
<a href="{{ src.get_absolute_url }}">{{ src.name }}</a>
|
|
</td>
|
|
<td>{{ src.ra|floatformat:3 }}</td>
|
|
<td>{{ src.dec|floatformat:3 }}</td>
|
|
<td>{{ src.lii|floatformat:3 }}</td>
|
|
<td>{{ src.bii|floatformat:3 }}</td>
|
|
<!--td>{{ src.healpix }}</td-->
|
|
<td>{% if src.error_radius > 0 %}{{ src.error_radius|floatformat:2 }}{% endif %}</td>
|
|
<td>{{ src.separation|floatformat:3 }}</td>
|
|
<td>
|
|
{% if src.description == 'HeasarcCSC' %}
|
|
{% if src.extent_flag == 'T' %}extended{% endif %}
|
|
{% endif %}
|
|
</td>
|
|
<td>
|
|
<!--{% if src.description == 'HeasarcRASS2RXS' %} {{src.count_rate}} {%endif%} -->
|
|
</td>
|
|
</tr>
|
|
{% endif %}
|
|
{% endfor %}
|
|
</tbody>
|
|
<tfoot>
|
|
<!--tr>
|
|
<th>Table</th>
|
|
<th>Name</th>
|
|
<th>RA</th>
|
|
<th>Dec</th>
|
|
<th>Lon</th>
|
|
<th>Lat</th>
|
|
<th>Error (arcsec)</th>
|
|
<th>Offset (arcsec)</th>
|
|
</tr-->
|
|
</foot>
|
|
</table>
|
|
{% endif %}
|
|
|
|
{% if heasarcs %}
|
|
<h4>HEASARC X-ray Master</h4>
|
|
<table id="dtheasarcxraymaster" class="table table-striped table-bordered table-sm" cellspacing="0" width="100%">
|
|
<thead>
|
|
<tr>
|
|
<th class="th-sm">Mission</th>
|
|
<th class="th-sm">Name</th>
|
|
<th class="th-sm">Offset (arcsec)</th>
|
|
<th class="th-sm">Type</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for src in heasarcs %}
|
|
{% if src.description == 'HeasarcXrayMaster' %}
|
|
<tr>
|
|
<td>{{ src.observatory }} ({{ src.database_table }})</td>
|
|
<td>
|
|
<a href="{{ src.get_absolute_url }}">{{ src.name }}</a>
|
|
</td>
|
|
<td>{{ src.separation|floatformat:3 }}</td>
|
|
<td>
|
|
{% if src.class_id != 9999 %}
|
|
{{ src.object_class.class_name }}
|
|
{% endif %}
|
|
</td>
|
|
</tr>
|
|
{% endif %}
|
|
{% endfor %}
|
|
</tbody>
|
|
<tfoot>
|
|
<!--tr>
|
|
<th>Mission</th>
|
|
<th>Name</th>
|
|
<th>Offset (arcsec)</th>
|
|
<th>Type</th>
|
|
</tr-->
|
|
</foot>
|
|
</table>
|
|
{% endif %}
|
|
|
|
{% if heasarcs %}
|
|
<h4>HEASARC Chandra Master</h4>
|
|
<table id="dtheasarcchandramaster" class="table table-striped table-bordered table-sm" cellspacing="0" width="100%">
|
|
<thead>
|
|
<tr>
|
|
<th class="th-sm">ObsID</th>
|
|
<th class="th-sm">Name</th>
|
|
<th class="th-sm">Offset (arcsec)</th>
|
|
<th class="th-sm">Exposure (sec)</th>
|
|
<th class="th-sm">Notes</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for src in heasarcs %}
|
|
{% if src.description == 'HeasarcCHANMASTER' %}
|
|
<tr>
|
|
<td>{{ src.obsid }}</td>
|
|
<td>
|
|
<a href="{{ src.get_absolute_url }}">{{ src.name }}</a>
|
|
</td>
|
|
<td>{{ src.separation|floatformat:3 }}</td>
|
|
<td>{{ src.exposure }}</td>
|
|
<td>PI: {{ src.pi }}, {{ src.category }}</td>
|
|
</tr>
|
|
{% endif %}
|
|
{% endfor %}
|
|
</tbody>
|
|
<tfoot>
|
|
<!--tr>
|
|
<th>Mission</th>
|
|
<th>Name</th>
|
|
<th>Offset (arcsec)</th>
|
|
<th>Exposure (sec)</th>
|
|
<th>Notes</th>
|
|
</tr-->
|
|
</foot>
|
|
</table>
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
{% if srcs %}
|
|
|
|
|
|
<!-- insert this snippet where you want Aladin Lite viewer to appear and after the loading of jQuery -->
|
|
<div id="aladin-lite-div" style="width:800px;height:800px;align=center"></div>
|
|
<!--input id="allwise" type="radio" name="survey" value="P/allWISE/color"><label for="allwise">AllWISE<label-->
|
|
<script type="text/javascript" src="//aladin.u-strasbg.fr/AladinLite/api/v2/latest/aladin.min.js" charset="utf-8"></script>
|
|
|
|
<script type="text/javascript">
|
|
/* survey: "P/DSS2/color", */
|
|
var aladin = A.aladin('#aladin-lite-div', {
|
|
cooFrame: "GAL",
|
|
survey: "P/DSS2/color",
|
|
fov: 197, target: "0. 0.",
|
|
showShareControl: true,
|
|
showCooGrid: false});
|
|
/*
|
|
see http://aladin.u-strasbg.fr/hips/list for more
|
|
*/
|
|
aladin.createImageSurvey("DIRBE_4","DIRBE_4", "http://cade.irap.omp.eu/documents/Ancillary/4Aladin/DIRBE_4",'galactic',8, {imgFormat: 'jpg'});
|
|
/* aladin.createImageSurvey("XMMrgb","XMMrgb", "http://skies.esac.esa.int/XMM-Newton/EPIC-RGB",'equatorial',8, {imgFormat: 'jpg'}) */
|
|
aladin.getBaseImageLayer().getColorMap().update('rainbow');
|
|
|
|
aladin.createImageSurvey("RASS-soft", "RASS-soft", "http://cade.irap.omp.eu/documents/Ancillary/4Aladin/RASS_IM3", 'galactic', 12, {imgFormat: 'jpg'})
|
|
aladin.setImageSurvey(aladin.createImageSurvey("RASS", "RASS", "http://alasky.u-strasbg.fr/RASS", 'equatorial', 12, {imgFormat: 'jpg'}));
|
|
aladin.getBaseImageLayer().getColorMap().update('cubehelix');
|
|
aladin.getBaseImageLayer().getColorMap().reverse('true');
|
|
aladin.setImageSurvey(aladin.createImageSurvey("LAB-NH", "LAB-NH", "http://cade.irap.omp.eu/documents/Ancillary/4Aladin/LAB_NH", 'galactic', 12, {imgFormat: 'jpg'}));
|
|
aladin.setOverlayImageLayer(aladin.createImageSurvey("Planck-HFI", "Planck-HFI", "http://alasky.u-strasbg.fr/PLANCK/R2/HFI_Color_353_545_857", 'galactic', 12, {imgFormat: 'jpg'}));
|
|
aladin.getOverlayImageLayer().setAlpha(0.35);
|
|
aladin.getOverlayImageLayer().getColorMap().reverse('true');
|
|
|
|
aladin.setImageSurvey("DIRBE_4");
|
|
aladin.setOverlayImageLayer("");
|
|
|
|
aladin.addCatalog(A.catalogFromURL('http://193.232.10.38/static/aladin/pvlabs.vot',
|
|
{name: 'Labels', sourceSize:5, color: 'red', shape: 'circle',
|
|
raField: "col3", decField: "col4",
|
|
displayLabel: true,labelColumn: "col8", labelColor: "red", labelFont: "12px sans-serif",
|
|
onClick: 'showPopup'}));
|
|
|
|
var cat1 = A.catalog({shape: 'circle', name: 'EroTrans bright', color: 'white', sourceSize: 10, displayLabel: false,onClick: 'showPopup'});
|
|
var cat2 = A.catalog({shape: 'circle', name: 'EroTrans dim', color: 'green', sourceSize: 10, displayLabel: false,onClick: 'showPopup'});
|
|
|
|
{% for src in bright %}
|
|
cat1.addSources(A.source({{ src.ra|safe }}, {{ src.dec|safe }}, {name: '<a href="{{ src.get_absolute_url }}">{{ src.name }}', RA: '{{ src.ra|floatformat:4 }}', Dec: '{{ src.dec|floatformat:4 }}', Healpix: '{{ src.healpix }}'}));
|
|
{% endfor %}
|
|
|
|
{% for src in dim %}
|
|
cat2.addSources(A.source({{ src.ra|safe }}, {{ src.dec|safe }}, {name: '<a href="{{ src.get_absolute_url }}">{{ src.name }}', RA: '{{ src.ra|floatformat:4 }}', Dec: '{{ src.dec|floatformat:4 }}', Healpix: '{{ src.healpix }}'}));
|
|
{% endfor %}
|
|
|
|
aladin.addCatalog(cat1);
|
|
aladin.addCatalog(cat2);
|
|
|
|
aladin.addCatalog(A.catalogFromURL('http://193.232.10.38/static/aladin/bound_radec.csv.xml',
|
|
{name: 'boundary', sourceSize:10, color: 'red', shape: 'cross' }));
|
|
|
|
var simbadhips = A.catalogHiPS('http://axel.u-strasbg.fr/HiPSCatService/Simbad', {color: "#2F4F4F", onClick: 'showPopup', name: 'Simbad'}, null, true);
|
|
aladin.addCatalog(simbadhips);
|
|
simbadhips.hide();
|
|
|
|
</script>
|
|
|
|
|
|
</br>
|
|
<div style="width=40px; height=40px; background-color=black"><div style="width=40px; height=40px; radius=50%; boundary-color=white;"></div></div><div>white circles - bright transients </div></br>
|
|
<div>green circles - faded transients</div>
|
|
{% endif %}
|
|
|
|
|
|
{% endblock %}
|