diff --git a/Templates/403.html b/Templates/403.html new file mode 100644 index 0000000..4174899 --- /dev/null +++ b/Templates/403.html @@ -0,0 +1,75 @@ +{% load monthplan_templates %} +{% load static %} +{% load i18n %} + + + + srg.arxiv.local + + + + + + + + + + + + +
+ +
+
+

{% trans 'Spectrum-Roentgen-Gamma' %}

+

{% trans 'Astrophysical Project' %}

+
+ +
+

+ РУС | ENG +

+
+
+ +
+
+ +
+
+ +
+
+
+

Permission denied (403)

+ {% if exception %} +

{{ exception|safe }}

+ {% else %} +

No comments

+ {% endif %} +
+
+
+
+ + + + + + + diff --git a/Templates/404.html b/Templates/404.html new file mode 100644 index 0000000..bbe15e3 --- /dev/null +++ b/Templates/404.html @@ -0,0 +1,71 @@ +{% load monthplan_templates %} +{% load static %} +{% load i18n %} + + + + srg.arxiv.local + + + + + + + + + + + + +
+ +
+
+

{% trans 'Spectrum-Roentgen-Gamma' %}

+

{% trans 'Astrophysical Project' %}

+
+ +
+

+ РУС | ENG +

+
+
+ +
+
+ +
+
+ +
+
+
+

Page not found (404)

+
+
+
+
+ + + + + + + diff --git a/Templates/artsim/index.html b/Templates/artsim/index.html new file mode 100644 index 0000000..33ea911 --- /dev/null +++ b/Templates/artsim/index.html @@ -0,0 +1,98 @@ + +{% extends "base.html" %} + +{% block header %} + +

Loaded ART-XC simulations:

+ + +{% endblock %} + +{% block content %} + + {% if sim %} +

{{ sim.filename }}, Month {{ sim.month }}, T{{ sim.telescope }}

+ {% endif %} + + {% if sim %} + +
+ + + + + + {% endif %} + + +{% endblock %} diff --git a/Templates/artsurvey/base.html b/Templates/artsurvey/base.html new file mode 100644 index 0000000..0b0b74c --- /dev/null +++ b/Templates/artsurvey/base.html @@ -0,0 +1,354 @@ +{% load artsurvey_templates %} +{% load heasarc_templates %} +{% load srgcat_templates %} +{% load i18n %} +{% load static %} + + + + + {% block title %}SRG ArXiv{% endblock %} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +{% block header %}{% endblock %} + +{% block content %}{% endblock %} + + +
+
+
+ +

Code for reading CSV catalog:

+
+import csv
+with open(filename, 'r' ) as theFile:
+    reader = csv.DictReader(theFile)
+    for line in reader:
+        print(line['NAME'])
+
+
+ + + + diff --git a/Templates/artsurvey/basket.html b/Templates/artsurvey/basket.html new file mode 100644 index 0000000..e1d6cea --- /dev/null +++ b/Templates/artsurvey/basket.html @@ -0,0 +1,118 @@ +{% extends "artsurvey/base.html" %} +{% load artsurvey_templates %} + + +{% block header %}{% endblock %} + +{% block content %} + +
+ +{% if form %} +

Create or update ArtSelection {% if basket %}-- {{ basket }}{% endif %}

+
+
+ +
{% csrf_token %} +
+ + {% csrf_token %} +
+ + {{ form }} +
+
+ + + +
+ +
+
+{% endif %} + +{% if basket %} +
+
+

+

ArtSelection {{ basket.title }} + {% if user.is_authenticated %} + [ edit | delete ] + {% endif %} +

+ + +

{{ basket.notes }}

+ + + + + + +

+ + + + + + + + + + + + + + + + + + + + {% for src in basket.sources.all %} + + + + + + + + + + + + + + + + {% endfor %} + +
NameSurveyCNameNotesFollow upCategoryTypePaper NotesPapersFiles
{{ forloop.counter }}{{ src.name }}{{ src.survey }}{% if src.cname %}{{ src.cname }}{% endif %}{% if src.notes %}{{ src.notes|truncatechars:20 }}{% endif %}{% if src.follow_up %}{{ src.follow_up|truncatechars:20 }}{% endif %}{% if src.category %}{{ src.category }}{% endif %}{{ src.get_otype }}{% if src.notes_paper %}{{ src.notes_paper|truncatechars:20 }}{% endif %} + {% for paper in src.catalog.all %} + {{ paper }}, + {% endfor %} + + {% for upload in src.uploads.all %} + + + {% endfor %} + + Remove +
+ +

+ + + +

+
+{% endif %} + + + + + + +
+ +{% endblock %} diff --git a/Templates/artsurvey/catalog.html b/Templates/artsurvey/catalog.html new file mode 100644 index 0000000..499fadb --- /dev/null +++ b/Templates/artsurvey/catalog.html @@ -0,0 +1,128 @@ +{% extends "artsurvey/base.html" %} +{% load heasarc_templates %} +{% load artsurvey_templates %} +{% load simbadescape %} +{% load i18n %} + +{% block header %} +
+
+
+{% if ntotal %}

Total {{ ntotal }}

{% endif %} +
+
+
+
+
+{% endblock %} + + + +{% block content %} +
+ + + {% if srcs %} + + + + + + + + + + + {% for b in bands %} + + {% endfor %} + + + + + + + + + + {% for src in srcs %} + + + + + + + + + {% for b in bands %} + + {% endfor %} + + + + + + + + + + + + + {% endfor %} + + + + + + +
MetaSourceRADecR{{ b.slug }}CategoryCNameOther NamesPapersNotes
{{ forloop.counter }}{{ src.name }}{{ src.ra|floatformat:4 }}{{ src.dec|floatformat:4 }}{{ src.radec_error|floatformat:1 }} + {% for s in src|get_metasource_for_band:b %} + {{ s.survey }}
+ {% endfor %} +
+ {% for s in src.artsurveysource_set.all %}{% if s.catalog.exists %}{% if s.category %}{{ s.category }} ({{ s.object_class }}) |{% endif %}{% endif %}{% endfor %} + + {% for s in src.artsurveysource_set.all %}{% if s.catalog.exists %}{{ s.cname }}{% endif %}{% endfor %} + + {% for s in src.artsurveysource_set.all %} + {% if s.catalog.exists %} + {% for o in s.othername_set.all %} + {{ o }}
+ {% endfor %} + {% endif %} + {% endfor %} +
+ {% for s in src.artsurveysource_set.all %} + {% if s.catalog.exists %} + {% for o in s.ads.all %} + {{ o }}
+ {% endfor %} + {% endif %} + {% endfor %} +
+ + + + {% for s in src.artsurveysource_set.all %} + {% if s.catalog.exists %} + {% if s.turkish %} + Turkish + {% endif %} + + {% if s.notes %} + {{ s.survey }} {{ s.band.slug }} + + {% endif %} + + {% if s.notes_paper %} + {% if not s.notes %}{{ s.survey }} {{ s.band.slug }}{% endif %} + {% endif %} + + {% endif %} + {% endfor %}
+ {% endif %} + + +
+{% endblock %} diff --git a/Templates/artsurvey/catalog_paper2.html b/Templates/artsurvey/catalog_paper2.html new file mode 100644 index 0000000..33932a8 --- /dev/null +++ b/Templates/artsurvey/catalog_paper2.html @@ -0,0 +1,119 @@ +{% extends "artsurvey/base.html" %} +{% load heasarc_templates %} +{% load artsurvey_templates %} +{% load simbadescape %} +{% load i18n %} + +{% block header %} +
+
+
+{% if ntotal %}

Total {{ ntotal }}

{% endif %} +
+
+
+
+
+{% endblock %} + + + +{% block content %} +
+ + + {% if srcs %} + + + + + + + + + + + + + + + + + + + + + + {% for src in srcs %} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {% endfor %} + + + + + + +
MetaSourceRADecR98CategoryCNameOther NamesADSTurkPaperNotes
{{ forloop.counter }}{{ src.name }}{{ src.ra|floatformat:4 }}{{ src.dec|floatformat:4 }}{{ src.ml_radec_err_98|floatformat:1 }} {{ src.radec_error|floatformat:1 }} + {% if src.category %} + {{ src.category }} + {% endif %} + + {% if src.cname %} + {{ src.cname }} + {% endif %} + + {% for o in src.othername_set.all %} + {{ o }}
+ {% endfor %} +
+ {% for o in src.ads.all %} + {{ o }}
+ {% endfor %} +
+ {% if src.turkish %} + Turkish + {% endif %} + + {% if src.notes_paper %} + + {% endif %} + + {% if src.notes %} + + {% endif %} +
+ {% endif %} + + +
+{% endblock %} diff --git a/Templates/artsurvey/category.html b/Templates/artsurvey/category.html new file mode 100644 index 0000000..1656916 --- /dev/null +++ b/Templates/artsurvey/category.html @@ -0,0 +1,42 @@ +{% extends "mdb.html" %} +{% load i18n %} + +{% block header %} +
+
+
+

+

{{ src }}

+ Type: {{ src.object_class }}, + CName: {{ src.cname }} +

+
+
+{% endblock %} + + +{% block content %} + +
+
+
+

+

{% csrf_token %} +
+ + {% csrf_token %} + + {{ form }} +
+ + +
+

+
+ +
+ +
+
+ +{% endblock %} diff --git a/Templates/artsurvey/cname.html b/Templates/artsurvey/cname.html new file mode 100644 index 0000000..1656916 --- /dev/null +++ b/Templates/artsurvey/cname.html @@ -0,0 +1,42 @@ +{% extends "mdb.html" %} +{% load i18n %} + +{% block header %} +
+
+
+

+

{{ src }}

+ Type: {{ src.object_class }}, + CName: {{ src.cname }} +

+
+
+{% endblock %} + + +{% block content %} + +
+
+
+

+

{% csrf_token %} +
+ + {% csrf_token %} + + {{ form }} +
+ + +
+

+
+ +
+ +
+
+ +{% endblock %} diff --git a/Templates/artsurvey/counterpart.html b/Templates/artsurvey/counterpart.html new file mode 100644 index 0000000..06187c5 --- /dev/null +++ b/Templates/artsurvey/counterpart.html @@ -0,0 +1,41 @@ +{% extends "mdb.html" %} +{% load i18n %} + +{% block header %} +
+
+
+

+

{{ src }}

+ Type: {{ src.object_class }} +

+
+
+{% endblock %} + + +{% block content %} + +
+
+
+

+

{% csrf_token %} +
+ + {% csrf_token %} + + {{ form }} +
+ + +
+

+
+ +
+ +
+
+ +{% endblock %} diff --git a/Templates/artsurvey/crossmatch.html b/Templates/artsurvey/crossmatch.html new file mode 100644 index 0000000..e15a18e --- /dev/null +++ b/Templates/artsurvey/crossmatch.html @@ -0,0 +1,195 @@ + +{% extends "artsurvey/base.html" %} + +{% block header %} +{% endblock %} + +{% block content %} + +
+
+
+
+
+ + +

Match filters

+ +

HEALPix elements are selected within maxdist parameter via healpix cone search . Then, all matches are selected within Rmax parameter.

+ +{% if message %} +
+{{ message }} +
+{% endif %} + +{% if form %} +
+ {% csrf_token %} + + {{ form }} +
+ +
+{% endif %} + +
+
+
+ +
+
+
+ +

1: {{ params.survey1 }} {{ params.band1 }} {% if nrows1 %}({{ nrows1 }}){% endif %}

+

2: {{ params.survey2 }} {{ params.band2 }} {% if nrows2 %}({{ nrows2 }}){% endif %}

+ +{% if nrows1 %} +
+

from 1 in 2

+

Matched: {{ match_count }} Missed: {{ missed_count1 }}

+

Confusion: 1:{{ match1_count }} 2:{{ match2_count }} 3:{{ match3_count }} 4:{{ match4_count }}

+ +
+

from 2 in 1

+

Matched: {{ match_count2 }} Missed: {{ missed_count2 }}

+

Confusion: 1:{{ match1_count2 }} 2:{{ match2_count2 }} 3:{{ match3_count2 }} 4:{{ match4_count2 }}

+ +{% endif %} + + +
+
+
+
+
+{% if match_list %} +
+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + {% for o in match_list %} + + + + + + + + + + + + + + + + + + + + + + + {% endfor %} + + + {% for o in missed_list1 %} + + + + + + + + + + + + + + + + + + + + + + + {% endfor %} + + + {% for o in missed_list2 %} + + + + + + + + + + + + + + + + + + + + + + + {% endfor %} + + + +
dirSrc1CNAMERADecDLLog NFFlux1Sign1Src2CNAMERADecDLLog NFFlux2Sign2F2/F1Sep ('')
Matched list (nrows={{ match_count }})
{{ o.dir }};{{ o.src1 }};{{ o.src1.cname }};{{ o.src1.ra|floatformat:6 }};{{ o.src1.dec|floatformat:6 }};{{ o.src1.detlike|floatformat:2 }};{{ o.src1.log_nfalse|floatformat:2 }};{{ o.src1.flux|stringformat:"1.2e" }};{{ o.src1.sig|floatformat:2 }};{{ o.src2 }};{{ o.src2.cname }};{{ o.src2.ra|floatformat:6 }};{{ o.src2.dec|floatformat:6 }};{{ o.src2.detlike|floatformat:2 }};{{ o.src2.log_nfalse|floatformat:2 }};{{ o.src2.flux|stringformat:"1.2e" }};{{ o.src2.sig|floatformat:2 }};{{ o.f1f2_ratio|floatformat:1 }};{{ o.sep|floatformat:1 }};
Missed 1 in 2 (nrows={{ missed_count1 }})
;{{ o.src1 }};{{ o.src1.cname }};{{ o.src1.ra|floatformat:6 }};{{ o.src1.dec|floatformat:6 }};{{ o.src1.detlike|floatformat:2 }};{{ o.src1.nfalse|floatformat:2 }};{{ o.src1.flux|stringformat:"1.2e" }};{{ o.src1.sig|floatformat:2 }};;;;;;;;;;;
Missed 2 in 1 (nrows={{ missed_count2 }})
;;;;;;;;;{{ o.src2 }};{{ o.src2.cname }};{{ o.src2.ra|floatformat:6 }};{{ o.src2.dec|floatformat:6 }};{{ o.src2.detlike|floatformat:2 }};{{ o.src2.nfalse|floatformat:2 }};{{ o.src2.flux|stringformat:"1.2e" }};{{ o.src2.sig|floatformat:2 }};;;
+ + +
+
+
+
+
+{% endif %} + +{% endblock %} + diff --git a/Templates/artsurvey/history.html b/Templates/artsurvey/history.html new file mode 100644 index 0000000..87aa790 --- /dev/null +++ b/Templates/artsurvey/history.html @@ -0,0 +1,17 @@ +{% extends "artsurvey/base.html" %} +{% load monthplan_templates %} + +{% block header %}{% endblock %} + +{% block content %} +
+
+
+ {% for user in users %} +

{{ user.first_name }} {{ user.last_name }} ({{ user }})

+
{{ user.artsurveyparams.history|safe }}
+ {% endfor %} +
+
+
+{% endblock %} diff --git a/Templates/artsurvey/index.html b/Templates/artsurvey/index.html new file mode 100644 index 0000000..62bcad5 --- /dev/null +++ b/Templates/artsurvey/index.html @@ -0,0 +1,295 @@ +{% extends "artsurvey/base.html" %} +{% load heasarc_templates %} +{% load simbadescape %} +{% load i18n %} + +{% block header %} +
+
+
+

{{ request.user.artsurveyparams.survey }} {{ request.user.artsurveyparams.get_band_display }} ({{ request.user.artsurveyparams.band }}) {% if ntotal %}Total {{ ntotal }}{% endif %}

+ +

{% if request.user.artsurveyparams.survey.notes %}

{{ request.user.artsurveyparams.survey.notes|safe }}
{% else %}Notes{% endif %} [edit]

+ +

+ {% if request.user.artsurveyparams.survey.parent %}Parent: {{ request.user.artsurveyparams.survey.parent }}{% endif %}{% if request.user.artsurveyparams.survey.children.count %}Children: {% for child in request.user.artsurveyparams.survey.children.all %}{{ child }}{% endfor %}{% endif %} +

+ +
+ + + + +
+

+

{% trans 'Attached' %} [+, clean Primary]

+ + {% for upload in request.user.artsurveyparams.survey.uploads.all %} + + + + {% endfor %} +
{{ upload.title|truncatechars:20 }} + + + {% if upload.primary %} + P + {% else %} + [set as Primary] + + {% endif %} + + +[edit, del]
+

+
+ +
+
+{% endblock %} + + + +{% block content %} +
+ + + + +{% if histogram %} +

+

HEASARC Matching Statistics within 40''

+{% for key,value in histogram.items %} +{{ key }}: {{ value.total }} | +{% endfor %} +

+{% endif %} + + +{% if reverse %} +

+

HEASARC Reverse Match Statistics (more than one match)

+{% for key,value in reverse.items %} +{% if value.total > 1 %} +{{ key }}: {{ value.total }} ({{ value.list|safe }})
+{% endif %} +{% endfor %} +

+{% endif %} + + + + + {% if srcs %} +

+ + + +Sort by: +RA +RA +Dec +Dec | +ML Sign +ML Sign +ML nFalse +ML nFalse +ML Flux +ML Flux | +Sign +Sign +Flux +Flux + +* -- Non-ML values are marked with a star + + + + + +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {% for src in srcs %} + {% if src.exclude == False %} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {% endif %} + {% endfor %} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameSurveyCNameHGWRRADecLonLatCnts (not ML)ML ExpoML Sign.log_ML_nFalseML DLML FluxClassRedshift
{{ forloop.counter }} + {{ src.name }} + + M{{ src.metasource.artsurveysource_set.all.count }} + {% if src.metasource.comments.count %}{% endif %} + {{ src.survey }}{% if src.cname %}{{ src.cname }}{% endif %} {% if src.category.slug == "false" %}FALSE{% endif %}{{ src.heasarc.all.count }} {% if src.count_heasarc %}({{ src.count_heasarc }}){% endif %} {{ src.gaia3.all.count }} {{ src.allwiseagn }} {{ src.get_radio_total }}{{ src.ra|floatformat:4 }}{{ src.dec|floatformat:4 }}{{ src.lii|floatformat:4 }}{{ src.bii|floatformat:4 }}{{ src.cnts|floatformat:1 }}*{{ src.ml_exp|floatformat:0 }}{% if src.ml_sig > 0.0 %} {{ src.ml_sig|floatformat:2 }} {% else %} {{ src.sig|floatformat:2 }}*{% endif %} {{ src.log_ml_nfalse|floatformat:2 }} {{ src.log_nfalse|floatformat:2 }}*{{ src.ml_detlike|floatformat:2 }} {{ src.detlike|floatformat:2 }}*{{ src.ml_flux|stringformat:"1.2e" }} {{ src.flux|stringformat:"1.2e" }}*{% if src.category %}[{{ src.category.slug }}]{% endif %} + + {% if src.follow_up %} + Follow-up + {% endif %} + + {% if src.class_tentative %} + Tentative + {% endif %} + + {% if src.marshall %} + Marshall + {% endif %} + + {% if src.turkish %} + Turkish + {% endif %} + +{% if src.ext %}[extended]{% endif %} + +{% if src.object_class %}{{ src.object_class|truncatechars:9 }}{% endif %}{% if src.redshift %}{{ src.redshift|floatformat:4 }}{% endif %} +{% if src.notes %}{% endif %} +{% if src.notes_paper %} + +{% endif %} + + + + {% for bibcode in src.ads.all %} + {% if not bibcode.hidden %} + {{ bibcode }} + + {% for cat in bibcode.category.all %} + {{ cat }} + {% endfor %} +
+{% endif %} + {% endfor %} +
+ + +
NameSurveyCNameHGWRJ2000J2000ctsserg/s/cm2Sign.ClassRedshiftCName
+ + {% endif %} + + +
+{% endblock %} diff --git a/Templates/artsurvey/metasource.html b/Templates/artsurvey/metasource.html new file mode 100644 index 0000000..f2883a3 --- /dev/null +++ b/Templates/artsurvey/metasource.html @@ -0,0 +1,227 @@ +{% extends "artsurvey/base.html" %} +{% load heasarc_templates %} +{% load simbadescape %} + +{% block header %} + + + + +
+
+
+ +

+ MetaSource {{ src }} {{ band }}

+ +

Lookup radius = {{ src.radec_error|floatformat:1 }}''

+ {% if src.catalog %} +

+ Linked to {{ src.catalog }} + Remove +

+ {% endif %} +
+

+ {{ src.ra|floatformat:4 }}RA {{ src.dec|floatformat:4 }}Dec | + SIMBAD | + NED +

+
+
+ +
+
+
+
+
+

+

Filter by energy band: + {% for band in bands %} + {{ band }} | + {% endfor %} +

+
+
+
+
+
+
+{% endblock %} + + + +{% block content %} +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + {% for m in srcs %} + + + + + + + + + + + + + + + + + + + + + {% endfor %} + +
NameSurveyRADecBandSep ('')FluxErrorSign.log_nFalseBandCNAMEClassCatalogFilesADSNotesModified
{{ forloop.counter }} + {{ m.name }} + {% if m.metasource_primary %}P{% endif %} + {{ m.survey }}{{ m.ra|floatformat:5 }}{{ m.dec|floatformat:5 }}{{ m.band }}{{ m.metasource_sep|floatformat:1 }}{{ m.flux|stringformat:"1.2e" }}{{ m.flux_err|stringformat:"1.2e" }}{{ m.sig|floatformat:1 }}{{ m.log_nfalse|floatformat:4 }}{{ m.band }}{% if m.cname %}{{ m.cname }}{% endif %}{% if m.object_class %}{{ m.object_class }}{% endif %} + {% for paper in m.catalog.all %} + {{ paper }}, + {% endfor %} + + + {% for upload in m.uploads.all %} + + + {% endfor %} + + + {% if m.ads.all.count %} + {{ m.ads.all.count }} + {% endif %} + + + + {% if m.turksh %} + T + {% endif %} + + {% if m.marshall %} + MSFC + {% endif %} + + + {{ m.modified|date:"d.m.y H:i" }} +
+ +
+
+ +
+ +
+ + {% for comment in comments %} +
+

+ {{ comment.owner.first_name }} {{ comment.owner.last_name }} {{ comment.name }} + + {{ comment.created|date:"d.m.y H:i" }} + + + + delete + + +

+

+ {{ comment.body | linebreaks }} + +

+
+ {% endfor %} + + +
+ +

Leave a comment

+
+ {{ comment_form.as_p }} + {% csrf_token %} + +
+ +
+ + + +
+ +
+ +

+

Attached files [+]

+ + {% for upload in src.uploads.all %} + + + + {% endfor %} +
{{ upload.title|truncatechars:20 }} + + [edit, del]
+

+
+
+ + +
+
+
+

+ Delete this MetaSource only +

+
+
+ + +{% endblock %} diff --git a/Templates/artsurvey/notes.html b/Templates/artsurvey/notes.html new file mode 100644 index 0000000..26f0402 --- /dev/null +++ b/Templates/artsurvey/notes.html @@ -0,0 +1,60 @@ +{% extends "mdb.html" %} +{% load i18n %} + +{% block header %} +
+
+
+ +

+

{{ src }}

+ Type: {{ src.object_class }}{% if src.class_tentative %}?{% endif %}, + CName: {{ src.cname }} +

+
+ +

+ {% if src.turkish %} + Turkish + {% endif %} +

+ +
+
+

+

References

+ {% for bibcode in src.ads.all %} + {{ bibcode }} {% if bibcode.owner %}({{ bibcode.owner }}){% endif %}
+ {% if bibcode.notes %}"{{ bibcode.notes }}"
{% endif %} + {% endfor %} +

+
+
+{% endblock %} + + +{% block content %} + +
+
+
+

+

{% csrf_token %} +
+ + {% csrf_token %} + + {{ form }} +
+ + +
+

+
+ +
+ +
+
+ +{% endblock %} diff --git a/Templates/artsurvey/other_name.html b/Templates/artsurvey/other_name.html new file mode 100644 index 0000000..06187c5 --- /dev/null +++ b/Templates/artsurvey/other_name.html @@ -0,0 +1,41 @@ +{% extends "mdb.html" %} +{% load i18n %} + +{% block header %} +
+
+
+

+

{{ src }}

+ Type: {{ src.object_class }} +

+
+
+{% endblock %} + + +{% block content %} + +
+
+
+

+

{% csrf_token %} +
+ + {% csrf_token %} + + {{ form }} +
+ + +
+

+
+ +
+ +
+
+ +{% endblock %} diff --git a/Templates/artsurvey/params.html b/Templates/artsurvey/params.html new file mode 100644 index 0000000..c133240 --- /dev/null +++ b/Templates/artsurvey/params.html @@ -0,0 +1,332 @@ +{% extends "artsurvey/base.html" %} +{% load artsurvey_templates %} + +{% block header %} +{% endblock %} + +{% block content %} + +
+ +
+
+

Galactic Plane Survey

+ + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
090085080075070065060055050045040035030025020015010005000355350345340335330325320315310305300295290285280275270
+ +
+ +
+
+ +
+
+
+
+ + + + +

Update filters [reset]

+ +{% if message %} +
+{{ message }} +
+{% endif %} + +{% if form %} +
+ +

+ {% csrf_token %} + + {{ form }} +
+ +
+{% endif %} + +
+
+
+ +
+
+
+ +{% if ntotal %} +

+

Selected {{ ntotal }} sources + Open Catalog


+{% endif %} + + +{% if params %} +
+

Current values:

+
+              Sky = {{ params.sky }}
+           Survey = {{ params.survey }} {% if params.survey.notes %}{% endif %} {% if params.survey.parent %}Parent: {{ params.survey.parent }}{% endif %}{% if params.survey.children.count %}Children: {% for child in params.survey.children.all %}{{ child }}{% endfor %}{% 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 }}
+
+Coordinates
+            Declination min = {{ params.dec_min }}
+            Declination max = {{ params.dec_max }}
+
+      Ecliptic latitude min = {{ params.ecl_lat_min }}
+      Ecliptic latitude max = {{ params.ecl_lat_max }}
+
+
+
+{% endif %} + + +
+
+ML_NFALSE, 3-12 keV (E5), Dec2023:
+
+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
+
+
+ML_NFALSE, 3-12 keV (E5), Nov2023:
+
+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
+
+ML_NFALSE, 3-12 keV, Oct2023:
+
+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:
+
+ML_NFALSE, 4-12 keV, Nov2023:
+
+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
+
+
+ML_NFALSE, 4-12 keV, Oct2023:
+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
+
+
+
+log_nfalse thresholds:
+nfalse, кол-во источников, log10(nfalse), sigma
+
+FALSE 1%
+s1-5_0 2.771e-04 1142 -3.5573  5.2225
+s1-5_0 3.412e-04 1409 -3.4670  4.4774 (Jun 2023)
+
+FALSE 2%
+s1-5_0 6.091e-04 1245 -3.2153  5.0695
+s1-5_0 7.196e-04 1484 -3.1429  5.2024 (Jun 2023)
+
+FALSE 5%
+s1-5_0 1.717e-03 1415 -2.7653  4.8608
+s1-5_0 1.969e-03 1621 -2.7057  4.3679 (Jun 2023)
+
+
+FALSE 10%
+
+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 
+
+FALSE 15%
+s1-5_0 6.950e-03 1911 -2.1580  4.3509 (Jun 2023)
+
+
+
+
+ + +
+
+
+
+ + +
+
+
+
{{ params.history|safe }}
+
+
+ + + +
+ + +
+
+
+

+


+ *Sources suitable for TUBITAK is taken by excluding Swift/BAT 105m (2018), + INTEGRAL Reference Catalog (last updated on 16 June 2019) and RXTE (2004). + +

+
+ +{% endblock %} + diff --git a/Templates/artsurvey/profile.html b/Templates/artsurvey/profile.html new file mode 100644 index 0000000..9f752b8 --- /dev/null +++ b/Templates/artsurvey/profile.html @@ -0,0 +1,115 @@ +{% extends "artsurvey/base.html" %} + +{% block header %}{% endblock %} + +{% block content %} +
+
+
+

{{ user.first_name }} {{ user.last_name }} ({{ user }})

+
+
+ + + {% if user.artselection.sources.all.count %} + +
+
+ + +

ArtSelection [+folder]

+ + + + + + + + + + + + + + {% for basket in user.artbasket_set.all %} + + + + + + + + {% endfor %} + +
NameNotesCount
{{ forloop.counter }}{{ basket }}{{ basket.notes }}{{ basket.get_sources_count }}edit | delete
+
+
+ + + +
+
+

Source Selection ({{ user.artselection.sources.all.count }})

+ + + + + + + + + + + + + + + + + + + + + {% for src in user.artselection.sources.all %} + + + + + + + + + + + + + + + + {% endfor %} + +
NameSurveyCNameNotesFollow upCategoryTypePaper NotesPapersFiles
{{ forloop.counter }}{{ src.name }}{{ src.survey }}{% if src.cname %}{{ src.cname }}{% endif %}{% if src.notes %}{{ src.notes|truncatechars:20 }}{% endif %}{% if src.follow_up %}{{ src.follow_up|truncatechars:20 }}{% endif %}{% if src.category %}{{ src.category }}{% endif %}{{ src.get_otype }}{% if src.notes_paper %}{{ src.notes_paper|truncatechars:20 }}{% endif %} + {% for paper in src.catalog.all %} + {{ paper }}, + {% endfor %} + + {% for upload in src.uploads.all %} + + + {% endfor %} + + Remove +
+
+
+ {% endif %} + +
+
+

History

+
{{ user.artsurveyparams.history|safe }}
+
+
+ +
+{% endblock %} diff --git a/Templates/artsurvey/search_coords.html b/Templates/artsurvey/search_coords.html new file mode 100644 index 0000000..ea5e89a --- /dev/null +++ b/Templates/artsurvey/search_coords.html @@ -0,0 +1,109 @@ +{% extends "mdb.html" %} +{% load i18n %} + +{% block header %} +
+
+
+

+ Back to SRG.ArXiv +

Retrieve an ICRS object by using an online name resolving service to retrieve coordinates for the specified name using get_icrs_coordinates. By default, this will search all available databases until a match is found.

+

+ + + +

HEALPix elements (nside=2048) are selected within maxdist parameter via healpix cone search . Then, all matches are selected within Rmax parameter.

+ + + + +
+
+{% endblock %} + + +{% block content %} + +
+
+
+

+

{% csrf_token %} +
+ + {% csrf_token %} + + {{ form }} +
+ + +
+

+ + {% if notresolved %} +
+
+
Not resolved
+

Failed to find {{ form.name.value }} in all available databases.

+
+
+ {% endif %} + +
+ + +
+ {% if ra %} +

+ Requested coordinates: RA={{ ra|floatformat:4 }} Dec={{ dec|floatformat:4 }} + {% if skymap %} + are found in Plate {{ skymap }} + {% endif %} +

+ {% endif %} +

ART-XC sources

+ + + + + + + + + + + {% for src in srcs %} + + + + + + + + + {% endfor %} + +
SourceCNameFluxSeparationTypeNotes
{{ src }}{{ src.cname }}{{ src.flux|stringformat:"1.2e" }}{{ src.separation|floatformat:2 }} + {{ src.get_otype }} + + {% for paper in src.catalog.all %} + {{ paper }}, + {% endfor %} + +
+
+ + + +
+ +
+ + +
+ + + + + +{% endblock %} diff --git a/Templates/artsurvey/search_name.html b/Templates/artsurvey/search_name.html new file mode 100644 index 0000000..85957a9 --- /dev/null +++ b/Templates/artsurvey/search_name.html @@ -0,0 +1,88 @@ +{% extends "mdb.html" %} +{% load i18n %} + +{% block header %} +
+
+
+

+ Back to SRG.ArXiv +

Search by name

+

Limited by 100 records

+

+ + + + +
+
+{% endblock %} + + +{% block content %} + +
+
+
+

+

{% csrf_token %} +
+ + {% csrf_token %} + + {{ form }} +
+ + +
+

+
+ + +
+

ART-XC sources

+ + + + + + + + + + + {% for src in srcs %} + + + + + + + + + {% endfor %} + +
SourceCNameFluxTypeNotes
{{ forloop.counter }}{{ src }}{{ src.cname }}{{ src.flux|stringformat:"1.2e" }} + {{ src.get_otype }} + + {% for paper in src.catalog.all %} + {{ paper }}, + {% endfor %} + +
+
+ + + +
+ +
+ + +
+ + + + + +{% endblock %} diff --git a/Templates/artsurvey/show_artsurvey_source.html b/Templates/artsurvey/show_artsurvey_source.html new file mode 100644 index 0000000..64034b7 --- /dev/null +++ b/Templates/artsurvey/show_artsurvey_source.html @@ -0,0 +1,2258 @@ +{% extends "artsurvey/base.html" %} +{% load heasarc_templates %} +{% load artsurvey_templates %} +{% load simbadescape %} + +{% block title %} +{{ src }} +{% endblock %} + +{% block header %} + + + + +
+
+
+ +

+ {{ src.name }} {{ src.survey }} CName: {% if src.cname %}{{ src.cname }} ads {% else %}N/A{% endif %} [edit], + {% if src.lii < 180.0 %} + RU + {% else %} + DE + {% endif %} +

+

+ {% if orig %} + Origin: {{ orig }} from {{ orig.dump }} + {% else %} + Origin: Detached + {% endif %} + Parent: {% if src.parent %}{{ src.parent }} ({{ src.parent.survey }}){% else %}N/A{% endif %} + Children: + {% if src.children.count %} + {% for child in src.children.all %} + {{ child }} ({{ child.survey }}) + {% endfor %} + {% else %} + N/A + {% endif %} +

+ +
+
+ + + + {% if src.parent %} +
+
+
+
+
+

+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
SourceTypeCategoryRedshiftPapers
Parent{{ src.parent }}{{ src.parent.object_class }}{{ src.parent.category }}{{ src.parent.redshift }} + {% for bibcode in src.parent.ads.all %} + {{ bibcode }}
+ {% endfor %} +
Child{{ src }}{{ src.object_class }}{{ src.category }}{{ src.redshift }} + {% for bibcode in src.ads.all %} + {{ bibcode }}
+ {% endfor %} +
+ +

+
+
+
+
+
+ {% endif %} + +
+ + + +
+ + {% if src.metasource %} +
+
+
+

+

+ MetaSource {{ src.metasource }} has {{ src.metasource.artsurveysource_set.all.count }} record(s) +

+ +
+

+ + {% for meta in src.metasource.artsurveysource_set.all %} + {% if not src.id == meta.id %} + {% if meta.ads.all.count or meta.uploads.all.count or meta.cname %} + + + + + + + + + + + + + + {% endif %} + {% endif %} + + {% endfor %} +
{{ meta.survey }}{% if meta.ads.all.count %}{{ meta.ads.all.count }} ADS records{% endif %}{% if meta.uploads.all.count %}{{ meta.uploads.all.count }} uploads{% endif %}{% if meta.object_class %}{{ meta.object_class }}{% endif %}{% if meta.cname %}{{ meta.cname }}{% endif %} + transfer +
+

+
+ +

+
+

Attached files [+]

+
+ + {% for upload in src.metasource.uploads.all %} + + + + + + {% endfor %} +
[{{ upload.owner }}] {{ upload.title|truncatechars:20 }} + {% if upload.notes %}{% endif %} + + {% if upload.isfits %} + display + {% endif %} + + + [edit, del]
+
+

+ + + + {% if src.metasource.comments.count %} + {% for comment in src.metasource.comments.all %} +
+

+ {{ comment.owner }}: {{ comment.body }} +

+
+ {% endfor %} + {% endif %} +

+
+
+
+ {% endif %} + + + +
+
+
+

+

+ Type — {% if src.object_class %}{{ src.object_class }} {% if src.owner %}({{ src.owner }}){% endif %} Clean{% endif %} +

+ +

+
+
+
+ +{% if src.ext_id %} +
+
+
+

+ +

EXT_ID {{ src.ext_id }}

+

+
+
+
+ +{% endif %} + + +
+
+
+

+

Notes / Follow-up / Paper notes [edit]

+ {% if src.redshift %}

Redshift: {{ src.redshift|floatformat:4 }}

{% endif %} + {% if src.notes %}

Notes:

{{ src.notes|linebreaks }}{% endif %} + + + {% if src.follow_up %}

Follow-up:

{{ src.follow_up }}{% endif %} + + {% if src.notes_paper %}

Paper notes:

{{ src.notes_paper }}{% endif %} +

+ +
+
+
+ + + + +
+
+ + + + +
+
+
+ ArtSelection [+folder] + +{% if basketform %} +
{% csrf_token %} + + {% csrf_token %} + {{ basketform }} + +
+ +{% if baskets %} + +Attached to +{% for basket in baskets %} +{{ basket }} | +{% endfor %} +{% endif %} + +{% endif %} +
+
+
+ +

Category [edit]

+ {% if src.category %}

[{{ src.category.slug }}] {{ src.category }}

{% endif %} + +

Bibcode [+]

+

+ {% for bibcode in src.ads.all %} + + {{ bibcode }} {% if bibcode.owner %}({{ bibcode.owner }}){% endif %} [edit, + + {% if src|is_bibcode_hidden:bibcode %} + hidden back + {% else %} + hide + {% endif %}]
+ + {% for cat in bibcode.category.all %} +    {{ cat }}
+ {% endfor %} + + {% if bibcode.notes %}   "{{ bibcode.notes }}"
{% endif %} + {% endfor %} +

+ +

Other Names [+]

+

+ {% for oname in src.othername_set.all %} + {{ oname }} {% if oname.owner %}({{ oname.owner }}){% endif %} [edit, del]
+ {% endfor %} +

+ + +

+

Attached files [+]

+
+ + {% for upload in src.uploads.all %} + + + + {% endfor %} +
{{ upload.title|truncatechars:20 }} + {% if upload.notes %}{% endif %} + + {% if upload.isfits %}display + {% endif %} + {% if upload.isreg %} + overplot + {% endif %} + +[edit, del]
+
+

+ +
+
+
+ PS1 images: + RGB Gray + g + r + i + z + y +
+
+
+ + + + + + + + + + + + + + + +
+
+
+{% endblock %} + + + +{% block content %} + +{% if orig %} +
+ +
+
+

+ + + + + + + + + + +

+
+
+ +
+
+
+
+

+ +

+

+

+

+

+ +

+ + DS9 region (all)

+ DS9 region (linked)

+

+ +
+ +
+ + + +
+
+ +
+ +
+ + +
+
+
+

+

Attached Survey files:

+
+ + {% for upload in src.survey.uploads.all %} + + + + {% endfor %} +
{{ upload.title|truncatechars:20 }} + {% if upload.notes %}{% endif %} + + {% if upload.primary %} + P + {% endif %} + + {% if upload.isfits %}display + {% endif %} + {% if upload.isreg %} + overplot + {% endif %} + +
+
+

+
+
+
+ + +
+
+
+

+ + + +

All-Sky Survey: + + [open original] + +

+ + + + + S1-5: + E0 | + E1 | + E2 | + E3 | + E4 | + E5 +
+

+
+
+
+ + {% if src.get_galplane_image_url %} +
+
+
+

+

+ Galactic Plane Survey: + + [open original]
+
+

+ + +

+ + [show exposure] + + + 1g + E0 | + E1 | + E2 | + E3 | + E4 img
+ __ + E0 | + E1 | + E2 | + E3 | + E4 flux + + +

+ +

+ + [show exposure] + + 2g + E0 | + E1 | + E2 | + E3 | + E4 img
+ __ + E0 | + E1 | + E2 | + E3 | + E4 flux + + +

+ +

+ + [show exposure] + + + 12g + E0 | + E1 | + E2 | + E3 | + E4 img
+ ___ + E0 | + E1 | + E2 | + E3 | + E4 flux + + +

+ +
+
+
+ {% endif %} + + +

{{ srcs|length }} sources within 10° from {{ src.survey }}

+

+ +
+ + {% for src0 in srcs %} + + + + + + + + + + + + + {% endfor %} +
+ + {% if src0.cname == "NEW X-RAY SOURCE" %} + {{ src0.name|remove_srga }} + {% else %} + {{ src0.name|remove_srga }} + {% endif %} + + {% if src0.metasource_primary %}P{% endif %}   {% if src0.object_class %}{{ src0.get_otype|truncatechars:3 }}{% endif %}  {{ src0.sig|floatformat:1 }}σ {{ src0.separation|floatformat:0 }}' + {% if src0.category %} + [{{ src0.category.slug }}] + {% else %} + + {% endif %} + + {% if not src0.metasource == src.metasource %}+M{% endif %} + +
+
+ + + +
+
+ + + + +
+{% endif %} + +
+
+ +

+ ART-XC | + SIMBAD 40'' | + NED 40'' | VizieR 20'' | +ZTF ALERCE 40'' | +LSXPS 40'' | +HEASARC Browse + + + +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
MatchRADecGLonGLatELonELatRA/Dec ErrCntsExpoSign.log_nFalseRateRate errFluxFlux errBandExtended
{{ src.heasarc.all.count }}{{ src.ra|floatformat:4 }}{{ src.dec|floatformat:4 }}{{ src.lii|floatformat:4 }}{{ src.bii|floatformat:4 }}{{ src.ecl_l|floatformat:4 }}{{ src.ecl_b|floatformat:4 }}{{ src.radec_error|floatformat:4 }}{{ src.cnts|floatformat:1 }}{{ src.exptime|floatformat:0 }}{{ src.sig|floatformat:2 }}{{ src.log_nfalse|floatformat:4 }}{{ src.rate|floatformat:4 }}{{ src.rate_err|floatformat:4 }}{{ src.flux|stringformat:"1.2e" }} {{ src.flux_err|stringformat:"1.2e" }} {{ src.band }} {{ src.ext }}
+ +

Maximum Likelihood Fitting

+ + + + + + + + + + + + + + + + + + + + + + + + +
RADecRA/Dec Err 90% (98%)ExpoSign.log_nFalseFlux
{{ src.ml_ra|floatformat:4 }}{{ src.ml_dec|floatformat:4 }}{{ src.ml_radec_err_90|floatformat:2 }} ({{ src.ml_radec_err_98|floatformat:2 }}){{ src.ml_exp|floatformat:0 }}{{ src.ml_sig|floatformat:2 }}{{ src.log_ml_nfalse|floatformat:4 }}{{ src.ml_flux|stringformat:"1.2e" }} ± {{ src.ml_flux_err|stringformat:"1.2e" }}
+ +

+{% if src.turkpossible %}Suitable for TUBITAK{% endif %} +{% if src.marshall %} | MSFC source in NEP{% endif %} +

+ +{% if src.erositamatch %} + +

eRosita match +{% if src.erositamatch %} +{% if src.erositamatch.match_soft %}{% endif %} +{% if src.erositamatch.match_med %}{% endif %} +{% if src.erositamatch.match_hard %}{% endif %} +{% endif %} +at offset {{ src.erositamatch.sep_soft|floatformat:2 }}'' +

+ +
+ + + + {% for name, value in src.erositamatch.get_fields %} + + {% endfor %} + + + + {% for name, value in src.erositamatch.get_fields %} + + {% endfor %} + +
{{ name }}
{{ value }}
+
+{% endif %} + + + + + {% if heasarcs %} +
+

HEASARC Catalogs (XrayMaster)

+ + + + + +
+ + +

sort by or offset

+ + +
+ + + + + + + + + + + + + + + + + + + + {% for obj in heasarcs %} + {% if obj.description not in 'HeasarcXrayMaster,HeasarcCHANMASTER' %} + + {% if obj.description not in 'HeasarcUserCat' %} + + {% else %} + + {% endif %} + + + + + + + + + + + + + + + {% endif %} + {% endfor %} + +
+ {% if src.get_heasarc_linked_all %} + Clean all + {% else %} + Link + {% endif %} + TableNameRADecLonLatErr ('')ART ('')eRo ('')Notes
+ + + + {% heasarc_linked_to src obj as linked %} + {% if linked %} + Linked remove + {% else %} + link + {% endif %} + {{ obj.description|remove_heasarc }} + {{ obj.name }} + + ads + + {{ obj.ra|floatformat:5 }}{{ obj.dec|floatformat:5 }}{{ obj.lii|floatformat:3 }}{{ obj.bii|floatformat:3 }}{% if obj.error_radius > 0 %}{{ obj.error_radius|floatformat:4 }}{% endif %}{{ obj.separation|floatformat:3 }}{% if obj.erosita_separation %}{{ obj.erosita_separation|floatformat:3 }}{% endif %} + + {% if obj.description == 'Heasarc4XMMDR12' %} +   + {% endif %} + + {% if obj.description == 'Heasarc2SXPS' %} +   + {% endif %} + + {% if obj.description == 'HeasarcCSC' %} + {% if obj.extent_flag == 'T' %}extended, {% endif %} + {% endif %} + + {% if obj.usercat.count %} + UserCat ({{ obj.usercat.count }}) + {% endif %} + + {% if obj.gaia3.count %} + Gaia({{ obj.gaia3.count }}{% if obj.gaia3_primary %},P{% endif %}) + {% endif %} + + {% if obj.glimpse.count %} + GLIMPSE({{ obj.glimpse.count }}{% if obj.glimpse_primary %},P{% endif %}) + {% endif %} + + {% if obj.vlass.count %} + VLASS({{ obj.vlass.count }}{% if obj.vlass_primary %},P{% endif %}) + {% endif %} + + {% if obj.twomass.count %} + 2MASS({{ obj.twomass.count }}{% if obj.twomass_primary %},P{% endif %}) + {% endif %} + + {% if obj.allwise.count %} + WISE({{ obj.allwise.count }}{% if obj.allwise_primary %},P{% endif %}) + {% endif %} + + {% if obj.notes %} +   + {% endif %} + + {% if obj.description == 'HeasarcUserCat' %} + {% if obj.bibcode %}ads{% endif %} + edit + delete + {% endif %} + +
+ +
+ +
+ {% endif %} +
+Add X-ray source counterpart + + {% if heasarcs %} +
+

HEASARC Catalogs XrayMaster

+ + + + + +
+ +

sort by or offset

+ + + + +
+ + + + + + + + + + + + + + + + {% for obj in heasarcs %} + {% if obj.description in 'HeasarcXrayMaster,HeasarcCHANMASTER' %} + + + + + + + + + + + + {% endif %} + {% endfor %} + +
+ {% if src.get_heasarc_linked_all %} + Clean all + {% else %} + Link + {% endif %} + TableMissionNameART-XC ('')eRosita ('')Type
+ {% heasarc_linked_to src obj as linked %} + {% if linked %} + Linked remove + {% else %} + link + {% endif %} + {{ obj.description|remove_heasarc }}{% if obj.observatory %}{{ obj.observatory }} ({{ obj.database_table }}){% endif %} + {{ obj.name }} + + ads + + {{ obj.separation|floatformat:3 }}{% if obj.erosita_separation %}{{ obj.erosita_separation |floatformat:3 }}{% endif %} + {% if obj.class_id != 9999 %} + {{ obj.object_class.class_name }} + {% endif %} +
+
+
+ {% endif %} + +{% if nvss %} +
+
+
+
+ +

+

Radio: NVSS

+ + + + + + + + + + + + + + + + {% for obj in nvss %} + + + + + + + + + + + {% endfor %} + +
NVSSRADecART-XC ('')eRosita ('')S1.4 (mJy)Clean
{{ obj.name }} VizieR{{ obj.ra|floatformat:4 }}° (± {{ obj.e_ra|floatformat:2 }}''){{ obj.dec|floatformat:4 }}° (± {{ obj.e_dec|floatformat:2 }}'') {{ obj.separation|floatformat:2 }}{% if obj.erosita_separation %}{{ obj.erosita_separation|floatformat:2 }}{% endif %}{{ obj.S14|floatformat:2 }} ± {{ obj.e_S14|floatformat:2 }} + {% if src.nvss_primary.pk == obj.pk %} + Attached + {% else %} + Primary + {% endif %} +
+

+
+
+
+{% endif %} + +{% if first %} +
+
+
+
+ +

+

Radio: FIRST

+ + + + + + + + + + + + + + + + + + + + {% for obj in first %} + + + + + + + + + + + + + + + {% endfor %} + +
FIRSTRADecART-XC ('')eRosita ('')Fpeak (mJy)Fint (mJy)RMS (mJy)Major axis ('')Minor axis ('')Clean
{{ obj.name }} VizieR{{ obj.ra|floatformat:4 }}°{{ obj.dec|floatformat:4 }}°{{ obj.separation|floatformat:2 }}{% if obj.erosita_separation %}{{ obj.erosita_separation|floatformat:2 }}{% endif %}{{ obj.Fpeak|floatformat:2 }}{{ obj.Fint|floatformat:2 }}{{ obj.rms|floatformat:2 }}{{ obj.major_axis|floatformat:2 }}{{ obj.minor_axis|floatformat:2 }} + {% if src.first_primary.pk == obj.pk %} + Attached + {% else %} + Primary + {% endif %} +
+

+
+
+
+{% endif %} + +{% if sumss %} +
+
+
+
+ +

+

Radio: SUMSS

+ + + + + + + + + + + + + + + + + + + {% for obj in sumss %} + + + + + + + + + + + + + + {% endfor %} + +
SUMSSRADecART-XC ('')eRosita ('')Sp (mJy)St (mJy)Major axis ('')Minor axis ('')Clean
{{ obj.name }} VizieR{{ obj.ra|floatformat:4 }}°{{ obj.dec|floatformat:4 }}°{{ obj.separation|floatformat:2 }}{% if obj.erosita_separation %}{{ obj.erosita_separation|floatformat:2 }}{% endif %}{{ obj.Sp|floatformat:2 }} ± {{ obj.e_Sp|floatformat:2 }}{{ obj.St|floatformat:2 }} ± {{ obj.e_St|floatformat:2 }}{{ obj.major_axis|floatformat:2 }}{{ obj.minor_axis|floatformat:2 }} + {% if src.sumss_primary.pk == obj.pk %} + Attached + {% else %} + Primary + {% endif %} +
+

+
+
+
+{% endif %} + + +{% if vlass %} +
+
+
+
+ +

+

Radio: VLASS

+ + + + + + + + + + + + + + + + + {% for obj in vlass %} + + + + + + + + + + + + {% endfor %} + +
VLASSRADecART-XC ('')eRosita ('')FtotFpeakClean
{{ obj.name }} + +VizieR 1'' + +{{ obj.ra|floatformat:4 }}° (± {{ obj.e_ra|floatformat:2 }}''){{ obj.dec|floatformat:4 }}° (± {{ obj.e_dec|floatformat:2 }}'') {{ obj.separation|floatformat:2 }}{% if obj.erosita_separation %}{{ obj.erosita_separation|floatformat:2 }}{% endif %}{{ obj.ftot|floatformat:2 }} ± {{ obj.e_ftot|floatformat:2 }}{{ obj.fpeak|floatformat:2 }} ± {{ obj.e_fpeak|floatformat:2 }} + {% if src.vlass_primary.pk == obj.pk %} + Attached + {% else %} + Primary + {% endif %} +
+

+
+
+
+{% endif %} + + +{% if bj2021 %} +
+
+
+
+ +

+ +

+

GAIA EDR3: Bailer-Jones (2021) ({{ bj2021.count }} matches)

+ +

+ + +

+
+
+
+{% endif %} + +{% if gaiadr3 %} +
+
+
+
+ +

+ +

+

Gaia DR3 Part 1. Main source (2022) ({{ gaiadr3.count }} matches)

+ +

+ + +

+
+
+
+{% endif %} + + + {% if simbad %} +
+

Simbad

+ + + + + + +{% endif %} + + {% if gaia_plx %} + +

+

Gaia "star / parallax" counterparts ({{ gaia_plx.count }})

+ + + +

+ + + {% endif %} + + + {% if gaia_pm %} + +

+

Gaia "star / proper motion" counterparts ({{ gaia_pm.count }})

+ + + +

+ + + {% endif %} + + {% if gaia_ex %} + +

+

Gaia "other" counterparts ({{ gaia_ex.count }})

+ + + + +

+ + + {% endif %} + + +{% if allwise %} +
+
+
+ +

+

+

AllWISE counterparts ({{ allwise.count }})

+ +

+ + +

+ + +
+
+
+ +{% endif %} + + + + + + + + + + + + + + + + + +
+
+ + +
+
+
+ +

Other SRGA sources in this field plate +

+ +
+
+ + + +
+
+
+

+ Update source + Mark bad + + {% if user|has_group:"srg-artxc-catalog-admin"%} + DELETE SOURCE + {% endif %} +

+
+
+ + + + +{% endblock %} + + diff --git a/Templates/artsurvey/summary.html b/Templates/artsurvey/summary.html new file mode 100644 index 0000000..d85a7dd --- /dev/null +++ b/Templates/artsurvey/summary.html @@ -0,0 +1,61 @@ +{% extends "artsurvey/base.html" %} +{% load artsurvey_templates %} + +{% block header %} +{% endblock %} + +{% block content %} + + +{% if surveys %} +
+
+
+
+
+ + + + + + + {% for b in bands %} + + {% endfor %} + + + + + + {% for b in bands %} + + {% endfor %} + + + + + {% for s in surveys %} + + + + {% for b in bands %} + + {% endfor %} + + {% endfor %} + + +
Survey{{ b }}
(>5σ)
{{ forloop.counter }}{{ s }} + {% if s.notes %}{% endif %} + {{ s|get_total:b}} ({{ s|get_total_5sigma:b}})
+ + +
+
+
+
+
+{% endif %} + +{% endblock %} + diff --git a/Templates/artsurvey/tex.html b/Templates/artsurvey/tex.html new file mode 100644 index 0000000..82ce61a --- /dev/null +++ b/Templates/artsurvey/tex.html @@ -0,0 +1,169 @@ +{% extends "artsurvey/base.html" %} +{% load heasarc_templates %} +{% load simbadescape %} +{% load i18n %} + +{% block header %} +
+
+
+

{{ request.user.artsurveyparams.survey }} {{ request.user.artsurveyparams.get_band_display }} ({{ request.user.artsurveyparams.band }})

+ + + +

+ {% if request.user.artsurveyparams.survey.parent %}Parent: {{ request.user.artsurveyparams.survey.parent }}{% endif %}{% if request.user.artsurveyparams.survey.children.count %}Children: {% for child in request.user.artsurveyparams.survey.children.all %}{{ child }}{% endfor %}{% endif %} +

+ +
+ +
+ {% if ntotal %}

Total {{ ntotal }}

+ + {% endif %} +
+ +
+
+ +
+
+ +
+
+{% endblock %} + + + +{% block content %} +
+ +{% if histogram %} +

+

HEASARC Matching Statistics within 40''

+{% for key,value in histogram.items %} +{{ key }}: {{ value.total }} | +{% endfor %} +

+{% endif %} + + +{% if reverse %} +

+

HEASARC Reverse Match Statistics (more than one match)

+{% for key,value in reverse.items %} +{% if value.total > 1 %} +{{ key }}: {{ value.total }} ({{ value.list|safe }})
+{% endif %} +{% endfor %} +

+{% endif %} + + + + + {% if srcs %} + + + + + + + + + + + + + + + + + + + + + + {% for src in srcs %} + {% if src.exclude == False %} + + + + + + + + + + + + + + + + + + + + {% endif %} + {% endfor %} + + + + + +
NameRADecFluxDETLIKECNameClassRefs
N{{ forloop.counter|stringformat:"03d" }} &  + {% if src.cname == 'NEW X-RAY SOURCE' %} + {\bf {{ src.name }} } + {% else %} + {{ src.name }} + {% endif %} + & {{ src.ra|floatformat:4 }}& {{ src.dec|floatformat:4 }}& {{ src.get_flux_str_m11power }}& {{ src.get_detlike100 }}&  + {% if not src.cname == 'NEW X-RAY SOURCE' %} + {{ src.cname }} + {% endif %} + + & {{ src.get_otype }} + + + +& {% if src.refs %}{{ src.refs }}{% endif %} \\ +
+ +

References

+ + +{% for key, value in refdict.items %} +({{ value }}) {{ key }}, +{% endfor %} + + + +

Paper Notes

+
+{% for src in srcs %}{% if src.notes_paper %}\subsection{ {{ src.name }} }
+{{ src.notes_paper|safe }}
{% endif %}{% endfor %} +
+ +

Bibtex for Paper Notes

+
+{% for bib in bibtex_paper %}
+{{ bib|safe }}
+{% endfor %} +
+ + +

Bibtex for Source Papers

+
+{% for bib in bibtex %}
+{{ bib|safe }}
+{% endfor %} +
+ + + {% endif %} + + +
+{% endblock %} diff --git a/Templates/artsurvey/turkish.html b/Templates/artsurvey/turkish.html new file mode 100644 index 0000000..a0c6298 --- /dev/null +++ b/Templates/artsurvey/turkish.html @@ -0,0 +1,77 @@ +{% extends "artsurvey/base.html" %} +{% load heasarc_templates %} +{% load simbadescape %} +{% load i18n %} + +{% block header %} +
+
+
+
+ +
+
+{% endblock %} + + + +{% block content %} +
+ + +

Источники, переданные турецким коллегам. Отсортировано по RA.

+ + + + + {% if srcs %} +

+ + + + + + + + + + + + + + + + + {% for src in srcs %} + + + + + + + + + + + + {% endfor %} + +
NameRADecSources
{{ forloop.counter }} + {{ src.name }} + + M{{ src.artsurveysource_set.all.count }} + {% if src.comments.count %}{% endif %} + {{ src.ra|floatformat:4 }}{{ src.dec|floatformat:4 }} + {% for s in src.artsurveysource_set.all %} + {% if s.turkish %}T{% else %} {% endif %} {{ s.name }} {{ s.survey }} {{ s.band.slug }} {% if s.turkish_date %}{{ s.turkish_date|date:"d.m.Y" }}{% endif %}
+ + {% endfor %} + +
+ + {% endif %} + + +

+{% endblock %} diff --git a/Templates/artsurvey/types.html b/Templates/artsurvey/types.html new file mode 100644 index 0000000..41346d0 --- /dev/null +++ b/Templates/artsurvey/types.html @@ -0,0 +1,49 @@ + +{% extends "artsurvey/base.html" %} +{% load heasarc_templates %} + +{% block header %}{% endblock %} + +{% block content %} + +
+
+
+
+
+ +

ArtSurvey {{ survey }}

+ + + +{% for type in types %} + + + + + +{% endfor %} +
{{ type.class_id }}{{ type }} +{% if survey %} +{% call_artsurvey_types_count type survey %} +{% else %} +{{ type.get_artsurvey_count_all }} +{% endif %} +
+
+
+
+ +
+
+
+

Full list of HEASARC object Types

+ +
+
+
+
+
+ +{% endblock %} + diff --git a/Templates/artsurvey/update_artsurvey_source.html b/Templates/artsurvey/update_artsurvey_source.html new file mode 100644 index 0000000..1656916 --- /dev/null +++ b/Templates/artsurvey/update_artsurvey_source.html @@ -0,0 +1,42 @@ +{% extends "mdb.html" %} +{% load i18n %} + +{% block header %} +
+
+
+

+

{{ src }}

+ Type: {{ src.object_class }}, + CName: {{ src.cname }} +

+
+
+{% endblock %} + + +{% block content %} + +
+
+
+

+

{% csrf_token %} +
+ + {% csrf_token %} + + {{ form }} +
+ + +
+

+
+ +
+ +
+
+ +{% endblock %} diff --git a/Templates/artsurvey/upload.html b/Templates/artsurvey/upload.html new file mode 100644 index 0000000..179292e --- /dev/null +++ b/Templates/artsurvey/upload.html @@ -0,0 +1,30 @@ +{% extends "artsurvey/base.html" %} +{% load i18n %} + +{% block header %}{% endblock %} + +{% block content %} +
+
+
+ +

{% trans 'Attach file to' %}: {{ source }}

+ +
{% csrf_token %} +
+ + {% csrf_token %} +
+ + {{ form }} +
+
+ + + +
+ +
+
+
+{% endblock %} diff --git a/Templates/artsurvey/usercat.html b/Templates/artsurvey/usercat.html new file mode 100644 index 0000000..e3cd195 --- /dev/null +++ b/Templates/artsurvey/usercat.html @@ -0,0 +1,40 @@ +{% extends "mdb.html" %} +{% load i18n %} + +{% block header %} +
+
+
+

+

{{ src }}

+

+
+
+{% endblock %} + + +{% block content %} + +
+
+
+

+

{% csrf_token %} +
+ + {% csrf_token %} + + {{ form }} +
+ + +
+

+
+ +
+ +
+
+ +{% endblock %} diff --git a/Templates/artsurvey/vizier.html b/Templates/artsurvey/vizier.html new file mode 100644 index 0000000..e632716 --- /dev/null +++ b/Templates/artsurvey/vizier.html @@ -0,0 +1,32 @@ +{% extends "mdb.html" %} +{% load i18n %} + +{% block header %} +
+
+
+

+

{{ src }}

+ Type: {{ src.object_class }}, + CName: {{ src.cname }} +

+
+
+{% endblock %} + + +{% block content %} + +
+
+
+

+

+
+ +
+ +
+
+ +{% endblock %} diff --git a/Templates/astrobasis/index.html b/Templates/astrobasis/index.html new file mode 100644 index 0000000..51b7df1 --- /dev/null +++ b/Templates/astrobasis/index.html @@ -0,0 +1,139 @@ +{% extends "base.html" %} +{% load heasarc_templates %} + +{% block header %} + + +ZTF Alerts: MARS, ALeRCE ZTF Explorer, ZTF Data schema + +{% endblock %} +{% block precontent %}{% endblock %} +{% block content %} + + {% if cat %} +

Source list {{ cat.obsid }} ({{ cat.nrows }} rows)

+

Dates: {{ cat.start|date:"d M Y H:i" }} - {{ cat.stop|date:"d M Y H:i" }}, + MJD: {{ cat.mjd_start|floatformat:4 }} - {{ cat.mjd_stop|floatformat:4 }}, + eRoDays: {{ cat.eroday_start }} - {{ cat.eroday_stop }}, + Created {{ cat.created|date:"d.m.y H:i" }}

+

Matched only ({{ match_count }}) | + Not matched ({{ nomatch_count }}) | + Transients ({{ trans_count }}) + {% if gaia_match_count %}| Gaia ({{ gaia_match_count }}){% endif %} +

+ + {% if srcs %} + + + + + + + + + + + + + + + + + {% for src in srcs %} + + + + + + + + + + + {% endfor %} + + + + +
Source nameN/MatchRADecDET_LIKE_0ML_FLUX_0RateFlux
+ + {{ src.name }} {% if src.rosat_transient %}(ROSAT){% endif %} + {{ src.heasarc.all.count }}{{ src.ra|floatformat:3 }}{{ src.dec|floatformat:2 }}{{ src.DET_LIKE_0|floatformat:2 }}{{ src.ML_FLUX_0|floatformat:2 }}{{ src.rate|floatformat:4 }}{{ src.flux }}
+ {% endif %} + +{% endif %} + +{% if ztf_alerts %} + + + + + +
+ + + + + + {% endif %} + + +{% endblock %} diff --git a/Templates/astrobasis/magnitude.html b/Templates/astrobasis/magnitude.html new file mode 100644 index 0000000..281f1fa --- /dev/null +++ b/Templates/astrobasis/magnitude.html @@ -0,0 +1,45 @@ +{% extends "mdb.html" %} +{% load i18n %} + +{% block header %} +
+
+
+

+

Add magnitude for {{ src }}, which is optical counterpart of {{ base }}

+

+ + +
+
+{% endblock %} + + +{% block content %} + +
+
+
+

+

{% csrf_token %} +
+ + {% csrf_token %} + + {{ form }} +
+ +

{{ src.notes }}

+ + + +
+

+
+ +
+ +
+
+ +{% endblock %} diff --git a/Templates/astrobasis/show_ztf_alerce.html b/Templates/astrobasis/show_ztf_alerce.html new file mode 100644 index 0000000..6dcd973 --- /dev/null +++ b/Templates/astrobasis/show_ztf_alerce.html @@ -0,0 +1,41 @@ + +{% extends "base.html" %} + +{% block header %}{% endblock %} + + +{% block content %} +{% if alerce %} +

Specific {{ alerce.oid }} fields:

+ +

ALeRCE

+ +

RA/Dec: {{ alerce.ra|floatformat:3 }}, {{ alerce.dec|floatformat:3 }}, nobs: {{ alerce.nobs }}

+

Early Classifier: {{ alerce.get_early_class }} ({{ alerce.classearly }}) with probability of {{ alerce.pclassearly|floatformat:2 }}.

+ +{% if alerce.classrf %}

Late Classifier: {{ alerce.get_late_class }} ({{ alerce.classrf }}) with probability of {{ alerce.pclassrf|floatformat:2 }}.

{% endif %} + +

Detected between {{ alerce.firstdate|date:"d.m.Y H:i" }} - {{ alerce.lastdate|date:"d.m.Y H:i" }} (MJD: {{ alerce.firstmjd|floatformat:4 }} - {{ alerce.lastmjd|floatformat:4 }}).

+ +

+ +

Magnitute

+ mean_magap_g = {{ alerce.mean_magap_g|floatformat:2 }} {% if alerce.sigma_magap_g %}+/- {{ alerce.sigma_magap_g|floatformat:2 }}{% endif %}
+ mean_magap_r = {{ alerce.mean_magap_r|floatformat:2 }} {% if alerce.sigma_magap_r %}+/- {{ alerce.sigma_magap_r|floatformat:2 }}{% endif %}
+ + mean_magpsf_g = {{ alerce.mean_magpsf_g|floatformat:2 }} {% if alerce.sigma_magpsf_g %}+/- {{ alerce.sigma_magpsf_g|floatformat:2 }}{% endif %}
+ mean_magpsf_r = {{ alerce.mean_magpsf_r|floatformat:2 }} {% if alerce.sigma_magpsf_r %}+/- {{ alerce.sigma_magpsf_r|floatformat:2 }}{% endif %}
+

+ + +{% if alerce.survey %} +

Close to SRG survey

+{% for survey in alerce.survey.all %} +{{ survey.experiment }} {{ survey.start|date:"d.m.y H:i" }} - {{ survey.stop|date:"d.m.y H:i" }}
+{% endfor %} +{% endif %} + +

healpix_source: {{ alerce.healpix }}, healpix_plate: {{ alerce.healpix_plate }}, loaded: {{ alerce.created|date:"d.m.Y H:i" }}

+ +{% endif %} +{% endblock %} diff --git a/Templates/astrobasis/update_usercat.html b/Templates/astrobasis/update_usercat.html new file mode 100644 index 0000000..9f2a014 --- /dev/null +++ b/Templates/astrobasis/update_usercat.html @@ -0,0 +1,49 @@ +{% extends "mdb.html" %} +{% load i18n %} + +{% block header %} +
+
+
+

+

Update optical counterpart {{ src }} of {{ base }}

+

+ +

+

Magnitudes [+]

+ + {% for magn in src.magnitudes.all %} + {{ magn.magn }} {{ magn.band }} [del], + {% endfor %} +

+ +
+
+{% endblock %} + + +{% block content %} + +
+
+
+

+

{% csrf_token %} +
+ + {% csrf_token %} + + {{ form }} +
+ + +
+

+
+ +
+ +
+
+ +{% endblock %} diff --git a/Templates/astrobasis/usercat.html b/Templates/astrobasis/usercat.html new file mode 100644 index 0000000..ffaf7e0 --- /dev/null +++ b/Templates/astrobasis/usercat.html @@ -0,0 +1,40 @@ +{% extends "mdb.html" %} +{% load i18n %} + +{% block header %} +
+
+
+

+

Attach optical counterpart to {{ src }}

+

+
+
+{% endblock %} + + +{% block content %} + +
+
+
+

+

{% csrf_token %} +
+ + {% csrf_token %} + + {{ form }} +
+ + +
+

+
+ +
+ +
+
+ +{% endblock %} diff --git a/Templates/base.html b/Templates/base.html new file mode 100644 index 0000000..5408a38 --- /dev/null +++ b/Templates/base.html @@ -0,0 +1,666 @@ +{% load heasarc_templates %} +{% load srgcat_templates %} +{% load i18n %} + + + + {% block title %}SRG ArXiv{% endblock %} + + + + + + + + + + + + + + + + + + + +{% block javascripts %}{% endblock %} + + + + + + + + + + + +
+{% block header %}{% endblock %} +
+ +
+{% block precontent %} +

ART-XC sources detected on the accumulated sky map

+
+
+
+
+
+

+

Information

+ {% if catalog %}

Catalog

{{ catalog }}{% endif %} + {% if dump %} +

Dump

{{ dump }}
Date {{ dump.date|date:"d M Y H:i" }} + {% endif %} + {% if survey %}

Survey

{{ survey }}{% endif %} +

+ + {% if ntotal %}

Statistics

Total {{ ntotal }} items

{% endif %} + +
+
+
+
+
+
+
+
+

+

Catalogs cross-match

+ Filter: All | + Heasarc | + Simbad | + Gaia
+ +

+
+
+
+
+
+
+
+
+

+

All-sky X-ray surveys

+ + + INTEGRAL 2020 +
+ + + INTEGRAL + (HEASARC , ISDC ) + +
+ + + Swift-BAT + (105 months, GSFC ) + +
+ + + MAXI/GSC + (HEASARC ) + +
+ + + 3MAXI + (VizieR ) + +
+ + + ROSAT + (HEASARC ) + +
+ + + XMMSL2 + (HEASARC ) + +
+ + + RXTE + (HEASARC ) + +
+ + Exclude all above +
+

+
+
+
+
+
+
+
+
+

+

Selections + [edit] + [] +

+ {% if selections %} + {% for selection in selections %} + {% if selection.public %} + {% else %} + + {% endif %} + [{{ selection.slug }}] {{ selection }} ({{ selection.skymap_sources.count }}) +
+ {% endfor %} + {% endif %} +

+ + {% if selection %} +

+

Selection: [{{ selection.slug }}]

+ {% endif %} +

+ +

+

Session parameters [edit]

+
Sign. threshold = {{ request.user.session.sign_threshold }}
+ {% if request.user.session.target_ra and request.user.session.target_dec %} +
 Target {{ request.user.session.target_ra }}RA {{ request.user.session.target_dec }}Dec
+ {% endif %} + +

+ +
+
+
+
+
+ +{% if skymap_sources and user.is_authenticated %} + + + +{% if dump %}
{{ dump.get_catalog_absolute_path }}
{% endif %} + + + + + + + + + + + + + + + + + + + + + + {% for src in skymap_sources %} + + + + + + + + + + + + + + + + {% endfor %} + + + + + + + + + + + + + + + + + + + + +
NameMatchType? (abridged<3)RADecCntsExpoFluxSign.SkyMapSelection
{{ src.name }} | + + + + + + + {{ src.heasarc.all.count }} +

+ {% for simsrc in src.simbad.all|slice:":3" %} + {% if simsrc.obj_class %}{{ simsrc.obj_class }} {% if simsrc.is_redshift_real %}{% if simsrc.z > 0 %}z={{ simsrc.z }} {% endif %}{% endif %}|{% endif %} + {% endfor %} + + {% with count=src.simbad.all.count %} + {% if count > 3 %}(+{{ count|add:"-3" }}){% endif %} + {% endwith %} + + {% if src.simbad_notfound %} + + {% endif %} + {% if src.simbad_failed %} + Aborted + {% endif %} +

+
{{ src.ra|floatformat:5 }}{{ src.dec|floatformat:5 }}{{ src.cnts|floatformat:1 }}{{ src.exptime|floatformat:0 }}{{ src.flux|stringformat:"1.2e" }}{{ src.sig|floatformat:2 }} + + {{ src.skymap }} + + + {% if selection %} + {{ selection.slug }} + {% else %} + {% for selection in selections %} + {% is_skymapsource_in_selection selection src as selected %} + {% if selected %} + {{ selection.slug }} + {% else %} + {{ selection.slug }} + {% endif %} + {% endfor %} + {% endif %} +
Heasarc (R<40'')Simbad (R<40'')J2000J2000ctsserg/s/cm2
+
+{% endif %} +{% endblock %} +
+ +
+ +{% if erosurveys and user.is_authenticated and user|has_group:"srg-erosita-survey" %} +

SRG/eRosita surveys:

+ +{% endif %} + +{% if erotrans and user.is_authenticated and user|has_group:"srg-erosita-transients" %} +

SRG/eRosita daily source lists ({{ ntotal }}):

+ + + + + + + + + + + + + + + {% for cat in erotrans %} + + + + + + + + + + {% endfor %} + + +
StartStopObsIDN/rowsN/matchedN/TransientsCreated
{{ cat.start|date:"d M Y" }}{{ cat.stop|date:"d M Y" }}{{ cat.obsid }}{{ cat.nrows }}{{ cat.nmatched }}{{ cat.ntransients }}{{ cat.created|date:"d.m.y H:i" }}
+{% endif %} + + +{% if ztf_ntotal and user.is_authenticated %} +

ZTF Alerts ({{ ztf_ntotal }}):

+ +

+EarlyClassifier: AGN {% if agn_count %}({{ agn_count }}){% endif %} | +SN Candidate {% if sn_count %}({{ sn_count }}){% endif %} | +Variable Star {% if vs_count %}({{ vs_count }}){% endif %} | +Asteroid {% if asteroid_count %}({{ asteroid_count }}){% endif %} | +Bogus {% if bogus_count %}({{ bogus_count }}){% endif %} +

+ + + + + + + + + + + + + + + + {% for ztf in ztf_alerts %} + + + + + + + + + + + + {% endfor %} + + + + + + + + + + + + + +
AlertFirstLastRA/DecClassgrSurveyLoaded
{{ ztf.oid }}{{ ztf.firstdate|date:"d.m.y H:i" }}{{ ztf.lastdate|date:"d.m.y H:i" }}{{ ztf.ra|floatformat:3 }}, {{ ztf.dec|floatformat:3 }} + + + {{ ztf.get_early_class }} ({{ ztf.pclassearly|floatformat:2 }}) + {% if ztf.classrf %} + {{ ztf.classrf }} + {% endif %} + {{ ztf.mean_magpsf_g|floatformat:1 }}{{ ztf.mean_magpsf_r|floatformat:1 }} + {% if ztf.survey %} + {% for survey in ztf.survey.all %} + {{ survey.experiment }} {{ survey.start|date:"d.m.y H:i" }} - {{ survey.stop|date:"d.m.y H:i" }}
+ {% endfor %} + {% endif %} +
{{ ztf.created|date:"d.m.y H:i" }}
MSKMSKJ2000(Prob)magmagMSKMSK
+{% endif %} + + + + + + +{% if artcats and user.is_authenticated and user|has_group:"srg-artxc-survey" %} + +{% endif %} + + +{% block heasarcbase %} + + {% if heasarc %} + + + + +

{{ heasarc.description }}

+ + + + + + + + + + + + + + + + + + + + + + + + +
NameRADecLonLatHealpix
+ {{ heasarc.name }} + {{ heasarc.ra|floatformat:3 }}{{ heasarc.dec|floatformat:2 }}{{ heasarc.lii|floatformat:3 }}{{ heasarc.bii|floatformat:2 }}{{ heasarc.healpix }}
+{% endif %} + + + +{% endblock %} + +{% block backref %} +{% if erotrans_set %} +

Back reference to eRosita daily source lists (EroTrans)

+ +{% endif %} + +{% if erosurvey_set %} +

Back reference to eRosita surveys (EroSurvey)

+ +{% endif %} + +{% if artcat_set %} +

Back reference to ART-XC catalogs (ArtCat)

+ +{% endif %} +{% endblock %} + + +{% block content %}{% endblock %} + +
+ + + + + diff --git a/Templates/erositadailycatalogues/index.html b/Templates/erositadailycatalogues/index.html new file mode 100644 index 0000000..e95e368 --- /dev/null +++ b/Templates/erositadailycatalogues/index.html @@ -0,0 +1,520 @@ +{% extends "base.html" %} +{% load heasarc_templates %} +{% load simbadescape %} + +{% block header %} + +{% endblock %} +{% block precontent %}{% endblock %} +{% block content %} +{% if cat %} +

Source list {{ cat.obsid }} ({{ cat.nrows }} rows)

+

Dates: {{ cat.start|date:"d M Y H:i" }} - {{ cat.stop|date:"d M Y H:i" }}, + MJD: {{ cat.mjd_start|floatformat:4 }} - {{ cat.mjd_stop|floatformat:4 }}, + eRoDays: {{ cat.eroday_start }} - {{ cat.eroday_stop }}, + Created {{ cat.created|date:"d.m.y H:i" }}

+

Matched only ({{ match_count }}) | + Not matched ({{ nomatch_count }}) | + Transients ({{ trans_count }}) + {% if gaia_match_count %}| Gaia ({{ gaia_match_count }}){% endif %} +

+ + {% if srcs %} + + + + + + + + + + + + + + + + + {% for src in srcs %} + + + + + + + + + + + {% endfor %} + + + + +
Source nameN/MatchRADecDET_LIKE_0ML_FLUX_0RateFlux
+ + {{ src.name }} {% if src.rosat_transient %}(ROSAT){% endif %} + {{ src.heasarc.all.count }}{{ src.ra|floatformat:3 }}{{ src.dec|floatformat:2 }}{{ src.DET_LIKE_0|floatformat:2 }}{{ src.ML_FLUX_0|floatformat:2 }}{{ src.rate|floatformat:4 }}{{ src.flux|stringformat:"1.2e" }}
+ {% endif %} + +{% endif %} + + {% if src %} +

{{ src.name }} ({{ src.heasarc.all.count }} matches) from {{ src.catalog.obsid }}

+

RA & DEC: {{ src.ra|floatformat:4 }} {{ src.dec|floatformat:4 }}
+ L & B: {{ src.lii|floatformat:4 }} {{ src.bii|floatformat:4 }}
+ Ext, Ext Like: {{src.EXT|floatformat:-2}};{{src.EXT_LIKE|floatformat:-2}}
+ Dates: {{ src.catalog.start|date:"d M Y H:i" }} - {{ src.catalog.stop|date:"d M Y H:i" }}, + MJD: {{ src.catalog.mjd_start|floatformat:4 }} - {{ src.catalog.mjd_stop|floatformat:4 }}, + eRoDays: {{ src.catalog.eroday_start }} - {{ src.catalog.eroday_stop }}, + Created {{ src.created|date:"d.m.y H:i" }}, + Modified {{ src.created|date:"d.m.y H:i" }}
+ simbad ref
+ NED ref +

+ +

+ DET_LIKE_0: {{ src.DET_LIKE_0|floatformat:2 }}, + ML_FLUX_0: {{ src.ML_FLUX_0|floatformat:2 }}, + flux: {{ src.flux|stringformat:"1.2e" }} erg/sec/cm^2 +

+ + {% if heasarcs %} +

XMMSSC (3XMM DR8 Version) CSC (Chandra Source Catalog, v2.0) RASS2RXS, AllWISEAGN

+ + + + + + + + + + + + + + + + + + {% for hsrc in heasarcs %} + {% if hsrc.description != 'HeasarcXrayMaster' and hsrc.description != 'HeasarcCHANMASTER' %} + + + + + + + + + + + + + + {% endif %} + {% endfor %} + + +
TableNameRADecLonLatError (arcsec)Offset (arcsec)flux, erg/sec/cm^2Notes
{{ hsrc.description|remove_heasarc }} + {{ hsrc.name }} + {{ hsrc.ra|floatformat:3 }}{{ hsrc.dec|floatformat:3 }}{{ hsrc.lii|floatformat:3 }}{{ hsrc.bii|floatformat:3 }}{% if hsrc.error_radius > 0 %}{{ hsrc.error_radius|floatformat:2 }}{% endif %}{{ hsrc.separation|floatformat:3 }}{{ hsrc.erosita_flux|stringformat:"1.3e" }} + {% if hsrc.description == 'HeasarcCSC' %} + {% if hsrc.extent_flag == 'T' %}extended{% endif %} + {% endif %} +
+ {% endif %} + + {% if gaia %} +

GAIA

+ + + + + + + + + + + + + + + + + + {% for gaiasrc in gaia %} + + + + + + + + + + + + + + {% endfor %} + + + +
nameradecOffset (arcsec)parallaxparallax errorpmrapmra_errorpmdecpmdec_errormagnitude
{{ gaiasrc.name }}{{ gaiasrc.ra|stringformat:".3e"}} {{ gaiasrc.dec|stringformat:".3e"}} {{ gaiasrc.separation|floatformat:3 }}{{ gaiasrc.parallax|stringformat:".3e" }}{{ gaiasrc.parallax_error|stringformat:".3e" }}{{ gaiasrc.pmra|stringformat:".3e" }}{{ gaiasrc.pmra_error|stringformat:".3e" }}{{ gaiasrc.pmdec|stringformat:".3e" }}{{ gaiasrc.pmdec_error|stringformat:".3e" }}{{ gaiasrc.phot_g_mean_mag|stringformat:".1f" }}
+ {% endif %} + + {% if sdss %} +

SDSS

+ + + + + + + + + + + + + {% for sdsssrc in sdss %} + + + + + + + + + {% endfor %} + + + +
specobjidradecOffset (arcsec)ZZerr
{{ sdsssrc.specobjid }}{{ sdsssrc.ra|floatformat:-3}} {{ sdsssrc.dec|floatformat:-3}} {{ sdsssrc.separation|floatformat:3 }}{{ sdsssrc.z|stringformat:".3e" }}{{ sdsssrc.z_err|stringformat:".3e" }}
+ {% endif %} + + {% if simbad %} +

Simbad

+ + + + + + + + + + + + + {% for simsrc in simbad %} + + + + + + + + + {% endfor %} + + + +
major-idradecOffset (arcsec)classZ
{{ simsrc.main_id }}{{ simsrc.ra|floatformat:-3}} {{ simsrc.dec|floatformat:-3}} {{ simsrc.separation|floatformat:3 }}{{ simsrc.obj_class }}{{ simsrc.z|stringformat:".3e" }}
+ {% endif %} + + + {% if flesch %} +

Flesch 2019

+ + + + + + + + + + + + + {% for fleschsrc in flesch %} + + + + + + + + + {% endfor %} + + + +
nameradecOffset (arcsec)ZZerr
{{ fleschsrc.name }}{{ fleschsrc.ra|floatformat:-3}} {{ fleschsrc.dec|floatformat:-3}} {{ fleschsrc.separation|floatformat:3 }}{{ fleschsrc.z|stringformat:".3e" }}{{ fleschsrc.z_err|stringformat:".3e" }}
+ {% endif %} + + + {% if heasarc_xray %} +

HEASARC X-ray Master

+ + + + + + + + + + + {% for hsrc in heasarc_xray %} + + + + + + + {% endfor %} + + + + +
MissionNameOffset (arcsec)Type
{{ hsrc.observatory }} ({{ hsrc.database_table }}) + {{ hsrc.name }} + {{ hsrc.separation|floatformat:3 }} + {% if hsrc.class_id != 9999 %} + {{ hsrc.object_class.class_name }} + {% endif %} +
+ {% endif %} + + {% if heasarc_chanmaster %} +

HEASARC Chandra Master

+ + + + + + + + + + + + {% for hsrc in heasarc_chanmaster %} + + + + + + + + {% endfor %} + + + + +
ObsIDNameOffset (arcsec)Exposure (sec)Notes
{{ hsrc.obsid }} + {{ hsrc.name }} + {{ hsrc.separation|floatformat:3 }}{{ hsrc.exposure }}PI: {{ hsrc.pi }}, {{ hsrc.category }}
+ {% endif %} + +
+ + + + + + + {% endif %} + + + {% if alerce_match %} + + + + + + + + + + + + + {% for src in alerce_match %} + + + + + + + {% endfor %} + + + +
Source nameFluxEroTrans CatalogZTF alert
+ + {{ src.name }} {% if src.rosat_transient %}(ROSAT){% endif %} + {{ src.flux|stringformat:"1.1e" }} {{ src.catalog }} {{ src.catalog.start|date:"d.m.y H:i" }} - {{ src.catalog.stop|date:"d.m.y H:i" }} + {% if src.alerce.all %} + {% for ztf in src.alerce.all %} + {{ ztf.oid }} {{ ztf.get_early_class }} {{ ztf.firstdate|date:"d.m.y H:i" }} - {{ ztf.lastdate|date:"d.m.y H:i" }}
+ {% endfor %} + {% endif %} +
+{% endif %} + +{% if srcs %} + + + + + +
+ + + + + + {% endif %} + + +{% endblock %} diff --git a/Templates/erositadailycatalogues/listerositasample.html b/Templates/erositadailycatalogues/listerositasample.html new file mode 100644 index 0000000..a228e21 --- /dev/null +++ b/Templates/erositadailycatalogues/listerositasample.html @@ -0,0 +1,227 @@ +{% extends "base.html" %} +{% load heasarc_templates %} +{% load simbadescape %} + +{% block javascripts %} + + + + + + + + + + +{% endblock %} + +{% block precontent %} + +{% if srcs %} + +

pavel quality: {{pq}}

+ +

The list of {{ sample_name }}, total count {{srcs.count}}

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
last updatedorder coltype filterclass filterstatus filterfollowup filterqualitysrc per page
{{cat.stop}} + + +
+
+ + +

pavel quality: {{pq}}

+ + + +
+
+
+{% else %} +

This sample has zero sources

+{% endif %} + + + + + + +{% endblock %} + + diff --git a/Templates/erositadailycatalogues/listsources.html b/Templates/erositadailycatalogues/listsources.html new file mode 100644 index 0000000..367a4e7 --- /dev/null +++ b/Templates/erositadailycatalogues/listsources.html @@ -0,0 +1,195 @@ +{% load simbadescape %} + +

{{totcount}} sources

+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +{% for src in srcs %} + + + + + + + + + + + + + + + + + + + + + + +{% endfor %} + +
Source name + + lbstart date + + + stop date + + + + +flux + + + max ratio + + + +min ratio + + + +Simbad class + Simbad z SRGz + +comments + +ztf (class + + , sep " + +) + + + +
+ +{{ src.name }}{% if src.EXT_LIKE > 10 %}

ext!

{% endif %}
+
{{ src.lii|floatformat:-3 }}{{ src.bii|floatformat:-3 }}{{ src.tstart|date:'Y-m-d' }}{{ src.tstop|date:'Y-m-d' }}{% if src.erositatransient.onlydetection%}V{%else%}T{%endif%}{{src.survey}}{{ src.sxflux|stringformat:"1.1e" }}{{src.erositatransient.ratio_to_maxxflux|floatformat:-1}} {{src.erositatransient.ratio_to_minxflux|floatformat:-1}} {% if src.erositatransient.plx %} + {% endif %}{% if src.erositatransient.sclass %}{{ src.erositatransient.sclass }}{% endif %}{% if src.erositatransient.z and src.erositatransient.z != "nan" %}{{ src.erositatransient.z }}{% endif %} + +{{ src.srcclass }} + +{% if src.sourcecomment_set.all %} + + + + + +{% endif %} + {{src.erositatransient.pavel_qual}} +{% if src.erositatransient.ztfcl %} {{ src.erositatransient.ztfcl }}, {{ src.erositatransient.ztfcl_sep|floatformat:-1 }}" {% endif %}{{src.srcstatus}}{{src.followup}}
+
+ + + + diff --git a/Templates/erositadailycatalogues/listsources_oldversion.html b/Templates/erositadailycatalogues/listsources_oldversion.html new file mode 100644 index 0000000..7d8b4c1 --- /dev/null +++ b/Templates/erositadailycatalogues/listsources_oldversion.html @@ -0,0 +1,95 @@ +{% load simbadescape %} + + + + + + + + + + + + + + + + + + + +{% for src in srcs %} + + + + + + + + + + + + + + +{% endfor %} + +
Source namelbobs date + + + DET_LIKE_0 + + + flux + + + max X-ray companion flux + + + + (name, ratio + + + )Simbad class + + (name, sep " + + + )Gaiaztf (class + + , sep " + +)comments
+ +{{ src.name }}{% if src.EXT_LIKE > 10 %}

ext!

{% endif %}
+
{{ src.lii|floatformat:-3 }}{{ src.bii|floatformat:-3 }}{{ src.tstart|date:'Y-m-d' }}--{{ src.tstop|date:'Y-m-d' }}{{ src.DET_LIKE_0|stringformat:"1.3e" }}{{ src.sxflux|stringformat:"1.1e" }}{% if src.max_companion_xflux %}{{ src.max_companion_xflux|stringformat:"1.1e" }}({{src.max_com_name}}, {{src.max_com_sep|floatformat:-1}}", {{src.ratio_to_maxxflux|floatformat:-1}}) + {% else %}

{{src.rasslim|stringformat:"1.1e"}} ({{src.rasslimratio|floatformat:-1}})

{% endif %}
{% if src.sclass %}{{ src.sclass }} +, {% if sdssz %}z={{ src.sdssz }}(sdss){% else %}{% if src.ssz and src.ssz != "nan" %}z={{ src.ssz }}{% endif %}{% endif %}{% endif %}{% if src.plx %} + {% endif %}{% if src.ztfcl %} {{ src.ztfcl }}, {{ src.ztfcl_sep|floatformat:-1 }}" {% endif %} +{% if src.sourcecomment_set.all %} + + + + + +{% endif %}
+ + + + diff --git a/Templates/erositadailycatalogues/viewsource.html b/Templates/erositadailycatalogues/viewsource.html new file mode 100644 index 0000000..806059a --- /dev/null +++ b/Templates/erositadailycatalogues/viewsource.html @@ -0,0 +1,213 @@ +{% extends "base.html" %} +{% load mathfilters %} +{% load heasarc_templates %} +{% load simbadescape %} + +{% block javascripts %} + + +{% endblock %} + +{% block precontent %} + + +{% if src %} +
+

Source

+

{{ src.name }}

+

RA, DEC: {{ src.ra|floatformat:4 }} {{ src.dec|floatformat:4 }}

+

l, b: {{ src.lii|floatformat:4 }} {{ src.bii|floatformat:4 }}

+

Flux 0.5-2 keV: {{ src.sxflux|stringformat:"1.1e" }} erg/(s cm2)

+

ML_CTS_0 : {{ src.ML_CTS_0|stringformat:".1f" }} pm {{src.ML_CTS_ERR_0|stringformat:".1f"}}

+

Detection likelihood: {{src.DET_LIKE_0|stringformat:"1.1e"}}

+

Extended: ext_like={{ src.EXT_LIKE|stringformat:"f"}}, ext_err={{src.EXT_ERR|stringformat:"f"}}

+ + +
+
+

Catalog

+

+obsid: {{ cat.obsid }}, start: {{ cat.start }}, ends: {{cat.stop }}, erodays: {{ cat.eroday_start }}--{{ cat.eroday_stop }} +

+
+ +
+

Simbad + +NED +

+
+

The list of all counterparts

+ + + + + + + + + + + + + +{% for csrc in src.connectto.all|dictsort:"separation" %} + + + + + + + + +{% endfor %} + + +
Source nameradecflux and aux infooffset, "catalog
{{ csrc.connected.name }}{{ csrc.connected.ra|floatformat:3 }}{{ csrc.connected.dec|floatformat:3 }} + {% if csrc.connected.sxflux > 0 %} {{ csrc.connected.sxflux|stringformat:"1.1e" }}(X-ray 0.5-2 keV){% endif %} + {% if csrc.connected.gaiasource %} + {{ csrc.connected.gaiasource.phot_g_mean_mag|floatformat:-1 }}(G mag) + + plx={{csrc.connected.gaiasource.parallax|floatformat:-2}}±{{csrc.connected.gaiasource.parallax_error|floatformat:-2}}, + pmra={{csrc.connected.gaiasource.pmra|floatformat:-2}}±{{csrc.connected.gaiasource.pmra_error|floatformat:-2}}, + pmdec={{csrc.connected.gaiasource.pmdec|floatformat:-2}}±{{csrc.connected.gaiasource.pmdec_error|floatformat:-2}} + + {% endif %} + {% if csrc.connected.sdssspec %}z={{csrc.connected.sdssspec.z|stringformat:"1.2e"}}{% endif %} + {% if csrc.connected.ztfoid %}ztf classrf: {{csrc.connected.ztfoid.classrf}}, g {{csrc.connected.ztfoid.mean_magap_g|floatformat:-1}}, r {{csrc.connected.ztfoid.mean_magap_r|floatformat:-1}}{% endif %} + {% if csrc.connected.simbadsource %} class={{csrc.connected.simbadsource.obj_class}} {%if csrc.connected.simbadsource.z > 0.0001 %} z={{csrc.connected.simbadsource.z}} {% endif %} {% endif %} + {{ csrc.separation|floatformat:3 }}{{ csrc.connected.catalog.first.name }}
+
+ +{% if src.sourcecomment_set.all %} +
+

Comments

+{% for comment in src.sourcecomment_set.all %} +
+

{{comment.text}}

+

{{comment.author.username}} ({{comment.created}})

+
+{%endfor%} +
+{% endif %} + +

Add comment

+
+{% csrf_token %} +
+ +
+
+ + +{% if src.srcauxdata %} +{% load static %} +
+ +
+
+ +
+{% endif %} + +
+ + + + + + + + + +{% endif %} +{% endblock %} + diff --git a/Templates/erositadailycatalogues/viewsource_erosita.html b/Templates/erositadailycatalogues/viewsource_erosita.html new file mode 100644 index 0000000..f983470 --- /dev/null +++ b/Templates/erositadailycatalogues/viewsource_erosita.html @@ -0,0 +1,740 @@ +{% extends "base.html" %} +{% load mathfilters %} +{% load heasarc_templates %} +{% load simbadescape %} + +{% block javascripts %} + + + + + + + +{% endblock %} + +{% block precontent %} + + + + +

Source:{{src.name}}

+
+
+

+

survey {{src.survey}}

+ {% for srcdet in detections %} +

survey {{srcdet.survey}}

+ {% endfor %} + {% comment %} +

Transient

+ {% if refsrc %}

reference

{% endif %} + {% endcomment %} +
+
+
+

name

+

{{src.name}}

+ {% for srcdet in detections %} +
{%if srcdet.detected %}

{{srcdet.name}}

{% endif %}
+ {% endfor %} + {% comment %} +

{{src.name}}

+ {% if refsrc %}

{% if true_counterpart %}{{refsrc.name}}{% endif %}

{% endif %} + {% endcomment %} +
+
+
+

obs start

+

{{src.tstart}}

+ {% for srcdet in detections %} +

{{srcdet.tstart}}

+ {% endfor %} + {% comment %} +

{{src.tstart}}

+ {% if refsrc %}

{{refsrc.tstart}}

{% endif %} + {% endcomment %} +
+
+

obs stop

+

{{src.tstop}}

+ {% for srcdet in detections %} +

{{srcdet.tstop}}

+ {% endfor %} + {% comment %} + {% if refsrc %}

{{refsrc.tstop}}

{% endif %} + {% endcomment %} +
+
+
+

RA

+

{{src.ra|floatformat:-4}}

+ {% for srcdet in detections %} +

{{srcdet.ra|floatformat:-4}}

+ {% endfor %} + {% comment %} + {% if refsrc %}

{% if true_counterpart %}{{refsrc.ra|floatformat:-4}}{% endif %}

{% endif %} + {% endcomment %} +
+
+

DEC

+

{{src.dec|floatformat:-4}}

+ {% for srcdet in detections %} +

{{srcdet.dec|floatformat:-4}}

+ {% endfor %} + {% comment %} + {% if refsrc %}

{% if true_counterpart %}{{refsrc.dec|floatformat:-4}}{% endif %}

{% endif %} + {% endcomment %} +
+
+
+

RADEC_ERR

+

{{src.error_radius|floatformat:-1}}

+ {% for srcdet in detections %} +
{%if srcdet.detected %}

{{srcdet.error_radius|floatformat:-4}}

{% endif %}
+ {% endfor %} + {% comment %} + {% if refsrc %}

{% if true_counterpart %}{{refsrc.error_radius|floatformat}}{% endif %}

{% endif %} + {% endcomment %} +
+ +
+

ML_BKG_0

+

{{src.ML_BKG_0|floatformat:-1}}

+ {% for srcdet in detections %} +
{%if srcdet.detected %}

{{srcdet.ML_BKG_0|floatformat:-1}}

{% endif %}
+ {% endfor %} + {% comment %} + {% if refsrc %}

{% if true_counterpart %}{{refsrc.ML_BKG_0|floatformat}}{% endif %}

{% endif %} + {% endcomment %} +
+
+
+

EXT

+

{{src.EXT|floatformat:-1}}

+ {% for srcdet in detections %} +
{%if srcdet.detected %}

{{srcdet.EXT}}

{% endif %}
+ {% endfor %} + {% comment %} + {% if refsrc %}

{% if true_counterpart %}{{refsrc.EXT|floatformat}}{% endif %}

{% endif %} + {% endcomment %} +
+
+

EXT_ERR

+

{{src.EXT_ERR|floatformat:-1}}

+ {% for srcdet in detections %} +
{%if srcdet.detected %}

{{srcdet.EXT_ERR|floatformat:-1}}

{% endif %}
+ {% endfor %} + {% comment %} + {% if refsrc %}

{% if true_counterpart %}{{refsrc.EXT_ERR|floatformat}}{% endif %}

{% endif %} + {% endcomment %} +
+
+

EXT_LIKE

+

{{src.EXT_LIKE|stringformat:"f"}}

+ {% for srcdet in detections %} +
{%if srcdet.detected %}

{{srcdet.EXTLIKE}}

{% endif %}
+ {% endfor %} + {% comment %} + {% if refsrc %}

{% if true_counterpart %}{{refsrc.EXT_LIKE|stringformat:"f"}}{% endif %}

{% endif %} + {% endcomment %} +
+ +
+
+

ML_EXP_1

+

{{src.ML_EXP_1|floatformat:-1}}

+ {% for srcdet in detections %} +
{%if srcdet.detected %}{{srcdet.ML_EXP_1}}{% endif %}
+ {% endfor %} + {% comment %} + {% if refsrc %}

{% if true_counterpart %}{{refsrc.ML_EXP_1|floatformat}}{% endif %}

{% endif %} + {% endcomment %} +
+
+ + +
+

lii

+

{{src.lii|floatformat:-3}}

+ {% for srcdet in detections %} +
{%if srcdet.detected %}

{{srcdet.lii|floatformat:-3}}

{% endif %}
+ {% endfor %} + {% comment %} + {% if refsrc %}

{% if true_counterpart %}{{refsrc.lii|floatformat:-3}}{% endif %}

{% endif %} + {% endcomment %} +
+ +
+

bii

+

{{src.bii|floatformat:-3}}

+ {% for srcdet in detections %} +
{%if srcdet.detected %}

{{srcdet.bii|floatformat:-3}}

{% endif %}
+ {% endfor %} + {% comment %} + {% if refsrc %}

{% if true_counterpart %}{{refsrc.bii|floatformat}}{% endif %}

{% endif %} + {% endcomment %} +
+
+ +
+

flux

+

{{src.sxflux|stringformat:"1.1e"}}

+ {% for srcdet in detections %} +
{%if srcdet.detected %}{%else%}{%endif%}

{{srcdet.sxflux|stringformat:"1.1e"}}

+ {% endfor %} + {% comment %} + {% if refsrc %}

{{refflux|stringformat:"1.1e"}}

{% endif %} + {% endcomment %} +
+
+

ML_CTS_0

+

{{src.ML_CTS_0|stringformat:".1f"}}

+ {% for srcdet in detections %} +
{%if srcdet.detected %}

{{srcdet.ML_CTS_0|stringformat:".1f"}}

{%endif%}
+ {% endfor %} + {% comment %} + {% if refsrc %}

{% if true_counterpart %}{{refsrc.ML_CTS_0|stringformat:".1f"}}{% endif %}

{% endif %} + {% endcomment %} +
+ +
+

DETLKL

+

{{src.DET_LIKE_0|stringformat:"1.1e"}}

+ {% for srcdet in detections %} +
{%if srcdet.detected %}

{{srcdet.DET_LIKE_0|stringformat:"1.1e"}}

{%endif%}
+ {% endfor %} + {% comment %} + {% if refsrc %}

{% if true_counterpart %}{{refsrc.DET_LIKE_0|stringformat:"1.1e"}}{% endif %}

{% endif %} + {% endcomment %} +
+
+
+ + +{% if src.sourcecomment_set.all %} +
+

Final comment

+
+

{{src.sourcecomment_set.last.text}}

+

{{src.sourcecomment_set.last.author.username}} ({{src.sourcecomment_set.last.created}})

+
+
+ +{% endif %} + + + + + + + + + + + + + + + + + + +

Source:{{src.name}}

+
+ + {% if src.srcauxdata %} + {% load static %} +
+
+

Gamma = {{src.srcauxdata.gamma|floatformat:-2 }} ({{src.srcauxdata.gammael|floatformat:-2 }}, {{src.srcauxdata.gammaeu|floatformat:-2 }}) nH = {{src.srcauxdata.nh|stringformat:"1.1e"}}

+
+
+

Gamma = {{refsrc.srcauxdata.gamma|floatformat:-2 }} ({{refsrc.srcauxdata.gammael|floatformat:-2 }}, {{refsrc.srcauxdata.gammaeu|floatformat:-2 }}) nH = {{refsrc.srcauxdata.nh|stringformat:"1.1e" }}

+
+
+ +
+
+ {% comment %} + {% if src.srcauxdata.gamma > 0 %} + + {% autoescape off %} + {{ srcspec }} + {% endautoescape %} +
+ +
+ {%endif%} + {% endcomment %} + +
+ {% for refsrc in detections %} +
+ {%if refsrc and refsrc.srcauxdata and refsrc.srcauxdata.specimg %} + {% comment %} + + {% endcomment %} + + {% endif %} +
+ {%endfor%} +
+
+
+ {% if src.srcauxdata %} + + {% endif %} +
+ {% for refsrc in detections %} +
+ {% if refsrc.srcauxdata and refsrc.srcauxdata.img %} + + {% comment %} + + {% endcomment %} + {% endif %} +
+ {% endfor %} +
+ {% endif %} + +
+
+ +
+ {% for refsrc in detections %} +
+ +
+ {% endfor %} +
+ +
+ + + + + + +
+

Simbad + +NED +

+
+ +{% if gaia.count %} +
+

GAIA

+ + + + + + + + + + + + + + +{% for csrc in gaia %} + + + + + + + + + + + +{% endfor %} + + +
Source nameradecG magplxpmrapmdecoffset, "
{{ csrc.name }}{{ csrc.ra|floatformat:5 }}{{ csrc.dec|floatformat:5 }} + {{ csrc.gaiasource.phot_g_mean_mag|floatformat:-1 }} + + {{csrc.gaiasource.parallax|floatformat:-2}}±{{csrc.gaiasource.parallax_error|floatformat:-2}} + + {{csrc.gaiasource.pmra|floatformat:-2}}±{{csrc.gaiasource.pmra_error|floatformat:-2}} + + {{csrc.gaiasource.pmdec|floatformat:-2}}±{{csrc.gaiasource.pmdec_error|floatformat:-2}} + {{ csrc.sep|floatformat:3 }}
+
+{% endif %} + +{% if simbad.count %} +

Simbad

+
+ + + + + + + + + + + +{% for csrc in simbad %} + + + + + + + + +{% endfor %} + + +
Source nameradecclass & zoffset, "
{{ csrc.name }}{{ csrc.ra|floatformat:3 }}{{ csrc.dec|floatformat:3 }} + class={{csrc.simbadsource.obj_class}} {%if csrc.simbadsource.z > 0.0001 %} z={{csrc.simbadsource.z}} {% endif %} + {{ csrc.sep|floatformat:3 }}
+
+{% endif %} + + +{% if xray.count %} +

X-ray

+
+ + + + + + + + + + + + +{% for csrc in xray %} + + + + + + + + + +{% endfor %} + + +
Source nameradecflux, erg/s offset, "catalog
{{ csrc.name }}{{ csrc.ra|floatformat:3 }}{{ csrc.dec|floatformat:3 }} + {{ csrc.sxflux|stringformat:"1.1e" }} + {{ csrc.sep|floatformat:3 }}{{ csrc.catalog.first.name }}
+
+{% endif %} + +{% if ztf.count %} +

ZTF

+
+ + + + + + + + + + + +{% for csrc in ztf %} + + + + + + + + +{% endfor %} + + +
Source nameradecclass, Mag offset, "
{{ csrc.name }}{{ csrc.ra|floatformat:3 }}{{ csrc.dec|floatformat:3 }} + ztf classrf: {{csrc.connected.ztfoid.classrf}}, g {{csrc.connected.ztfoid.mean_magap_g|floatformat:-1}}, r {{csrc.connected.ztfoid.mean_magap_r|floatformat:-1}} + {{ csrc.sep|floatformat:3 }}
+
+{% endif %} + +{% if allwise.count %} +

AllWISE

+
+ + + + + + + + + + + + + + +{% for csrc in allwise %} + + + + + + + + + + + +{% endfor %} + + +
Source nameradecW1 W2 W3 W4 offset, "
{{ csrc.name }}{{ csrc.ra|floatformat:3 }}{{ csrc.dec|floatformat:3 }}{{ csrc.w1mag|floatformat:3 }}{{ csrc.w2mag|floatformat:3 }}{{ csrc.w3mag|floatformat:3 }}{{ csrc.w4mag|floatformat:3 }}{{ csrc.sep|floatformat:3 }}
+
+{% endif %} + + + + +
+ + +{% comment %} +
+
+
+ + + + +{% endcomment %} + + + + +
+{% if src.sourcecomment_set.all %} +

Comments

+{% for comment in src.sourcecomment_set.all %} +
+

{{comment.text}}

+

{{comment.author.username}} ({{comment.created}})

+{% if comment.author == user %} + + +{% endif %} +
+{%endfor%} +{% endif %} +
+ + + + + +

Add comment

+
+{% csrf_token %} +
+ +
+
+ + +{% endblock %} + diff --git a/Templates/erosurvey/index.html b/Templates/erosurvey/index.html new file mode 100644 index 0000000..6695722 --- /dev/null +++ b/Templates/erosurvey/index.html @@ -0,0 +1,211 @@ +{% extends "base.html" %} +{% load heasarc_templates %} + +{% block header %}{% endblock %} +{% block precontent %}{% endblock %} +{% block content %} + +

+4XMM DR9 | Gaia +

+ + {% if cat %} +

{{ cat.name }} ({{ cat.nrows }})

+

Matched only ({{ match_count }}) | No matched ({{ nomatch_count }})

+ + {% if srcs %} + + + + + + + + + + + + + + + + + + {% for src in srcs %} + + + + + + + + + + + + + + {% endfor %} + +
NameN/MatchRADecDET_LIKE_0ML_FLUX_0ML_RATE_0
+ {{ src.name }} {{ src.id_src }} + {{ src.heasarc.all.count }}{{ src.ra|floatformat:3 }}{{ src.dec|floatformat:2 }}{{ src.DET_LIKE_0|floatformat:2 }}{{ src.ML_FLUX_0|stringformat:"1.1e" }} ± {{ src.ML_FLUX_ERR_0|stringformat:"1.1e" }} + {{ src.ML_RATE_0|floatformat:4 }} ± {{ src.ML_RATE_ERR_0|floatformat:4 }} + + {{ src.xmm_name }} + + {% if src.simbad.count == 1 %} + {% for simbad in src.simbad.all %} + {{ simbad.obj_class }} + {% endfor %} + {% endif %} + +
+ {% endif %} + + {% if src %} +

{{ src.name }} ({{ src.heasarc.all.count }} matches) RA={{ src.ra|floatformat:4 }}, Dec={{ src.dec|floatformat:4 }}

+ + {% if heasarcs %} +

XMMSSC (3XMM DR8 Version) CSC (Chandra Source Catalog, v2.0) RASS2RXS

+ + + + + + + + + + + + + + + + + {% for src in heasarcs %} + {% if src.description != 'HeasarcXrayMaster' and src.description != 'HeasarcCHANMASTER' %} + + + + + + + + + + + + + {% endif %} + {% endfor %} + + + + +
TableNameRADecLonLatError (arcsec)Offset (arcsec)Notes
{{ src.description|remove_heasarc }} + {{ src.name }} + {{ src.ra|floatformat:3 }}{{ src.dec|floatformat:3 }}{{ src.lii|floatformat:3 }}{{ src.bii|floatformat:3 }}{% if src.error_radius > 0 %}{{ src.error_radius|floatformat:2 }}{% endif %}{{ src.separation|floatformat:3 }} + {% if src.description == 'HeasarcCSC' %} + {% if src.extent_flag == 'T' %}extended{% endif %} + {% endif %} +
+ {% endif %} + + {% if heasarcs %} +

HEASARC X-ray Master

+ + + + + + + + + + + {% for src in heasarcs %} + {% if src.description == 'HeasarcXrayMaster' %} + + + + + + + {% endif %} + {% endfor %} + + + + +
MissionNameOffset (arcsec)Type
{{ src.observatory }} ({{ src.database_table }}) + {{ src.name }} + {{ src.separation|floatformat:3 }} + {% if src.class_id != 9999 %} + {{ src.object_class.class_name }} + {% endif %} +
+ {% endif %} + + {% if heasarcs %} +

HEASARC Chandra Master

+ + + + + + + + + + + + {% for src in heasarcs %} + {% if src.description == 'HeasarcCHANMASTER' %} + + + + + + + + {% endif %} + {% endfor %} + + + + +
ObsIDNameOffset (arcsec)Exposure (sec)Notes
{{ src.obsid }} + {{ src.name }} + {{ src.separation|floatformat:3 }}{{ src.exposure }}PI: {{ src.pi }}, {{ src.category }}
+ {% endif %} + + {% endif %} + + + + {% endif %} + + +{% endblock %} diff --git a/Templates/erosurvey/source_name.html b/Templates/erosurvey/source_name.html new file mode 100644 index 0000000..5707e1f --- /dev/null +++ b/Templates/erosurvey/source_name.html @@ -0,0 +1,18 @@ + +{% extends "base.html" %} +{% load heasarc_templates %} + +{% block header %}{% endblock %} + +{% block content %} + +
+ {% csrf_token %} + {{ form }} + +
+ +{% if name %}

{{ name }}

{% endif %} + +{% endblock %} + diff --git a/Templates/erotrans/erotrans_loaded_email.html b/Templates/erotrans/erotrans_loaded_email.html new file mode 100644 index 0000000..74c48a0 --- /dev/null +++ b/Templates/erotrans/erotrans_loaded_email.html @@ -0,0 +1,21 @@ +

New eRosita daily source list

+ +

Source catalog with ObsID {{ cat.obsid }} is loaded to SRG-ArXiv database.

+ +

The catalog can be found here, or using this link: http://arxiv.srg.rssi.ru/{{ cat.get_absolute_url }}.

+ +

Source list info and statistics:

+ +

Dates: {{ cat.start|date:"d M Y H:i:s" }} - {{ cat.stop|date:"d M Y H:i:s" }}, MJD: {{ cat.mjd_start|floatformat:4 }} - {{ cat.mjd_stop|floatformat:4 }}, eRoDays: {{ cat.eroday_start }} - {{ cat.eroday_stop }}

+ +

+ Total {{ cat.nrows }} rows | + Matched only ({{ cat.nmatched }}) | + Not matched ({{ nomatch_count }}) | + Transients ({{ cat.ntransients }}) +

+ +

This SRG-ArXiv service email is sent to all registered users of arxiv.srg.rssi.ru within group srg-erosita-transients. + +

This message is intended for the use of the addressee or addressees only. The unauthorised disclosure, use, dissemination or copying (either in whole or in part) of its content is not permitted. If you received this message in error, please notify the sender and delete it from your system.

+ diff --git a/Templates/erotrans/index.html b/Templates/erotrans/index.html new file mode 100644 index 0000000..6e33f5b --- /dev/null +++ b/Templates/erotrans/index.html @@ -0,0 +1,527 @@ +{% extends "base.html" %} +{% load heasarc_templates %} +{% load simbadescape %} + +{% block header %} +Daily source lists +All transients +bright transients with counterparts +X-ray sources faded in erosita +Bright sources not detected in Rosat +ZTF alerts + +{% endblock %} +{% block precontent %}{% endblock %} +{% block content %} + + {% if cat %} +

Source list {{ cat.obsid }} ({{ cat.nrows }} rows)

+

Dates: {{ cat.start|date:"d M Y H:i" }} - {{ cat.stop|date:"d M Y H:i" }}, + MJD: {{ cat.mjd_start|floatformat:4 }} - {{ cat.mjd_stop|floatformat:4 }}, + eRoDays: {{ cat.eroday_start }} - {{ cat.eroday_stop }}, + Created {{ cat.created|date:"d.m.y H:i" }}

+

Matched only ({{ match_count }}) | + Not matched ({{ nomatch_count }}) | + Transients ({{ trans_count }}) + {% if gaia_match_count %}| Gaia ({{ gaia_match_count }}){% endif %} +

+ + {% if srcs %} + + + + + + + + + + + + + + + + + {% for src in srcs %} + + + + + + + + + + + {% endfor %} + + + + +
Source nameN/MatchRADecDET_LIKE_0ML_FLUX_0RateFlux
+ + {{ src.name }} {% if src.rosat_transient %}(ROSAT){% endif %} + {{ src.heasarc.all.count }}{{ src.ra|floatformat:3 }}{{ src.dec|floatformat:2 }}{{ src.DET_LIKE_0|floatformat:2 }}{{ src.ML_FLUX_0|floatformat:2 }}{{ src.rate|floatformat:4 }}{{ src.flux|stringformat:"1.2e" }}
+ {% endif %} + +{% endif %} + + {% if src %} +

{{ src.name }} ({{ src.heasarc.all.count }} matches) from {{ src.catalog.obsid }}

+

RA & DEC: {{ src.ra|floatformat:4 }} {{ src.dec|floatformat:4 }}
+ L & B: {{ src.lii|floatformat:4 }} {{ src.bii|floatformat:4 }}
+ Ext, Ext Like: {{src.EXT|floatformat:-2}};{{src.EXT_LIKE|floatformat:-2}}
+ Dates: {{ src.catalog.start|date:"d M Y H:i" }} - {{ src.catalog.stop|date:"d M Y H:i" }}, + MJD: {{ src.catalog.mjd_start|floatformat:4 }} - {{ src.catalog.mjd_stop|floatformat:4 }}, + eRoDays: {{ src.catalog.eroday_start }} - {{ src.catalog.eroday_stop }}, + Created {{ src.created|date:"d.m.y H:i" }}, + Modified {{ src.created|date:"d.m.y H:i" }}
+ simbad ref
+ NED ref +

+ +

+ DET_LIKE_0: {{ src.DET_LIKE_0|floatformat:2 }}, + ML_FLUX_0: {{ src.ML_FLUX_0|floatformat:2 }}, + flux: {{ src.flux|stringformat:"1.2e" }} erg/sec/cm^2 +

+ + {% if heasarcs %} +

XMMSSC (3XMM DR8 Version) CSC (Chandra Source Catalog, v2.0) RASS2RXS, AllWISEAGN

+ + + + + + + + + + + + + + + + + + {% for hsrc in heasarcs %} + {% if hsrc.description != 'HeasarcXrayMaster' and hsrc.description != 'HeasarcCHANMASTER' %} + + + + + + + + + + + + + + {% endif %} + {% endfor %} + + +
TableNameRADecLonLatError (arcsec)Offset (arcsec)flux, erg/sec/cm^2Notes
{{ hsrc.description|remove_heasarc }} + {{ hsrc.name }} + {{ hsrc.ra|floatformat:3 }}{{ hsrc.dec|floatformat:3 }}{{ hsrc.lii|floatformat:3 }}{{ hsrc.bii|floatformat:3 }}{% if hsrc.error_radius > 0 %}{{ hsrc.error_radius|floatformat:2 }}{% endif %}{{ hsrc.separation|floatformat:3 }}{{ hsrc.erosita_flux|stringformat:"1.3e" }} + {% if hsrc.description == 'HeasarcCSC' %} + {% if hsrc.extent_flag == 'T' %}extended{% endif %} + {% endif %} +
+ {% endif %} + + {% if gaia %} +

GAIA

+ + + + + + + + + + + + + + + + + + {% for gaiasrc in gaia %} + + + + + + + + + + + + + + {% endfor %} + + + +
nameradecOffset (arcsec)parallaxparallax errorpmrapmra_errorpmdecpmdec_errormagnitude
{{ gaiasrc.name }}{{ gaiasrc.ra|stringformat:".3e"}} {{ gaiasrc.dec|stringformat:".3e"}} {{ gaiasrc.separation|floatformat:3 }}{{ gaiasrc.parallax|stringformat:".3e" }}{{ gaiasrc.parallax_error|stringformat:".3e" }}{{ gaiasrc.pmra|stringformat:".3e" }}{{ gaiasrc.pmra_error|stringformat:".3e" }}{{ gaiasrc.pmdec|stringformat:".3e" }}{{ gaiasrc.pmdec_error|stringformat:".3e" }}{{ gaiasrc.phot_g_mean_mag|stringformat:".1f" }}
+ {% endif %} + + {% if sdss %} +

SDSS

+ + + + + + + + + + + + + {% for sdsssrc in sdss %} + + + + + + + + + {% endfor %} + + + +
specobjidradecOffset (arcsec)ZZerr
{{ sdsssrc.specobjid }}{{ sdsssrc.ra|floatformat:-3}} {{ sdsssrc.dec|floatformat:-3}} {{ sdsssrc.separation|floatformat:3 }}{{ sdsssrc.z|stringformat:".3e" }}{{ sdsssrc.z_err|stringformat:".3e" }}
+ {% endif %} + + {% if simbad %} +

Simbad

+ + + + + + + + + + + + + {% for simsrc in simbad %} + + + + + + + + + {% endfor %} + + + +
major-idradecOffset (arcsec)classZ
{{ simsrc.main_id }}{{ simsrc.ra|floatformat:-3}} {{ simsrc.dec|floatformat:-3}} {{ simsrc.separation|floatformat:3 }}{{ simsrc.obj_class }}{{ simsrc.z|stringformat:".3e" }}
+ {% endif %} + + + {% if flesch %} +

Flesch 2019

+ + + + + + + + + + + + + {% for fleschsrc in flesch %} + + + + + + + + + {% endfor %} + + + +
nameradecOffset (arcsec)ZZerr
{{ fleschsrc.name }}{{ fleschsrc.ra|floatformat:-3}} {{ fleschsrc.dec|floatformat:-3}} {{ fleschsrc.separation|floatformat:3 }}{{ fleschsrc.z|stringformat:".3e" }}{{ fleschsrc.z_err|stringformat:".3e" }}
+ {% endif %} + + + {% if heasarc_xray %} +

HEASARC X-ray Master

+ + + + + + + + + + + {% for hsrc in heasarc_xray %} + + + + + + + {% endfor %} + + + + +
MissionNameOffset (arcsec)Type
{{ hsrc.observatory }} ({{ hsrc.database_table }}) + {{ hsrc.name }} + {{ hsrc.separation|floatformat:3 }} + {% if hsrc.class_id != 9999 %} + {{ hsrc.object_class.class_name }} + {% endif %} +
+ {% endif %} + + {% if heasarc_chanmaster %} +

HEASARC Chandra Master

+ + + + + + + + + + + + {% for hsrc in heasarc_chanmaster %} + + + + + + + + {% endfor %} + + + + +
ObsIDNameOffset (arcsec)Exposure (sec)Notes
{{ hsrc.obsid }} + {{ hsrc.name }} + {{ hsrc.separation|floatformat:3 }}{{ hsrc.exposure }}PI: {{ hsrc.pi }}, {{ hsrc.category }}
+ {% endif %} + +
+ + + + + + + {% endif %} + + + {% if alerce_match %} + + + + + + + + + + + + + {% for src in alerce_match %} + + + + + + + {% endfor %} + + + +
Source nameFluxEroTrans CatalogZTF alert
+ + {{ src.name }} {% if src.rosat_transient %}(ROSAT){% endif %} + {{ src.flux|stringformat:"1.1e" }} {{ src.catalog }} {{ src.catalog.start|date:"d.m.y H:i" }} - {{ src.catalog.stop|date:"d.m.y H:i" }} + {% if src.alerce.all %} + {% for ztf in src.alerce.all %} + {{ ztf.oid }} {{ ztf.get_early_class }} {{ ztf.firstdate|date:"d.m.y H:i" }} - {{ ztf.lastdate|date:"d.m.y H:i" }}
+ {% endfor %} + {% endif %} +
+{% endif %} + +{% if srcs %} + + + + + +
+ + + + + + {% endif %} + + +{% endblock %} diff --git a/Templates/erotrans/source_name.html b/Templates/erotrans/source_name.html new file mode 100644 index 0000000..5707e1f --- /dev/null +++ b/Templates/erotrans/source_name.html @@ -0,0 +1,18 @@ + +{% extends "base.html" %} +{% load heasarc_templates %} + +{% block header %}{% endblock %} + +{% block content %} + +
+ {% csrf_token %} + {{ form }} + +
+ +{% if name %}

{{ name }}

{% endif %} + +{% endblock %} + diff --git a/Templates/erotrans/transients.html b/Templates/erotrans/transients.html new file mode 100644 index 0000000..eac0259 --- /dev/null +++ b/Templates/erotrans/transients.html @@ -0,0 +1,359 @@ +{% extends "base.html" %} +{% load heasarc_templates %} + + + +{% block header %} +Daily source lists +All transients +bright transients with counterparts +X-ray sources faded in erosita +Bright sources not detected in Rosat +ZTF alerts + +{% endblock %} + +{% block precontent %} + +{% if bright %} +

The list of all detected {{ bright_name }}

+ + + + + + + + + + + + + + + + + + + + + {% for src in bright %} + + + + + + + + + + + + + + + + + {% endfor %} + + +
Source namelbobs dateDET_LIKE_0fluxrosatxmmsxpschandraredshift | parallax | pmoffset, "Simbad classes
+ {{ src.name }} {% if src.heasarc.exists %} H{% endif %} {% if src.gaia.exists %} G{% endif %}{% if src.sdss_spec.exists %} S {% endif %}{% if src.simbad.exists %} Sb{% endif %} + {% if src.green.exists %} !Near SNR! {% endif %} + {{ src.lii|floatformat:-3 }}{{ src.bii|floatformat:-3 }}{{ src.catalog.start|date:'Y-m-d' }}{{ src.DET_LIKE_0|stringformat:"1.3e" }}{{ src.flux|stringformat:"1.1e" }}{% if src.rassratio %}{{ src.rassratio|stringformat:"1.1e" }}{% else %}{{ src.rlimratio|stringformat:"1.1e" }}{%endif%}{{ src.xmmratio|stringformat:"1.1e" }}{{ src.sxpsratio|stringformat:"1.1e" }}{{ src.cscratio|stringformat:"1.1e" }} {% if src.z %}z={{ src.z|floatformat:-5 }}; {% elif src.sz %} z= {{src.sz|floatformat:-5}}; {% elif src.fz %} z={{ src.fz|floatformat:-5 }}; {% endif %} + {% if src.plx %}plx={{ src.plx|floatformat:-5 }}; {% elif src.pmr %}pm={{ src.pmr|floatformat:-5 }}; {% elif src.pmd %} pm={{src.pmd|floatformat:-5 }}; {% endif %} + {{ src.offset|floatformat:3}} {{ src.sclass}}
+{% endif %} + +{% if dim %} +

The list of all detected {{ faded_name }}

+ + + + + + + + + + + + + + + + + + + + {% for src in dim %} + + + + + + + + + + + + + + + + {% endfor %} + + +
Source namelbobs dateDET_LIKE_0fluxrosatxmmsxpschandraredshift | parallax | pm offset, "
+ {{ src.name }} {% if src.heasarc.exists %} H{% endif %} {% if src.gaia.exists %} G{% endif %}{% if src.sdss_spec.exists %} S {% endif %}{% if src.simbad.exists %} Sb{% endif %} + {{ src.lii|floatformat:1 }}{{ src.bii|floatformat:1 }}{{ src.catalog.start|date:'Y-m-d' }}{{ src.DET_LIKE_0|stringformat:"1.1e" }}{{ src.flux|stringformat:"1.1e" }}{% if src.rassratio %}{{ src.rassratio|stringformat:"1.1e" }}{% else %}{{ src.rlimratio|stringformat:"1.1e" }}{%endif%}{{ src.xmmratio|stringformat:"1.1e" }}{{ src.sxpsratio|stringformat:"1.1e" }}{{ src.cscratio|stringformat:"1.1e" }} {% if src.z %}z={{ src.z|floatformat:-5 }}; {% elif src.sz %} z= {{src.sz|floatformat:-5}}; {% elif src.fz %} z={{ src.fz|floatformat:-5 }}; {% endif %} + {% if src.plx %}plx={{ src.plx|floatformat:-5 }}; {% elif src.pmr %}pm={{ src.pmr|floatformat:-5 }}; {% elif src.pmd %} pm={{src.pmd|floatformat:-5}}; {% endif %} + {{ src.offset|floatformat:3}}
+{% endif %} + + +{% if src %} +

{{ src.name }} ({{ src.heasarc.all.count }} matches) RA, DEC: {{ src.ra|floatformat:4 }} {{ src.dec|floatformat:4 }} l, b: {{ src.lii|floatformat:4 }} {{ src.bii|floatformat:4 }}

+

Flux 2-5 keV:

+ + {% if heasarcs %} +

XMMSSC (3XMM DR8 Version) CSC (Chandra Source Catalog, v2.0) RASS2RXS

+ + + + + + + + + + + + + + + + + + {% for src in heasarcs %} + {% if src.description != 'HeasarcXrayMaster' and src.description != 'HeasarcCHANMASTER' %} + + + + + + + + + + + + + + {% endif %} + {% endfor %} + + + + +
TableNameRADecLonLatError (arcsec)Offset (arcsec)NotesScaled flux
{{ src.description|remove_heasarc }} + {{ src.name }} + {{ src.ra|floatformat:3 }}{{ src.dec|floatformat:3 }}{{ src.lii|floatformat:3 }}{{ src.bii|floatformat:3 }}{% if src.error_radius > 0 %}{{ src.error_radius|floatformat:2 }}{% endif %}{{ src.separation|floatformat:3 }} + {% if src.description == 'HeasarcCSC' %} + {% if src.extent_flag == 'T' %}extended{% endif %} + {% endif %} + + +
+ {% endif %} + + {% if heasarcs %} +

HEASARC X-ray Master

+ + + + + + + + + + + {% for src in heasarcs %} + {% if src.description == 'HeasarcXrayMaster' %} + + + + + + + {% endif %} + {% endfor %} + + + + +
MissionNameOffset (arcsec)Type
{{ src.observatory }} ({{ src.database_table }}) + {{ src.name }} + {{ src.separation|floatformat:3 }} + {% if src.class_id != 9999 %} + {{ src.object_class.class_name }} + {% endif %} +
+ {% endif %} + + {% if heasarcs %} +

HEASARC Chandra Master

+ + + + + + + + + + + + {% for src in heasarcs %} + {% if src.description == 'HeasarcCHANMASTER' %} + + + + + + + + {% endif %} + {% endfor %} + + + + +
ObsIDNameOffset (arcsec)Exposure (sec)Notes
{{ src.obsid }} + {{ src.name }} + {{ src.separation|floatformat:3 }}{{ src.exposure }}PI: {{ src.pi }}, {{ src.category }}
+ {% endif %} + +{% endif %} + +{% endblock %} + +{% block content %} +{% if srcs %} + + + +
+ + + + + + +
+
white circles - bright transients

+
green circles - faded transients
+ {% endif %} + + +{% endblock %} diff --git a/Templates/groups/base.html b/Templates/groups/base.html new file mode 100644 index 0000000..f1d5c55 --- /dev/null +++ b/Templates/groups/base.html @@ -0,0 +1,109 @@ +{% load heasarc_templates %} +{% load srgcat_templates %} +{% load i18n %} +{% load static %} + + + + + {% block title %}SRG ArXiv{% endblock %} + + + + + + + + + + + + + + + + + + + + + + + + +{% block header %}{% endblock %} + +{% block content %}{% endblock %} + + + diff --git a/Templates/groups/index.html b/Templates/groups/index.html new file mode 100644 index 0000000..f5df4ba --- /dev/null +++ b/Templates/groups/index.html @@ -0,0 +1,44 @@ +{% extends "groups/base.html" %} +{% load heasarc_templates %} + +{% block header %}{% endblock %} +{% block precontent %}{% endblock %} +{% block content %} +
+ + +{% if user.is_authenticated %} +

Registered SRG ArXiv groups

+ +{% endif %} + + +{% if django_group %} +

Группа: {{ django_group.name }}

+ + + + + + + + + + + + {% for user in django_group.user_set.all %} + + + + + + + {% endfor %} +
ИмяФамилияАккаунтАвторизация
{{ user.first_name }}{{ user.last_name }}{{ user }}{% if user.last_login %}{{ user.last_login|date:"d.m.Y" }}{% endif %}
+{% endif %} +
+{% endblock %} diff --git a/Templates/heasarc/base.html b/Templates/heasarc/base.html new file mode 100644 index 0000000..c97d39b --- /dev/null +++ b/Templates/heasarc/base.html @@ -0,0 +1,692 @@ +{% load artsurvey_templates %} +{% load heasarc_templates %} +{% load srgcat_templates %} +{% load i18n %} +{% load static %} + + + + + {% block title %}SRG ArXiv{% endblock %} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +{% block header %} + + +
+ + + + +{% if src %} +

{{ src.name }} RA={{ src.ra|floatformat:4 }} Dec={{ src.dec|floatformat:4 }} {% if src.radec_error %}({{ src.radec_error|floatformat:4 }}''){% endif %}{% if src.error_radius %}({{ src.error_radius|floatformat:4 }}''){% endif %}

+ +

+Search in VizieR 5'' | ZTF ALERCE 5'' +

+ + +

Show details

+{% else %} +N/A +{% endif %} + +{% if artsurveysources_listed %} +

+


+

Associated ART-XC sources ({{ artsurveysources_listed.count }}) +

+ +{% endif %} + +
+{% endblock %} + +
+{% block content %}{% endblock %} +
+ +
+ +{% block counterparts %} + +

Make new optical counterpart

+ + + + + + + + + + + + + + + {% for usersrc in usercat %} + + + + + + + + + + + + {% endfor %} + + +
NameNotesRADecOffset ('')Optical Bands
{{ usersrc.name }} + {% if usersrc.notes %}{% endif %} + {{ usersrc.ra|floatformat:4}} {{ usersrc.dec|floatformat:4}} {{ usersrc.separation|floatformat:4}} + [+] + {% for magn in usersrc.magnitudes.all %} + {{ magn.band }} {{ magn.magn }} ± {{ magn.error}} [del], + {% endfor %} + + + Edit + + Delete +
+ + + +{% if src.gaia3_primary %}
Gaia primary: {{ src.gaia3_primary }} VizieR{% endif %} + + {% if gaia_plx %} + +

Gaia "star / parallax" counterparts ({{ gaia_plx.count }}) +

+
+

Gaia DR3 "star" parallax ({{ gaia_plx.count }}) {% if not gaia_plx %}| sort by {% endif %}

+ +

+

abs(parallax) > 4*parallax_error
+

+ + + + + + + + + + + + + + + + + + + + {% for gaiasrc in gaia_plx %} + + + + + + + + + + + + + + + {% endfor %} + + +
NameRADecOffset ('')ParallaxParallax errorpmrapmra_errorpmdecpmdec_errorMag{% if src.gaia3_primary %}Clean{% endif %}
{{ gaiasrc.name }} VizieR{{ gaiasrc.ra|floatformat:4}} {{ gaiasrc.dec|floatformat:4}} {{ gaiasrc.separation|floatformat:2 }}{{ gaiasrc.parallax|floatformat:3 }}{{ gaiasrc.parallax_error|floatformat:3 }}{{ gaiasrc.pmra|floatformat:3 }}{{ gaiasrc.pmra_error|floatformat:3 }}{{ gaiasrc.pmdec|floatformat:3 }}{{ gaiasrc.pmdec_error|floatformat:3 }}{{ gaiasrc.phot_g_mean_mag|stringformat:".1f" }} + {% if src.gaia3_primary.pk == gaiasrc.pk %} + Attached + {% else %} + Primary + {% endif %} +
+
+ {% endif %} + + + {% if gaia_pm %} +

Gaia "star / proper motion" counterparts ({{ gaia_pm.count }}) +

+
+

Gaia DR3 "star" proper motion ({{ gaia_pm.count }}) {% if not gaia_pm %}| sort by {% endif %}

+ +

+

abs(pmra) > 4*pmra_error OR abs(pmdec) > 4*pmdec_error
+

+ + + + + + + + + + + + + + + + + + + + {% for gaiasrc in gaia_pm %} + + + + + + + + + + + + + + + {% endfor %} + + +
NameRADecOffset ('')ParallaxParallax errorpmrapmra_errorpmdecpmdec_errorMag{% if src.gaia3_primary %}Clean{% endif %}
{{ gaiasrc.name }}{{ gaiasrc.ra|floatformat:4}} {{ gaiasrc.dec|floatformat:4}} {{ gaiasrc.separation|floatformat:2 }}{{ gaiasrc.parallax|floatformat:3 }}{{ gaiasrc.parallax_error|floatformat:3 }}{{ gaiasrc.pmra|floatformat:3 }}{{ gaiasrc.pmra_error|floatformat:3 }}{{ gaiasrc.pmdec|floatformat:3 }}{{ gaiasrc.pmdec_error|floatformat:3 }}{{ gaiasrc.phot_g_mean_mag|stringformat:".1f" }} + {% if src.gaia3_primary.pk == gaiasrc.pk %} + Attached + {% else %} + Primary + {% endif %} +
+
+ {% endif %} + + {% if gaia_ex %} + +

Gaia "other" counterparts ({{ gaia_ex.count }}) +

+
+ +

Gaia DR3 "other" exclude paralax and proper motion {% if not gaia_ex.count %} | sort by {% endif %}

+ +

+

exclude { abs(pmra) > 4*pmra_error OR abs(pmdec) > 4*pmdec_error OR abs(pmra) > 4*pmra_error OR abs(pmdec) > 4*pmdec_error OR abs(parallax) > 4*parallax_error }
+

+ + + + + + + + + + + + + + + + + + + + {% for gaiasrc in gaia_ex %} + + + + + + + + + + + + + + + {% endfor %} + + +
NameRADecOffset ('')ParallaxParallax errorpmrapmra_errorpmdecpmdec_errorMag{% if src.gaia3_primary %}Clean{% endif %}
{{ gaiasrc.name }}{{ gaiasrc.ra|floatformat:4}} {{ gaiasrc.dec|floatformat:4}} {{ gaiasrc.separation|floatformat:2 }}{% if gaiasrc.parallax < 100 %}{{ gaiasrc.parallax|floatformat:3 }}{% else %}N/A{% endif %}{% if gaiasrc.parallax_error < 100 %}{{ gaiasrc.parallax_error|floatformat:3 }}{% else %}N/A{% endif %}{% if gaiasrc.pmra < 100 %}{{ gaiasrc.pmra|floatformat:3 }}{% else %}N/A{% endif %}{% if gaiasrc.pmra_error < 100 %}{{ gaiasrc.pmra_error|floatformat:3 }}{% else %}N/A{% endif %}{% if gaiasrc.pmdec < 100 %}{{ gaiasrc.pmdec|floatformat:3 }}{% else %}N/A{% endif %}{% if gaiasrc.pmdec_error < 100 %}{{ gaiasrc.pmdec_error|floatformat:3 }}{% else %}N/A{% endif %}{% if gaiasrc.phot_g_mean_mag < 100 %}{{ gaiasrc.phot_g_mean_mag|stringformat:".1f" }}{% else %}N/A{% endif %} + {% if src.gaia3_primary.pk == gaiasrc.pk %} + Attached + {% else %} + Primary + {% endif %} +
+
+ {% endif %} + + + + +{% if src.glimpse_primary %}
GLIMPSE primary: {{ src.glimpse_primary }}{% endif %} + + {% if glimpse %} + +

GLIMPSE counterparts ({{ glimpse.count }}) +

+
+ + {% if not glimpse.count %} +

sort by

+ {% endif %} + + + + + + + + + + + + + + + + + + + + + + + {% for obj in glimpse %} + + + + + + + + + + + + + + + + + + {% endfor %} + + +
NameRADecError ('')Offset ('')JHKBand 1Band 2Band 3Band 4dupqual{% if src.glimpse_primary %}Clean{% endif %}
{{ obj.name }}{{ obj.ra|floatformat:4 }}{{ obj.dec|floatformat:4 }}{{ obj.error_radius|floatformat:2 }}{{ obj.separation|floatformat:2 }}{{ obj.jmag|safe }}{{ obj.hmag|safe }}{{ obj.kmag|safe }}{{ obj.b1mag|safe }} ± {{ obj.e_b1mag|safe }}{{ obj.b2mag|safe }} ± {{ obj.e_b2mag|safe }}{{ obj.b3mag|safe }} ± {{ obj.e_b3mag|safe }}{{ obj.b4mag|safe }} ± {{ obj.e_b4mag|safe }}{{ obj.dupflag|safe }}{{ obj.qualflag|safe }} + {% if src.glimpse_primary.pk == obj.pk %} + Attached + {% else %} + Primary + {% endif %} +
+
+ {% endif %} + + + +{% if src.twomass_primary %}
2MASS primary: {{ src.twomass_primary }}{% endif %} + + {% if twomass %} + +

2MASS counterparts ({{ twomass.count }}) +

+
+ + {% if not twomass.count %} +

sort by

+ {% endif %} + + + + + + + + + + + + + + + + + + + + + + + + {% for obj in twomass %} + + + + + + + + + + + + + + + + + + + {% endfor %} + + +
NameRADecError ('')Offset ('')JmagHmagKmagqkfgrkfgbkfgckfgproxxflgaflg{% if src.twomass_primary %}Clean{% endif %}
{{ obj.name }}{{ obj.ra|floatformat:4 }}{{ obj.dec|floatformat:4 }}{{ obj.error_radius|floatformat:2 }}{{ obj.separation|floatformat:2 }}{{ obj.jmag|safe }} ± {{ obj.e_jmag|safe }}{{ obj.hmag|safe }} ± {{ obj.e_hmag|safe }}{{ obj.kmag|safe }} ± {{ obj.e_kmag|safe }}{{ obj.qkfg|safe }}{{ obj.rkfg|safe }}{{ obj.bkfg|safe }}{{ obj.ckfg|safe }}{{ obj.prox|safe }}{{ obj.xflg|safe }}{{ obj.aflg|safe }} + {% if src.twomass_primary.pk == obj.pk %} + Attached + {% else %} + Primary + {% endif %} +
+
+ {% endif %} + + + +{% if src.allwise_primary %}
AllWise primary: {{ src.allwise_primary }}{% endif %} + + {% if allwise %} + +

AllWise counterparts ({{ allwise.count }}) +

+
+ + {% if not allwise.count %} +

sort by

+ {% endif %} + + + + + + + + + + + + + + + + + {% for obj in allwise %} + + + + + + + + + + + + {% endfor %} + + +
NameRADecError ('')Offset ('')w1magw2magw1-w2{% if src.allwise_primary %}Clean{% endif %}
{{ obj.name }} NEOWISE csv{{ obj.ra|floatformat:4 }}{{ obj.dec|floatformat:4 }}{{ obj.error_radius|floatformat:2 }}{{ obj.separation|floatformat:2 }} + {% if obj.W1mag %} + {{ obj.W1mag|floatformat:2 }} ± {{ obj.e_W1mag|floatformat:2 }} + {% endif %} + + {% if obj.W2mag %} + {{ obj.W2mag|floatformat:2 }} ± {{ obj.e_W2mag|floatformat:2 }} + {% endif %} + + {{ obj.w1w2|floatformat:2 }} ± {{ obj.w1w2_error|floatformat:2 }} + + {% if src.allwise_primary.pk == obj.pk %} + Attached + {% else %} + Primary + {% endif %} +
+
+ {% endif %} + + + +{% if src.vlass_primary %}
VLASS primary: {{ src.vlass_primary }}{% endif %} + + {% if vlass %} + +

VLASS counterparts ({{ vlass.count }}) +

+
+ + {% if not vlass.count %} +

sort by

+ {% endif %} + + + + + + + + + + + + + + + + + {% for obj in vlass %} + + + + + + + + + + + + {% endfor %} + + +
NameRADecOffset ('')FtotFpeakDupl. [help]Qual. [help]{% if src.vlass_primary %}Clean{% endif %}
{{ obj.name }}{{ obj.ra|floatformat:4 }}° (± {{ obj.e_ra|safe }}''){{ obj.dec|floatformat:4 }}° (± {{ obj.e_dec|safe }}''){{ obj.separation|floatformat:2 }}{{ obj.ftot|safe }} ± {{ obj.e_ftot|safe }}{{ obj.fpeak|safe }} ± {{ obj.e_fpeak|safe }}{{ obj.dupflag|safe }}{{ obj.qualflag|safe }} + {% if src.vlass_primary.pk == obj.pk %} + Attached + {% else %} + Primary + {% endif %} +
+
+ {% endif %} + + + +{% endblock %} +
+ + + diff --git a/Templates/heasarc/index.html b/Templates/heasarc/index.html new file mode 100644 index 0000000..b2a42b6 --- /dev/null +++ b/Templates/heasarc/index.html @@ -0,0 +1,54 @@ + +{% extends "base.html" %} + +{% block header %} + +HEASARC Catalog Resources Index | +HEASARC Object Classification + +

Loaded HEASARC table descriptions:

+ + +{% endblock %} +{% block precontent %}{% endblock %} +{% block content %} + +

Loaded HEASARC catalogs

+ +

+