2024-06-05 11:33:02 +03:00

170 lines
3.6 KiB
HTML

{% extends "artsurvey/base.html" %}
{% load heasarc_templates %}
{% load simbadescape %}
{% load i18n %}
{% block header %}
<div class="container">
<div class="row">
<div class="col-sm-4">
<h3><a href="/artsurvey/catalog">{{ request.user.artsurveyparams.survey }}</a> {{ request.user.artsurveyparams.get_band_display }} ({{ request.user.artsurveyparams.band }})</h3>
<p>
{% if request.user.artsurveyparams.survey.parent %}<strong>Parent: {{ request.user.artsurveyparams.survey.parent }}</strong>{% endif %}{% if request.user.artsurveyparams.survey.children.count %}<strong>Children: {% for child in request.user.artsurveyparams.survey.children.all %}{{ child }}{% endfor %}</strong>{% endif %}
</p>
</div>
<div class="col-sm-2">
{% if ntotal %}<h3>Total {{ ntotal }}</h3>
<!--a href="{% url 'artsurvey csv selection' %}"><span class="glyphicon glyphicon-download"></span> Download selection</a-->
{% endif %}
</div>
<div class="col-sm-3">
</div>
<div class="col-sm-3">
</div>
</div>
</div>
{% endblock %}
{% block content %}
<div class="container-fluid">
{% if histogram %}
<p>
<h4>HEASARC Matching Statistics within 40''</h4>
{% for key,value in histogram.items %}
<b>{{ key }}</b>: {{ value.total }} |
{% endfor %}
</p>
{% endif %}
{% if reverse %}
<p>
<h4>HEASARC Reverse Match Statistics (more than one match)</h4>
{% for key,value in reverse.items %}
{% if value.total > 1 %}
<b>{{ key }}</b>: {{ value.total }} ({{ value.list|safe }}) <br />
{% endif %}
{% endfor %}
</p>
{% endif %}
{% if srcs %}
<!--table class="table"-->
<table id="ArtSurveyTable" class="table" cellspacing="0" width="100%">
<thead>
<tr>
<th class="th-sm"></th>
<!--th class="th-sm"><span title="Survey">S</span></th>
<th class="th-sm"><span title="Energy band">e.</span></th-->
<th class="th-sm">Name</th>
<!--th class="th-sm" width="20%" ><span title="Simbad R < 40''">Type? (abridged<3)</span></th-->
<th class="th-sm">RA</th>
<th class="th-sm">Dec</th>
<th class="th-sm">Flux</th>
<th class="th-sm">DETLIKE</th>
<th class="th-sm">CName</th>
<th class="th-sm">Class</th>
<th class="th-sm">Refs</th>
</tr>
</thead>
<tbody>
{% for src in srcs %}
{% if src.exclude == False %}
<tr>
<td>N{{ forloop.counter|stringformat:"03d" }} </td>
<td>&&nbsp;
{% if src.cname == 'NEW X-RAY SOURCE' %}
{\bf <a target="_blank" href="{{ src.get_absolute_url }}">{{ src.name }}</a> }
{% else %}
<a target="_blank" href="{{ src.get_absolute_url }}">{{ src.name }}</a>
{% endif %}
</td>
<td>&&nbsp;{{ src.ra|floatformat:4 }}</td>
<td>&&nbsp;{{ src.dec|floatformat:4 }}</td>
<td>&&nbsp;{{ src.get_flux_str_m11power }}</td>
<td>&&nbsp;{{ src.get_detlike100 }}</td>
<td>&&nbsp;
{% if not src.cname == 'NEW X-RAY SOURCE' %}
{{ src.cname }}
{% endif %}
</td>
<td>
&&nbsp;{{ src.get_otype }}
</td>
<td>
&&nbsp;{% if src.refs %}{{ src.refs }}{% endif %} \\
</td>
</tr>
{% endif %}
{% endfor %}
</tbody>
<tfooter>
</tfooter>
</table>
<h3>References</h3>
{% for key, value in refdict.items %}
({{ value }}) {{ key }},
{% endfor %}
<h3>Paper Notes</h3>
<pre>
{% for src in srcs %}{% if src.notes_paper %}\subsection{ {{ src.name }} }
{{ src.notes_paper|safe }}<br>{% endif %}{% endfor %}
</pre>
<h3>Bibtex for Paper Notes</h3>
<pre>
{% for bib in bibtex_paper %}
{{ bib|safe }}<br>
{% endfor %}
</pre>
<h3>Bibtex for Source Papers</h3>
<pre>
{% for bib in bibtex %}
{{ bib|safe }}<br>
{% endfor %}
</pre>
{% endif %}
</div>
{% endblock %}