Templates added
This commit is contained in:
527
Templates/erotrans/index.html
Normal file
527
Templates/erotrans/index.html
Normal file
@@ -0,0 +1,527 @@
|
||||
{% extends "base.html" %}
|
||||
{% load heasarc_templates %}
|
||||
{% load simbadescape %}
|
||||
|
||||
{% block header %}
|
||||
<a class="btn btn-success" role="button" href="/erotrans">Daily source lists</a>
|
||||
<a class="btn btn-success" role="button" href="{% url 'show all transeints' %}">All transients</a>
|
||||
<a class="btn btn-success" role="button" href="{% url 'show bright transients' %}">bright transients with counterparts</a>
|
||||
<a class="btn btn-success" role="button" href="{% url 'show faded transients' %}">X-ray sources faded in erosita</a>
|
||||
<a class="btn btn-success" role="button" href="{% url 'show rosat non-detection transients' %}">Bright sources not detected in Rosat</a>
|
||||
<a class="btn btn-success" role="button" href="{% url 'erotrans alerce' %}">ZTF alerts</a>
|
||||
|
||||
{% endblock %}
|
||||
{% block precontent %}{% endblock %}
|
||||
{% block content %}
|
||||
|
||||
{% if cat %}
|
||||
<h3>Source list <a href="{{ cat.get_absolute_url }}">{{ cat.obsid }}</a> ({{ cat.nrows }} rows) </h3>
|
||||
<p><strong>Dates:</strong> {{ cat.start|date:"d M Y H:i" }} - {{ cat.stop|date:"d M Y H:i" }},
|
||||
<strong>MJD:</strong> {{ cat.mjd_start|floatformat:4 }} - {{ cat.mjd_stop|floatformat:4 }},
|
||||
<strong>eRoDays:</strong> {{ cat.eroday_start }} - {{ cat.eroday_stop }},
|
||||
<strong>Created</strong> {{ cat.created|date:"d.m.y H:i" }}</p>
|
||||
<h4><a href="{{ cat.get_absolute_url_match }}">Matched only ({{ match_count }})</a> |
|
||||
<a href="{{ cat.get_absolute_url_nomatch }}">Not matched ({{ nomatch_count }})</a> |
|
||||
<a href="{{ cat.get_absolute_url_transients }}">Transients ({{ trans_count }})</a>
|
||||
{% if gaia_match_count %}| <a href="{{ cat.get_absolute_url_gaia }}">Gaia ({{ gaia_match_count }})</a>{% endif %}
|
||||
</h4>
|
||||
|
||||
{% if srcs %}
|
||||
|
||||
<!--table class="table"-->
|
||||
<table id="dterotrans" class="table table-striped table-bordered table-sm" cellspacing="0" width="100%">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="th-sm">Source name</th>
|
||||
<th class="th-sm">N/Match</th>
|
||||
<th class="th-sm">RA</th>
|
||||
<th class="th-sm">Dec</th>
|
||||
<th class="th-sm">DET_LIKE_0</th>
|
||||
<th class="th-sm">ML_FLUX_0</th>
|
||||
<th class="th-sm">Rate</th>
|
||||
<th class="th-sm">Flux</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for src in srcs %}
|
||||
<tr>
|
||||
<td>
|
||||
|
||||
<a href="{{ src.get_absolute_url }}"><b>{{ src.name }}</b></a> {% if src.rosat_transient %}(ROSAT){% endif %}
|
||||
</td>
|
||||
<td>{{ src.heasarc.all.count }}</b></td>
|
||||
<td>{{ src.ra|floatformat:3 }}</td>
|
||||
<td>{{ src.dec|floatformat:2 }}</td>
|
||||
<td>{{ src.DET_LIKE_0|floatformat:2 }}</td>
|
||||
<td>{{ src.ML_FLUX_0|floatformat:2 }}</td>
|
||||
<td>{{ src.rate|floatformat:4 }}</td>
|
||||
<td>{{ src.flux|stringformat:"1.2e" }} </td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<!--tr>
|
||||
<th>Source name</th>
|
||||
<th>N/Match</th>
|
||||
<th>RA</th>
|
||||
<th>Dec</th>
|
||||
<th>Healpix</th>
|
||||
<th>S/N</th>
|
||||
<th>Rate</th>
|
||||
<th>Flux</th>
|
||||
</tr-->
|
||||
</tfoot>
|
||||
</table>
|
||||
{% endif %}
|
||||
|
||||
{% endif %}
|
||||
|
||||
{% if src %}
|
||||
<h4><span class="glyphicon glyphicon-arrow-right"></span> <a href="{{ src.get_absolute_url }}"><b>{{ src.name }} ({{ src.heasarc.all.count }} matches)</b></a> from <a href="{{ src.catalog.get_absolute_url }}">{{ src.catalog.obsid }}</a></h4>
|
||||
<p><strong>RA & DEC:</strong> {{ src.ra|floatformat:4 }} {{ src.dec|floatformat:4 }} </br>
|
||||
<strong>L & B:</strong> {{ src.lii|floatformat:4 }} {{ src.bii|floatformat:4 }} </br>
|
||||
<strong>Ext, Ext Like:</strong> {{src.EXT|floatformat:-2}};{{src.EXT_LIKE|floatformat:-2}}</br>
|
||||
<strong>Dates:</strong> {{ src.catalog.start|date:"d M Y H:i" }} - {{ src.catalog.stop|date:"d M Y H:i" }},
|
||||
<strong>MJD:</strong> {{ src.catalog.mjd_start|floatformat:4 }} - {{ src.catalog.mjd_stop|floatformat:4 }},
|
||||
<strong>eRoDays:</strong> {{ src.catalog.eroday_start }} - {{ src.catalog.eroday_stop }},
|
||||
<strong>Created</strong> {{ src.created|date:"d.m.y H:i" }},
|
||||
<strong>Modified</strong> {{ src.created|date:"d.m.y H:i" }} </br>
|
||||
<strong><a href=http://simbad.u-strasbg.fr/simbad/sim-coo?Coord={{src.ra}}{{src.dec|stringformat:"+.3f"}}&CooFrame=FK5&CooEpoch=2000&CooEqui=2000&CooDefinedFrames=none&Radius=20&Radius.unit=arcsec&submit=submit+query&CoordList=>simbad ref</a></strong></br>
|
||||
<strong><a href=https://ned.ipac.caltech.edu/conesearch?search_type=Near%20Position%20Search&coordinates={{src.ra}}d{{src.dec|stringformat:"+.3f"|escape}}d&radius=0.2&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 ref</a></strong>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<strong>DET_LIKE_0:</strong> {{ src.DET_LIKE_0|floatformat:2 }},
|
||||
<strong>ML_FLUX_0:</strong> {{ src.ML_FLUX_0|floatformat:2 }},
|
||||
<strong>flux:</strong> {{ src.flux|stringformat:"1.2e" }} erg/sec/cm^2
|
||||
</p>
|
||||
|
||||
{% if heasarcs %}
|
||||
<h4>XMMSSC (3XMM DR8 Version) CSC (Chandra Source Catalog, v2.0) RASS2RXS, AllWISEAGN</h4>
|
||||
<table id="dtheasarc" class="table table-striped table-bordered table-sm" cellspacing="0" width="100%">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="th-sm">Table</th>
|
||||
<th class="th-sm">Name</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">Healpix</th-->
|
||||
<th class="th-sm">Error (arcsec)</th>
|
||||
<th class="th-sm">Offset (arcsec)</th>
|
||||
<th class="th-sm">flux, erg/sec/cm^2</th>
|
||||
<th class="th-sm">Notes</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for hsrc in heasarcs %}
|
||||
{% if hsrc.description != 'HeasarcXrayMaster' and hsrc.description != 'HeasarcCHANMASTER' %}
|
||||
<tr>
|
||||
<td>{{ hsrc.description|remove_heasarc }}</td>
|
||||
<td>
|
||||
<a href="{{ hsrc.get_absolute_url }}">{{ hsrc.name }}</a>
|
||||
</td>
|
||||
<td>{{ hsrc.ra|floatformat:3 }}</td>
|
||||
<td>{{ hsrc.dec|floatformat:3 }}</td>
|
||||
<td>{{ hsrc.lii|floatformat:3 }}</td>
|
||||
<td>{{ hsrc.bii|floatformat:3 }}</td>
|
||||
<!--td>{{ hsrc.healpix }}</td-->
|
||||
<td>{% if hsrc.error_radius > 0 %}{{ hsrc.error_radius|floatformat:2 }}{% endif %}</td>
|
||||
<td>{{ hsrc.separation|floatformat:3 }}</td>
|
||||
<td>{{ hsrc.erosita_flux|stringformat:"1.3e" }} </td>
|
||||
<td>
|
||||
{% if hsrc.description == 'HeasarcCSC' %}
|
||||
{% if hsrc.extent_flag == 'T' %}extended{% endif %}
|
||||
{% endif %}
|
||||
</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
<tfoot></foot>
|
||||
</table>
|
||||
{% endif %}
|
||||
|
||||
{% if gaia %}
|
||||
<h4>GAIA</h4>
|
||||
<table id="dthgaia" class="table table-striped table-bordered table-sm" cellspacing="0" width="100%">
|
||||
<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 (arcsec)</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">magnitude</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for gaiasrc in gaia %}
|
||||
<tr>
|
||||
<td><a href="{{ gaiasrc.get_absolute_url }}">{{ gaiasrc.name }}</a></td>
|
||||
<td>{{ gaiasrc.ra|stringformat:".3e"}} </td>
|
||||
<td>{{ gaiasrc.dec|stringformat:".3e"}} </td>
|
||||
<td>{{ gaiasrc.separation|floatformat:3 }}</td>
|
||||
<td>{{ gaiasrc.parallax|stringformat:".3e" }}</td>
|
||||
<td>{{ gaiasrc.parallax_error|stringformat:".3e" }}</td>
|
||||
<td>{{ gaiasrc.pmra|stringformat:".3e" }}</td>
|
||||
<td>{{ gaiasrc.pmra_error|stringformat:".3e" }}</td>
|
||||
<td>{{ gaiasrc.pmdec|stringformat:".3e" }}</td>
|
||||
<td>{{ gaiasrc.pmdec_error|stringformat:".3e" }}</td>
|
||||
<td>{{ gaiasrc.phot_g_mean_mag|stringformat:".1f" }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
<tfoot>
|
||||
</foot>
|
||||
</table>
|
||||
{% endif %}
|
||||
|
||||
{% if sdss %}
|
||||
<h4>SDSS</h4>
|
||||
<table id="dthgaia" class="table table-striped table-bordered table-sm" cellspacing="0" width="100%">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="th-sm">specobjid</th>
|
||||
<th class="th-sm">ra</th>
|
||||
<th class="th-sm">dec</th>
|
||||
<th class="th-sm">Offset (arcsec)</th>
|
||||
<th class="th-sm">Z</th>
|
||||
<th class="th-sm">Zerr</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for sdsssrc in sdss %}
|
||||
<tr>
|
||||
<td><a href="{{ sdsssrc.get_absolute_url }}">{{ sdsssrc.specobjid }}</a></td>
|
||||
<td>{{ sdsssrc.ra|floatformat:-3}} </td>
|
||||
<td>{{ sdsssrc.dec|floatformat:-3}} </td>
|
||||
<td>{{ sdsssrc.separation|floatformat:3 }}</td>
|
||||
<td>{{ sdsssrc.z|stringformat:".3e" }}</td>
|
||||
<td>{{ sdsssrc.z_err|stringformat:".3e" }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
<tfoot>
|
||||
</foot>
|
||||
</table>
|
||||
{% endif %}
|
||||
|
||||
{% if simbad %}
|
||||
<h4>Simbad</h4>
|
||||
<table id="dthgaia" class="table table-striped table-bordered table-sm" cellspacing="0" width="100%">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="th-sm">major-id</th>
|
||||
<th class="th-sm">ra</th>
|
||||
<th class="th-sm">dec</th>
|
||||
<th class="th-sm">Offset (arcsec)</th>
|
||||
<th class="th-sm">class</th>
|
||||
<th class="th-sm">Z</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for simsrc in simbad %}
|
||||
<tr>
|
||||
<td><a href="http://simbad.u-strasbg.fr/simbad/sim-id?Ident={{ simsrc.main_id|simbad_escape }}&NbIdent=1&Radius=2&Radius.unit=arcmin&submit=submit+id">{{ simsrc.main_id }}</a></td>
|
||||
<td>{{ simsrc.ra|floatformat:-3}} </td>
|
||||
<td>{{ simsrc.dec|floatformat:-3}} </td>
|
||||
<td>{{ simsrc.separation|floatformat:3 }}</td>
|
||||
<td>{{ simsrc.obj_class }}</td>
|
||||
<td>{{ simsrc.z|stringformat:".3e" }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
<tfoot>
|
||||
</foot>
|
||||
</table>
|
||||
{% endif %}
|
||||
|
||||
|
||||
{% if flesch %}
|
||||
<h4>Flesch 2019</h4>
|
||||
<table id="dthgaia" class="table table-striped table-bordered table-sm" cellspacing="0" width="100%">
|
||||
<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 (arcsec)</th>
|
||||
<th class="th-sm">Z</th>
|
||||
<th class="th-sm">Zerr</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for fleschsrc in flesch %}
|
||||
<tr>
|
||||
<td><a href="{{ fleschsrc.get_absolute_url }}">{{ fleschsrc.name }}</a></td>
|
||||
<td>{{ fleschsrc.ra|floatformat:-3}} </td>
|
||||
<td>{{ fleschsrc.dec|floatformat:-3}} </td>
|
||||
<td>{{ fleschsrc.separation|floatformat:3 }}</td>
|
||||
<td>{{ fleschsrc.z|stringformat:".3e" }}</td>
|
||||
<td>{{ fleschsrc.z_err|stringformat:".3e" }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
<tfoot>
|
||||
</foot>
|
||||
</table>
|
||||
{% endif %}
|
||||
|
||||
|
||||
{% if heasarc_xray %}
|
||||
<h4>HEASARC X-ray Master</h4>
|
||||
<table id="dtheasarcxraymaster" class="table table-striped table-bordered table-sm" cellspacing="0" width="100%">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="th-sm">Mission</th>
|
||||
<th class="th-sm">Name</th>
|
||||
<th class="th-sm">Offset (arcsec)</th>
|
||||
<th class="th-sm">Type</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for hsrc in heasarc_xray %}
|
||||
<tr>
|
||||
<td>{{ hsrc.observatory }} ({{ hsrc.database_table }})</td>
|
||||
<td>
|
||||
<a href="{{ hsrc.get_absolute_url }}">{{ hsrc.name }}</a>
|
||||
</td>
|
||||
<td>{{ hsrc.separation|floatformat:3 }}</td>
|
||||
<td>
|
||||
{% if hsrc.class_id != 9999 %}
|
||||
{{ hsrc.object_class.class_name }}
|
||||
{% endif %}
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<!--tr>
|
||||
<th>Mission</th>
|
||||
<th>Name</th>
|
||||
<th>Offset (arcsec)</th>
|
||||
<th>Type</th>
|
||||
</tr-->
|
||||
</foot>
|
||||
</table>
|
||||
{% endif %}
|
||||
|
||||
{% if heasarc_chanmaster %}
|
||||
<h4>HEASARC Chandra Master</h4>
|
||||
<table id="dtheasarcchandramaster" class="table table-striped table-bordered table-sm" cellspacing="0" width="100%">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="th-sm">ObsID</th>
|
||||
<th class="th-sm">Name</th>
|
||||
<th class="th-sm">Offset (arcsec)</th>
|
||||
<th class="th-sm">Exposure (sec)</th>
|
||||
<th class="th-sm">Notes</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for hsrc in heasarc_chanmaster %}
|
||||
<tr>
|
||||
<td>{{ hsrc.obsid }}</td>
|
||||
<td>
|
||||
<a href="{{ hsrc.get_absolute_url }}">{{ hsrc.name }}</a>
|
||||
</td>
|
||||
<td>{{ hsrc.separation|floatformat:3 }}</td>
|
||||
<td>{{ hsrc.exposure }}</td>
|
||||
<td>PI: {{ hsrc.pi }}, {{ hsrc.category }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<!--tr>
|
||||
<th>Mission</th>
|
||||
<th>Name</th>
|
||||
<th>Offset (arcsec)</th>
|
||||
<th>Exposure (sec)</th>
|
||||
<th>Notes</th>
|
||||
</tr-->
|
||||
</foot>
|
||||
</table>
|
||||
{% endif %}
|
||||
|
||||
<div id="aladin-lite-div" style="width:800px;height:800px;align=center"></div>
|
||||
<!--input id="allwise" type="radio" name="survey" value="P/allWISE/color"><label for="allwise">AllWISE<label-->
|
||||
<script type="text/javascript" src="//aladin.u-strasbg.fr/AladinLite/api/v2/latest/aladin.min.js" charset="utf-8"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
/* survey: "P/DSS2/color", */
|
||||
var aladin = A.aladin('#aladin-lite-div', {
|
||||
cooFrame: "J2000d",
|
||||
fov: 0.05,
|
||||
target: "{{src.ra|stringformat:'.6f'|safe}} {{src.dec|stringformat:'.6f'|safe}}",
|
||||
showShareControl: true,
|
||||
showCooGrid: true});
|
||||
aladin.setOverlayImageLayer(aladin.createImageSurvey("RASS", "RASS", "http://alasky.u-strasbg.fr/RASS", 'equatorial', 12, {imgFormat: 'jpg'}));
|
||||
|
||||
var srccat = A.catalog({name: 'erosita source cat', color: 'white', shape:"cross", sourceSize: 30, onClick: 'showPopup'});
|
||||
srccat.addSources(A.source({{src.ra|stringformat:"+.6f"|safe}}, {{src.dec|stringformat:"+.6f"|safe}}, {name: '<a href="{{ src.get_absolute_url }}">{{ src.name }}</a>' }));
|
||||
aladin.addCatalog(srccat);
|
||||
|
||||
|
||||
|
||||
var rasscat = A.catalog({shape: 'circle', name: 'Counterparts', color: 'white', sourceSize: 30, displayLabel: false,onClick: 'showPopup'});
|
||||
aladin.addCatalog(rasscat);
|
||||
var xmmcat = A.catalog({shape: 'circle', name: 'Counterparts', color: 'red', sourceSize: 30, displayLabel: false,onClick: 'showPopup'});
|
||||
aladin.addCatalog(xmmcat);
|
||||
var csccat = A.catalog({shape: 'circle', name: 'Counterparts', color: 'green', sourceSize: 30, displayLabel: false,onClick: 'showPopup'});
|
||||
aladin.addCatalog(csccat);
|
||||
var sxpscat = A.catalog({shape: 'circle', name: 'Counterparts', color: 'magenta', sourceSize: 30, displayLabel: false,onClick: 'showPopup'});
|
||||
aladin.addCatalog(sxpscat);
|
||||
{% for hsrc in heasarcs %}
|
||||
{% if hsrc.description == 'HeasarcRASS2RXS' %}
|
||||
rasscat.addSources(A.source({{ hsrc.ra|safe }}, {{ hsrc.dec|safe }}, {name: '<a href="{{ hsrc.get_absolute_url }}">{{ hsrc.name }}</a>', flux: '{{hsrc.erosita_flux|stringformat:"1.3e"}}' }));
|
||||
{% endif %}
|
||||
{% if hsrc.description == 'HeasarcXMMSSC' %}
|
||||
xmmcat.addSources(A.source({{ hsrc.ra|safe }}, {{ hsrc.dec|safe }}, {name: '<a href="{{ hsrc.get_absolute_url }}">{{ hsrc.name }}</a>', flux: '{{hsrc.erosita_flux|stringformat:"1.3e"}}' }));
|
||||
{% endif %}
|
||||
{% if hsrc.description == 'HeasarcCSC' %}
|
||||
csccat.addSources(A.source({{ hsrc.ra|safe }}, {{ hsrc.dec|safe }}, {name: '<a href="{{ hsrc.get_absolute_url }}">{{ hsrc.name }}</a>', flux: '{{hsrc.erosita_flux|stringformat:"1.3e"}}' }));
|
||||
{% endif %}
|
||||
{% if hsrc.description == 'Heasarc2SXPS' %}
|
||||
sxpscat.addSources(A.source({{ hsrc.ra|safe }}, {{ hsrc.dec|safe }}, {name: '<a href="{{ hsrc.get_absolute_url }}">{{ hsrc.name }}</a>', flux: '{{hsrc.erosita_flux|stringformat:"1.3e"}}' }));
|
||||
{% endif %}
|
||||
|
||||
{% endfor %}
|
||||
var erncat = A.catalog({shape: 'cross', name: 'Counterparts', color: 'red', sourceSize: 30, displayLabel: false,onClick: 'showPopup'});
|
||||
aladin.addCatalog(erncat);
|
||||
{% for esrc in erneighbours %}
|
||||
erncat.addSources(A.source({{ esrc.ra|safe }}, {{ esrc.dec|safe }}, {name: '<a href="{{ esrc.get_absolute_url }}">{{ esrc.name }}</a>', flux: '{{esrc.flux|stringformat:"1.3e"}}' }));
|
||||
{% endfor %}
|
||||
|
||||
|
||||
var gaiacat = A.catalog({shape: 'rhomb', name: 'Counterparts', color: 'white', sourceSize: 30, labelColumn:'name', onClick: 'showPopup'});
|
||||
aladin.addCatalog(gaiacat);
|
||||
{% for gsrc in gaia %}
|
||||
gaiacat.addSources(A.source({{ gsrc.ra|safe }}, {{ gsrc.dec|safe }}, {name: '<a href="{{ gserc.get_absolute_url }}"> {{ gsrc.name }}</a>'}));
|
||||
{% endfor %}
|
||||
/*
|
||||
var cat2 = A.catalog({shape: 'circle', name: 'Counterparts', color: 'red', sourceSize: 0.005, displayLabel: false,onClick: 'showPopup'});
|
||||
var cat3 = A.catalog({shape: 'circle', name: 'Counterparts', color: 'green', sourceSize: 0.005, displayLabel: false,onClick: 'showPopup'});
|
||||
var cat4 = A.catalog({shape: 'circle', name: 'Counterparts', color: 'blue', sourceSize: 0.005, displayLabel: false,onClick: 'showPopup'});
|
||||
|
||||
|
||||
aladin.addCatalog(A.catalogFromURL('http://193.232.10.38/static/aladin/bound_radec.csv.xml',
|
||||
{name: 'boundary', sourceSize:10, color: 'red', shape: 'cross' }));
|
||||
|
||||
var simbadhips = A.catalogHiPS('http://axel.u-strasbg.fr/HiPSCatService/Simbad', {color: "#2F4F4F", onClick: 'showPopup', name: 'Simbad'}, null, true);
|
||||
aladin.addCatalog(simbadhips);
|
||||
simbadhips.hide();
|
||||
*/
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
{% endif %}
|
||||
|
||||
|
||||
{% if alerce_match %}
|
||||
|
||||
<!--table class="table"-->
|
||||
<table id="dtalerce" class="table table-striped table-bordered table-sm" cellspacing="0" width="100%">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="th-sm">Source name</th>
|
||||
<th class="th-sm">Flux</th>
|
||||
<th class="th-sm">EroTrans Catalog</th>
|
||||
<th class="th-sm">ZTF alert</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for src in alerce_match %}
|
||||
<tr>
|
||||
<td>
|
||||
|
||||
<a href="{{ src.get_absolute_url }}"><b>{{ src.name }}</b></a> {% if src.rosat_transient %}(ROSAT){% endif %}
|
||||
</td>
|
||||
<td>{{ src.flux|stringformat:"1.1e" }} </td>
|
||||
<td><a href="{{ src.catalog.get_absolute_url }}">{{ src.catalog }}</a> {{ src.catalog.start|date:"d.m.y H:i" }} - {{ src.catalog.stop|date:"d.m.y H:i" }}</td>
|
||||
<td>
|
||||
{% if src.alerce.all %}
|
||||
{% for ztf in src.alerce.all %}
|
||||
<a href="{{ ztf.get_absolute_url }}">{{ ztf.oid }}</a> <strong>{{ ztf.get_early_class }}</strong> {{ ztf.firstdate|date:"d.m.y H:i" }} - {{ ztf.lastdate|date:"d.m.y H:i" }}<br>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
<tfoot>
|
||||
</tfoot>
|
||||
</table>
|
||||
{% endif %}
|
||||
|
||||
{% if srcs %}
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- insert this snippet where you want Aladin Lite viewer to appear and after the loading of jQuery -->
|
||||
<div id="aladin-lite-div" style="width:800px;height:800px;align=center"></div>
|
||||
<!--input id="allwise" type="radio" name="survey" value="P/allWISE/color"><label for="allwise">AllWISE<label-->
|
||||
<script type="text/javascript" src="//aladin.u-strasbg.fr/AladinLite/api/v2/latest/aladin.min.js" charset="utf-8"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
/* survey: "P/DSS2/color", */
|
||||
var aladin = A.aladin('#aladin-lite-div', {
|
||||
cooFrame: "GAL",
|
||||
survey: "P/DSS2/color",
|
||||
fov: 197, target: "0. 0.",
|
||||
showShareControl: true,
|
||||
showCooGrid: false});
|
||||
/*
|
||||
see http://aladin.u-strasbg.fr/hips/list for more
|
||||
*/
|
||||
aladin.createImageSurvey("DIRBE_4","DIRBE_4", "http://cade.irap.omp.eu/documents/Ancillary/4Aladin/DIRBE_4",'galactic',8, {imgFormat: 'jpg'});
|
||||
/* aladin.createImageSurvey("XMMrgb","XMMrgb", "http://skies.esac.esa.int/XMM-Newton/EPIC-RGB",'equatorial',8, {imgFormat: 'jpg'}) */
|
||||
aladin.getBaseImageLayer().getColorMap().update('rainbow');
|
||||
|
||||
aladin.createImageSurvey("RASS-soft", "RASS-soft", "http://cade.irap.omp.eu/documents/Ancillary/4Aladin/RASS_IM3", 'galactic', 12, {imgFormat: 'jpg'})
|
||||
aladin.setImageSurvey(aladin.createImageSurvey("RASS", "RASS", "http://alasky.u-strasbg.fr/RASS", 'equatorial', 12, {imgFormat: 'jpg'}));
|
||||
aladin.getBaseImageLayer().getColorMap().update('cubehelix');
|
||||
aladin.getBaseImageLayer().getColorMap().reverse('true');
|
||||
aladin.setImageSurvey(aladin.createImageSurvey("LAB-NH", "LAB-NH", "http://cade.irap.omp.eu/documents/Ancillary/4Aladin/LAB_NH", 'galactic', 12, {imgFormat: 'jpg'}));
|
||||
aladin.setOverlayImageLayer(aladin.createImageSurvey("Planck-HFI", "Planck-HFI", "http://alasky.u-strasbg.fr/PLANCK/R2/HFI_Color_353_545_857", 'galactic', 12, {imgFormat: 'jpg'}));
|
||||
aladin.getOverlayImageLayer().setAlpha(0.35);
|
||||
aladin.getOverlayImageLayer().getColorMap().reverse('true');
|
||||
|
||||
aladin.setImageSurvey("DIRBE_4");
|
||||
aladin.setOverlayImageLayer("");
|
||||
|
||||
aladin.addCatalog(A.catalogFromURL('http://193.232.10.38/static/aladin/pvlabs.vot',
|
||||
{name: 'Labels', sourceSize:5, color: 'red', shape: 'circle',
|
||||
raField: "col3", decField: "col4",
|
||||
displayLabel: true,labelColumn: "col8", labelColor: "red", labelFont: "12px sans-serif",
|
||||
onClick: 'showPopup'}));
|
||||
|
||||
var cat1 = A.catalog({shape: 'circle', name: 'EroTrans Sources', color: 'white', sourceSize: 10, displayLabel: false,onClick: 'showPopup'});
|
||||
|
||||
{% for src in srcs %}
|
||||
cat1.addSources(A.source({{ src.ra|safe }}, {{ src.dec|safe }}, {name: '<a href="{{ src.get_absolute_url }}">{{ src.name }}', RA: '{{ src.ra|floatformat:4 }}', Dec: '{{ src.dec|floatformat:4 }}', Healpix: '{{ src.healpix }}'}));
|
||||
{% endfor %}
|
||||
|
||||
aladin.addCatalog(cat1);
|
||||
|
||||
aladin.addCatalog(A.catalogFromURL('http://193.232.10.38/static/aladin/bound_radec.csv.xml',
|
||||
{name: 'boundary', sourceSize:10, color: 'red', shape: 'cross' }));
|
||||
|
||||
var simbadhips = A.catalogHiPS('http://axel.u-strasbg.fr/HiPSCatService/Simbad', {color: "#2F4F4F", onClick: 'showPopup', name: 'Simbad'}, null, true);
|
||||
aladin.addCatalog(simbadhips);
|
||||
simbadhips.hide();
|
||||
|
||||
</script>
|
||||
|
||||
{% endif %}
|
||||
|
||||
|
||||
{% endblock %}
|
Reference in New Issue
Block a user