{% extends "base_bootstrap.html" %} {% load render_table from django_tables2 %} {% block title %}Candidate {{transient.id}}{% endblock %} {% block lightcurvedataglobal %} {% endblock %} {% block recurrencedataglobal %} {% endblock %} {% block lightcurvedata %} {% endblock %} {% block lightcurvedataforced %} {% if lcdataforced.0 %} {% endif %} {% endblock %} {% block lightcurvedataforcedflux %} {% if lcdataforcedflux.0 %} {% endif %} {% endblock %} {% block lightcurvedataforcedstackflux %} {% if lcdataforcedstackflux.0 %} {% endif %} {% endblock %} {% block colourplotdataglobal %} {% endblock %} {% block colourplotdata %} {% if colourdata.0.0 or colourdata.0.1 or colourdata.0.2 %} {% endif %} {% endblock %} {% block recurrenceplotdata %} {% endblock %} {% if fpData %} {% block fprecurrenceplotdata %} {% endblock %} {% endif %} {% block colourplotdataforced %} {% if colourdataforced.0.0 or colourdataforced.0.1 or colourdataforced.0.2 %} {% endif %} {% endblock %} {% block content %}

{% if transient.atlas_designation %} {{ transient.atlas_designation }} {% else %} {{ transient.id }} {% endif %}

Coords:

{{ avg_coords.ra_sex }} {{ avg_coords.dec_sex }}

({{ avg_coords.ra|floatformat:"5" }} {% if avg_coords.dec >= 0.0 %}+{% endif %}{{ avg_coords.dec|floatformat:"5" }})

{% if galactic %}
Galactic (l,b)
{% if galactic.1 > -15 and galactic.1 < 15 %} ({{ galactic.0|floatformat:"5" }},{{ galactic.1|floatformat:"5" }}) {% else %} ({{ galactic.0|floatformat:"5" }},{{ galactic.1|floatformat:"5" }}) {% endif %}
{% endif %} {% if transient.realbogus_factor or transient.rb_pix %}
Realbogus Factors
{% if transient.realbogus_factor %}{{ transient.realbogus_factor|floatformat:"2" }} (DEW){% endif %} {% if transient.rb_pix %}{{ transient.rb_pix|floatformat:"2" }} (TF){% endif %}
{% endif %} {% if transient.detection_list_id %}
Flag Date:
{{ transient.followup_flag_date|default_if_none:"" }}
{% endif %}
{% if transient.other_designation %}
IAU Name:
{% endif %} {% if externalXMs %}
See Also:
{% for row in externalXMs %}
{% ifchanged row.external_designation %} {% if row.url %}

{{ row.external_designation }}

{% else %}

{{ row.external_designation }}

{% endif %} {% endifchanged %}
{% endfor %} {% endif %} {% if lasairZTFCrossmatches %}
Lasair ZTF Crossmatches:
{% for row in lasairZTFCrossmatches %} {% if row.separation %}
Offset = {{ row.separation|floatformat:"2" }}"
{% endif %} {% endfor %} {% endif %} {% if tnsXMs %}
TNS Crossmatch:
{% for row in tnsXMs %}
{% ifchanged row.external_designation %} {% if row.url %}

{{ row.external_designation }}

{% else %}

{{ row.external_designation }}

{% endif %} {% endifchanged %}
{% if row.separation %}
Offset = {{ row.separation|floatformat:"2" }}"
{% endif %} {% if row.object_z %}
Object z = {{ row.object_z|floatformat:"3" }}
{% endif %} {% if row.host_z %}
Host z = {{ row.host_z|floatformat:"3" }}
{% endif %} {% if row.discoverer %}
Discoverer = {{ row.discoverer }}
{% endif %} {% if row.other_info and row.other_info != transient.atlas_designation %}
Name = {{ row.other_info }}
{% endif %} {% if row.disc_date %}
Discovered on {{ row.disc_date }}
{% endif %} {% endfor %} {% endif %}
Number of Detections:
{{ table.rows|length }}
{% if transient.detection_list_id %}
Object List:
{{ transient.detection_list_id.name|default_if_none:"" }}
{% endif %} {% if transient.processing_flags %}
Processing Flags:
{{ transient.decode_processing_flags_bits|default_if_none:"" }}
{% endif %} {% if transient.observation_status %}
Spectral Type:
{{ transient.observation_status|default_if_none:"" }}
{% endif %}
Context:

{{ transient.sherlockClassification }}

{% if sc.0.annotation %}
{{ sc.0.annotation|default_if_none:""|safe }}
{% endif %} {% if comments %}
Comments:
{% for comment in comments %}
{{ comment.date_inserted|date:"Y-m-d H:i:s" }}[{{ comment.date_inserted_mjd|floatformat:"5" }}]{% if comment.username %} ({{ comment.username }}){% endif %}: {{ comment.comment }}
{% endfor %} {% endif %} {% if gw %}
Possible GW Events Association:
{% for row in gw %}
{{ row.gravity_event_id }}{% if row.map_iteration.mjd_obs %} qub map (MJD = {{ row.map_iteration.mjd_obs|floatformat:"5" }}).{% endif %}{% if row.days_since_event %} Time since GW trigger {{ row.days_since_event|floatformat:"2" }} days.{% endif %} {% if row.enclosing_contour %} Within {{ row.enclosing_contour|default_if_none:"" }}% contour{% endif %}{% if row.probability %} ({{ row.probability }}%).{% endif %}{% if row.map_iteration.alert_time %} Alert time: {{ row.map_iteration.alert_time }}.{% endif %}{% if row.map_iteration.alert_type %} Alert type: {{ row.map_iteration.alert_type }}.{% endif %}
{% endfor %} {% endif %}
{% if images %}
{% else %}
{% endif %}
Unforced Photometry Lightcurve
Current MJD (vertical line):
{% if lcdataforced.0 %}
Forced Photometry Lightcurve
{% endif %} {% if lcdataforcedflux.0 %}
Forced Photometry Flux
{% endif %} {% if lcdataforcedstackflux.0 %}
Forced Diffstack Photometry Flux
{% endif %} {% if userList %}
Object is a member of:
{% for row in userList %} {% endfor %} {% endif %}
{% if images %}
{% else %}
{% endif %}
{% if conesearchold %}
Partner Database Objects in the Vicinity:
{% for row in conesearchold %} {% endfor %}
Partner Object ID Separation
{% if row.xmName %}{{ row.xmName }}{% if row.xmTNS %} ({{ row.xmTNS }}){% endif %}{% else %}{{ row.xmid }}{% endif %} {{ row.separation|floatformat:2 }}"
{% endif %}
{% if finderImages %}
Finders:
{% for row in finderImages %}
{{ row.pss_filename }}
{% endfor %} {% endif %} {% if avg_coords.dec >= -30.0 %} {% endif %} {% if avg_coords.dec < 0.0 %} {% endif %} {% if transient.detection_list_id.name == "good" or transient.detection_list_id.name == "confirmed" %} {% endif %}
{% if images %}
{% for image in images %} {% ifchanged image.image_group_id %} {% endifchanged %} {% endfor %}
{{ image.image_type }} {% if image.filter %} ({{ image.filter }}) {% endif %} mjd: {{ image.stamp_mjd|floatformat:5 }}
{% if not public %}{% endif %} {{ image.pss_filename }} {% if not public %}{% endif %}
{% endif %}
{% if table.rows.count != 0 %}
{% render_table table %}
{% endif %} {% if not public and user.is_authenticated %} {% if processingStatus != 1 %} {% if form %}
{%csrf_token%} {% for error in form.non_field_errors %}
{{ error }}
{% endfor %} {% for field in form.visible_fields %}
{{ field.errors }}
{{ field.label }}
{% if field.name == "promote_demote" %}
{% for radio in field %} {% endfor %}
{% elif field.name == "user_list_membership" %} {% for choice in field %}
{{ choice.tag }}
{% endfor %} {% else %} {{ field }} {% endif %}
{% endfor %} {% for hidden in form.hidden_fields %} {{ hidden }} {% endfor %}
{% endif %} {% else %}
Database Dump in Progress. Updates not allowed.
{% endif %} {% endif %}
{% if lcdataforced.0 %} {% endif %} {% if lcdataforcedflux.0 %} {% endif %} {% if lcdataforcedstackflux.0 %} {% endif %} {% endblock %}