{% extends "layout.html" %} {% from 'macros.html' import download, panellist, infopopup %} {% block csshead %} {% endblock csshead %} {% block jshead %} {% endblock jshead %} {% block body %}
{% if not cube %}

{{error}}

{% else %} {# Galaxy Meta Data #}

Plate-IFU: {{cube.plateifu}} {{cube._drpver}}

Manga-ID: {{cube.mangaid}}

{% if not cubehdr.ifura|allclose(cubehdr.objra) %}{% endif %}
OBJ RA, Dec{{cubehdr.objra}}{{cubehdr.objdec}}
IFU RA, Dec{{cubehdr.ifura}}{{cubehdr.ifudec}}
IFU Glon, Glat{{cubehdr.ifuglon}}{{cubehdr.ifuglat}}
SN2 Blue, Red{{cubehdr.bluesn2|float|round(2)}}{{cubehdr.redsn2|float|round(2)}}
Date Observed{{cubehdr['DATE-OBS']}}
DAP OutputDAP URL
{# Cube Quality Flags #}
{% set qualstatus = (quality|qaclass)[0] %} {% set qualmsg = (quality|qaclass)[1] %}

Cube Quality: {{qualmsg}}

Bit: {{quality[1]}} Flags
{{download('#galaxydownload', links)}} Go to CAS
{# MaNGA Target Flags #}

MaNGA Target

{% for bit in mngtarget.bits %}
{% set targname = mngtarget.names[loop.index0]|lower %}
{{targname|targtype}} Bit: {{bit}} Flags
{{panellist('Target Flags', mngtarget.labels[loop.index0], targname)}} {% endfor %}
{##}
{{infopopup('Use this cube in Marvin', 'Marvin Cube - start iPython', cubestr, 'marvincube', 'info')}}
{{panellist('Quality Flags', quality[2], 'drp3quality')}}
{% endif %}
{# end metadata div #} {# Map and Spectrum View #} {% if cube %}
{# Initial Static Image Display #}
{{cube.plateifu}} Galaxy Image
{# Dynamic Interaction #}
{% endif %}
{# end of singlegalaxydiv #} {% endblock body %} {% block code %} {% endblock code %}