140 lines
4.4 KiB
HTML
140 lines
4.4 KiB
HTML
{% extends "base.html" %}
|
|
{% load heasarc_templates %}
|
|
{% load srgcat_templates %}
|
|
|
|
{% block precontent %}
|
|
|
|
{% if catalog %}
|
|
<a class="btn btn-success" role="button" href="{{ catalog.get_absolute_url }}">Initial</a>
|
|
<a class="btn btn-success" role="button" href="{{ catalog.get_erosita_matched_url }}">eRosita matched</a>
|
|
<a class="btn btn-success" role="button" href="{{ catalog.get_erosita_nomatch_url }}">eRosita not matched</a>
|
|
{% endif %}
|
|
|
|
{% if skymap_sources %}
|
|
<table id="dtskymapsources" class="table table-striped table-bordered table-sm" cellspacing="0" width="100%">
|
|
<thead>
|
|
<tr>
|
|
<!--th class="th-sm">#</th-->
|
|
<th class="th-sm">Name</th>
|
|
<th class="th-sm">Match</th>
|
|
<th class="th-sm" width="20%" >Type? (abridged<5)</th>
|
|
<th class="th-sm">RA</th>
|
|
<th class="th-sm">Dec</th>
|
|
<th class="th-sm">Rate</th>
|
|
<th class="th-sm">Flux</th>
|
|
<th class="th-sm">Sign</th>
|
|
<th class="th-sm">log10(nFalse)</th>
|
|
<th class="th-sm">SkyMap</th>
|
|
<th class="th-sm">eRosita</th>
|
|
<th class="th-sm">Ratio</th>
|
|
<th class="th-sm">Selection</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for src in skymap_sources %}
|
|
<tr>
|
|
<!--td>{{forloop.counter}}</td-->
|
|
<td><a href="{{ src.get_absolute_url }}">{{ src.name }}</a> | <a data-toggle="tooltip" data-placement="top" title="Lookup target position in survey" href="{% url 'target survey GET' %}?ra={{ src.ra|safe }}&dec={{ src.dec|safe }}"><span class="glyphicon glyphicon-flag"></span></a>
|
|
{% if src.get_swiftbat_count > 0 %}
|
|
| <b>Swift</b>
|
|
{% endif %}
|
|
{% if src.gaia.all.count %}
|
|
| <b>Gaia</b>
|
|
{% endif %}
|
|
|
|
</td>
|
|
<td>
|
|
<b>{{ src.heasarc.all.count }}</b>
|
|
</td>
|
|
<td><p>
|
|
{% for simsrc in src.simbad.all|slice:":5" %}
|
|
{% if simsrc.obj_class %}{{ simsrc.obj_class }} {% if simsrc.is_redshift_real %}<strong>z={{ simsrc.z }}</strong> {% endif %}|{% endif %}
|
|
{% endfor %}
|
|
</p></td>
|
|
<td>{{ src.ra|floatformat:5 }}</td>
|
|
<td>{{ src.dec|floatformat:5 }}</td>
|
|
<td>{{ src.rate|floatformat:3 }}</td>
|
|
<td>{{ src.flux|stringformat:"1.1e" }}</td>
|
|
<td>{{ src.sig|floatformat:2 }}</td>
|
|
<td>{{ src.get_log10_nfalse|floatformat:2 }}</td>
|
|
<td><a href="{{ src.skymap.get_absolute_url }}">{{ src.skymap }}</a></td>
|
|
<td>{{ src.erositamatch.flux|stringformat:"1.1e" }}</td>
|
|
<td>
|
|
{{ src.get_erosita_ratio|floatformat:2 }}
|
|
</td>
|
|
<td>
|
|
|
|
{% if selection %}
|
|
<a class="btn btn-danger btn-sm" role="button" href="{{ selection.get_absolute_url }}/{{ src.pk }}/delete">{{ selection.slug }} <span class="glyphicon glyphicon-remove"></span></a>
|
|
{% else %}
|
|
{% for selection in selections %}
|
|
{% is_skymapsource_in_selection selection src as selected %}
|
|
{% if selected %}
|
|
<a class="btn btn-danger btn-sm" role="button" href="{{ selection.get_absolute_url }}/{{ src.pk }}/delete">{{ selection.slug }} <span class="glyphicon glyphicon-remove"></span></a>
|
|
{% else %}
|
|
<a class="btn btn-warning btn-sm" role="button" href="{{ selection.get_absolute_url }}/{{ src.pk }}/add">{{ selection.slug }} <span class="glyphicon glyphicon-plus"></span></a>
|
|
{% endif %}
|
|
{% endfor %}
|
|
{% endif %}
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
<tfooter>
|
|
<tr>
|
|
<th class="th-sm"></th>
|
|
<th class="th-sm">Heasarc</th>
|
|
<th class="th-sm">Simbad</th>
|
|
<th class="th-sm">J2000</th>
|
|
<th class="th-sm">cts/s</th>
|
|
<th class="th-sm">erg/s/cm2</th>
|
|
<th class="th-sm"></th>
|
|
<th class="th-sm"></th>
|
|
<th class="th-sm"></th>
|
|
<th class="th-sm"></th>
|
|
<th class="th-sm">erg/s/cm2</th>
|
|
<th class="th-sm">ART/eRo</th>
|
|
<th class="th-sm"></th>
|
|
</tr>
|
|
|
|
</tfooter>
|
|
</table>
|
|
{% endif %}
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<a class="btn btn-success" role="button" href="{% url 'art-xc survey index' %}">ART-XC Survey</a>
|
|
<a class="btn btn-success" role="button" href="{% url 'srg data dumps' %}">Daily data dumps</a>
|
|
|
|
|
|
{% if artcats %}
|
|
|
|
|
|
<table class="table">
|
|
|
|
<thead>
|
|
<tr>
|
|
<th class="th-sm">Catalog</th>
|
|
<th class="th-sm">Sources</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for cat in artcats %}
|
|
<tr>
|
|
<td>
|
|
<a href="{{ cat.get_absolute_url }}"><b>{{ cat.name }}</b></a>
|
|
</td>
|
|
<td>{{ cat.skymapsource_set.count }}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
<tfoot>
|
|
</tfoot>
|
|
</table>
|
|
{% endif %}
|
|
|
|
{% endblock %}
|