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

693 lines
24 KiB
HTML

{% load artsurvey_templates %}
{% load heasarc_templates %}
{% load srgcat_templates %}
{% load i18n %}
{% load static %}
<!DOCTYPE html>
<html lang="en">
<head>
<title>{% block title %}SRG ArXiv{% endblock %}</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<META NAME="author" CONTENT="Roman Krivonos, email: krivonos [at] iki.rssi.ru">
<META NAME="description" CONTENT="High Energy Astrophysics Department at IKI RAN (Moscow, Russia)">
<link rel="stylesheet" href="{% static 'jquery/jquery-ui-themes-1.12.1/jquery-ui.css' %}" type="text/css" media="all" />
<script src="{% static 'jquery/jquery-3.5.1.min.js' %}" type="text/javascript"> </script>
<script type="text/javascript" src="{% static 'js/bootstrap.min.js' %}"></script>
<script src="{% static 'jquery/jquery-ui-1.12.1/jquery-ui.min.js' %}" type="text/javascript"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.css">
<link rel="stylesheet" href="/static/css/style.css" />
<link type="text/css" rel="stylesheet" href="/static/js9/js9support.css">
<link type="text/css" rel="stylesheet" href="/static/js9/js9.css">
<script type="text/javascript" src="/static/js9/js9prefs.js"></script>
<script type="text/javascript" src="/static/js9/js9support.min.js"></script>
<script type="text/javascript" src="/static/js9/js9.min.js"></script>
<script type="text/javascript" src="/static/js9/js9plugins.js"></script>
<script>
var xhr = new XMLHttpRequest();
xhr.open("POST", "https://vizier.u-strasbg.fr/vizier/", true);
xhr.setRequestHeader('Content-Type', 'application/json');
xhr.send(JSON.stringify({
"keywordSearchPosition": "10.0 , 10.0"
}));
function ToggleAllWise() {
var x = document.getElementById("ToggleAllWise");
if (x.style.display === "none") {
x.style.display = "block";
} else {
x.style.display = "none";
}
}
function ToggleOtherSRGA() {
var x = document.getElementById("ToggleOtherSRGA");
if (x.style.display === "none") {
x.style.display = "block";
} else {
x.style.display = "none";
}
}
function ToggleART() {
var x = document.getElementById("ToggleART");
if (x.style.display === "none") {
x.style.display = "block";
} else {
x.style.display = "none";
}
}
function ToggleVLASS() {
var x = document.getElementById("ToggleVLASS");
if (x.style.display === "none") {
x.style.display = "block";
} else {
x.style.display = "none";
}
}
function ToggleGLIMPSE() {
var x = document.getElementById("ToggleGLIMPSE");
if (x.style.display === "none") {
x.style.display = "block";
} else {
x.style.display = "none";
}
}
function ToggleGaiaPLX() {
var x = document.getElementById("ToggleGaiaPLX");
if (x.style.display === "none") {
x.style.display = "block";
} else {
x.style.display = "none";
}
}
function ToggleGaiaPM() {
var x = document.getElementById("ToggleGaiaPM");
if (x.style.display === "none") {
x.style.display = "block";
} else {
x.style.display = "none";
}
}
function Toggle2MASS() {
var x = document.getElementById("ToggleGaiaPM");
if (x.style.display === "none") {
x.style.display = "block";
} else {
x.style.display = "none";
}
}
function ToggleGaiaEx() {
var x = document.getElementById("ToggleGaiaEx");
if (x.style.display === "none") {
x.style.display = "block";
} else {
x.style.display = "none";
}
}
function load_target(){
JS9.RemoveRegions();
JS9.AddRegions("circle", {ra:"{{ src.ra }}", dec:"{{ src.dec }}", text:"{{ src.name }}", color:"white",});
}
</script>
</head>
<body>
<nav class="navbar navbar-default">
<div class="container">
<div class="navbar-header">
<a class="navbar-brand" href="/"><span class="glyphicon glyphicon-list"></span> SRG.ArXiv</a>
</div>
<ul class="nav navbar-nav">
</ul>
{% if user.is_authenticated %}
<a class="btn btn-danger navbar-btn navbar-right" role="button" href="/logbook/logout">{{ user }} <span class="glyphicon glyphicon-log-out"></span> Sign Out</a>
{% else %}
<a class="btn btn-danger navbar-btn navbar-right" role="button" href="/logbook/login"><span class="glyphicon glyphicon-log-in"></span> Sign In</a>
{% endif %}
</div>
</nav>
{% block header %}
<div class="container">
<!--form>
<input type="button" value="Go back" onclick="history.back()">
</form-->
{% if src %}
<h2><a href="{{ src.get_base_url }}">{{ src.name }}</a> RA={{ src.ra|floatformat:4 }} Dec={{ src.dec|floatformat:4 }} {% if src.radec_error %}({{ src.radec_error|floatformat:4 }}''){% endif %}{% if src.error_radius %}({{ src.error_radius|floatformat:4 }}''){% endif %}</h2>
<p>
<b><big>Search in <a target="_blank" href='http://vizier.u-strasbg.fr/viz-bin/VizieR-4?-c={{ src.ra }}{{ src.dec|stringformat:"+f" }}&-c.rs=5&-out.add=_r&-sort=_r&-out.max=$4'>VizieR 5''</a> | <a target="_blank" href='https://alerce.online/?ranking=1&ra={{ src.ra|stringformat:"+.6f" }}&dec={{ src.dec|stringformat:"+.6f" }}&radius=5&count=false&page=1&perPage=20&sortBy=probability&sortDesc=true'>ZTF ALERCE 5''</a></big></b>
</p>
<h3><a href="{{ src.get_absolute_url }}">Show details</a></h3>
{% else %}
N/A
{% endif %}
{% if artsurveysources_listed %}
<p>
<hr>
<h4 class="card-title"> Associated ART-XC sources ({{ artsurveysources_listed.count }})
<button onclick="ToggleART()">Show/Hide</button></h4>
<div id="ToggleART" style="display:none">
<table id="GaiaPlxTable" class="table tableSection">
<thead>
<tr>
<th class="th-sm">Name</th>
</thead>
<tbody>
{% for art in artsurveysources_listed %}
<tr>
<td>
<a href="{{ art.get_absolute_url }}">{{ art }}</a>{% if art in artsurveysources_linked %} (<b>Linked</b>){% endif %}
</td>
</tr>
{% endfor %}
</tbody>
</table>
</p>
</div>
{% endif %}
</div>
{% endblock %}
<div class="container">
{% block content %}{% endblock %}
</div>
<div class="container">
{% block counterparts %}
<h3><a href="{{ src.get_new_astrobasis_url }}">Make new optical counterpart</a></h3>
<table id="UserCatTable" class="table tableSection">
<thead>
<tr>
<th class="th-sm">Name</th>
<th class="th-sm">Notes</th>
<th class="th-sm">RA</th>
<th class="th-sm">Dec</th>
<th class="th-sm">Offset ('')</th>
<th class="th-sm">Optical Bands</th>
<th class="th-sm"></th>
</tr>
</thead>
<tbody>
{% for usersrc in usercat %}
<tr>
<td>{{ usersrc.name }}</td>
<td>
{% if usersrc.notes %}<span title="{{ usersrc.notes }}"><span class="glyphicon glyphicon-comment"></span></span>{% endif %}
</td>
<td>{{ usersrc.ra|floatformat:4}} </td>
<td>{{ usersrc.dec|floatformat:4}} </td>
<td>{{ usersrc.separation|floatformat:4}} </td>
<td>
[<a title="add magnitude" href="{{ usersrc.get_add_magn_url }}/{{ src.pk }}">+</a>]
{% for magn in usersrc.magnitudes.all %}
<b>{{ magn.band }}</b> {{ magn.magn }} &plusmn; {{ magn.error}} [<a href="{{ magn.get_delete_url }}/{{ src.pk }}">del</a>],
{% endfor %}
</td>
<td>
<a class="btn btn-warning btn-xs" role="button" href="{{ usersrc.get_update_url }}/{{ src.pk }}">Edit</a>
</td>
<td>
<a class="btn btn-success btn-xs" role="button" href="{{ usersrc.get_delete_url }}/{{ src.pk }}">Delete</a>
</td>
</tr>
{% endfor %}
</tbody>
</tbody>
</table>
{% if src.gaia3_primary %}<hr> Gaia primary: <b>{{ src.gaia3_primary }}</b> <a href="{{ src.gaia3_primary.get_absolute_url_vizier }}">VizieR</a>{% endif %}
{% if gaia_plx %}
<h4 class="card-title">Gaia "star / parallax" counterparts ({{ gaia_plx.count }})
<button onclick="ToggleGaiaPLX()">Show/Hide</button></h4>
<div id="ToggleGaiaPLX" style="display:block">
<h4>Gaia DR3 "star" <em style="color:red;">parallax</em> ({{ gaia_plx.count }}) {% if not gaia_plx %}| sort by <button onclick='sortTableOffset(3,"GaiaPlxTable")'>Offset</button>{% endif %}</h4>
<p>
<pre>abs(parallax) > 4*parallax_error</pre>
</p>
<table id="GaiaPlxTable" class="table tableSection">
<thead>
<tr>
<th class="th-sm">Name</th>
<th class="th-sm">RA</th>
<th class="th-sm">Dec</th>
<th class="th-sm">Offset ('')</th>
<th class="th-sm">Parallax</th>
<th class="th-sm">Parallax error</th>
<th class="th-sm">pmra</th>
<th class="th-sm">pmra_error</th>
<th class="th-sm">pmdec</th>
<th class="th-sm">pmdec_error</th>
<th class="th-sm">Mag</th>
<th class="th-sm">{% if src.gaia3_primary %}<a class="btn btn-danger btn-xs" role="button" href="{{ src.get_base_url }}gaia/clean/">Clean</a>{% endif %}</th>
</tr>
</thead>
<tbody>
{% for gaiasrc in gaia_plx %}
<tr>
<td>{{ gaiasrc.name }} <a href="{{ gaiasrc.get_absolute_url_vizier }}">VizieR</a></td>
<td>{{ gaiasrc.ra|floatformat:4}} </td>
<td>{{ gaiasrc.dec|floatformat:4}} </td>
<td>{{ gaiasrc.separation|floatformat:2 }}</td>
<td>{{ gaiasrc.parallax|floatformat:3 }}</td>
<td>{{ gaiasrc.parallax_error|floatformat:3 }}</td>
<td>{{ gaiasrc.pmra|floatformat:3 }}</td>
<td>{{ gaiasrc.pmra_error|floatformat:3 }}</td>
<td>{{ gaiasrc.pmdec|floatformat:3 }}</td>
<td>{{ gaiasrc.pmdec_error|floatformat:3 }}</td>
<td>{{ gaiasrc.phot_g_mean_mag|stringformat:".1f" }}</td>
<td>
{% if src.gaia3_primary.pk == gaiasrc.pk %}
<strong>Attached</strong>
{% else %}
<a class="btn btn-success btn-xs" role="button" href="{{ src.get_base_url }}gaia/{{ gaiasrc.pk }}/">Primary</a>
{% endif %}
</td>
</tr>
{% endfor %}
</tbody>
</tbody>
</table>
</div><!-- hide -->
{% endif %}
{% if gaia_pm %}
<h4 class="card-title">Gaia "star / proper motion" counterparts ({{ gaia_pm.count }})
<button onclick="ToggleGaiaPM()">Show/Hide</button></h4>
<div id="ToggleGaiaPM" style="display:block">
<h4>Gaia DR3 "star" <em style="color:red;">proper motion</em> ({{ gaia_pm.count }}) {% if not gaia_pm %}| sort by <button onclick='sortTableOffset(3,"GaiaPMTable")'>Offset</button>{% endif %}</h4>
<p>
<pre>abs(pmra) > 4*pmra_error OR abs(pmdec) > 4*pmdec_error</pre>
</p>
<table id="GaiaPMTable" class="table tableSection">
<thead>
<tr>
<th class="th-sm">Name</th>
<th class="th-sm">RA</th>
<th class="th-sm">Dec</th>
<th class="th-sm">Offset ('')</th>
<th class="th-sm">Parallax</th>
<th class="th-sm">Parallax error</th>
<th class="th-sm">pmra</th>
<th class="th-sm">pmra_error</th>
<th class="th-sm">pmdec</th>
<th class="th-sm">pmdec_error</th>
<th class="th-sm">Mag</th>
<th class="th-sm">{% if src.gaia3_primary %}<a class="btn btn-danger btn-xs" role="button" href="{{ src.get_base_url }}gaia/clean/">Clean</a>{% endif %}</th>
</tr>
</thead>
<tbody>
{% for gaiasrc in gaia_pm %}
<tr>
<td><a href="{{ gaiasrc.get_absolute_url_vizier }}">{{ gaiasrc.name }}</a></td>
<td>{{ gaiasrc.ra|floatformat:4}} </td>
<td>{{ gaiasrc.dec|floatformat:4}} </td>
<td>{{ gaiasrc.separation|floatformat:2 }}</td>
<td>{{ gaiasrc.parallax|floatformat:3 }}</td>
<td>{{ gaiasrc.parallax_error|floatformat:3 }}</td>
<td>{{ gaiasrc.pmra|floatformat:3 }}</td>
<td>{{ gaiasrc.pmra_error|floatformat:3 }}</td>
<td>{{ gaiasrc.pmdec|floatformat:3 }}</td>
<td>{{ gaiasrc.pmdec_error|floatformat:3 }}</td>
<td>{{ gaiasrc.phot_g_mean_mag|stringformat:".1f" }}</td>
<td>
{% if src.gaia3_primary.pk == gaiasrc.pk %}
<strong>Attached</strong>
{% else %}
<a class="btn btn-success btn-xs" role="button" href="{{ src.get_base_url }}gaia/{{ gaiasrc.pk }}/">Primary</a>
{% endif %}
</td>
</tr>
{% endfor %}
</tbody>
</tbody>
</table>
</div><!-- hide -->
{% endif %}
{% if gaia_ex %}
<h4 class="card-title">Gaia "other" counterparts ({{ gaia_ex.count }})
<button onclick="ToggleGaiaEx()">Show/Hide</button></h4>
<div id="ToggleGaiaEx" style="display:block">
<h4>Gaia DR3 "other" <em style="color:red;">exclude paralax and proper motion</em> {% if not gaia_ex.count %} | sort by <button onclick='sortTableOffset(3,"GaiaEXTable")'>Offset</button>{% endif %}</h4>
<p>
<pre><em>exclude</em> { abs(pmra) > 4*pmra_error OR abs(pmdec) > 4*pmdec_error OR abs(pmra) > 4*pmra_error OR abs(pmdec) > 4*pmdec_error OR abs(parallax) > 4*parallax_error }</pre>
</p>
<table id="GaiaEXTable" class="table tableSection">
<thead>
<tr>
<th class="th-sm">Name</th>
<th class="th-sm">RA</th>
<th class="th-sm">Dec</th>
<th class="th-sm">Offset ('')</th>
<th class="th-sm">Parallax</th>
<th class="th-sm">Parallax error</th>
<th class="th-sm">pmra</th>
<th class="th-sm">pmra_error</th>
<th class="th-sm">pmdec</th>
<th class="th-sm">pmdec_error</th>
<th class="th-sm">Mag</th>
<th class="th-sm">{% if src.gaia3_primary %}<a class="btn btn-danger btn-xs" role="button" href="{{ src.get_base_url }}gaia/clean/">Clean</a>{% endif %}</th>
</tr>
</thead>
<tbody>
{% for gaiasrc in gaia_ex %}
<tr>
<td><a href="{{ gaiasrc.get_absolute_url_vizier }}">{{ gaiasrc.name }}</a></td>
<td>{{ gaiasrc.ra|floatformat:4}} </td>
<td>{{ gaiasrc.dec|floatformat:4}} </td>
<td>{{ gaiasrc.separation|floatformat:2 }}</td>
<td>{% if gaiasrc.parallax < 100 %}{{ gaiasrc.parallax|floatformat:3 }}{% else %}N/A{% endif %}</td>
<td>{% if gaiasrc.parallax_error < 100 %}{{ gaiasrc.parallax_error|floatformat:3 }}{% else %}N/A{% endif %}</td>
<td>{% if gaiasrc.pmra < 100 %}{{ gaiasrc.pmra|floatformat:3 }}{% else %}N/A{% endif %}</td>
<td>{% if gaiasrc.pmra_error < 100 %}{{ gaiasrc.pmra_error|floatformat:3 }}{% else %}N/A{% endif %}</td>
<td>{% if gaiasrc.pmdec < 100 %}{{ gaiasrc.pmdec|floatformat:3 }}{% else %}N/A{% endif %}</td>
<td>{% if gaiasrc.pmdec_error < 100 %}{{ gaiasrc.pmdec_error|floatformat:3 }}{% else %}N/A{% endif %}</td>
<td>{% if gaiasrc.phot_g_mean_mag < 100 %}{{ gaiasrc.phot_g_mean_mag|stringformat:".1f" }}{% else %}N/A{% endif %}</td>
<td>
{% if src.gaia3_primary.pk == gaiasrc.pk %}
<strong>Attached</strong>
{% else %}
<a class="btn btn-success btn-xs" role="button" href="{{ src.get_base_url }}gaia/{{ gaiasrc.pk }}/">Primary</a>
{% endif %}
</td>
</tr>
{% endfor %}
</tbody>
</tbody>
</table>
</div>
{% endif %}
{% if src.glimpse_primary %}<hr>GLIMPSE primary: <b>{{ src.glimpse_primary }}</b>{% endif %}
{% if glimpse %}
<h4 class="card-title">GLIMPSE counterparts ({{ glimpse.count }})
<button onclick="ToggleGLIMPSE()">Show/Hide</button></h4>
<div id="ToggleGLIMPSE" style="display:block">
{% if not glimpse.count %}
<h4>sort by <button onclick='sortTableOffset(3,"GLIMPSETable")'>Offset</button></h4>
{% endif %}
<table id="GLIMPSETable" class="table tableSection">
<thead>
<tr>
<th class="th-sm" title="IAU name of the component">Name</th>
<th class="th-sm">RA</th>
<th class="th-sm">Dec</th>
<th class="th-sm">Error ('')</th>
<th class="th-sm">Offset ('')</th>
<th class="th-sm" title="">J</th>
<th class="th-sm" title="">H</th>
<th class="th-sm" title="">K</th>
<th class="th-sm" title="3.6um IRAC (Band 1) magnitude">Band 1</th>
<th class="th-sm" title="4.5um IRAC (Band 2) magnitude">Band 2</th>
<th class="th-sm" title="5.8um IRAC (Band 1) magnitude">Band 3</th>
<th class="th-sm" title="8.0um IRAC (Band 1) magnitude">Band 4</th>
<th class="th-sm">dup</th>
<th class="th-sm">qual</th>
<th class="th-sm">{% if src.glimpse_primary %}<a class="btn btn-danger btn-xs" role="button" href="{{ src.get_base_url }}glimpse/clean/">Clean</a>{% endif %}</th>
</tr>
</thead>
<tbody>
{% for obj in glimpse %}
<tr>
<td>{{ obj.name }}</td>
<td>{{ obj.ra|floatformat:4 }}</td>
<td>{{ obj.dec|floatformat:4 }}</td>
<td>{{ obj.error_radius|floatformat:2 }}</td>
<td>{{ obj.separation|floatformat:2 }}</td>
<td>{{ obj.jmag|safe }}</td>
<td>{{ obj.hmag|safe }}</td>
<td>{{ obj.kmag|safe }}</td>
<td>{{ obj.b1mag|safe }} &plusmn; {{ obj.e_b1mag|safe }}</td>
<td>{{ obj.b2mag|safe }} &plusmn; {{ obj.e_b2mag|safe }}</td>
<td>{{ obj.b3mag|safe }} &plusmn; {{ obj.e_b3mag|safe }}</td>
<td>{{ obj.b4mag|safe }} &plusmn; {{ obj.e_b4mag|safe }}</td>
<td>{{ obj.dupflag|safe }}</td>
<td>{{ obj.qualflag|safe }}</td>
<td>
{% if src.glimpse_primary.pk == obj.pk %}
<strong>Attached</strong>
{% else %}
<a class="btn btn-success btn-xs" role="button" href="{{ src.get_base_url }}glimpse/{{ obj.pk }}/">Primary</a>
{% endif %}
</td>
</tr>
{% endfor %}
</tbody>
</tbody>
</table>
</div><!-- hide -->
{% endif %}
{% if src.twomass_primary %}<hr>2MASS primary: <b>{{ src.twomass_primary }}</b>{% endif %}
{% if twomass %}
<h4 class="card-title">2MASS counterparts ({{ twomass.count }})
<button onclick="Toggle2MASS()">Show/Hide</button></h4>
<div id="Toggle2MASS" style="display:block">
{% if not twomass.count %}
<h4>sort by <button onclick='sortTableOffset(3,"2MASSTable")'>Offset</button></h4>
{% endif %}
<table id="2MASSTable" class="table tableSection">
<thead>
<tr>
<th class="th-sm" title="IAU name of the component">Name</th>
<th class="th-sm">RA</th>
<th class="th-sm">Dec</th>
<th class="th-sm">Error ('')</th>
<th class="th-sm">Offset ('')</th>
<th class="th-sm">Jmag</th>
<th class="th-sm">Hmag</th>
<th class="th-sm">Kmag</th>
<th class="th-sm">qkfg</th>
<th class="th-sm">rkfg</th>
<th class="th-sm">bkfg</th>
<th class="th-sm">ckfg</th>
<th class="th-sm" title="Distance between source and nearest neighbour">prox</th>
<th class="th-sm">xflg</th>
<th class="th-sm">aflg</th>
<th class="th-sm">{% if src.twomass_primary %}<a class="btn btn-danger btn-xs" role="button" href="{{ src.get_base_url }}twomass/clean/">Clean</a>{% endif %}</th>
</tr>
</thead>
<tbody>
{% for obj in twomass %}
<tr>
<td><a href="http://vizier.u-strasbg.fr/viz-bin/VizieR-5?-ref=VIZ626bdcbcebdf5&-out.add=.&-source=II/246/out&2MASS==={{ obj.name }}">{{ obj.name }}</a></td>
<td>{{ obj.ra|floatformat:4 }}</td>
<td>{{ obj.dec|floatformat:4 }}</td>
<td>{{ obj.error_radius|floatformat:2 }}</td>
<td>{{ obj.separation|floatformat:2 }}</td>
<td>{{ obj.jmag|safe }} &plusmn; {{ obj.e_jmag|safe }}</td>
<td>{{ obj.hmag|safe }} &plusmn; {{ obj.e_hmag|safe }}</td>
<td>{{ obj.kmag|safe }} &plusmn; {{ obj.e_kmag|safe }}</td>
<td>{{ obj.qkfg|safe }}</td>
<td>{{ obj.rkfg|safe }}</td>
<td>{{ obj.bkfg|safe }}</td>
<td>{{ obj.ckfg|safe }}</td>
<td>{{ obj.prox|safe }}</td>
<td>{{ obj.xflg|safe }}</td>
<td>{{ obj.aflg|safe }}</td>
<td>
{% if src.twomass_primary.pk == obj.pk %}
<strong>Attached</strong>
{% else %}
<a class="btn btn-success btn-xs" role="button" href="{{ src.get_base_url }}twomass/{{ obj.pk }}/">Primary</a>
{% endif %}
</td>
</tr>
{% endfor %}
</tbody>
</tbody>
</table>
</div><!-- hide -->
{% endif %}
{% if src.allwise_primary %}<hr>AllWise primary: <b>{{ src.allwise_primary }}</b>{% endif %}
{% if allwise %}
<h4 class="card-title">AllWise counterparts ({{ allwise.count }})
<button onclick="ToggleAllWise()">Show/Hide</button></h4>
<div id="ToggleAllWise" style="display:block">
{% if not allwise.count %}
<h4>sort by <button onclick='sortTableOffset(3,"AllWiseTable")'>Offset</button></h4>
{% endif %}
<table id="AllWiseTable" class="table tableSection">
<thead>
<tr>
<th class="th-sm" title="IAU name of the component">Name</th>
<th class="th-sm">RA</th>
<th class="th-sm">Dec</th>
<th class="th-sm">Error ('')</th>
<th class="th-sm">Offset ('')</th>
<th class="th-sm">w1mag</th>
<th class="th-sm">w2mag</th>
<th class="th-sm">w1-w2</th>
<th class="th-sm">{% if src.allwise_primary %}<a class="btn btn-danger btn-xs" role="button" href="{{ src.get_base_url }}allwise/clean/">Clean</a>{% endif %}</th>
</tr>
</thead>
<tbody>
{% for obj in allwise %}
<tr>
<td>{{ obj.name }} <a href="https://irsa.ipac.caltech.edu/SCS?table=neowiser_p1bs_psd&RA={{ obj.ra }}&DEC={{ obj.dec|stringformat:"+.6f" }}&SR=0.00028&format=csv"><small>NEOWISE csv</small></a></td>
<td>{{ obj.ra|floatformat:4 }}</td>
<td>{{ obj.dec|floatformat:4 }}</td>
<td>{{ obj.error_radius|floatformat:2 }}</td>
<td>{{ obj.separation|floatformat:2 }}</td>
<td>
{% if obj.W1mag %}
{{ obj.W1mag|floatformat:2 }} &plusmn; {{ obj.e_W1mag|floatformat:2 }}
{% endif %}
</td>
<td>
{% if obj.W2mag %}
{{ obj.W2mag|floatformat:2 }} &plusmn; {{ obj.e_W2mag|floatformat:2 }}
{% endif %}
</td>
<td>
{{ obj.w1w2|floatformat:2 }} &plusmn; {{ obj.w1w2_error|floatformat:2 }}
</td>
<td>
{% if src.allwise_primary.pk == obj.pk %}
<strong>Attached</strong>
{% else %}
<a class="btn btn-success btn-xs" role="button" href="{{ src.get_base_url }}allwise/{{ obj.pk }}/">Primary</a>
{% endif %}
</td>
</tr>
{% endfor %}
</tbody>
</tbody>
</table>
</div><!-- hide -->
{% endif %}
{% if src.vlass_primary %}<hr>VLASS primary: <b>{{ src.vlass_primary }}</b>{% endif %}
{% if vlass %}
<h4 class="card-title">VLASS counterparts ({{ vlass.count }})
<button onclick="ToggleVLASS()">Show/Hide</button></h4>
<div id="ToggleVLASS" style="display:block">
{% if not vlass.count %}
<h4>sort by <button onclick='sortTableOffset(3,"VLASSTable")'>Offset</button></h4>
{% endif %}
<table id="VLASSTable" class="table tableSection">
<thead>
<tr>
<th class="th-sm" title="IAU name of the component, VLASS1QLCIR JHHMMSS.ss+DDMMSS.s">Name</th>
<th class="th-sm">RA</th>
<th class="th-sm">Dec</th>
<th class="th-sm">Offset ('')</th>
<th class="th-sm" title="The integrated flux density of the component in the S-band (2-4GHz)">Ftot</th>
<th class="th-sm" title="Peak brightness of the component in the S-band (2-4GHz)">Fpeak</th>
<th class="th-sm" title="Flag to identify duplicate detections">Dupl. [<a href="https://vizier.cds.unistra.fr/viz-bin/VizieR-n?-source=METAnot&catid=22550030&notid=9&-out=text">help</a>]</th>
<th class="th-sm" title="Flag to denote the Quality of the detection">Qual. [<a href="https://vizier.cds.unistra.fr/viz-bin/VizieR-n?-source=METAnot&catid=22550030&notid=10&-out=text">help</a>]</th>
<th class="th-sm">{% if src.vlass_primary %}<a class="btn btn-danger btn-xs" role="button" href="{{ src.get_base_url }}vlass/clean/">Clean</a>{% endif %}</th>
</tr>
</thead>
<tbody>
{% for obj in vlass %}
<tr>
<td>{{ obj.name }}</td>
<td>{{ obj.ra|floatformat:4 }}&deg; (&plusmn; {{ obj.e_ra|safe }}'')</td>
<td>{{ obj.dec|floatformat:4 }}&deg; (&plusmn; {{ obj.e_dec|safe }}'')</td>
<td>{{ obj.separation|floatformat:2 }}</td>
<td>{{ obj.ftot|safe }} &plusmn; {{ obj.e_ftot|safe }}</td>
<td>{{ obj.fpeak|safe }} &plusmn; {{ obj.e_fpeak|safe }}</td>
<td>{{ obj.dupflag|safe }}</td>
<td>{{ obj.qualflag|safe }}</td>
<td>
{% if src.vlass_primary.pk == obj.pk %}
<strong>Attached</strong>
{% else %}
<a class="btn btn-success btn-xs" role="button" href="{{ src.get_base_url }}vlass/{{ obj.pk }}/">Primary</a>
{% endif %}
</td>
</tr>
{% endfor %}
</tbody>
</tbody>
</table>
</div><!-- hide -->
{% endif %}
{% endblock %}
</div>
</body>
</html>