Templates added
This commit is contained in:
692
Templates/heasarc/base.html
Normal file
692
Templates/heasarc/base.html
Normal file
@@ -0,0 +1,692 @@
|
||||
{% 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 }} ± {{ 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 }} ± {{ obj.e_b1mag|safe }}</td>
|
||||
<td>{{ obj.b2mag|safe }} ± {{ obj.e_b2mag|safe }}</td>
|
||||
<td>{{ obj.b3mag|safe }} ± {{ obj.e_b3mag|safe }}</td>
|
||||
<td>{{ obj.b4mag|safe }} ± {{ 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 }} ± {{ obj.e_jmag|safe }}</td>
|
||||
<td>{{ obj.hmag|safe }} ± {{ obj.e_hmag|safe }}</td>
|
||||
<td>{{ obj.kmag|safe }} ± {{ 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 }} ± {{ obj.e_W1mag|floatformat:2 }}
|
||||
{% endif %}
|
||||
</td>
|
||||
<td>
|
||||
{% if obj.W2mag %}
|
||||
{{ obj.W2mag|floatformat:2 }} ± {{ obj.e_W2mag|floatformat:2 }}
|
||||
{% endif %}
|
||||
</td>
|
||||
<td>
|
||||
{{ obj.w1w2|floatformat:2 }} ± {{ 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¬id=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¬id=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 }}° (± {{ obj.e_ra|safe }}'')</td>
|
||||
<td>{{ obj.dec|floatformat:4 }}° (± {{ obj.e_dec|safe }}'')</td>
|
||||
<td>{{ obj.separation|floatformat:2 }}</td>
|
||||
<td>{{ obj.ftot|safe }} ± {{ obj.e_ftot|safe }}</td>
|
||||
<td>{{ obj.fpeak|safe }} ± {{ 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>
|
54
Templates/heasarc/index.html
Normal file
54
Templates/heasarc/index.html
Normal file
@@ -0,0 +1,54 @@
|
||||
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block header %}
|
||||
|
||||
<a href="https://heasarc.gsfc.nasa.gov/cgi-bin/W3Browse/w3catindex.pl">HEASARC Catalog Resources Index <span class="glyphicon glyphicon-new-window"></span></a> |
|
||||
<a href="/heasarc/types">HEASARC Object Classification</a>
|
||||
|
||||
<h3>Loaded HEASARC table descriptions:</h3>
|
||||
<ul>
|
||||
{% for table in tables %}
|
||||
<li><a href="{{ table.get_absolute_url }}">{{ table.name }}</a> <b>{{ table.description }}</b></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
||||
{% endblock %}
|
||||
{% block precontent %}{% endblock %}
|
||||
{% block content %}
|
||||
|
||||
<h3>Loaded HEASARC catalogs</h3>
|
||||
|
||||
<p>
|
||||
<ul>
|
||||
{% if xmmssc_count %}<li><em>XMMSSC</em> ({{ xmmssc_count }}) </li>{% endif %}
|
||||
|
||||
{% if xmmdr9_count %}<li><em>4XMM DR9</em> ({{ xmmdr9_count }}) <strong>slimline</strong> version, see <a href="http://xmmssc.irap.omp.eu/Catalogue/4XMM-DR9/4XMM_DR9.html">here <span class="glyphicon glyphicon-new-window"></span></a></li>{% endif %}
|
||||
|
||||
{% if csc_count %}<li><em>CSC</em> ({{ csc_count }}) <a href="https://vizier.u-strasbg.fr/viz-bin/VizieR?-source=IX/57">Vizier <span class="glyphicon glyphicon-new-window"></span></a> </li>{% endif %}
|
||||
|
||||
{% if twosxps_count %}<li><em>2SXPS</em> ({{ twosxps_count }})</li>{% endif %}
|
||||
|
||||
{% if rass2rxs_count %}<li><em>RASS2RXS</em> ({{ rass2rxs_count }})</li>{% endif %}
|
||||
|
||||
{% if allwiseagn_count %}<li><em>ALLWISEAGN</em> ({{ allwiseagn_count }})</li>{% endif %}
|
||||
|
||||
{% if chanmaster_count %}<li><em>CHANMASTER</em> ({{ chanmaster_count }})</li>{% endif %}
|
||||
|
||||
{% if xray_count %}<li><em>XrayMaster</em> ({{ xray_count }})</li>{% endif %}
|
||||
|
||||
</p>
|
||||
|
||||
{% if table %}
|
||||
<h3><b>{{ table.name }}</b> <a href="{{ table.document_url }}">{{ table.description }} <span class="glyphicon glyphicon-new-window"></span></a></h3>
|
||||
{% endif %}
|
||||
|
||||
{% if columns %}
|
||||
<ul>
|
||||
{% for col in columns %}
|
||||
<li><b>{{ col.name }}</b>: {{ col.description }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
|
||||
{% endblock %}
|
57
Templates/heasarc/show_heasarc_2sxps.html
Normal file
57
Templates/heasarc/show_heasarc_2sxps.html
Normal file
@@ -0,0 +1,57 @@
|
||||
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block header %}{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
{% if heasarc %}
|
||||
<h4>Specific {{ heasarc.description }} fields:</h4>
|
||||
Exposure = {{ heasarc.Exposure }}<br>
|
||||
LastObsDate = {{ heasarc.LastObsDate }}<br>
|
||||
FirstObsDate = {{ heasarc.FirstObsDate }}<br>
|
||||
FirstDetDate = {{ heasarc.FirstDetDate }}<br>
|
||||
LastDetDate = {{ heasarc.LastDetDate }}<br>
|
||||
BestDetectionID = {{ heasarc.BestDetectionID }}<br>
|
||||
DetFlag = {{ heasarc.DetFlag }}<br>
|
||||
Rate_band0 = {{ heasarc.Rate_band0 }}<br>
|
||||
Rate_band0_pos = {{ heasarc.Rate_band0_pos }}<br>
|
||||
Rate_band0_neg = {{ heasarc.Rate_band0_neg }}<br>
|
||||
Rate_band1 = {{ heasarc.Rate_band1 }}<br>
|
||||
Rate_band1_pos = {{ heasarc.Rate_band1_pos }}<br>
|
||||
Rate_band1_neg = {{ heasarc.Rate_band1_neg }}<br>
|
||||
Rate_band2 = {{ heasarc.Rate_band2 }}<br>
|
||||
Rate_band2_pos = {{ heasarc.Rate_band2_pos }}<br>
|
||||
Rate_band2_neg = {{ heasarc.Rate_band2_neg }}<br>
|
||||
Rate_band3 = {{ heasarc.Rate_band3 }}<br>
|
||||
Rate_band3_pos = {{ heasarc.Rate_band3_pos }}<br>
|
||||
Rate_band3_neg = {{ heasarc.Rate_band3_neg }}<br>
|
||||
PeakRate_band0_pos = {{ heasarc.PeakRate_band0_pos }}<br>
|
||||
PeakRate_band0_neg = {{ heasarc.PeakRate_band0_neg }}<br>
|
||||
PeakRate_band1 = {{ heasarc.PeakRate_band1 }}<br>
|
||||
PeakRate_band1_pos = {{ heasarc.PeakRate_band1_pos }}<br>
|
||||
PeakRate_band1_neg = {{ heasarc.PeakRate_band1_neg }}<br>
|
||||
PeakRate_band2 = {{ heasarc.PeakRate_band2 }}<br>
|
||||
PeakRate_band2_pos = {{ heasarc.PeakRate_band2_pos }}<br>
|
||||
PeakRate_band2_neg = {{ heasarc.PeakRate_band2_neg }}<br>
|
||||
PeakRate_band3 = {{ heasarc.PeakRate_band3 }}<br>
|
||||
PeakRate_band3_pos = {{ heasarc.PeakRate_band3_pos }}<br>
|
||||
PeakRate_band3_neg = {{ heasarc.PeakRate_band3_neg }}<br>
|
||||
PowFlux = {{ heasarc.PowFlux }}<br>
|
||||
PowFlux_pos = {{ heasarc.PowFlux_pos }}<br>
|
||||
PowFlux_neg = {{ heasarc.PowFlux_neg }}<br>
|
||||
APECFlux = {{ heasarc.APECFlux }}<br>
|
||||
APECFlux_pos = {{ heasarc.APECFlux_pos }}<br>
|
||||
APECFlux_neg = {{ heasarc.APECFlux_neg }}<br>
|
||||
PowPeakFlux = {{ heasarc.PowPeakFlux }}<br>
|
||||
PowPeakFlux_pos = {{ heasarc.PowPeakFlux_pos }}<br>
|
||||
PowPeakFlux_neg = {{ heasarc.PowPeakFlux_neg }}<br>
|
||||
FittedPowNH = {{ heasarc.FittedPowNH }}<br>
|
||||
FittedPowRedChi = {{ heasarc.FittedPowRedChi }}<br>
|
||||
FittedAPECNH = {{ heasarc.FittedAPECNH }}<br>
|
||||
FittedAPECRedChi = {{ heasarc.FittedAPECRedChi }}<br>
|
||||
|
||||
{% endif %}
|
||||
|
||||
|
||||
{% endblock %}
|
16
Templates/heasarc/show_heasarc_3maxi.html
Normal file
16
Templates/heasarc/show_heasarc_3maxi.html
Normal file
@@ -0,0 +1,16 @@
|
||||
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block header %}{% endblock %}
|
||||
|
||||
|
||||
{% block content %}
|
||||
{% if heasarc %}
|
||||
<h4>Specific {{ heasarc.description }} fields:</h4>
|
||||
<h5>4-10 keV energy band</h5>
|
||||
sign = {{ heasarc.sign }} <br />
|
||||
flux = {{ heasarc.flux }}<br />
|
||||
|
||||
{% endif %}
|
||||
|
||||
{% endblock %}
|
57
Templates/heasarc/show_heasarc_4xmm.html
Normal file
57
Templates/heasarc/show_heasarc_4xmm.html
Normal file
@@ -0,0 +1,57 @@
|
||||
|
||||
{% extends "heasarc/base.html" %}
|
||||
|
||||
|
||||
|
||||
{% block content %}
|
||||
{% if src %}
|
||||
<h4>Specific {{ src.description }} fields:</h4>
|
||||
|
||||
|
||||
SRCID = {{ src.SRCID }}<br>
|
||||
POSERR = {{ src.radec_err }} """ Positional arcsec """<br>
|
||||
DET_ML = {{ src.DET_ML }}<br>
|
||||
EP_1_FLUX = {{ src.EP_1_FLUX }} """ [erg/cm**2/s] """<br>
|
||||
EP_1_FLUX_ERR = {{ src.EP_1_FLUX_ERR }} """ [erg/cm**2/s] """<br>
|
||||
EP_2_FLUX = {{ src.EP_2_FLUX }} """ [erg/cm**2/s] """<br>
|
||||
EP_2_FLUX_ERR = {{ src.EP_2_FLUX_ERR }} """ [erg/cm**2/s] """<br>
|
||||
EP_3_FLUX = {{ src.EP_3_FLUX }} """ [erg/cm**2/s] """<br>
|
||||
EP_3_FLUX_ERR = {{ src.EP_3_FLUX_ERR }} """ [erg/cm**2/s] """<br>
|
||||
EP_4_FLUX = {{ src.EP_4_FLUX }} """ [erg/cm**2/s] """<br>
|
||||
EP_4_FLUX_ERR = {{ src.EP_4_FLUX_ERR }} """ [erg/cm**2/s] """<br>
|
||||
EP_5_FLUX = {{ src.EP_5_FLUX }} """ [erg/cm**2/s] """<br>
|
||||
EP_5_FLUX_ERR = {{ src.EP_5_FLUX_ERR }} """ [erg/cm**2/s] """<br>
|
||||
EP_8_FLUX = {{ src.EP_8_FLUX }} """ [erg/cm**2/s] """<br>
|
||||
EP_8_FLUX_ERR = {{ src.EP_8_FLUX_ERR }} """ [erg/cm**2/s] """<br>
|
||||
EP_9_FLUX = {{ src.EP_9_FLUX }} """ [erg/cm**2/s] """<br>
|
||||
EP_9_FLUX_ERR = {{ src.EP_9_FLUX_ERR }} """ [erg/cm**2/s] """<br>
|
||||
HR1 = {{ src.HR1 }}<br>
|
||||
HR1_ERR = {{ src.HR1_ERR }}<br>
|
||||
HR2 = {{ src.HR2 }}<br>
|
||||
HR2_ERR = {{ src.HR2_ERR }}<br>
|
||||
HR3 = {{ src.HR3 }}<br>
|
||||
HR3_ERR = {{ src.HR3_ERR }}<br>
|
||||
HR4 = {{ src.HR4 }}<br>
|
||||
HR4_ERR = {{ src.HR4_ERR }}<br>
|
||||
EXTENT = {{ src.EXTENT }} """ arcsec """<br>
|
||||
EXT_ERR = {{ src.EXT_ERR }} """ arcsec """<br>
|
||||
EXT_ML = {{ src.EXT_ML }}<br>
|
||||
CHI2PROB = {{ src.CHI2PROB }}<br>
|
||||
FVAR = {{ src.FVAR }}<br>
|
||||
FVARERR = {{ src.FVARERR }}<br>
|
||||
VAR_FLAG = {{ src.VAR_FLAG }}<br>
|
||||
SUM_FLAG = {{ src.SUM_FLAG }}<br>
|
||||
EP_8_FMIN = {{ src.EP_8_FMIN }} """ [erg/cm**2/s] """<br>
|
||||
EP_8_FMIN_ERR = {{ src.EP_8_FMIN_ERR }} """ [erg/cm**2/s] """<br>
|
||||
EP_8_FMAX = {{ src.EP_8_FMAX }} """ [erg/cm**2/s] """<br>
|
||||
EP_8_FMAX_ERR = {{ src.EP_8_FMAX_ERR }} """ [erg/cm**2/s] """<br>
|
||||
MJD_FIRST = {{ src.MJD_FIRST }}<br>
|
||||
MJD_LAST = {{ src.MJD_LAST }}<br>
|
||||
N_DETECTIONS = {{ src.N_DETECTIONS }}<br>
|
||||
CONFUSED = {{ src.CONFUSED }}<br>
|
||||
WEBPAGE_URL = {{ src.WEBPAGE_URL }}<br>
|
||||
|
||||
|
||||
{% endif %}
|
||||
|
||||
{% endblock %}
|
83
Templates/heasarc/show_heasarc_4xmmdr12.html
Normal file
83
Templates/heasarc/show_heasarc_4xmmdr12.html
Normal file
@@ -0,0 +1,83 @@
|
||||
|
||||
{% extends "heasarc/base.html" %}
|
||||
|
||||
{% block header %}{% endblock %}
|
||||
|
||||
|
||||
{% block content %}
|
||||
{% if heasarc %}
|
||||
<h4>Specific {{ heasarc.description }} fields:</h4>
|
||||
|
||||
<h3><a href="{{ heasarc.WEBPAGE_URL }}">XMM-Newton Survey Science Centre</a></h3>
|
||||
|
||||
<pre>
|
||||
radec_error = {{ heasarc.radec_error }}
|
||||
|
||||
DET_ML = {{ heasarc.DET_ML }}
|
||||
EP_1_FLUX = {{ heasarc.EP_1_FLUX|stringformat:".1e" }}
|
||||
""" [erg/cm**2/s] """
|
||||
EP_1_FLUX_ERR = {{ heasarc.EP_1_FLUX_ERR|stringformat:".1e" }}
|
||||
""" [erg/cm**2/s] """
|
||||
EP_2_FLUX = {{ heasarc.EP_2_FLUX|stringformat:".1e" }}
|
||||
""" [erg/cm**2/s] """
|
||||
EP_2_FLUX_ERR = {{ heasarc.EP_2_FLUX_ER|stringformat:".1e" }}
|
||||
""" [erg/cm**2/s] """
|
||||
EP_3_FLUX = {{ heasarc.EP_3_FLUX|stringformat:".1e" }}
|
||||
""" [erg/cm**2/s] """
|
||||
EP_3_FLUX_ERR = {{ heasarc.EP_3_FLUX_ERR|stringformat:".1e" }}
|
||||
""" [erg/cm**2/s] """
|
||||
EP_4_FLUX = {{ heasarc.EP_4_FLUX|stringformat:".1e" }}
|
||||
""" [erg/cm**2/s] """
|
||||
EP_4_FLUX_ERR = {{ heasarc.EP_4_FLUX_ERR|stringformat:".1e" }}
|
||||
""" [erg/cm**2/s] """
|
||||
EP_5_FLUX = {{ heasarc.EP_5_FLUX|stringformat:".1e" }}
|
||||
""" [erg/cm**2/s] """
|
||||
EP_5_FLUX_ERR = {{ heasarc.EP_5_FLUX_ERR|stringformat:".1e" }}
|
||||
""" [erg/cm**2/s] """
|
||||
EP_8_FLUX = {{ heasarc.EP_8_FLUX|stringformat:".1e" }}
|
||||
""" [erg/cm**2/s] """
|
||||
EP_8_FLUX_ERR = {{ heasarc.EP_8_FLUX_ERR|stringformat:".1e"}}
|
||||
""" [erg/cm**2/s] """
|
||||
EP_9_FLUX = {{ heasarc.EP_9_FLUX|stringformat:".1e" }}
|
||||
""" [erg/cm**2/s] """
|
||||
EP_9_FLUX_ERR = {{ heasarc.EP_9_FLUX_ERR|stringformat:".1e" }}
|
||||
""" [erg/cm**2/s] """
|
||||
HR1 = {{ heasarc.HR1 }}
|
||||
HR1_ERR = {{ heasarc.HR1_ERR }}
|
||||
HR2 = {{ heasarc.HR2 }}
|
||||
HR2_ERR = {{ heasarc.HR2_ERR }}
|
||||
HR3 = {{ heasarc.HR3 }}
|
||||
HR3_ERR = {{ heasarc.HR3_ERR }}
|
||||
HR4 = {{ heasarc.HR4 }}
|
||||
HR4_ERR = {{ heasarc.HR4_ERR }}
|
||||
EXTENT = {{ heasarc.EXTENT }}
|
||||
""" arcsec """
|
||||
EXT_ERR = {{ heasarc.EXT_ERR }}
|
||||
""" arcsec """
|
||||
EXT_ML = {{ heasarc.EXT_ML }}
|
||||
CHI2PROB = {{ heasarc.CHI2PROB }}
|
||||
FVAR = {{ heasarc.FVAR }}
|
||||
FVARERR = {{ heasarc.FVARERR }}
|
||||
VAR_FLAG = {{ heasarc.VAR_FLAG }}
|
||||
SUM_FLAG = {{ heasarc.SUM_FLAG }}
|
||||
EP_8_FMIN = {{ heasarc.EP_8_FMIN|stringformat:".1e"}}
|
||||
""" [erg/cm**2/s] """
|
||||
EP_8_FMIN_ERR = {{ heasarc.EP_8_FMIN_ERR|stringformat:".1e" }}
|
||||
""" [erg/cm**2/s] """
|
||||
EP_8_FMAX = {{ heasarc.EP_8_FMAX|stringformat:".1e" }}
|
||||
""" [erg/cm**2/s] """
|
||||
EP_8_FMAX_ERR = {{ heasarc.EP_8_FMAX_ERR|stringformat:".1e" }}
|
||||
""" [erg/cm**2/s] """
|
||||
MJD_FIRST = {{ heasarc.MJD_FIRST }}
|
||||
MJD_LAST = {{ heasarc.MJD_LAST }}
|
||||
N_DETECTIONS = {{ heasarc.N_DETECTIONS }}
|
||||
CONFUSED = {{ heasarc.CONFUSED }}
|
||||
WEBPAGE_URL = {{ heasarc.WEBPAGE_URL }}
|
||||
</pre>
|
||||
|
||||
{% endif %}
|
||||
|
||||
{% endblock %}
|
||||
|
||||
{% block counterparts %}
|
||||
{% endblock %}
|
22
Templates/heasarc/show_heasarc_allwiseagn.html
Normal file
22
Templates/heasarc/show_heasarc_allwiseagn.html
Normal file
@@ -0,0 +1,22 @@
|
||||
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block header %}{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
{% if heasarc %}
|
||||
<h4>Specific {{ heasarc.description }} fields:</h4>
|
||||
w1w2_color = {{ heasarc.w1w2_color }} AllWISE W1-W2 Color<br>
|
||||
w2w3_color = {{ heasarc.w2w3_color }} AllWISE W2-W3 Color<br>
|
||||
w1_mag = {{ heasarc.w1_mag }} AllWISE W1 Magnitude<br>
|
||||
gmag = {{ heasarc.gmag }} Compiled g-Band Magnitude (SDSS Bandpass)<br>
|
||||
redshift = {{ heasarc.redshift }} Compiled Redshift<br>
|
||||
redshift_flag = {{ heasarc.redshift_flag }} Flag [sp] Indicates Type of Redshift: s=Spectroscopic; p=Photometric<br>
|
||||
lqac2_name = {{ heasarc.lqac2_name }} LQAC2 Source Identifier<br>
|
||||
dr12q_name = {{ heasarc.dr12q_name }} DR12Q Source Identifier<br>
|
||||
milliquas_name= {{ heasarc.milliquas_name }} MILLIQUAS Source Identifier<br>
|
||||
|
||||
{% endif %}
|
||||
|
||||
|
||||
{% endblock %}
|
3
Templates/heasarc/show_heasarc_base.html
Normal file
3
Templates/heasarc/show_heasarc_base.html
Normal file
@@ -0,0 +1,3 @@
|
||||
|
||||
{% extends "heasarc/base.html" %}
|
||||
|
30
Templates/heasarc/show_heasarc_chanmaster.html
Normal file
30
Templates/heasarc/show_heasarc_chanmaster.html
Normal file
@@ -0,0 +1,30 @@
|
||||
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block header %}{% endblock %}
|
||||
|
||||
|
||||
{% block content %}
|
||||
{% if heasarc %}
|
||||
<h4>Specific {{ heasarc.description }} fields:</h4>
|
||||
|
||||
time = {{ heasarc.time }}<br />
|
||||
obsid = {{ heasarc.obsid }} Observation Identifier<br />
|
||||
status = {{ heasarc.status }} Status of Observation<br />
|
||||
detector = {{ heasarc.detector }} # Detector<br />
|
||||
grating = {{ heasarc.grating }} # Grating Setting<br />
|
||||
exposure = {{ heasarc.exposure }} # Actual Exposure Time If Observed, Otherwise the Approved Exposure (s)<br />
|
||||
obstype = {{ heasarc.obstype }} # Type of Observation (GO,GTO,CAL,TOO,DDT)<br />
|
||||
pi = {{ heasarc.pi }} # PI of Observation<br />
|
||||
cycle = {{ heasarc.cycle }} # AO Number (0=calibration phase)<br />
|
||||
proposal = {{ heasarc.proposal }} # Proposal Number<br />
|
||||
public_date = {{ heasarc.public_date }} # Public Date<br />
|
||||
sequence_number = {{ heasarc.sequence_number }} # Sequence Number<br />
|
||||
data_mode = {{ heasarc.data_mode }} # Operational Mode of the Detector<br />
|
||||
category = {{ heasarc.category }} # Subject Category<br />
|
||||
class_id = {{ heasarc.class_id }} # Browse Object Classification<br />
|
||||
|
||||
|
||||
{% endif %}
|
||||
|
||||
{% endblock %}
|
30
Templates/heasarc/show_heasarc_csc.html
Normal file
30
Templates/heasarc/show_heasarc_csc.html
Normal file
@@ -0,0 +1,30 @@
|
||||
|
||||
{% extends "heasarc/base.html" %}
|
||||
|
||||
{% block header %}{% endblock %}
|
||||
|
||||
|
||||
{% block content %}
|
||||
|
||||
{% if heasarc %}
|
||||
<h4>Specific {{ heasarc.description }} fields:</h4>
|
||||
|
||||
b_flux_ap = {{ heasarc.b_flux_ap|safe }}<br />
|
||||
b_flux_ap_hi = {{ heasarc.b_flux_ap_hi|safe }}<br />
|
||||
b_flux_ap_lo = {{ heasarc.b_flux_ap_lo|safe }}<br />
|
||||
m_flux_ap = {{ heasarc.m_flux_ap|safe }}<br />
|
||||
m_flux_ap_hi = {{ heasarc.m_flux_ap_hi|safe }}<br />
|
||||
m_flux_ap_lo = {{ heasarc.m_flux_ap_lo|safe }}<br />
|
||||
|
||||
conf_flag = {{ heasarc.conf_flag }}<br />
|
||||
extent_flag = {{ heasarc.extent_flag }}<br />
|
||||
error_ellipse_r0 = {{ heasarc.error_ellipse_r0 }}<br />
|
||||
error_ellipse_r1 = {{ heasarc.error_ellipse_r1 }}<br />
|
||||
error_ellipse_angle = {{ heasarc.error_ellipse_angle }}<br />
|
||||
|
||||
|
||||
|
||||
|
||||
{% endif %}
|
||||
|
||||
{% endblock %}
|
23
Templates/heasarc/show_heasarc_maxi_gsc.html
Normal file
23
Templates/heasarc/show_heasarc_maxi_gsc.html
Normal file
@@ -0,0 +1,23 @@
|
||||
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block header %}{% endblock %}
|
||||
|
||||
|
||||
{% block content %}
|
||||
{% if heasarc %}
|
||||
<h4>Specific {{ heasarc.description }} fields:</h4>
|
||||
|
||||
hardness_ratio = {{ heasarc.hardness_ratio }}<br />
|
||||
hardness_ratio_error = {{ heasarc.hardness_ratio_error }}<br />
|
||||
hb_flux = {{ heasarc.hb_flux }}<br />
|
||||
hb_flux_error = {{ heasarc.hb_flux_error }}<br />
|
||||
hb_significance = {{ heasarc.hb_significance }}<br />
|
||||
ctrpart_name = {{ heasarc.ctrpart_name }}<br />
|
||||
class_id = {{ heasarc.class_id }}<br />
|
||||
object_class = {{ heasarc.object_class }}<br />
|
||||
redshift = {{ heasarc.redshift }}<br />
|
||||
|
||||
{% endif %}
|
||||
|
||||
{% endblock %}
|
39
Templates/heasarc/show_heasarc_rass2rxs.html
Normal file
39
Templates/heasarc/show_heasarc_rass2rxs.html
Normal file
@@ -0,0 +1,39 @@
|
||||
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block header %}{% endblock %}
|
||||
|
||||
|
||||
{% block content %}
|
||||
{% if heasarc %}
|
||||
<h4>Specific {{ heasarc.description }} fields:</h4>
|
||||
|
||||
count_rate = {{ heasarc.count_rate }} # Source Count Rate<br />
|
||||
count_rate_error = {{ heasarc.count_rate_error }} # Error in Source Count Rate<br />
|
||||
exposure = {{ heasarc.exposure }} # Source Exposure Time<br />
|
||||
source_extent = {{ heasarc.source_extent }} # Source Extent<br />
|
||||
source_extent_prob = {{ heasarc.source_extent_prob }} # Probability of the Source Extent<br />
|
||||
source_quality_flag = {{ heasarc.source_quality_flag }} # Source Quality Flag (0=Good)<br />
|
||||
hardness_ratio_1 = {{ heasarc.hardness_ratio_1 }} # Hardness Ratio 1<br />
|
||||
hardness_ratio_2 = {{ heasarc.hardness_ratio_2 }} # Hardness Ratio 2<br />
|
||||
<hr>
|
||||
plaw_flux = {{ heasarc.plaw_flux }}<br />
|
||||
plaw_chi2_reduced ={{ heasarc.plaw_chi2_reduced }}<br />
|
||||
plaw_nh = {{ heasarc.plaw_nh }}<br />
|
||||
<hr>
|
||||
mekal_flux = {{ heasarc.mekal_flux }}<br />
|
||||
mekal_chi2_reduced = {{ heasarc.mekal_chi2_reduced }}<br />
|
||||
mekal_nh = {{ heasarc.mekal_nh }}<br />
|
||||
<hr>
|
||||
bb_flux = {{ heasarc.bb_flux }}<br />
|
||||
bb_chi2_reduced = {{ heasarc.bb_chi2_reduced }}<br />
|
||||
bb_nh = {{ heasarc.bb_nh }}<br />
|
||||
<hr>
|
||||
x_pixel_error = {{ heasarc.x_pixel_error }} 1-Sigma Error in X Image Coordinate<br />
|
||||
y_pixel_error = {{ heasarc.y_pixel_error }} 1-Sigma Error in Y Image Coordinate<br />
|
||||
time = {{ heasarc.time }} Start Time of Exposure When Source Is within FOV and Detector on<br />
|
||||
|
||||
|
||||
{% endif %}
|
||||
|
||||
{% endblock %}
|
15
Templates/heasarc/show_heasarc_xmmsl2.html
Normal file
15
Templates/heasarc/show_heasarc_xmmsl2.html
Normal file
@@ -0,0 +1,15 @@
|
||||
|
||||
{% extends "heasarc/base.html" %}
|
||||
|
||||
{% block content %}
|
||||
{% if src %}
|
||||
<p>flux_B7={{ src.flux_b7|stringformat:".1e" }}
|
||||
The source flux in the total energy (0.2-12 keV) band. Units: 10-12 ergs/s/cm2. Derived for an absorbed power-law spectrum of slope 1.7 and Nh=3.0E20 cm-2.
|
||||
</p>
|
||||
|
||||
<p>flux_B8={{ src.flux_b8|stringformat:".1e" }}
|
||||
The source flux in the hard energy (2-12 keV) band. Units: 10-12 ergs/s/cm2. Derived for an absorbed power-law spectrum of slope 1.7 and Nh=3.0E20 cm-2.
|
||||
</p>
|
||||
{% endif %}
|
||||
|
||||
{% endblock %}
|
29
Templates/heasarc/show_heasarc_xmmssc.html
Normal file
29
Templates/heasarc/show_heasarc_xmmssc.html
Normal file
@@ -0,0 +1,29 @@
|
||||
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block header %}{% endblock %}
|
||||
|
||||
|
||||
{% block content %}
|
||||
{% if heasarc %}
|
||||
<h4>Specific {{ heasarc.description }} fields:</h4>
|
||||
|
||||
<h5>This source at <a href="{{ heasarc.get_xmmssc_srcid_url }}">XMM-Newton Survey Science Centre <span class="glyphicon glyphicon-new-window"></span></a></h5>
|
||||
<h5>This source at <a href="{{ heasarc.get_strasbourg_srcid_url }}">Observatory of Strasbourg <span class="glyphicon glyphicon-new-window"></span></a></h5>
|
||||
|
||||
detid = <a href="{{ heasarc.get_xmmssc_detid_url }}">{{ heasarc.detid }} <span class="glyphicon glyphicon-new-window"></span></a><br />
|
||||
srcid = <a href="{{ heasarc.get_xmmssc_srcid_url }}">{{ heasarc.srcid }} <span class="glyphicon glyphicon-new-window"></span></a><br />
|
||||
time = {{ heasarc.time }}<br />
|
||||
end_time = {{ heasarc.end_time }}<br />
|
||||
ep_8_flux = {{ heasarc.ep_8_flux }}<br />
|
||||
ep_8_flux_error = {{ heasarc.ep_8_flux_error }}<br />
|
||||
pn_8_flux = {{ heasarc.pn_8_flux }}<br />
|
||||
pn_8_flux_error = {{ heasarc.pn_8_flux_error }}<br />
|
||||
m1_8_flux = {{ heasarc.m1_8_flux }}<br />
|
||||
m1_8_flux_error = {{ heasarc.m1_8_flux_error }}<br />
|
||||
m2_8_flux = {{ heasarc.m2_8_flux }}<br />
|
||||
m2_8_flux_error = {{ heasarc.m2_8_flux_error }}<br />
|
||||
|
||||
{% endif %}
|
||||
|
||||
{% endblock %}
|
18
Templates/heasarc/show_heasarc_xray.html
Normal file
18
Templates/heasarc/show_heasarc_xray.html
Normal file
@@ -0,0 +1,18 @@
|
||||
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block header %}{% endblock %}
|
||||
|
||||
|
||||
{% block content %}
|
||||
{% if heasarc %}
|
||||
<h4>Specific {{ heasarc.description }} fields:</h4>
|
||||
{% if heasarc.count_rate > 0 %}Count_rate: {{ heasarc.count_rate|floatformat:4 }}<br />{% endif %}
|
||||
{% if heasarc.count_rate_error > 0 %}error: {{ heasarc.count_rate_error|floatformat:4 }}<br />{% endif %}
|
||||
{% if heasarc.flux > 0 %}Flux: {{ heasarc.flux }}<br />{% endif %}
|
||||
{% if heasarc.exposure > 0 %}Exposure: {{ heasarc.exposure|floatformat:2 }}<br />{% endif %}
|
||||
Class_id: {{ heasarc.class_id }} {{ heasarc.object_class.class_name }}<br />
|
||||
Observatory: {{ heasarc.observatory }}
|
||||
{% endif %}
|
||||
|
||||
{% endblock %}
|
18
Templates/heasarc/show_object_classes.html
Normal file
18
Templates/heasarc/show_object_classes.html
Normal file
@@ -0,0 +1,18 @@
|
||||
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block header %}
|
||||
|
||||
|
||||
<h3>Loaded <a href="https://heasarc.gsfc.nasa.gov/W3Browse/catalog/class.html">HEASARC Object Classification <span class="glyphicon glyphicon-new-window"></span></a></h3>
|
||||
<ul>
|
||||
{% for class in classes %}
|
||||
{% if class.class_name != 'UNCLASSIFIED' %}<li>{{ class.class_id }}, <b>{{ class.class_name }}</b></li>{% endif %}
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
{% endblock %}
|
Reference in New Issue
Block a user