Templates added

This commit is contained in:
2024-06-05 11:33:02 +03:00
parent 69a2160eb7
commit 50c53060bf
117 changed files with 16737 additions and 0 deletions

View File

@@ -0,0 +1,354 @@
{% 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="https://cdn.jsdelivr.net/npm/bootstrap@4.0.0/dist/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.12.9/dist/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.0.0/dist/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script-->
<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 src="{% static 'js/sorted.js' %}"></script>
<script>
$( function() {
$( document ).tooltip();
} );
</script>
<style>
label {
display: inline-block;
width: 5em;
` }
.dot {
height: 25px;
width: 25px;
background-color: #bbb;
border-radius: 50%;
display: inline-block;
}
.dotr {
height: 12px;
width: 12px;
background-color: red;
border-radius: 50%;
display: inline-block;
}
.dotg {
height: 12px;
width: 12px;
background-color: green;
border-radius: 50%;
display: inline-block;
}
.dotb {
height: 12px;
width: 12px;
background-color: blue;
border-radius: 50%;
display: inline-block;
}
.dotblack {
height: 12px;
width: 12px;
background-color: black;
border-radius: 50%;
display: inline-block;
}
ul, li {
list-style:none;
padding:0;
margin:0;
}
.listWrapper {
max-height:250px;
overflow-y:auto;
}
.listWrapper150 {
max-height:150px;
overflow-y:auto;
}
.tableWrapper {
max-height:300px;
overflow-y:auto;
}
.bibcodes {
display: none;
}
</style>
</head>
<body>
<script>
function js9init(){
JS9.imageOpts.wcsunits = "degrees";
{% if src %}
console.log("Preloading images");
{% if src.get_galplane_image_url %}
/*
var img = "{{ src.get_galplane_image_url }}/img_flux_0.fits.fz"
var opts = {parentFile:img, scale:"log",scalemin:"0.0",scalemax:"0.01",colormap:"b",zoom:"toFit"};
*/
var img = "{{ src.get_galplane_image_url }}/12g/img_c2dp_0.fits.fz"
var opts = {parentFile:img, scale:"sqrt",scalemin:"0.0",scalemax:"25",colormap:"b",zoom:"toFit"};
JS9.Preload(img, opts, {display: "js9aver"});
console.log("Loading galplane image {{ src.get_galplane_image_url }}/12g/img_c2dp_0.fits.fz");
{% else %}
{% if orig.skymap %}
var img = "/skymap/{{ orig.skymap }}/L3/22y/img_c2dp_0.fits.gz"
var opts = {parentFile:img, scale:"log",colormap:"b",zoom:"toFit"};
JS9.Preload(img, opts, {display: "js9aver"});
console.log("Loading skymap image");
{% endif %}
{% endif %}
{% if src.get_survey_primary_image_url %}
var img = "{{ src.get_survey_primary_image_url }}"
var opts = {parentFile:img, scale:"log",colormap:"b",zoom:"toFit"};
JS9.Preload(img, opts, {display: "js9aver"});
{% endif %}
{% endif %}
}
$(document).ready(function () {
js9init();
var arr = document.getElementsByClassName('bibcodes');
for (const x of arr) {
x.style.display = "none";
}
$("#txtSearch").autocomplete({
source: "/artsurvey/ajax/autocomplete/",
minLength: 2,
open: function(){
setTimeout(function () {
$('.ui-autocomplete').css('z-index', 99);
}, 0);
}
});
});
</script>
<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">
<li><a href="{% url 'artsurvey index' %}"><span class="glyphicon glyphicon-cog"></span> Settings</a></li>
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#"><span class="glyphicon glyphicon-briefcase"></span> Catalog
<span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="{% url 'artsurvey catalog' %}"><span class="glyphicon glyphicon-book"></span> List of Sources</a></li>
<li><a href="{% url 'artsurvey types' %}"><span class="glyphicon glyphicon-list-alt"></span> Types</a></li>
<li><a href="{% url 'artsurvey show turkish' %}"><span class="glyphicon glyphicon-exclamation-sign"></span> Turkish</a></li>
<li><a href="{% url 'artsurvey csv all' %}"><span class="glyphicon glyphicon-download"></span> Download CSV</a></li>
<li><a href="{% url 'artsurvey tex' %}"><span class="glyphicon glyphicon-download"></span> Show LaTeX</a></li>
<li><a href="{% url 'artsurvey ds9 all' %}"><span class="glyphicon glyphicon-download"></span> DS9 region</a></li>
<li><a href="{% url 'artsurvey ds9 all flux' %}"><span class="glyphicon glyphicon-download"></span> DS9 region (extended)</a></li>
<li><a href="{% url 'artsurvey ds9 all paper' %}"><span class="glyphicon glyphicon-download"></span> DS9 region (paper - all)</a></li>
<li><a href="{% url 'artsurvey ds9 all paper2' %}"><span class="glyphicon glyphicon-download"></span> DS9 region (paper - all text)</a></li>
<li><a href="{% url 'artsurvey ds9 all paper newonly' %}"><span class="glyphicon glyphicon-download"></span> DS9 region (paper - new only)</a></li>
<li><a href="{% url 'artsurvey ds9 all paper known' %}"><span class="glyphicon glyphicon-download"></span> DS9 region (paper - known)</a></li>
</ul>
</li>
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#"><span class="glyphicon glyphicon-briefcase"></span> Cross-Match
<span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="{% url 'artsurvey crossmatch' %}"><span class="glyphicon glyphicon-tags"></span> <b>ART-XC Match</b></a></li>
<li><hr></li>
<li><a href="{% url 'artsurvey rass2rxs filter' %}"><span class="glyphicon glyphicon-book"></span> ROSAT (2RXS)</a></li>
<li><a href="{% url 'artsurvey rass2rxs filter csv' %}"><span class="glyphicon glyphicon-download"></span> ROSAT (2RXS)</a></li>
<li><a href="{% url 'artsurvey rass2rxs exclude' %}"><span class="glyphicon glyphicon-book"></span> ROSAT (2RXS) <b>exclude</b> </a></li>
<li><a href="{% url 'artsurvey rass2rxs exclude csv' %}"><span class="glyphicon glyphicon-download"></span> ROSAT (2RXS) <b>exclude</b></a></li>
<li><hr></li>
<li><a href="{% url 'artsurvey swiftbat105m filter' %}"><span class="glyphicon glyphicon-book"></span> Swift/BAT 105m</a></li>
<li><a href="{% url 'artsurvey swiftbat105m filter csv' %}"><span class="glyphicon glyphicon-download"></span> Swift/BAT 105m</a></li>
<li><a href="{% url 'artsurvey swiftbat105m exclude' %}"><span class="glyphicon glyphicon-book"></span> Swift/BAT 105m <b>exclude</b></a></li>
<li><a href="{% url 'artsurvey swiftbat105m exclude csv' %}"><span class="glyphicon glyphicon-download"></span> Swift/BAT 105m <b>exclude</b></a></li>
<li><hr></li>
<li><a href="{% url 'artsurvey xmmsl2' %}"><span class="glyphicon glyphicon-book"></span> XMM Slew v2</a></li>
<li><a href="{% url 'artsurvey integral2020' %}"><span class="glyphicon glyphicon-book"></span> INTEGRAL 17yr</a></li>
<li><a href="{% url 'artsurvey fermi' %}"><span class="glyphicon glyphicon-book"></span> Fermi (4FGL)</a></li>
<!--li><a href="{% url 'artsurvey rxte' %}"><span class="glyphicon glyphicon-book"></span> RXTE Slew Survey</a></li-->
<!--li><a href="{% url 'artsurvey intrefcat' %}"><span class="glyphicon glyphicon-book"></span> INTEGRAL Ref. Cat.</a></li-->
<!--li><a href="{% url 'artsurvey xmmdr10' %}"><span class="glyphicon glyphicon-book"></span> 4XMM DR10</a></li-->
<li><a href="{% url 'artsurvey maxi7yr' %}"><span class="glyphicon glyphicon-book"></span> 3MAXI 7yr</a></li>
<li><a href="{% url 'artsurvey exclude xray' %}"><span class="glyphicon glyphicon-book"></span> Exlude all above</a></li>
<li><a href="{% url 'artsurvey filter xray' %}"><span class="glyphicon glyphicon-book"></span> Filter all above / NEW</a></li>
<li><hr></li>
<li><a href="{% url 'artsurvey xmmdr12' %}"><span class="glyphicon glyphicon-book"></span> 4XMM DR12</a></li>
</ul>
</li>
<!--li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#"><span class="glyphicon glyphicon-briefcase"></span> Paper I
<span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="{% url 'artsurvey paper' %}"><span class="glyphicon glyphicon-book"></span> List of Sources</a></li>
<li><a href="{% url 'artsurvey csv catalog' %}"><span class="glyphicon glyphicon-download"></span> CSV File</a></li>
<li><a href="{% url 'artsurvey tex catalog' %}"><span class="glyphicon glyphicon-download"></span> TeX Table</a></li>
<li><a href="{% url 'artsurvey tex notes' %}"><span class="glyphicon glyphicon-download"></span> TeX Notes</a></li>
</ul>
</li-->
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#"><span class="glyphicon glyphicon-briefcase"></span> Paper II
<span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="{% url 'artsurvey cat paper2' %}"><span class="glyphicon glyphicon-book"></span> List of Sources</a></li>
<li><a href="{% url 'artsurvey csv paper2' %}"><span class="glyphicon glyphicon-download"></span> CSV File</a></li>
<li><a href="{% url 'artsurvey tex paper2 catalog' %}"><span class="glyphicon glyphicon-download"></span> TeX Table</a></li>
<li><a href="{% url 'artsurvey tex paper2 notes' %}"><span class="glyphicon glyphicon-download"></span> TeX Notes</a></li>
</ul>
</li>
<!--li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#"><span class="glyphicon glyphicon-search"></span> Search
<span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="{% url 'artsurvey search by coords' %}"><span class="glyphicon glyphicon-minus"></span> by Coords</a></li>
<li><a href="{% url 'artsurvey search by name' %}"><span class="glyphicon glyphicon-minus"></span> by Name</a></li>
</ul>
</li-->
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#"><span class="glyphicon glyphicon-briefcase"></span> Tools
<span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="{% url 'artsurvey search by coords' %}"><span class="glyphicon glyphicon-minus"></span> Search by Coords</a></li>
<li><a href="{% url 'artsurvey search by name' %}"><span class="glyphicon glyphicon-minus"></span> Search by Name</a></li>
<li><a href="{% url 'artsurvey summary' %}"><span class="glyphicon glyphicon-tags"></span> Summary</a></li>
<li><a href="{% url 'artsurvey history' %}"><span class="glyphicon glyphicon-tags"></span> History</a></li>
</ul>
</li>
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#"><span class="glyphicon glyphicon-briefcase"></span> Links
<span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a target="_blank" href="http://catserver.ing.iac.es/staralt/"><span class="glyphicon glyphicon-tags"></span> Планировщик оптических наблюдений</a></li>
<li><a target="_blank" href="https://www.swift.ac.uk/user_objects/"><span class="glyphicon glyphicon-tags"></span> Build Swift-XRT products</a></li>
<li><a target="_blank" href="http://xmmuls.esac.esa.int/upperlimitserver/"><span class="glyphicon glyphicon-tags"></span> X-ray upper limits server</a></li>
<li><a target="_blank" href="https://www.swift.ac.uk/support/too.php"><span class="glyphicon glyphicon-tags"></span> Swift TOO</a></li>
<li><a target="_blank" href="http://wsa.roe.ac.uk/"><span class="glyphicon glyphicon-tags"></span> UKIDSS и др. обзоры UKIRT</a></li>
<li><a target="_blank" href="http://horus.roe.ac.uk/vsa/"><span class="glyphicon glyphicon-tags"></span> VVV и др. обзоры VISTA</a></li>
<li><a target="_blank" href="https://skymapper.anu.edu.au/cone-search/"><span class="glyphicon glyphicon-tags"></span> SkyMapper: обзор южного неба</a></li>
<li><a target="_blank" href="http://svo2.cab.inta-csic.es/theory/fps/"><span class="glyphicon glyphicon-tags"></span> Характеристики фильтров</a></li>
</ul>
</li>
</ul>
{% if user.is_authenticated %}
<a class="btn btn-danger navbar-btn navbar-right" role="button" href="/logbook/logout"><span class="glyphicon glyphicon-log-out"></span> {% trans 'Sign Out' %}</a>
<a href="{% url 'artsurvey profile' %}" class="btn btn-link navbar-btn navbar-right"><span class="glyphicon glyphicon-user"></span> <strong>{{ user.first_name }} {{ user.last_name }}</strong></a>
{% else %}
<a class="btn btn-danger navbar-btn navbar-right" role="button" href="/logbook/login"><span class="glyphicon glyphicon-log-in"></span> {% trans 'Sign In' %}</a>
{% endif %}
</div>
</nav>
{% block header %}{% endblock %}
{% block content %}{% endblock %}
<div class="container">
<div class="row">
<div class="col-sm-9">
<h3>Code for reading CSV catalog:</h3>
<pre>
import csv
with open(filename, 'r' ) as theFile:
reader = csv.DictReader(theFile)
for line in reader:
print(line['NAME'])
</pre>
</div></div></div>
</body>
</html>

View File

@@ -0,0 +1,118 @@
{% extends "artsurvey/base.html" %}
{% load artsurvey_templates %}
{% block header %}{% endblock %}
{% block content %}
<div class="container">
{% if form %}
<h3>Create or update Art<b>Selection</b> {% if basket %}-- {{ basket }}{% endif %} </h3>
<div class="row">
<div class="col-sm-12">
<form enctype="multipart/form-data" action="" method="post">{% csrf_token %}
<div class="form-group">
<form action="" method="post">
{% csrf_token %}
<h5>
<table>
{{ form }}
</table>
</h5>
<input type="submit" class="btn btn-primary" value="Done" />
</form>
</div>
</div>
</div>
{% endif %}
{% if basket %}
<div class="row">
<div class="col-sm-12">
<p>
<h3>Art<b>Selection</b> {{ basket.title }}
{% if user.is_authenticated %}
[ <a href="{{ basket.get_update_url }}">edit</a> | <a href="{{ basket.get_delete_url }}">delete</a> ]
{% endif %}
</h3>
<p>{{ basket.notes }}</p>
<p>
<table class="table">
<thead>
<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">Notes</th>
<th class="th-sm">Follow up</th>
<th class="th-sm">Category</th>
<th class="th-sm">Type</th>
<th class="th-sm">Paper Notes</th>
<th class="th-sm">Papers</th>
<th class="th-sm">Files</th>
<th class="th-sm"></th>
</tr>
</thead>
<tbody>
{% for src in basket.sources.all %}
<tr>
<td>{{ forloop.counter }}</td>
<td><a href="{{ src.get_absolute_url }}">{{ src.name }}</a></td>
<td>{{ src.survey }}</td>
<td>{% if src.cname %}{{ src.cname }}{% endif %}</td>
<td>{% if src.notes %}<span title="{{ src.notes }}">{{ src.notes|truncatechars:20 }}</span>{% endif %}</td>
<td>{% if src.follow_up %}<span title="{{ src.follow_up }}">{{ src.follow_up|truncatechars:20 }}</span>{% endif %}</td>
<td>{% if src.category %}{{ src.category }}{% endif %}</td>
<td>{{ src.get_otype }}</td>
<td>{% if src.notes_paper %}<span title="{{ src.notes_paper }}">{{ src.notes_paper|truncatechars:20 }}</span>{% endif %}</td>
<td>
{% for paper in src.catalog.all %}
{{ paper }},
{% endfor %}
</td>
<td>
{% for upload in src.uploads.all %}
<a title="{{ upload }}" href="{{ upload.get_download_url }}"><big><span class="glyphicon glyphicon-save-file"></span></big></a>
{% endfor %}
</td>
<td>
<a class="btn btn-danger btn-xs" role="button" href="{{ src.get_remove_from_basket_url }}/{{ basket.id }}">Remove</a>
</td>
</tr>
{% endfor %}
</tbody>
</table>
<p>
</div>
</div>
{% endif %}
</div>
{% endblock %}

View File

@@ -0,0 +1,128 @@
{% extends "artsurvey/base.html" %}
{% load heasarc_templates %}
{% load artsurvey_templates %}
{% load simbadescape %}
{% load i18n %}
{% block header %}
<div class="container">
<div class="row">
<div class="col-sm-6">
{% if ntotal %}<h2>Total {{ ntotal }}</h2>{% endif %}
</div>
<div class="col-sm-6">
</div>
</div>
</div>
{% endblock %}
{% block content %}
<div class="container-fluid">
{% if srcs %}
<!--table class="table"-->
<table id="CatalogTable" class="table" cellspacing="0" width="100%">
<thead>
<tr>
<th class="th-sm"></th>
<th class="th-sm">MetaSource</th>
<th class="th-sm">RA</th>
<th class="th-sm">Dec</th>
<th class="th-sm">R</th>
{% for b in bands %}
<th class="th-sm">{{ b.slug }}</th>
{% endfor %}
<th class="th-sm">Category</th>
<th class="th-sm">CName</th>
<th class="th-sm">Other Names</th>
<th class="th-sm">Papers</th>
<th class="th-sm">Notes</th>
</tr>
</thead>
<tbody>
{% for src in srcs %}
<tr>
<td>{{ forloop.counter }}</td>
<td><a href="{{ src.get_absolute_url }}">{{ src.name }}</a></td>
<td>{{ src.ra|floatformat:4 }}</td>
<td>{{ src.dec|floatformat:4 }}</td>
<td>{{ src.radec_error|floatformat:1 }}</td>
{% for b in bands %}
<td>
{% for s in src|get_metasource_for_band:b %}
<a href="{{ s.get_absolute_url }}">{{ s.survey }}</a><br>
{% endfor %}
</td>
{% endfor %}
<td>
{% for s in src.artsurveysource_set.all %}{% if s.catalog.exists %}{% if s.category %}{{ s.category }} ({{ s.object_class }}) |{% endif %}{% endif %}{% endfor %}
</td>
<td>
{% for s in src.artsurveysource_set.all %}{% if s.catalog.exists %}{{ s.cname }}{% endif %}{% endfor %}
</td>
<td>
{% for s in src.artsurveysource_set.all %}
{% if s.catalog.exists %}
{% for o in s.othername_set.all %}
{{ o }}<br>
{% endfor %}
{% endif %}
{% endfor %}
</td>
<td>
{% for s in src.artsurveysource_set.all %}
{% if s.catalog.exists %}
{% for o in s.ads.all %}
<a href="https://ui.adsabs.harvard.edu/abs/{{ o }}/abstract" target="_blank">{{ o }}</a> <span title="{{ o.notes }}"><span class="glyphicon glyphicon-comment"></span></span><br>
{% endfor %}
{% endif %}
{% endfor %}
</td>
<td>
{% for s in src.artsurveysource_set.all %}
{% if s.catalog.exists %}
{% if s.turkish %}
<a class="btn btn-danger btn-xs" role="button" href="{{ s.get_absolute_url }}">Turkish</a>
{% endif %}
{% if s.notes %}
<a href="{{ s.get_absolute_url }}">{{ s.survey }} {{ s.band.slug }}</a> <span title="{{ s.notes }}"><span class="glyphicon glyphicon-comment" style="color:black"></span></span>
{% endif %}
{% if s.notes_paper %}
{% if not s.notes %}<a href="{{ s.get_absolute_url }}">{{ s.survey }} {{ s.band.slug }}</a>{% endif %} <span title="{{ s.notes_paper }}"><span class="glyphicon glyphicon-comment" style="color:red"></span></span>
{% endif %}
{% endif %}
{% endfor %}</td>
</tr>
{% endfor %}
</tbody>
<tfooter>
</tr>
</tfooter>
</table>
{% endif %}
</div>
{% endblock %}

View File

@@ -0,0 +1,119 @@
{% extends "artsurvey/base.html" %}
{% load heasarc_templates %}
{% load artsurvey_templates %}
{% load simbadescape %}
{% load i18n %}
{% block header %}
<div class="container">
<div class="row">
<div class="col-sm-6">
{% if ntotal %}<h2>Total {{ ntotal }}</h2>{% endif %}
</div>
<div class="col-sm-6">
</div>
</div>
</div>
{% endblock %}
{% block content %}
<div class="container-fluid">
{% if srcs %}
<!--table class="table"-->
<table id="CatalogTable" class="table" cellspacing="0" width="100%">
<thead>
<tr>
<th class="th-sm"></th>
<th class="th-sm">MetaSource</th>
<th class="th-sm">RA</th>
<th class="th-sm">Dec</th>
<th class="th-sm">R98</th>
<th class="th-sm">Category</th>
<th class="th-sm">CName</th>
<th class="th-sm">Other Names</th>
<th class="th-sm">ADS</th>
<th class="th-sm">Turk</th>
<th class="th-sm">Paper</th>
<th class="th-sm">Notes</th>
</tr>
</thead>
<tbody>
{% for src in srcs %}
<tr>
<td>{{ forloop.counter }}</td>
<td><a href="{{ src.get_absolute_url }}">{{ src.name }}</a></td>
<td>{{ src.ra|floatformat:4 }}</td>
<td>{{ src.dec|floatformat:4 }}</td>
<td>{{ src.ml_radec_err_98|floatformat:1 }} {{ src.radec_error|floatformat:1 }}</td>
<td>
{% if src.category %}
{{ src.category }}
{% endif %}
</td>
<td>
{% if src.cname %}
{{ src.cname }}
{% endif %}
</td>
<td>
{% for o in src.othername_set.all %}
{{ o }}<br>
{% endfor %}
</td>
<td>
{% for o in src.ads.all %}
<a href="https://ui.adsabs.harvard.edu/abs/{{ o }}/abstract" target="_blank">{{ o }}</a> <span title="{{ o.notes }}"><span class="glyphicon glyphicon-comment"></span></span><br>
{% endfor %}
</td>
<td>
{% if src.turkish %}
<a class="btn btn-danger btn-xs" role="button" href="{{ src.get_absolute_url }}"><span title="Date: {{ src.turkish_date }}">Turkish</span></a>
{% endif %}
</td>
<td>
{% if src.notes_paper %}
<span title="{{ src.notes_paper }}"><span class="glyphicon glyphicon-comment" style="color:red"></span></span>
{% endif %}
</td>
<td>
{% if src.notes %}
<span title="{{ src.notes }}"><span class="glyphicon glyphicon-comment" style="color:black"></span></span>
{% endif %}
</td>
</tr>
{% endfor %}
</tbody>
<tfooter>
</tr>
</tfooter>
</table>
{% endif %}
</div>
{% endblock %}

View File

@@ -0,0 +1,42 @@
{% extends "mdb.html" %}
{% load i18n %}
{% block header %}
<div class="container">
<div class="row">
<div class="col-sm-12">
<p>
<h3><a href="{{ src.get_absolute_url }}">{{ src }}</a></h3>
<strong>Type:</strong> {{ src.object_class }},
<strong>CName:</strong> {{ src.cname }}
</p>
</div>
</div>
{% endblock %}
{% block content %}
<div class="container">
<div class="row">
<div class="col-sm-12">
<p>
<form enctype="multipart/form-data" action="" method="post">{% csrf_token %}
<div class="form-group">
<form action="" method="post">
{% csrf_token %}
<table>
{{ form }}
</table>
<input type="submit" class="btn btn-primary" value="Submit" />
</form>
</div>
</p>
</div>
</div>
</div>
</div>
{% endblock %}

View File

@@ -0,0 +1,42 @@
{% extends "mdb.html" %}
{% load i18n %}
{% block header %}
<div class="container">
<div class="row">
<div class="col-sm-12">
<p>
<h3><a href="{{ src.get_absolute_url }}">{{ src }}</a></h3>
<strong>Type:</strong> {{ src.object_class }},
<strong>CName:</strong> {{ src.cname }}
</p>
</div>
</div>
{% endblock %}
{% block content %}
<div class="container">
<div class="row">
<div class="col-sm-12">
<p>
<form enctype="multipart/form-data" action="" method="post">{% csrf_token %}
<div class="form-group">
<form action="" method="post">
{% csrf_token %}
<table>
{{ form }}
</table>
<input type="submit" class="btn btn-primary" value="Submit" />
</form>
</div>
</p>
</div>
</div>
</div>
</div>
{% endblock %}

View File

@@ -0,0 +1,41 @@
{% extends "mdb.html" %}
{% load i18n %}
{% block header %}
<div class="container">
<div class="row">
<div class="col-sm-12">
<p>
<h3><a href="{{ src.get_absolute_url }}">{{ src }}</a></h3>
<strong>Type:</strong> {{ src.object_class }}
</p>
</div>
</div>
{% endblock %}
{% block content %}
<div class="container">
<div class="row">
<div class="col-sm-12">
<p>
<form enctype="multipart/form-data" action="" method="post">{% csrf_token %}
<div class="form-group">
<form action="" method="post">
{% csrf_token %}
<table>
{{ form }}
</table>
<input type="submit" class="btn btn-primary" value="Submit" />
</form>
</div>
</p>
</div>
</div>
</div>
</div>
{% endblock %}

View File

@@ -0,0 +1,195 @@
{% extends "artsurvey/base.html" %}
{% block header %}
{% endblock %}
{% block content %}
<div class="container">
<div class="row">
<div class="col-sm-6">
<div class="card">
<div class="card-body">
<h3>Match filters</h3>
<p>HEALPix elements are selected within <strong>maxdist</strong> parameter via healpix <a target="_blank" href="https://astropy-healpix.readthedocs.io/en/latest/cone_search.html">cone search <span class="glyphicon glyphicon-new-window"></span></a>. Then, all matches are selected within <strong>Rmax</strong> parameter.</p>
{% if message %}
<div class="alert alert-warning">
{{ message }}
</div>
{% endif %}
{% if form %}
<form action="" method="post">
{% csrf_token %}
<table class="table">
{{ form }}
</table>
<input class="btn btn-default" type="submit" value="Match">
</form>
{% endif %}
</div>
</div>
</div>
<div class="col-sm-6">
<div class="card">
<div class="card-body">
<h1>1: {{ params.survey1 }} {{ params.band1 }} {% if nrows1 %}({{ nrows1 }}){% endif %}</h1>
<h1>2: {{ params.survey2 }} {{ params.band2 }} {% if nrows2 %}({{ nrows2 }}){% endif %}</h1>
{% if nrows1 %}
<hr>
<h2>from 1 in 2</h2>
<h2>Matched: {{ match_count }} Missed: {{ missed_count1 }}</h2>
<p><big>Confusion: 1:{{ match1_count }} 2:{{ match2_count }} 3:{{ match3_count }} 4:{{ match4_count }}</big></p>
<hr>
<h2>from 2 in 1</h1>
<h2>Matched: {{ match_count2 }} Missed: {{ missed_count2 }}</h2>
<p><big>Confusion: 1:{{ match1_count2 }} 2:{{ match2_count2 }} 3:{{ match3_count2 }} 4:{{ match4_count2 }}</big></p>
{% endif %}
</div>
</div>
</div>
</div>
</div>
{% if match_list %}
<div class="container-fluid">
<div class="row">
<div class="col-sm-12">
<div class="card">
<div class="card-body">
<table id="ArtSurveyMatchTable" class="table" cellspacing="0" width="100%">
<thead>
<tr>
<th class="th-sm">dir</th>
<th class="th-sm">Src1</th>
<th class="th-sm">CNAME</th>
<th class="th-sm">RA</th>
<th class="th-sm">Dec</th>
<th class="th-sm">DL</th>
<th class="th-sm">Log NF</th>
<th class="th-sm">Flux1</th>
<th class="th-sm">Sign1</th>
<th class="th-sm">Src2</th>
<th class="th-sm">CNAME</th>
<th class="th-sm">RA</th>
<th class="th-sm">Dec</th>
<th class="th-sm">DL</th>
<th class="th-sm">Log NF</th>
<th class="th-sm">Flux2</th>
<th class="th-sm">Sign2</th>
<th class="th-sm">F2/F1</th>
<th class="th-sm">Sep ('')</th>
</tr>
</thead>
<tbody>
<tr><td colspan = "19" style="text-align: center;"><strong><big>Matched list (nrows={{ match_count }})</big></strong></td></tr>
{% for o in match_list %}
<tr>
<td>{{ o.dir }};</td>
<td><a href="{{ o.src1.get_absolute_url }}">{{ o.src1 }}</a>;</td>
<td>{{ o.src1.cname }};</td>
<td>{{ o.src1.ra|floatformat:6 }};</td>
<td>{{ o.src1.dec|floatformat:6 }};</td>
<td>{{ o.src1.detlike|floatformat:2 }};</td>
<td>{{ o.src1.log_nfalse|floatformat:2 }};</td>
<td>{{ o.src1.flux|stringformat:"1.2e" }};</td>
<td>{{ o.src1.sig|floatformat:2 }};</td>
<td><a href="{{ o.src2.get_absolute_url }}">{{ o.src2 }}</a>;</td>
<td>{{ o.src2.cname }};</td>
<td>{{ o.src2.ra|floatformat:6 }};</td>
<td>{{ o.src2.dec|floatformat:6 }};</td>
<td>{{ o.src2.detlike|floatformat:2 }};</td>
<td>{{ o.src2.log_nfalse|floatformat:2 }};</td>
<td>{{ o.src2.flux|stringformat:"1.2e" }};</td>
<td>{{ o.src2.sig|floatformat:2 }};</td>
<td>{{ o.f1f2_ratio|floatformat:1 }};</td>
<td>{{ o.sep|floatformat:1 }};</td>
</tr>
{% endfor %}
<tr><td colspan = "19" style="text-align: center;"><strong><big>Missed 1 in 2 (nrows={{ missed_count1 }})</big></strong></td></tr>
{% for o in missed_list1 %}
<tr>
<td>;</td>
<td><a href="{{ o.src1.get_absolute_url }}">{{ o.src1 }}</a>;</td>
<td>{{ o.src1.cname }};</td>
<td>{{ o.src1.ra|floatformat:6 }};</td>
<td>{{ o.src1.dec|floatformat:6 }};</td>
<td>{{ o.src1.detlike|floatformat:2 }};</td>
<td>{{ o.src1.nfalse|floatformat:2 }};</td>
<td>{{ o.src1.flux|stringformat:"1.2e" }};</td>
<td>{{ o.src1.sig|floatformat:2 }};</td>
<td>;</td>
<td>;</td>
<td>;</td>
<td>;</td>
<td>;</td>
<td>;</td>
<td>;</td>
<td>;</td>
<td>;</td>
<td>;</td>
</tr>
{% endfor %}
<tr><td colspan = "19" style="text-align: center;"><strong><big>Missed 2 in 1 (nrows={{ missed_count2 }})</big></strong></td></tr>
{% for o in missed_list2 %}
<tr>
<td>;</td>
<td>;</td>
<td>;</td>
<td>;</td>
<td>;</td>
<td>;</td>
<td>;</td>
<td>;</td>
<td>;</td>
<td><a href="{{ o.src2.get_absolute_url }}">{{ o.src2 }}</a>;</td>
<td>{{ o.src2.cname }};</td>
<td>{{ o.src2.ra|floatformat:6 }};</td>
<td>{{ o.src2.dec|floatformat:6 }};</td>
<td>{{ o.src2.detlike|floatformat:2 }};</td>
<td>{{ o.src2.nfalse|floatformat:2 }};</td>
<td>{{ o.src2.flux|stringformat:"1.2e" }};</td>
<td>{{ o.src2.sig|floatformat:2 }};</td>
<td>;</td><td>;</td>
</tr>
{% endfor %}
</tbody>
<!--tfooter>
<tr>
<th class="th-sm"></th>
<th class="th-sm"></th>
<th class="th-sm"></th>
</tr>
</tfooter-->
</table>
</div>
</div>
</div>
</div>
</div>
{% endif %}
{% endblock %}

View File

@@ -0,0 +1,17 @@
{% extends "artsurvey/base.html" %}
{% load monthplan_templates %}
{% block header %}{% endblock %}
{% block content %}
<div class="container">
<div class="row">
<div class="col-sm-12">
{% for user in users %}
<p><strong>{{ user.first_name }} {{ user.last_name }}</strong> ({{ user }})</p>
<pre>{{ user.artsurveyparams.history|safe }}</pre>
{% endfor %}
</div>
</div>
</div>
{% endblock %}

View File

@@ -0,0 +1,295 @@
{% 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 %}

View File

@@ -0,0 +1,227 @@
{% extends "artsurvey/base.html" %}
{% load heasarc_templates %}
{% load simbadescape %}
{% block header %}
<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 ToggleWise() {
var x = document.getElementById("ToggleWise");
if (x.style.display === "none") {
x.style.display = "block";
} else {
x.style.display = "none";
}
}
</script>
<div class="container-fluid">
<div class="row">
<div class="col-sm-12">
<h3>
MetaSource <a href="{{ src.get_absolute_url }}">{{ src }}</a> {{ band }}</h3>
<big>
<p>Lookup radius = {{ src.radec_error|floatformat:1 }}''</p>
{% if src.catalog %}
<p>
Linked to <b>{{ src.catalog }}</b>
<a class="btn btn-danger btn-sm" role="button" href="{{ src.get_delete_paper_url }}"><span class="glyphicon glyphicon-remove"></span> Remove</a>
</p>
{% endif %}
</big>
<p>
{{ src.ra|floatformat:4 }}<sup>RA</sup> {{ src.dec|floatformat:4 }}<sup>Dec</sup> <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> |
<strong><a href=http://simbad.u-strasbg.fr/simbad/sim-coo?Coord={{src.ra|stringformat:"+.6f"}}{{src.dec|stringformat:"+.6f"|escape}}&CooFrame=FK5&CooEpoch=2000&CooEqui=2000&CooDefinedFrames=none&Radius=40&Radius.unit=arcsec&submit=submit+query&CoordList=>SIMBAD</a></strong> |
<strong><a href=https://ned.ipac.caltech.edu/conesearch?search_type=Near%20Position%20Search&coordinates={{src.ra|stringformat:"+.6f"|escape}}d,{{src.dec|stringformat:"+.6f"|escape}}d&radius=0.666667&in_csys=Equatorial&in_equinox=J2000&out_csys=Equatorial&out_equinox=Same%20as%20Input&hconst=67.8&omegam=0.308&omegav=0.692&wmap=4&corr_z=1&iau_style=liberal&in_csys_IAU=Equatorial&in_equinox_IAU=B1950&z_constraint=Unconstrained&z_unit=z&ot_include=ANY&nmp_op=ANY&out_csys_nearname=Equatorial&out_equinox_nearname=J2000&obj_sort=Distance%20to%20search%20center>NED</a></strong>
</p>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<div class="card">
<div class="card-body">
<div class="alert alert-warning">
<p class="card-text">
<h3 class="card-title">Filter by energy band:
{% for band in bands %}
<a href="{{ src.get_absolute_url }}/{{ band.pk }}">{{ band }}</a> |
{% endfor %}
</h3>
</div>
</div>
</div>
</div>
</div>
</div>
{% endblock %}
{% block content %}
<div class="container-fluid">
<div class="col-sm-12">
<table class="table">
<thead>
<tr>
<th class="th-sm"></th>
<th class="th-sm">Name</th>
<th class="th-sm">Survey</th>
<th class="th-sm">RA</th>
<th class="th-sm">Dec</th>
<th class="th-sm">Band</th>
<th class="th-sm">Sep ('')</th>
<th class="th-sm">Flux</th>
<th class="th-sm">Error</th>
<th class="th-sm">Sign.</th>
<th class="th-sm">log_nFalse</th>
<th class="th-sm">Band</th>
<th class="th-sm">CNAME</th>
<th class="th-sm">Class</th>
<th class="th-sm">Catalog</th>
<th class="th-sm">Files</th>
<th class="th-sm">ADS</th>
<th class="th-sm">Notes</th>
<th class="th-sm">Modified</th>
</tr>
</thead>
<tbody>
{% for m in srcs %}
<tr>
<td>{{ forloop.counter }}</td>
<td>
<a href="{{ m.get_absolute_url }}">{{ m.name }}</a>
{% if m.metasource_primary %}<span title="Primary"><b>P</span></span>{% endif %}
</td>
<td>{{ m.survey }}</td>
<td>{{ m.ra|floatformat:5 }}</td>
<td>{{ m.dec|floatformat:5 }}</td>
<td>{{ m.band }}</td>
<td>{{ m.metasource_sep|floatformat:1 }}</td>
<td>{{ m.flux|stringformat:"1.2e" }}</td>
<td>{{ m.flux_err|stringformat:"1.2e" }}</td>
<td>{{ m.sig|floatformat:1 }}</td>
<td>{{ m.log_nfalse|floatformat:4 }}</td>
<td>{{ m.band }}</td>
<td>{% if m.cname %}{{ m.cname }}{% endif %}</td>
<td>{% if m.object_class %}{{ m.object_class }}{% endif %}</td>
<td>
{% for paper in m.catalog.all %}
{{ paper }},
{% endfor %}
</td><td>
{% for upload in m.uploads.all %}
<a title="{{ upload }}" href="{{ upload.get_download_url }}"><big><span class="glyphicon glyphicon-save-file"></span></big></a>
{% endfor %}
</td>
<td>
{% if m.ads.all.count %}
<b>{{ m.ads.all.count }}</b>
{% endif %}
</td>
<td>
{% if m.turksh %}
<a title="Turkish Date set: {{ m.turkish_date|date:"d.m.Y" }}" class="btn btn-danger btn-xs" role="button" href="">T</a>
{% endif %}
{% if m.marshall %}
<a title="MSFC source in NEP" class="btn btn-danger btn-xs" role="button" href="">MSFC</a>
{% endif %}
</td>
<td>
{{ m.modified|date:"d.m.y H:i" }}
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
<div class="container-fluid">
<div class="col-sm-8 text-left">
{% for comment in comments %}
<div class="comments" style="padding: 10px;">
<p class="font-weight-bold">
<span class="glyphicon glyphicon-user"></span> <strong>{{ comment.owner.first_name }} {{ comment.owner.last_name }}</strong> {{ comment.name }}
<span class=" text-muted font-weight-normal">
{{ comment.created|date:"d.m.y H:i" }}
</span>
<span style="float:right;">
<a href="{{ comment.get_delete_url }}"><span class="glyphicon glyphicon-remove"></span> delete</a>
</span>
</p>
<p style="text-align:left;">
{{ comment.body | linebreaks }}
</p>
</div>
{% endfor %}
<div class="card-body">
<h3>Leave a comment</h3>
<form method="post" style="margin-top: 1.3em;">
{{ comment_form.as_p }}
{% csrf_token %}
<button type="submit" class="btn btn-primary btn-lg">Submit</button>
</form>
</div>
</div>
<div class="col-sm-4 text-right">
<p>
<h3>Attached files [<a href="{{ src.get_upload_url }}">+</a>]</h3>
<table class="table">
{% for upload in src.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>
</td><td>[<a href="{{ src.get_edit_upload_url }}/{{ upload.pk }}">edit</a>, <a href="{{ src.get_delete_upload_url }}/{{ upload.pk }}">del</a>]</td>
</tr>
{% endfor %}
</table>
</p>
</div>
</div>
<div class="container">
<div class="col-sm-12 text-right">
<hr>
<p>
<a class="btn btn-danger btn-lg disabled" role="button" href="{{ src.get_delete_url_dead }}"><span class="glyphicon glyphicon-remove"></span> Delete this MetaSource only</a>
</p>
</div>
</div>
{% endblock %}

View File

@@ -0,0 +1,60 @@
{% extends "mdb.html" %}
{% load i18n %}
{% block header %}
<div class="container">
<div class="row">
<div class="col-sm-8">
<big>
<p>
<h3><a href="{{ src.get_absolute_url }}">{{ src }}</a></h3>
<strong>Type:</strong> {{ src.object_class }}{% if src.class_tentative %}<b>?</b>{% endif %},
<strong>CName:</strong> {{ src.cname }}
</p>
</big>
<p>
{% if src.turkish %}
<b>Turkish</b>
{% endif %}
</p>
</div>
<div class="col-sm-4">
<p>
<h3>References</h3>
{% for bibcode in src.ads.all %}
<a href="https://ui.adsabs.harvard.edu/abs/{{ bibcode }}/abstract" target="_blank">{{ bibcode }} <span class="glyphicon glyphicon-new-window"></span></a> {% if bibcode.owner %}({{ bibcode.owner }}){% endif %}<br>
{% if bibcode.notes %}<em>"{{ bibcode.notes }}"</em><br>{% endif %}
{% endfor %}
</p>
</div>
</div>
{% endblock %}
{% block content %}
<div class="container">
<div class="row">
<div class="col-sm-12">
<p>
<form enctype="multipart/form-data" action="" method="post">{% csrf_token %}
<div class="form-group">
<form action="/srgz/search" method="post">
{% csrf_token %}
<table>
{{ form }}
</table>
<input type="submit" class="btn btn-primary" value="Submit" />
</form>
</div>
</p>
</div>
</div>
</div>
</div>
{% endblock %}

View File

@@ -0,0 +1,41 @@
{% extends "mdb.html" %}
{% load i18n %}
{% block header %}
<div class="container">
<div class="row">
<div class="col-sm-12">
<p>
<h3><a href="{{ src.get_absolute_url }}">{{ src }}</a></h3>
<strong>Type:</strong> {{ src.object_class }}
</p>
</div>
</div>
{% endblock %}
{% block content %}
<div class="container">
<div class="row">
<div class="col-sm-12">
<p>
<form enctype="multipart/form-data" action="" method="post">{% csrf_token %}
<div class="form-group">
<form action="" method="post">
{% csrf_token %}
<table>
{{ form }}
</table>
<input type="submit" class="btn btn-primary" value="Submit" />
</form>
</div>
</p>
</div>
</div>
</div>
</div>
{% endblock %}

View File

@@ -0,0 +1,332 @@
{% extends "artsurvey/base.html" %}
{% load artsurvey_templates %}
{% block header %}
{% endblock %}
{% block content %}
<div class="container">
<div class="row">
<div class="col-sm-12">
<h3>Galactic Plane Survey</h3>
<!--div style="overflow-x: auto;">
<table class="table no-wrap">
<tr>
<td><a href='{{ "GP040"|set_latest_galsurvey }}' class="w3-button w3-green w3-large w3-padding-large">040</a></td>
<td><a href='{{ "GP035"|set_latest_galsurvey }}' class="w3-button w3-green w3-large w3-padding-large">035</a></td>
<td><a href='{{ "GP030"|set_latest_galsurvey }}' class="w3-button w3-green w3-large w3-padding-large">030</a></td>
<td><a href='{{ "GP025"|set_latest_galsurvey }}' class="w3-button w3-green w3-large w3-padding-large">025</a></td>
<td><a href='{{ "GP020"|set_latest_galsurvey }}' class="w3-button w3-green w3-large w3-padding-large">020</a></td>
<td><a href='{{ "GP015"|set_latest_galsurvey }}' class="w3-button w3-green w3-large w3-padding-large">015</a></td>
<td><a href='{{ "GP010"|set_latest_galsurvey }}' class="w3-button w3-green w3-large w3-padding-large">010</a></td>
<td><a href='{{ "GP005"|set_latest_galsurvey }}' class="w3-button w3-green w3-large w3-padding-large">005</a></td>
<td><a href='{{ "GP000"|set_latest_galsurvey }}' class="w3-button w3-green w3-large w3-padding-large">000</a></td>
<td><a href='{{ "GP355"|set_latest_galsurvey }}' class="w3-button w3-green w3-large w3-padding-large">355</a></td>
<td><a href='{{ "GP350"|set_latest_galsurvey }}' class="w3-button w3-green w3-large w3-padding-large">350</a></td>
<td><a href='{{ "GP345"|set_latest_galsurvey }}' class="w3-button w3-green w3-large w3-padding-large">345</a></td>
</tr>
</table>
</div-->
<div style="overflow-x: auto;">
<table class="table no-wrap">
<tr>
<td><a href='{{ "GP090"|set_latest_galsurvey }}' role="button" class="btn btn-success btn-lg btn-block"><big>090</big></a></td>
<td><a href='{{ "GP085"|set_latest_galsurvey }}' role="button" class="btn btn-success btn-lg btn-block"><big>085</big></a></td>
<td><a href='{{ "GP080"|set_latest_galsurvey }}' role="button" class="btn btn-success btn-lg btn-block"><big>080</big></a></td>
<td><a href='{{ "GP075"|set_latest_galsurvey }}' role="button" class="btn btn-success btn-lg btn-block"><big>075</big></a></td>
<td><a href='{{ "GP070"|set_latest_galsurvey }}' role="button" class="btn btn-success btn-lg btn-block"><big>070</big></a></td>
<td><a href='{{ "GP065"|set_latest_galsurvey }}' role="button" class="btn btn-success btn-lg btn-block"><big>065</big></a></td>
<td><a href='{{ "GP060"|set_latest_galsurvey }}' role="button" class="btn btn-success btn-lg btn-block"><big>060</big></a></td>
<td><a href='{{ "GP055"|set_latest_galsurvey }}' role="button" class="btn btn-success btn-lg btn-block"><big>055</big></a></td>
<td><a href='{{ "GP050"|set_latest_galsurvey }}' role="button" class="btn btn-success btn-lg btn-block"><big>050</big></a></td>
<td><a href='{{ "GP045"|set_latest_galsurvey }}' role="button" class="btn btn-success btn-lg btn-block"><big>045</big></a></td>
<td><a href='{{ "GP040"|set_latest_galsurvey }}' role="button" class="btn btn-success btn-lg btn-block"><big>040</big></a></td>
<td><a href='{{ "GP035"|set_latest_galsurvey }}' role="button" class="btn btn-success btn-lg btn-block"><big>035</big></a></td>
<td><a href='{{ "GP030"|set_latest_galsurvey }}' role="button" class="btn btn-success btn-lg btn-block"><big>030</big></a></td>
<td><a href='{{ "GP025"|set_latest_galsurvey }}' role="button" class="btn btn-success btn-lg btn-block"><big>025</big></a></td>
<td><a href='{{ "GP020"|set_latest_galsurvey }}' role="button" class="btn btn-success btn-lg btn-block"><big>020</big></a></td>
<td><a href='{{ "GP015"|set_latest_galsurvey }}' role="button" class="btn btn-success btn-lg btn-block"><big>015</big></a></td>
<td><a href='{{ "GP010"|set_latest_galsurvey }}' role="button" class="btn btn-success btn-lg btn-block"><big>010</big></a></td>
<td><a href='{{ "GP005"|set_latest_galsurvey }}' role="button" class="btn btn-success btn-lg btn-block"><big>005</big></a></td>
<td><a href='{{ "GP000"|set_latest_galsurvey }}' role="button" class="btn btn-success btn-lg btn-block"><big>000</big></a></td>
<td><a href='{{ "GP355"|set_latest_galsurvey }}' role="button" class="btn btn-success btn-lg btn-block"><big>355</big></a></td>
<td><a href='{{ "GP350"|set_latest_galsurvey }}' role="button" class="btn btn-success btn-lg btn-block"><big>350</big></a></td>
<td><a href='{{ "GP345"|set_latest_galsurvey }}' role="button" class="btn btn-success btn-lg btn-block"><big>345</big></a></td>
<!--td><a href='#' role="button" class="btn btn-warning btn-lg btn-block"><big><...></big></a></td-->
<td><a href='{{ "GP340"|set_latest_galsurvey }}' role="button" class="btn btn-success btn-lg btn-block"><big>340</big></a></td>
<td><a href='{{ "GP335"|set_latest_galsurvey }}' role="button" class="btn btn-success btn-lg btn-block"><big>335</big></a></td>
<td><a href='{{ "GP330"|set_latest_galsurvey }}' role="button" class="btn btn-success btn-lg btn-block"><big>330</big></a></td>
<td><a href='{{ "GP325"|set_latest_galsurvey }}' role="button" class="btn btn-success btn-lg btn-block"><big>325</big></a></td>
<td><a href='{{ "GP320"|set_latest_galsurvey }}' role="button" class="btn btn-success btn-lg btn-block"><big>320</big></a></td>
<td><a href='{{ "GP315"|set_latest_galsurvey }}' role="button" class="btn btn-success btn-lg btn-block"><big>315</big></a></td>
<td><a href='{{ "GP310"|set_latest_galsurvey }}' role="button" class="btn btn-success btn-lg btn-block"><big>310</big></a></td>
<td><a href='{{ "GP305"|set_latest_galsurvey }}' role="button" class="btn btn-success btn-lg btn-block"><big>305</big></a></td>
<td><a href='{{ "GP300"|set_latest_galsurvey }}' role="button" class="btn btn-success btn-lg btn-block"><big>300</big></a></td>
<td><a href='{{ "GP295"|set_latest_galsurvey }}' role="button" class="btn btn-success btn-lg btn-block"><big>295</big></a></td>
<td><a href='{{ "GP290"|set_latest_galsurvey }}' role="button" class="btn btn-success btn-lg btn-block"><big>290</big></a></td>
<td><a href='{{ "GP285"|set_latest_galsurvey }}' role="button" class="btn btn-success btn-lg btn-block"><big>285</big></a></td>
<td><a href='{{ "GP280"|set_latest_galsurvey }}' role="button" class="btn btn-success btn-lg btn-block"><big>280</big></a></td>
<td><a href='{{ "GP275"|set_latest_galsurvey }}' role="button" class="btn btn-success btn-lg btn-block"><big>275</big></a></td>
<td><a href='{{ "GP270"|set_latest_galsurvey }}' role="button" class="btn btn-success btn-lg btn-block"><big>270</big></a></td>
</tr>
</table>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-7">
<div class="card">
<div class="card-body">
<h3>Update filters [<a href="{% url 'artsurvey params reset' %}">reset</a>]</h3>
{% if message %}
<div class="alert alert-warning">
{{ message }}
</div>
{% endif %}
{% if form %}
<form action="" method="post">
<input style="float: right;" class="btn btn-info btn-block btn-lg" type="submit" value="Update">
<br> <br>
{% csrf_token %}
<table class="table">
{{ form }}
</table>
</form>
{% endif %}
</div>
</div>
</div>
<div class="col-sm-5">
<div class="card">
<div class="card-body">
{% if ntotal %}
<p>
<h3>Selected {{ ntotal }} sources
<a class="btn btn-info btn-lg" style="float: right;" href="{% url 'artsurvey catalog' %}"><span class="glyphicon glyphicon-arrow-right"></span> Open Catalog</a></h3></p><br>
{% endif %}
{% if params %}
<div class="alert alert-success">
<h3>Current values:</h3>
<pre>
Sky = {{ params.sky }}
Survey = {{ params.survey }} {% if params.survey.notes %}<span title="{{ params.survey.notes }}"><span class="glyphicon glyphicon-comment" style="color:red;"></span></span>{% endif %} {% if params.survey.parent %}<strong>Parent: {{ params.survey.parent }}</strong>{% endif %}{% if params.survey.children.count %}<strong>Children: {% for child in params.survey.children.all %}{{ child }}{% endfor %}</strong>{% endif %} {{ params.survey.modified|date:"d.m.y H:i" }}
Energy band = {{ params.get_band_display }} ({{ params.band }})
Sign. min = {{ params.sign_min }}
Sign. max = {{ params.sign_max }}
log nFalse min = {{ params.log_nfalse_min }}
log nFalse max = {{ params.log_nfalse_max }}
log ML nFalse min = {{ params.log_ml_nfalse_min }}
log ML nFalse max = {{ params.log_ml_nfalse_max }}
detlike min = {{ params.detlike_min }}
detlike max = {{ params.detlike_max }}
exposure min = {{ params.exposure_min }}
Ext. min = {{ params.ext_min }}
Ext. max = {{ params.ext_max }}
Class starts with = {{ params.class_startswith }}
CName contains = {{ params.cname_contains }}
Source category = {{ params.category }}
Exclude category = {{ params.exclude_category }}
Unclassified category = {{ params.category_unclassified }}
Gaia primary = {{ params.gaia_primary }}
Exclude survey = {{ params.exclude_survey }}
Exclude energy band = {{ params.exclude_band }}
Exclude log_nfalse = {{ params.exclude_log_nfalse }}
Turk possible = {{ params.turk_possible }}
Marshall = {{ params.marshall }}
<b>Coordinates</b>
Declination min = {{ params.dec_min }}
Declination max = {{ params.dec_max }}
Ecliptic latitude min = {{ params.ecl_lat_min }}
Ecliptic latitude max = {{ params.ecl_lat_max }}
</pre>
</div>
{% endif %}
<pre>
<b>ML_NFALSE, 3-12 keV (E5), Dec2023:</b>
false_01 s1-5_5 3.461e-04 1431 -3.4608 5.4739
false_02 s1-5_5 7.476e-04 1545 -3.1264 5.3191
false_03 s1-5_5 1.188e-03 1629 -2.9251 5.2616
false_05 s1-5_5 2.146e-03 1752 -2.6685 5.1637
false_10 s1-5_5 4.803e-03 1980 -2.3185 5.0364
<b>ML_NFALSE, 3-12 keV (E5), Nov2023:</b>
false_01 s1-5_5 3.461e-04 1427 -3.4608 5.4739
false_02 s1-5_5 7.476e-04 1541 -3.1264 5.3191
false_03 s1-5_5 1.180e-03 1622 -2.9282 5.2940
false_05 s1-5_5 2.100e-03 1745 -2.6778 5.1628
false_10 s1-5_5 4.780e-03 1970 -2.3206 5.0343
<b>ML_NFALSE, 3-12 keV, Oct2023:</b>
false_01 s1-5_5 3.469e-04 1431 -3.4598 5.4938
false_02 s1-5_5 7.547e-04 1550 -3.1222 5.3737
false_05 s1-5_5 2.140e-03 1763 -2.6695 5.1819
false_10 s1-5_5 4.849e-03 2000 -2.3144 5.0311
OBSOLETE:
<b>ML_NFALSE, 4-12 keV, Nov2023:</b>
false_01 s1-5_0 2.881e-04 1190 -3.5405 5.6796
false_02 s1-5_0 6.207e-04 1286 -3.2071 5.5552
false_05 s1-5_0 1.687e-03 1391 -2.7730 5.3530
false_10 s1-5_0 3.766e-03 1555 -2.4241 5.2647
<b>ML_NFALSE, 4-12 keV, Oct2023:</b>
false_01 s1-5_0 2.881e-04 1190 -3.5405 5.6796
false_02 s1-5_0 6.207e-04 1286 -3.2071 5.5552
false_05 s1-5_0 1.687e-03 1391 -2.7730 5.3530
false_10 s1-5_0 3.766e-03 1555 -2.4241 5.2647
<b>log_nfalse thresholds:</b>
nfalse, кол-во источников, log10(nfalse), sigma
<b>FALSE 1%</b>
s1-5_0 2.771e-04 1142 -3.5573 5.2225
s1-5_0 3.412e-04 1409 -3.4670 4.4774 (Jun 2023)
<b>FALSE 2%</b>
s1-5_0 6.091e-04 1245 -3.2153 5.0695
s1-5_0 7.196e-04 1484 -3.1429 5.2024 (Jun 2023)
<b>FALSE 5%</b>
s1-5_0 1.717e-03 1415 -2.7653 4.8608
s1-5_0 1.969e-03 1621 -2.7057 4.3679 (Jun 2023)
<b>FALSE 10%</b>
s1-5_0 4.324e-03 1780 -2.3641 4.3173 (Jun 2023)
s1-4_0 3.658e-03 1509 -2.4368 4.7026
s12_0 2.113e-03 868 -2.6751
s12_1 1.259e-03 519 -2.8999
s12_2 1.164e-03 479 -2.9341
s12_3 2.362e-04 100 -3.6268
s1_0 1.221e-03 502 -2.9134
s1_1 7.496e-04 310 -3.1252
s1_2 6.669e-04 275 -3.1760
s1_3 1.947e-04 76 -3.7107
s2_0 1.158e-03 480 -2.9362
s2_1 7.130e-04 295 -3.1469
s2_2 6.961e-04 285 -3.1573
s2_3 1.970e-04 76 -3.7055
<b>FALSE 15%</b>
s1-5_0 6.950e-03 1911 -2.1580 4.3509 (Jun 2023)
<!--
<b>FALSE 5%</b>
s1-4_0 1.594e-03 1314 -2.7974 4.8760
s12_0 8.859e-04 732 -3.0526
s12_1 5.265e-04 440 -3.2786
s12_2 4.996e-04 410 -3.3014
s12_3 1.010e-04 94 -3.9955
s1_0 5.129e-04 423 -3.2900
s1_1 3.451e-04 284 -3.4620
s1_2 3.027e-04 249 -3.5190
s1_3 8.420e-05 71 -4.0747
s2_0 4.937e-04 413 -3.3065
s2_1 3.160e-04 259 -3.5003
s2_2 2.977e-04 246 -3.5262
s2_3 6.956e-05 69 -4.1576
<b>FALSE 1%</b>
s1-4_0 2.574e-04 1056 -3.5895 5.2367
s12_0 1.487e-04 609 -3.8278
s12_1 9.153e-05 385 -4.0384
s12_2 8.320e-05 347 -4.0799
s12_3 2.559e-05 88 -4.5918
s1_0 8.874e-05 364 -4.0519
s1_1 6.189e-05 247 -4.2084
s1_2 4.945e-05 213 -4.3058
s1_3 1.461e-05 63 -4.8353
s2_0 8.420e-05 347 -4.0747
s2_1 5.957e-05 231 -4.2250
s2_2 5.414e-05 225 -4.2664
s2_3 1.154e-05 65 -4.9379
-->
</pre>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<hr>
<pre>{{ params.history|safe }}</pre>
</div>
</div>
</div>
<div class="container">
<div class="row">
<div class="col-sm-12">
<p>
<hr>
*Sources suitable for TUBITAK is taken by excluding <a href="https://ui.adsabs.harvard.edu/abs/2018ApJS..235....4O/abstract">Swift/BAT 105m (2018)</a>,
INTEGRAL Reference Catalog <a href="https://heasarc.gsfc.nasa.gov/W3Browse/integral/intrefcat.html">(last updated on 16 June 2019)</a> and <a href="https://heasarc.gsfc.nasa.gov/W3Browse/all/xteasscat.html">RXTE (2004)</a>.
</p>
</div></div></div>
{% endblock %}

View File

@@ -0,0 +1,115 @@
{% extends "artsurvey/base.html" %}
{% block header %}{% endblock %}
{% block content %}
<div class="container-fluid">
<div class="row">
<div class="col-sm-12">
<h3><strong>{{ user.first_name }} {{ user.last_name }}</strong> ({{ user }})</h3>
</div>
</div>
{% if user.artselection.sources.all.count %}
<div class="row">
<div class="col-sm-12">
<h3><span class="glyphicon glyphicon-star"></span> Art<b>Selection</b> [<a href="{% url 'artsurvey basket create' %}">+folder</a>]</h3>
<table class="table">
<thead>
<tr>
<th class="th-sm"></th>
<th class="th-sm">Name</th>
<th class="th-sm">Notes</th>
<th class="th-sm">Count</th>
<th class="th-sm"></th>
</tr>
</thead>
<tbody>
{% for basket in user.artbasket_set.all %}
<tr>
<td>{{ forloop.counter }}</td>
<td><a href="{{ basket.get_absolute_url }}">{{ basket }}</a></td>
<td>{{ basket.notes }}</td>
<td>{{ basket.get_sources_count }}</td>
<td><a href="{{ basket.get_update_url }}">edit</a> | <a href="{{ basket.get_delete_url }}">delete</a></td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<h3>Source Selection ({{ user.artselection.sources.all.count }})</h3>
<table class="table">
<thead>
<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">Notes</th>
<th class="th-sm">Follow up</th>
<th class="th-sm">Category</th>
<th class="th-sm">Type</th>
<th class="th-sm">Paper Notes</th>
<th class="th-sm">Papers</th>
<th class="th-sm">Files</th>
<th class="th-sm"></th>
</tr>
</thead>
<tbody>
{% for src in user.artselection.sources.all %}
<tr>
<td>{{ forloop.counter }}</td>
<td><a href="{{ src.get_absolute_url }}">{{ src.name }}</a></td>
<td>{{ src.survey }}</td>
<td>{% if src.cname %}{{ src.cname }}{% endif %}</td>
<td>{% if src.notes %}<span title="{{ src.notes }}">{{ src.notes|truncatechars:20 }}</span>{% endif %}</td>
<td>{% if src.follow_up %}<span title="{{ src.follow_up }}">{{ src.follow_up|truncatechars:20 }}</span>{% endif %}</td>
<td>{% if src.category %}{{ src.category }}{% endif %}</td>
<td>{{ src.get_otype }}</td>
<td>{% if src.notes_paper %}<span title="{{ src.notes_paper }}">{{ src.notes_paper|truncatechars:20 }}</span>{% endif %}</td>
<td>
{% for paper in src.catalog.all %}
{{ paper }},
{% endfor %}
</td>
<td>
{% for upload in src.uploads.all %}
<a title="{{ upload }}" href="{{ upload.get_download_url }}"><big><span class="glyphicon glyphicon-save-file"></span></big></a>
{% endfor %}
</td>
<td>
<a class="btn btn-danger btn-xs" role="button" href="{{ src.get_remove_from_selection_profile_url }}">Remove</a>
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
{% endif %}
<div class="row">
<div class="col-sm-12">
<h3>History</h3>
<pre>{{ user.artsurveyparams.history|safe }}</pre>
</div>
</div>
</div>
{% endblock %}

View File

@@ -0,0 +1,109 @@
{% extends "mdb.html" %}
{% load i18n %}
{% block header %}
<div class="container">
<div class="row">
<div class="col-sm-12">
<p>
<a href="{% url 'artsurvey index' %}">Back to SRG.ArXiv</a>
<h3>Retrieve an ICRS object by using an online name resolving service to retrieve coordinates for the specified name using <a href="https://docs.astropy.org/en/stable/api/astropy.coordinates.get_icrs_coordinates.html#">get_icrs_coordinates</a>. By default, this will search all available databases until a match is found.</h3>
</p>
<p>HEALPix elements (nside=2048) are selected within <strong>maxdist</strong> parameter via healpix <a target="_blank" href="https://astropy-healpix.readthedocs.io/en/latest/cone_search.html">cone search <span class="glyphicon glyphicon-new-window"></span></a>. Then, all matches are selected within <strong>Rmax</strong> parameter.</p>
</div>
</div>
{% endblock %}
{% block content %}
<div class="container">
<div class="row">
<div class="col-sm-4">
<p>
<form enctype="multipart/form-data" action="" method="post">{% csrf_token %}
<div class="form-group">
<form action="/srgz/search" method="post">
{% csrf_token %}
<table class="table">
{{ form }}
</table>
<input type="submit" class="btn btn-primary" value="Search" />
</form>
</div>
</p>
{% if notresolved %}
<div class="card">
<div class="card-body">
<h5 class="card-title">Not resolved</h5>
<p class="card-text">Failed to find <b>{{ form.name.value }}</b> in all available databases.</p>
</div>
</div>
{% endif %}
</div>
<div class="col-sm-8">
{% if ra %}
<p>
Requested coordinates: RA={{ ra|floatformat:4 }} Dec={{ dec|floatformat:4 }}
{% if skymap %}
are found in Plate {{ skymap }}
{% endif %}
</p>
{% endif %}
<h3>ART-XC sources</h3>
<table class="table" style="padding: 1px;">
<thead>
<th>Source</th>
<th>CName</th>
<th>Flux</th>
<th>Separation</th>
<th>Type</th>
<th>Notes</th>
</thead>
<tbody>
{% for src in srcs %}
<tr>
<td><a href="{{ src.get_absolute_url }}"><b>{{ src }}</b></a></td>
<td><b>{{ src.cname }}</b></td>
<td>{{ src.flux|stringformat:"1.2e" }}</td>
<td>{{ src.separation|floatformat:2 }}</td>
<td>
{{ src.get_otype }}
</td>
<td>
{% for paper in src.catalog.all %}
{{ paper }},
{% endfor %}
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
{% endblock %}

View File

@@ -0,0 +1,88 @@
{% extends "mdb.html" %}
{% load i18n %}
{% block header %}
<div class="container">
<div class="row">
<div class="col-sm-12">
<p>
<a href="{% url 'artsurvey index' %}">Back to SRG.ArXiv</a>
<h3>Search by name</h3>
<p>Limited by 100 records</p>
</p>
</div>
</div>
{% endblock %}
{% block content %}
<div class="container">
<div class="row">
<div class="col-sm-4">
<p>
<form enctype="multipart/form-data" action="" method="post">{% csrf_token %}
<div class="form-group">
<form action="/srgz/search" method="post">
{% csrf_token %}
<table class="table">
{{ form }}
</table>
<input type="submit" class="btn btn-primary" value="Search" />
</form>
</div>
</p>
</div>
<div class="col-sm-8">
<h3>ART-XC sources</h3>
<table class="table" style="padding: 1px;">
<thead>
<th></th>
<th>Source</th>
<th>CName</th>
<th>Flux</th>
<th>Type</th>
<th>Notes</th>
</thead>
<tbody>
{% for src in srcs %}
<tr>
<td>{{ forloop.counter }}</td>
<td><a href="{{ src.get_absolute_url }}"><b>{{ src }}</b></a></td>
<td><b>{{ src.cname }}</b></td>
<td>{{ src.flux|stringformat:"1.2e" }}</td>
<td>
{{ src.get_otype }}
</td>
<td>
{% for paper in src.catalog.all %}
{{ paper }},
{% endfor %}
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
{% endblock %}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,61 @@
{% extends "artsurvey/base.html" %}
{% load artsurvey_templates %}
{% block header %}
{% endblock %}
{% block content %}
{% if surveys %}
<div class="container">
<div class="row">
<div class="col-sm-12">
<div class="card">
<div class="card-body">
<table id="ArtSurveySummaryTable" class="table" cellspacing="0" width="100%">
<thead>
<tr>
<th class="th-sm"></th>
<th class="th-sm">Survey</th>
{% for b in bands %}
<th class="th-sm">{{ b }}</th>
{% endfor %}
</tr>
<tr>
<th class="th-sm"></th>
<th class="th-sm"></th>
{% for b in bands %}
<th class="th-sm">(>5&sigma;)</th>
{% endfor %}
</tr>
</thead>
<tbody>
{% for s in surveys %}
<tr>
<td>{{ forloop.counter }}</td>
<td>{{ s }}
{% if s.notes %}<span title="{{ s.notes }}"><span class="glyphicon glyphicon-comment" style="color:red;"></span></span>{% endif %}
</td>
{% for b in bands %}
<td>{{ s|get_total:b}} ({{ s|get_total_5sigma:b}})</td>
{% endfor %}
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
{% endif %}
{% endblock %}

View File

@@ -0,0 +1,169 @@
{% 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 %}

View File

@@ -0,0 +1,77 @@
{% extends "artsurvey/base.html" %}
{% load heasarc_templates %}
{% load simbadescape %}
{% load i18n %}
{% block header %}
<div class="container">
<div class="row">
<div class="col-sm-12">
</div>
</div>
</div>
{% endblock %}
{% block content %}
<div class="container">
<h3>Источники, переданные турецким коллегам. Отсортировано по RA.</h3>
{% if srcs %}
<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">RA</th>
<th class="th-sm">Dec</th>
<th class="th-sm">Sources</th>
</tr>
</thead>
<tbody>
{% for src in srcs %}
<tr>
<td>{{ forloop.counter }}</td>
<td>
<a href="{{ src.get_absolute_url }}"><b>{{ src.name }}</b></a>
<a style="color:red;" title="MetaSource" href="{{ src.get_absolute_url }}">M{{ src.artsurveysource_set.all.count }}</a>
{% if src.comments.count %}<span title="{% for comment in src.get_comments %}{{ comment }} | {% endfor %}"><span class="glyphicon glyphicon-comment" style="color:red;"></span>{% endif %}
</td>
<td>{{ src.ra|floatformat:4 }}</td>
<td>{{ src.dec|floatformat:4 }}</td>
<td>
{% for s in src.artsurveysource_set.all %}
{% if s.turkish %}<span style="color:red;"><b>T</b></span>{% else %}&nbsp;{% endif %} <a href="{{ s.get_absolute_url }}">{{ s.name }}</a> {{ s.survey }} {{ s.band.slug }} {% if s.turkish_date %}<b>{{ s.turkish_date|date:"d.m.Y" }}</b>{% endif %}<br>
{% endfor %}
</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endif %}
</div>
{% endblock %}

View File

@@ -0,0 +1,49 @@
{% extends "artsurvey/base.html" %}
{% load heasarc_templates %}
{% block header %}{% endblock %}
{% block content %}
<div class="container">
<div class="row">
<div class="col-sm-6">
<div class="card">
<div class="card-body">
<h2>ArtSurvey {{ survey }}</h2>
<table class="table">
{% for type in types %}
<tr>
<td>{{ type.class_id }}</td>
<td><a href="/artsurvey/type/{{ type.class_id }}/show">{{ type }}</a></td>
<td>
{% if survey %}
{% call_artsurvey_types_count type survey %}
{% else %}
{{ type.get_artsurvey_count_all }}
{% endif %}
</td>
</tr>
{% endfor %}
</table>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="card">
<div class="card-body">
<h3>Full list of HEASARC object <a target="_blank" href="{% url 'heasarc object types' %}">Types<sup><span class="glyphicon glyphicon-new-window"></span> </sup></a></h3>
</div>
</div>
</div>
</div>
</div>
{% endblock %}

View File

@@ -0,0 +1,42 @@
{% extends "mdb.html" %}
{% load i18n %}
{% block header %}
<div class="container">
<div class="row">
<div class="col-sm-12">
<p>
<h3><a href="{{ src.get_absolute_url }}">{{ src }}</a></h3>
<strong>Type:</strong> {{ src.object_class }},
<strong>CName:</strong> {{ src.cname }}
</p>
</div>
</div>
{% endblock %}
{% block content %}
<div class="container">
<div class="row">
<div class="col-sm-12">
<p>
<form enctype="multipart/form-data" action="" method="post">{% csrf_token %}
<div class="form-group">
<form action="" method="post">
{% csrf_token %}
<table>
{{ form }}
</table>
<input type="submit" class="btn btn-primary" value="Submit" />
</form>
</div>
</p>
</div>
</div>
</div>
</div>
{% endblock %}

View File

@@ -0,0 +1,30 @@
{% extends "artsurvey/base.html" %}
{% load i18n %}
{% block header %}{% endblock %}
{% block content %}
<div class="container">
<div class="row">
<div class="col-sm-12">
<h4>{% trans 'Attach file to' %}: <a href="{{ source.get_absolute_url }}">{{ source }}</a></h4>
<form enctype="multipart/form-data" action="" method="post">{% csrf_token %}
<div class="form-group">
<form action="" method="post">
{% csrf_token %}
<h5>
<table>
{{ form }}
</table>
</h5>
<input type="submit" class="btn btn-primary" value="{% trans 'Upload' %}" />
</form>
</div>
</div>
</div>
</div>
{% endblock %}

View File

@@ -0,0 +1,40 @@
{% extends "mdb.html" %}
{% load i18n %}
{% block header %}
<div class="container">
<div class="row">
<div class="col-sm-12">
<p>
<h3><a href="{{ src.get_absolute_url }}">{{ src }}</a></h3>
</p>
</div>
</div>
{% endblock %}
{% block content %}
<div class="container">
<div class="row">
<div class="col-sm-12">
<p>
<form enctype="multipart/form-data" action="" method="post">{% csrf_token %}
<div class="form-group">
<form action="/srgz/search" method="post">
{% csrf_token %}
<table class="table">
{{ form }}
</table>
<input type="submit" class="btn btn-primary" value="Submit" />
</form>
</div>
</p>
</div>
</div>
</div>
</div>
{% endblock %}

View File

@@ -0,0 +1,32 @@
{% extends "mdb.html" %}
{% load i18n %}
{% block header %}
<div class="container">
<div class="row">
<div class="col-sm-12">
<p>
<h3><a href="{{ src.get_absolute_url }}">{{ src }}</a></h3>
<strong>Type:</strong> {{ src.object_class }},
<strong>CName:</strong> {{ src.cname }}
</p>
</div>
</div>
{% endblock %}
{% block content %}
<div class="container">
<div class="row">
<div class="col-sm-12">
<p>
</p>
</div>
</div>
</div>
</div>
{% endblock %}