296 lines
12 KiB
HTML
296 lines
12 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-9">
|
|
<h3><a href="/artsurvey/catalog">{{ request.user.artsurveyparams.survey }}</a> {{ request.user.artsurveyparams.get_band_display }} ({{ request.user.artsurveyparams.band }}) {% if ntotal %}Total {{ ntotal }}{% endif %}</h3>
|
|
|
|
<p><big>{% if request.user.artsurveyparams.survey.notes %}<pre>{{ request.user.artsurveyparams.survey.notes|safe }}</pre>{% else %}Notes{% endif %} [<a href="{{ request.user.artsurveyparams.survey.get_notes_url }}">edit</a>]</big></p>
|
|
|
|
<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-3">
|
|
<p>
|
|
<h4>{% trans 'Attached' %} <small>[<a href="{{ request.user.artsurveyparams.survey.get_upload_url }}">+</a>, <a href="{{ request.user.artsurveyparams.survey.clean_primary_upload_url }}">clean Primary</a>]</small></h4>
|
|
<table class="table">
|
|
{% for upload in request.user.artsurveyparams.survey.uploads.all %}
|
|
<tr>
|
|
<td><a title="{{ upload.title }}" href="{{ upload.get_download_url }}">{{ upload.title|truncatechars:20 }}</a>
|
|
<span title="{{ upload.notes }}"><span class="glyphicon glyphicon-comment"></span></span>
|
|
|
|
{% if upload.primary %}
|
|
<span title="Primary"><b style="color:red;">P</b></span>
|
|
{% else %}
|
|
[<a href="{{ request.user.artsurveyparams.survey.set_primary_upload_url }}/{{ upload.pk }}">set as Primary</a>]
|
|
|
|
{% endif %}
|
|
|
|
|
|
</td><td>[<a href="{{ request.user.artsurveyparams.survey.get_edit_upload_url }}/{{ upload.pk }}">edit</a>, <a href="{{ request.user.artsurveyparams.survey.get_delete_upload_url }}/{{ upload.pk }}">del</a>]</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</table>
|
|
</p>
|
|
</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 %}
|
|
<p>
|
|
|
|
<script>
|
|
function toggle_bibcodes() {
|
|
var arr = document.getElementsByClassName('bibcodes');
|
|
for (const x of arr) {
|
|
if (x.style.display === "none") {
|
|
x.style.display = "block";
|
|
} else {
|
|
x.style.display = "none";
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<strong>Sort by:</strong>
|
|
<a class="btn btn-success" role="button" href="{% url 'artsurvey sort ra asc' %}">RA <span class="glyphicon glyphicon-sort-by-attributes"></span></a>
|
|
<a class="btn btn-success" role="button" href="{% url 'artsurvey sort ra desc' %}">RA <span class="glyphicon glyphicon-sort-by-attributes-alt"></span></a>
|
|
<a class="btn btn-success" role="button" href="{% url 'artsurvey sort dec asc' %}">Dec <span class="glyphicon glyphicon-sort-by-attributes"></span></a>
|
|
<a class="btn btn-success" role="button" href="{% url 'artsurvey sort dec desc' %}">Dec <span class="glyphicon glyphicon-sort-by-attributes-alt"></span></a> |
|
|
<a class="btn btn-success" role="button" href="{% url 'artsurvey sort ml_sign asc' %}">ML Sign <span class="glyphicon glyphicon-sort-by-attributes"></span></a>
|
|
<a class="btn btn-success" role="button" href="{% url 'artsurvey sort ml_sign desc' %}">ML Sign <span class="glyphicon glyphicon-sort-by-attributes-alt"></span></a>
|
|
<a class="btn btn-success" role="button" href="{% url 'artsurvey sort nfalse asc' %}">ML nFalse <span class="glyphicon glyphicon-sort-by-attributes"></span></a>
|
|
<a class="btn btn-success" role="button" href="{% url 'artsurvey sort nfalse desc' %}">ML nFalse <span class="glyphicon glyphicon-sort-by-attributes-alt"></span></a>
|
|
<a class="btn btn-success" role="button" href="{% url 'artsurvey sort ml_flux asc' %}">ML Flux <span class="glyphicon glyphicon-sort-by-attributes"></span></a>
|
|
<a class="btn btn-success" role="button" href="{% url 'artsurvey sort ml_flux desc' %}">ML Flux <span class="glyphicon glyphicon-sort-by-attributes-alt"></span></a> |
|
|
<a class="btn btn-success" role="button" href="{% url 'artsurvey sort sign asc' %}">Sign <span class="glyphicon glyphicon-sort-by-attributes"></span></a>
|
|
<a class="btn btn-success" role="button" href="{% url 'artsurvey sort sign desc' %}">Sign <span class="glyphicon glyphicon-sort-by-attributes-alt"></span></a>
|
|
<a class="btn btn-success" role="button" href="{% url 'artsurvey sort flux asc' %}">Flux <span class="glyphicon glyphicon-sort-by-attributes"></span></a>
|
|
<a class="btn btn-success" role="button" href="{% url 'artsurvey sort flux desc' %}">Flux <span class="glyphicon glyphicon-sort-by-attributes-alt"></span></a>
|
|
|
|
<big>* -- Non-ML values are marked with a star</big>
|
|
|
|
<!--a class="btn btn-warning" role="button" href="{% url 'artsurvey integral2020' %}">INTEGRAL2020</a-->
|
|
|
|
<span style="float:right;"><button class="btn btn-info" role="button" onclick="toggle_bibcodes()">Toggle Papers</button></span>
|
|
|
|
</p>
|
|
|
|
<!--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">Survey</th>
|
|
<th class="th-sm">CName</th>
|
|
<th class="th-sm"><span title="Heasarc R < 40''">H</span></th>
|
|
<th class="th-sm"><span title="Gaia R < 40''">G</span></th>
|
|
<th class="th-sm"><span title="ALLWISEAGN R < 40''">W</span></th>
|
|
<th class="th-sm"><span title="NVSS+FIRST+SUMSS+VLASS < 40''">R</span></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">Lon</th>
|
|
<th class="th-sm">Lat</th>
|
|
<th class="th-sm">Cnts (not ML)</th>
|
|
<th class="th-sm">ML Expo</th>
|
|
<th class="th-sm">ML Sign.</th>
|
|
<th class="th-sm">log_ML_nFalse</th>
|
|
<th class="th-sm">ML DL</th>
|
|
<th class="th-sm">ML Flux</th>
|
|
<!--th class="th-sm">eRosita</th-->
|
|
<th class="th-sm">Class</th>
|
|
<th class="th-sm">Redshift</th>
|
|
<th class="th-sm"></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for src in srcs %}
|
|
{% if src.exclude == False %}
|
|
<tr>
|
|
<td>{{ forloop.counter }}</td>
|
|
<!--td>{{ src.field }}</td-->
|
|
<!--td>{{ src.survey }}</td>
|
|
<td>{{ src.band.slug }}</td-->
|
|
<td>
|
|
<a target="_blank" href="{{ src.get_absolute_url }}"><b>{{ src.name }}</b> </a>
|
|
<!-- {% if src.lii < 180.0 %}<b style="color:red;">ru</b>{% else %}<b style="color:blue;">de</b>{% endif %} -->
|
|
<a style="color:red;" title="MetaSource" href="{{ src.metasource.get_absolute_url }}">M{{ src.metasource.artsurveysource_set.all.count }}</a>
|
|
{% if src.metasource.comments.count %}<span title="{% for comment in src.metasource.get_comments %}{{ comment }} | {% endfor %}"><span class="glyphicon glyphicon-comment" style="color:red;"></span>{% endif %}
|
|
</td>
|
|
<td>{{ src.survey }}</td>
|
|
|
|
<td>{% if src.cname %}{{ src.cname }}{% endif %} {% if src.category.slug == "false" %}<b>FALSE</b>{% endif %}</td>
|
|
<td>{{ src.heasarc.all.count }} {% if src.count_heasarc %}({{ src.count_heasarc }}){% endif %}</b></td>
|
|
<td> {{ src.gaia3.all.count }}</td>
|
|
<td> {{ src.allwiseagn }}</td>
|
|
<td> {{ src.get_radio_total }}</td>
|
|
<!--td>
|
|
{% for simsrc in src.simbad.all|slice:":3" %}
|
|
{% if simsrc.obj_class %}{{ simsrc.obj_class }} {% if simsrc.is_redshift_real %}{% if simsrc.z > 0 %}<strong><span style="color:red;">z={{ simsrc.z }}</span></strong> {% endif %}{% endif %}|{% endif %}
|
|
{% endfor %}
|
|
|
|
{% with count=src.simbad.all.count %}
|
|
{% if count > 3 %}<strong>(+{{ count|add:"-3" }})</strong>{% endif %}
|
|
{% endwith %}
|
|
{% if src.simbad_notfound %}
|
|
{% endif %}
|
|
{% if src.simbad_failed %}
|
|
<strong>Aborted</strong>
|
|
{% endif %}
|
|
|
|
</td-->
|
|
|
|
<td>{{ src.ra|floatformat:4 }}</td>
|
|
<td>{{ src.dec|floatformat:4 }}</td>
|
|
<td>{{ src.lii|floatformat:4 }}</td>
|
|
<td>{{ src.bii|floatformat:4 }}</td>
|
|
<td>{{ src.cnts|floatformat:1 }}*</td>
|
|
<td>{{ src.ml_exp|floatformat:0 }}</td>
|
|
<td>{% if src.ml_sig > 0.0 %} {{ src.ml_sig|floatformat:2 }} {% else %} {{ src.sig|floatformat:2 }}*{% endif %}</td>
|
|
<td> {{ src.log_ml_nfalse|floatformat:2 }} {{ src.log_nfalse|floatformat:2 }}*</td>
|
|
<td>{{ src.ml_detlike|floatformat:2 }} {{ src.detlike|floatformat:2 }}*</td>
|
|
<td>{{ src.ml_flux|stringformat:"1.2e" }} {{ src.flux|stringformat:"1.2e" }}*</td>
|
|
<!--td>
|
|
{% if src.erosita_data == False %}
|
|
<span class="dotblack" title="eRosita data N/A"></span>
|
|
{% endif %}
|
|
{% if src.erositamatch %}
|
|
{% if src.erositamatch.match_soft %}<span class="dotr" title="{{ src.erositamatch.ML_FLUX_0_soft|stringformat:"1.2e" }}"></span>{% endif %}
|
|
{% if src.erositamatch.match_med %}<span class="dotg"title="{{ src.erositamatch.ML_FLUX_0_med|stringformat:"1.2e" }}"></span>{% endif %}
|
|
{% if src.erositamatch.match_hard %}<span class="dotb" title="{{ src.erositamatch.ML_FLUX_0_hard|stringformat:"1.2e" }}"></span>{% endif %}
|
|
{% endif %}
|
|
</td-->
|
|
<td>{% if src.category %}[{{ src.category.slug }}]{% endif %}
|
|
|
|
{% if src.follow_up %}
|
|
<a class="btn btn-info btn-xs" role="button" href="{{ src.get_absolute_url }}"><span title="{{ src.follow_up }}">Follow-up</span></a>
|
|
{% endif %}
|
|
|
|
{% if src.class_tentative %}
|
|
<a class="btn btn-danger btn-xs" role="button" href="{{ src.get_absolute_url }}">Tentative</a>
|
|
{% endif %}
|
|
|
|
{% if src.marshall %}
|
|
<a class="btn btn-danger btn-xs" role="button" href="{{ src.get_absolute_url }}" title="MSFC source in NEP">Marshall</a>
|
|
{% endif %}
|
|
|
|
{% if src.turkish %}
|
|
<a class="btn btn-danger btn-xs" role="button" href="{{ src.get_absolute_url }}" title="Date: {{ src.turkish_date|date:"d.m.Y" }}">Turkish</a>
|
|
{% endif %}
|
|
|
|
{% if src.ext %}[extended]{% endif %}
|
|
|
|
{% if src.object_class %}<span title="{{ src.object_class }}">{{ src.object_class|truncatechars:9 }}</span>{% endif %}</td>
|
|
<td>{% if src.redshift %}{{ src.redshift|floatformat:4 }}{% endif %}</td>
|
|
<td>
|
|
{% if src.notes %}<span title="{{ src.notes }}"><span class="glyphicon glyphicon-comment"></span>{% endif %}
|
|
{% if src.notes_paper %}
|
|
<span title="{{ src.notes_paper }}"><span class="glyphicon glyphicon-comment" style="color:red"></span></span>
|
|
{% endif %}
|
|
|
|
|
|
<span class="bibcodes">
|
|
{% for bibcode in src.ads.all %}
|
|
{% if not bibcode.hidden %}
|
|
<a href="https://ui.adsabs.harvard.edu/abs/{{ bibcode }}/abstract" target="_blank">{{ bibcode }} <span class="glyphicon glyphicon-new-window"></span></a>
|
|
<span title="{{ bibcode.notes }}">
|
|
{% for cat in bibcode.category.all %}
|
|
<span class="glyphicon glyphicon-ok"></span> {{ cat }}
|
|
{% endfor %}
|
|
</span><br>
|
|
{% endif %}
|
|
{% endfor %}
|
|
</span>
|
|
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
{% endif %}
|
|
{% endfor %}
|
|
</tbody>
|
|
<tfooter>
|
|
<tr>
|
|
<th class="th-sm"></th>
|
|
|
|
<th class="th-sm">Name</th>
|
|
<th class="th-sm">Survey</th>
|
|
<th class="th-sm">CName</th>
|
|
<th class="th-sm"><span title="Heasarc R < 40''">H</span></th>
|
|
<th class="th-sm"><span title="Gaia R < 40''">G</span></th>
|
|
<th class="th-sm"><span title="ALLWISEAGN R < 40''">W</span></th>
|
|
<th class="th-sm"><span title="NVSS+FIRST+SUMSS+VLASS < 40''">R</span></th>
|
|
|
|
<th class="th-sm">J2000</th>
|
|
<th class="th-sm">J2000</th>
|
|
<th class="th-sm"></th>
|
|
<th class="th-sm"></th>
|
|
<th class="th-sm">cts</th>
|
|
<th class="th-sm">s</th>
|
|
<th class="th-sm">erg/s/cm2</th>
|
|
<th class="th-sm">Sign.</th>
|
|
<th class="th-sm">Class</th>
|
|
<th class="th-sm">Redshift</th>
|
|
<th class="th-sm">CName</th>
|
|
<th class="th-sm"></th>
|
|
</tr>
|
|
|
|
</tfooter>
|
|
|
|
</table>
|
|
|
|
{% endif %}
|
|
|
|
|
|
</div>
|
|
{% endblock %}
|