<!-- 
RSS generated by JIRA (8.3.4#803005-sha1:1f96e09b3c60279a408a2ae47be3c745f571388b) at Sat Feb 10 15:34:10 JST 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>PFS-JIRA</title>
    <link>https://pfspipe.ipmu.jp/jira</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>8.3.4</version>
        <build-number>803005</build-number>
        <build-date>13-09-2019</build-date>
    </build-info>


<item>
            <title>[DAMD-92] Update 1D pipeline DM with multi-type candidates</title>
                <link>https://pfspipe.ipmu.jp/jira/browse/DAMD-92</link>
                <project id="10400" key="DAMD">Data Model</project>
                    <description>&lt;p&gt;The 1D pipeline computes the probability of a source to be a galaxy, a star or a QSO. The current data model provides redshift candidates for the type with the highest probability.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;This story is related to a major update of 1D pipeline DM. The goal is to include to the DM all the candidates whatever the probability of a source to be a galaxy, star or qso.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;We propose the following DM:&lt;/p&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;HDU#0 PDU

HDU#1 GALAXY_CANDIDATES         Binary table            [FITS BINARY TABLE]     NGALAXY_CANDIDATES
        Colums for :
        CRANK                   INT32                   Rank of galaxy candidate (best=0)
        Z                       FLOAT                   Redshift
        Z_ERR                   FLOAT                   Redshift error
        Z_PROBA                 FLOAT                   XXXX (dz=+/-3.e-3)
        SUBCLASS                STR                     Subclassifications
        CFILE                   STR                     Continuum template file name
        LFILE                   STR                     Linecatalog ratio template file name
        MODELFLUX               FLOAT[NROW]             Spectrum model (unit: nJy)

HDU#2 GALAXY_PDF                Binary table            [FITS BINARY TABLE]     NPIX
        Colums for :
        PDF                     FLOAT[NROW]                   PDF marginalised over all models

HDU#3 GALAXY_LINES              Binary table            [FITS BINARY TABLE]     NLINE
        Columns for :
        LINENAME                STR                     Line name
        LINEWAVE                FLOAT                   Catalog wavelength for this line in vacuum (unit: nm)
        LINEZ                   FLOAT                   Redshift
        LINEZ_ERR               FLOAT                   Redshift error
        LINESIGMA               FLOAT                   Gaussian width (unit: nm)
        LINESIGMA_ERR           FLOAT                   Error in gaussian width
        LINEVEL                 FLOAT                   Gaussian width (unit: km/sec)
        LINEVEL_ERR             FLOAT                   Error in gaussian width
        LINEFLUX                FLOAT                   Area in gaussian fit (unit: erg/cm^2/s)
        LINEFLUX_ERR            FLOAT                   Flux error
        LINEEW                  FLOAT                   Equivalent width (unit: nm)
        LINEEW_ERR              FLOAT                   Equivalent width error
        LINECONTLEVEL           FLOAT                   Continuum level at line center (unit: nJy)
        LINECONTLEVEL_ERR       FLOAT                   Error in continuum level at line center

HDU#4 QSO_CANDIDATES            Binary table            [FITS BINARY TABLE]     NQSO_CANDIDATES
        Colums for :
        CRANK                   INT32                   Rank of QSO candidate (best=0)
        Z                       FLOAT                   Redshift
        Z_ERR                   FLOAT                   Redshift error
        Z_PROBA                 FLOAT                   XXXX (dz=+/-3.e-3)
        SUBCLASS                STR                     Subclassifications
        MODELFLUX               FLOAT[NROW]             Spectrum model (unit: nJy)

HDU#5 QSO_PDF                   Binary table            [FITS BINARY TABLE]     NPIX
        Colums for :
        PDF                     FLOAT                   PDF marginalised over all models

HDU#6 QSO_LINES                 Binary table            [FITS BINARY TABLE]     NLINE
        Columns for :
        LINENAME                STR                     Line name
        LINEWAVE                FLOAT                   Catalog wavelength for this line in vacuum (unit: nm)
        LINEZ                   FLOAT                   Redshift
        LINEZ_ERR               FLOAT                   Redshift error
        LINESIGMA               FLOAT                   Gaussian width (unit: nm)
        LINESIGMA_ERR           FLOAT                   Error in gaussian width
        LINEVEL                 FLOAT                   Gaussian width (unit: km/sec)
        LINEVEL_ERR             FLOAT                   Error in gaussian width
        LINEFLUX                FLOAT                   Area in gaussian fit (unit: erg/cm^2/s)
        LINEFLUX_ERR            FLOAT                   Flux error
        LINEEW                  FLOAT                   Equivalent width (unit: nm)
        LINEEW_ERR              FLOAT                   Equivalent width error
        LINECONTLEVEL           FLOAT                   Continuum level at line center (unit: nJy)
        LINECONTLEVEL_ERR       FLOAT                   Error in continuum level at line center

HDU#7 STAR_CANDIDATES            Binary table            [FITS BINARY TABLE]        NSTAR_CANDIDATES
        Columns for :
        CRANK                   INT32                   Rank of star candidate (best=0)
        V                       FLOAT                   Star velocity (unit: kms-1)
        V_ERR                   FLOAT                   Star velocity error
        T_PROBA                 FLOAT                   XXXX
        SUBCLASS                STR                     Subclassifications
        TFILE                   STR                     Template file name
        MODELFLUX               FLOAT[NROW]             Spectrum model (unit: nJy)

HDU#8 STAR_PDF                   Binary table            [FITS BINARY TABLE]     NPIX
        Colums for :
        PDF                     FLOAT                   PDF related to best model&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="15000">DAMD-92</key>
            <summary>Update 1D pipeline DM with multi-type candidates</summary>
                <type id="10001" iconUrl="https://pfspipe.ipmu.jp/jira/secure/viewavatar?size=xsmall&amp;avatarId=10515&amp;avatarType=issuetype">Story</type>
                                            <priority id="10000" iconUrl="https://pfspipe.ipmu.jp/jira/images/icons/priorities/medium.svg">Normal</priority>
                        <status id="10002" iconUrl="https://pfspipe.ipmu.jp/jira/images/icons/statuses/generic.png" description="The issue is resolved, reviewed, and merged">Done</status>
                    <statusCategory id="3" key="done" colorName="green"/>
                                    <resolution id="10000">Done</resolution>
                                        <assignee username="pychabau">Pierre-Yves CHABAUD</assignee>
                                    <reporter username="pychabau">Pierre-Yves CHABAUD</reporter>
                        <labels>
                    </labels>
                <created>Tue, 27 Oct 2020 10:41:37 +0000</created>
                <updated>Fri, 28 Jan 2022 17:16:21 +0000</updated>
                            <resolved>Tue, 11 Jan 2022 16:11:27 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>8</watches>
                                                                <comments>
                            <comment id="18001" author="pychabau" created="Tue, 27 Oct 2020 11:21:01 +0000"  >&lt;p&gt;The header of the FITS file should contains the version of the pipeline used to process spectrum&lt;/p&gt;</comment>
                            <comment id="18004" author="rhl" created="Tue, 27 Oct 2020 21:52:43 +0000"  >&lt;p&gt;How are you planning to track all the configuration parameters?&lt;/p&gt;</comment>
                            <comment id="18006" author="pychabau" created="Wed, 28 Oct 2020 06:52:58 +0000"  >&lt;p&gt;&lt;a href=&quot;https://pfspipe.ipmu.jp/jira/secure/ViewProfile.jspa?name=rhl&quot; class=&quot;user-hover&quot; rel=&quot;rhl&quot;&gt;rhl&lt;/a&gt;&#160; It&apos;s a really good question. There might be lot of paramaters and not so easy to represent. The current parameter file is a JSON structured format whereas fits header is a flat format.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;An other solution could be to track only parameters which are different from default parameters. Indeed, the value of default parameters are embed in the pipeline version. But this solution implies a dynamic header format (keyword might appear or not). I&apos;m not sure if it&apos;s such a good idea.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;How do you manage that on 2D side ?&lt;/p&gt;</comment>
                            <comment id="18007" author="msyktnk" created="Wed, 28 Oct 2020 12:06:09 +0000"  >&lt;p&gt;I agree to have a PDF for each type.&#160; In addition, science users will need P(galaxy), P(QSO), and P(star).&#160; Is that information included in the primary header?&lt;/p&gt;</comment>
                            <comment id="18008" author="pychabau" created="Wed, 28 Oct 2020 13:05:02 +0000"  >&lt;p&gt;&lt;a href=&quot;https://pfspipe.ipmu.jp/jira/secure/ViewProfile.jspa?name=msyktnk&quot; class=&quot;user-hover&quot; rel=&quot;msyktnk&quot;&gt;Masayuki Tanaka&lt;/a&gt; You&apos;re absolutly right. I update the PHDU with the CLASS keyword (should be GALAXY, QSO or STAR) and the computed values of P(galaxy), P(QSO) and P(star)&lt;/p&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;HDU#0 PHDU
     CLASS        KEYWORD     Spectro classification: GALAXY, QSO, STAR
     P_GALAXY     KEYWORD     Probability to be a galaxy
     P_QSO        KEYWORD     Probability to be a QSO
     P_STAR       KEYWORD     Probability to be a star&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="18039" author="pychabau" created="Tue, 10 Nov 2020 15:43:56 +0000"  >&lt;p&gt;In accordance with &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/secure/ViewProfile.jspa?name=msyktnk&quot; class=&quot;user-hover&quot; rel=&quot;msyktnk&quot;&gt;Masayuki Tanaka&lt;/a&gt; and &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/secure/ViewProfile.jspa?name=price&quot; class=&quot;user-hover&quot; rel=&quot;price&quot;&gt;price&lt;/a&gt; proposition, I update the PHDU with pipeline and product versions. I also move classification results to a dedicated classification HDU&lt;/p&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;HDU#0 PHDU
     D1D_VER      KEYWORD     Version of the DRP_1D library
     D1DP_VER     KEYWORD     Version of the DRP_1DPIPE pipeline
     DAMD_VER     KEYWORD     Version of the data model
     PAR_FILE     KEYWORD     Parameters file name

HDU#1 CLASSIFICATION
     CLASS        KEYWORD     Spectro classification: GALAXY, QSO, STAR
     P_GALAXY     KEYWORD     Probability to be a galaxy
     P_QSO        KEYWORD     Probability to be a QSO
     P_STAR       KEYWORD     Probability to be a star

&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="18080" author="ali.allaoui" created="Thu, 26 Nov 2020 14:10:56 +0000"  >&lt;p&gt;Regarding line measurement, wich unit should we use for the flux ? erg/cm^2/s or 10^-35 W/m2/Hz (more consistent with nJy)?&lt;/p&gt;</comment>
                            <comment id="18091" author="rhl" created="Mon, 30 Nov 2020 16:28:24 +0000"  >&lt;p&gt;Why not just use nJy?&lt;/p&gt;</comment>
                            <comment id="18092" author="vlebrun" created="Mon, 30 Nov 2020 16:35:32 +0000"  >&lt;p&gt;nJy is the unit for the spectrum flux density. As for the line flux, we have to integrate over the line profile, leading to a flux in W/m2 (or any other multiple like the vintage erg/cm2/s or nJ.Hz which I never saw but we could be pioneers on that one &lt;img class=&quot;emoticon&quot; src=&quot;https://pfspipe.ipmu.jp/jira/images/icons/emoticons/wink.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&#160;).&lt;/p&gt;</comment>
                            <comment id="18093" author="rhl" created="Mon, 30 Nov 2020 16:45:55 +0000"  >&lt;p&gt;Right; I was being stupid.  So you meant to propose 10^-35 W/m2 (not &quot;/Hz&quot;)?  &lt;/p&gt;</comment>
                            <comment id="18094" author="vlebrun" created="Mon, 30 Nov 2020 16:47:47 +0000"  >&lt;p&gt;well the original mistake was mine actually&#160;&lt;img class=&quot;emoticon&quot; src=&quot;https://pfspipe.ipmu.jp/jira/images/icons/emoticons/tongue.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&#160;so yes I meant W/m2 ...&lt;/p&gt;</comment>
                            <comment id="18095" author="pychabau" created="Tue, 1 Dec 2020 08:56:52 +0000"  >&lt;p&gt;Description of &quot;PDF&quot; HDU will be change &lt;font color=&quot;#1d1c1d&quot;&gt;header from&#160;&lt;/font&gt;&lt;tt&gt;TTYPE2 = &apos;PDF&apos;&lt;/tt&gt;&lt;font color=&quot;#1d1c1d&quot;&gt;&#160; to&#160;&lt;/font&gt;&lt;tt&gt;TTYPE2 = &apos;ln PDF&apos;&lt;/tt&gt; to avoid future confusions.&lt;/p&gt;</comment>
                            <comment id="18406" author="ali.allaoui" created="Fri, 29 Jan 2021 13:17:04 +0000"  >&lt;p&gt;Current proposal for the datamodel (from &lt;a href=&quot;https://github.com/Subaru-PFS/datamodel/blob/tickets/DAMD-92/datamodel.txt&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;https://github.com/Subaru-PFS/datamodel/blob/tickets/DAMD-92/datamodel.txt&lt;/a&gt;) :&lt;/p&gt;

&lt;p&gt;HDU#0 PHDU&lt;br/&gt;
     D1D_VER      KEYWORD     Version of the DRP_1D library&lt;br/&gt;
     D1DP_VER     KEYWORD     Version of the DRP_1DPIPE pipeline&lt;br/&gt;
     DAMD_VER     KEYWORD     Version of the data model&lt;br/&gt;
     PAR_FILE     KEYWORD     Parameters file name&lt;br/&gt;
     ZWARNING     INT64       Quality flag&lt;/p&gt;

&lt;p&gt;HDU#1 CLASSIFICATION&lt;br/&gt;
     CLASS        KEYWORD     Spectro classification: GALAXY, QSO, STAR&lt;br/&gt;
     P_GALAXY     KEYWORD     Probability to be a galaxy&lt;br/&gt;
     P_QSO        KEYWORD     Probability to be a QSO&lt;br/&gt;
     P_STAR       KEYWORD     Probability to be a star&lt;/p&gt;

&lt;p&gt;HDU#1 GALAXY_CANDIDATES         Binary table            &lt;span class=&quot;error&quot;&gt;&amp;#91;FITS BINARY TABLE&amp;#93;&lt;/span&gt;     NGALAXY_CANDIDATES&lt;br/&gt;
        Colums for :&lt;br/&gt;
        CRANK                   INT32                   Rank of galaxy candidate (best=0)&lt;br/&gt;
        Z                       FLOAT                   Redshift&lt;br/&gt;
        Z_ERR                   FLOAT                   Redshift error&lt;br/&gt;
        Z_PROBA                 FLOAT                   Areak of the PDF peak (dz=+/-3.e-3)&lt;br/&gt;
        SUBCLASS                STR                     Subclassifications&lt;br/&gt;
        CFILE                   STR                     Continuum template file name&lt;br/&gt;
        LFILE                   STR                     Linecatalog ratio template file name&lt;br/&gt;
        MODELFLUX               FLOAT&lt;span class=&quot;error&quot;&gt;&amp;#91;NROW&amp;#93;&lt;/span&gt;             Spectrum model (unit: nJy)&lt;/p&gt;

&lt;p&gt;HDU#2 GALAXY_PDF                Binary table            &lt;span class=&quot;error&quot;&gt;&amp;#91;FITS BINARY TABLE&amp;#93;&lt;/span&gt;     NPIX&lt;br/&gt;
        Colums for :&lt;br/&gt;
        REDSHIFT                FLOAT&lt;span class=&quot;error&quot;&gt;&amp;#91;NPIX&amp;#93;&lt;/span&gt;             Redshift grid&lt;br/&gt;
        PDF                     FLOAT&lt;span class=&quot;error&quot;&gt;&amp;#91;NPIX&amp;#93;&lt;/span&gt;             PDF marginalised over all models&lt;/p&gt;

&lt;p&gt;HDU#3 GALAXY_LINES              Binary table            &lt;span class=&quot;error&quot;&gt;&amp;#91;FITS BINARY TABLE&amp;#93;&lt;/span&gt;     NLINE&lt;br/&gt;
        Columns for :&lt;br/&gt;
        LINENAME                STR                     Line name&lt;br/&gt;
        LINEWAVE                FLOAT                   Catalog wavelength for this line in vacuum (unit: nm)&lt;br/&gt;
        LINEZ                   FLOAT                   Redshift&lt;br/&gt;
        LINEZ_ERR               FLOAT                   Redshift error&lt;br/&gt;
        LINESIGMA               FLOAT                   Gaussian width (unit: nm)&lt;br/&gt;
        LINESIGMA_ERR           FLOAT                   Error in gaussian width&lt;br/&gt;
        LINEVEL                 FLOAT                   Gaussian width (unit: km/sec)&lt;br/&gt;
        LINEVEL_ERR             FLOAT                   Error in gaussian width&lt;br/&gt;
        LINEFLUX                FLOAT                   Area in gaussian fit (unit: 10^-35 W/m2)&lt;br/&gt;
        LINEFLUX_ERR            FLOAT                   Flux error&lt;br/&gt;
        LINEEW                  FLOAT                   Equivalent width (unit: nm)&lt;br/&gt;
        LINEEW_ERR              FLOAT                   Equivalent width error&lt;br/&gt;
        LINECONTLEVEL           FLOAT                   Continuum level at line center (unit: nJy)&lt;br/&gt;
        LINECONTLEVEL_ERR       FLOAT                   Error in continuum level at line center&lt;/p&gt;

&lt;p&gt;HDU#4 QSO_CANDIDATES            Binary table            &lt;span class=&quot;error&quot;&gt;&amp;#91;FITS BINARY TABLE&amp;#93;&lt;/span&gt;     NQSO_CANDIDATES&lt;br/&gt;
        Colums for :&lt;br/&gt;
        CRANK                   INT32                   Rank of QSO candidate (best=0)&lt;br/&gt;
        Z                       FLOAT                   Redshift&lt;br/&gt;
        Z_ERR                   FLOAT                   Redshift error&lt;br/&gt;
        Z_PROBA                 FLOAT                   Areak of the PDF peak (dz=+/-3.e-3)&lt;br/&gt;
        SUBCLASS                STR                     Subclassifications&lt;br/&gt;
        MODELFLUX               FLOAT&lt;span class=&quot;error&quot;&gt;&amp;#91;NROW&amp;#93;&lt;/span&gt;             Spectrum model (unit: nJy)&lt;/p&gt;

&lt;p&gt;HDU#5 QSO_PDF                   Binary table            &lt;span class=&quot;error&quot;&gt;&amp;#91;FITS BINARY TABLE&amp;#93;&lt;/span&gt;     NPIX&lt;br/&gt;
        Colums for :&lt;br/&gt;
        REDSHIFT                FLOAT&lt;span class=&quot;error&quot;&gt;&amp;#91;NPIX&amp;#93;&lt;/span&gt;             Redshift grid&lt;br/&gt;
        PDF                     FLOAT&lt;span class=&quot;error&quot;&gt;&amp;#91;NPIX&amp;#93;&lt;/span&gt;             PDF marginalised over all models&lt;/p&gt;

&lt;p&gt;HDU#6 QSO_LINES                 Binary table            &lt;span class=&quot;error&quot;&gt;&amp;#91;FITS BINARY TABLE&amp;#93;&lt;/span&gt;     NLINE&lt;br/&gt;
        Columns for :&lt;br/&gt;
        LINENAME                STR                     Line name&lt;br/&gt;
        LINEWAVE                FLOAT                   Catalog wavelength for this line in vacuum (unit: nm)&lt;br/&gt;
        LINEZ                   FLOAT                   Redshift&lt;br/&gt;
        LINEZ_ERR               FLOAT                   Redshift error&lt;br/&gt;
        LINESIGMA               FLOAT                   Gaussian width (unit: nm)&lt;br/&gt;
        LINESIGMA_ERR           FLOAT                   Error in gaussian width&lt;br/&gt;
        LINEVEL                 FLOAT                   Gaussian width (unit: km/sec)&lt;br/&gt;
        LINEVEL_ERR             FLOAT                   Error in gaussian width&lt;br/&gt;
        LINEFLUX                FLOAT                   Area in gaussian fit (unit: erg/cm^2/s)&lt;br/&gt;
        LINEFLUX_ERR            FLOAT                   Flux error&lt;br/&gt;
        LINEEW                  FLOAT                   Equivalent width (unit: nm)&lt;br/&gt;
        LINEEW_ERR              FLOAT                   Equivalent width error&lt;br/&gt;
        LINECONTLEVEL           FLOAT                   Continuum level at line center (unit: nJy)&lt;br/&gt;
        LINECONTLEVEL_ERR       FLOAT                   Error in continuum level at line center&lt;/p&gt;

&lt;p&gt;HDU#7 STAR_CANDIDATES            Binary table            &lt;span class=&quot;error&quot;&gt;&amp;#91;FITS BINARY TABLE&amp;#93;&lt;/span&gt;        NSTAR_CANDIDATES&lt;br/&gt;
        Columns for :&lt;br/&gt;
        CRANK                   INT32                   Rank of star candidate (best=0)&lt;br/&gt;
        V                       FLOAT                   Star velocity (unit: kms-1)&lt;br/&gt;
        V_ERR                   FLOAT                   Star velocity error&lt;br/&gt;
        T_PROBA                 FLOAT                   Area of the PDF peak&lt;br/&gt;
        SUBCLASS                STR                     Subclassifications&lt;br/&gt;
        TFILE                   STR                     Template file name&lt;br/&gt;
        MODELFLUX               FLOAT&lt;span class=&quot;error&quot;&gt;&amp;#91;NROW&amp;#93;&lt;/span&gt;             Spectrum model (unit: nJy)&lt;/p&gt;

&lt;p&gt;HDU#8 STAR_PDF                   Binary table            &lt;span class=&quot;error&quot;&gt;&amp;#91;FITS BINARY TABLE&amp;#93;&lt;/span&gt;     NPIX&lt;br/&gt;
        Colums for :&lt;br/&gt;
        REDSHIFT                FLOAT&lt;span class=&quot;error&quot;&gt;&amp;#91;NPIX&amp;#93;&lt;/span&gt;             Redshift grid&lt;br/&gt;
        PDF                     FLOAT&lt;span class=&quot;error&quot;&gt;&amp;#91;NPIX&amp;#93;&lt;/span&gt;             PDF related to best modelHDU#0 PHDU&lt;br/&gt;
     D1D_VER      KEYWORD     Version of the DRP_1D library&lt;br/&gt;
     D1DP_VER     KEYWORD     Version of the DRP_1DPIPE pipeline&lt;br/&gt;
     DAMD_VER     KEYWORD     Version of the data model&lt;br/&gt;
     PAR_FILE     KEYWORD     Parameters file name&lt;br/&gt;
     ZWARNING     INT64       Quality flag&lt;/p&gt;

&lt;p&gt;HDU#1 CLASSIFICATION&lt;br/&gt;
     CLASS        KEYWORD     Spectro classification: GALAXY, QSO, STAR&lt;br/&gt;
     P_GALAXY     KEYWORD     Probability to be a galaxy&lt;br/&gt;
     P_QSO        KEYWORD     Probability to be a QSO&lt;br/&gt;
     P_STAR       KEYWORD     Probability to be a star&lt;/p&gt;

&lt;p&gt;HDU#1 GALAXY_CANDIDATES         Binary table            &lt;span class=&quot;error&quot;&gt;&amp;#91;FITS BINARY TABLE&amp;#93;&lt;/span&gt;     NGALAXY_CANDIDATES&lt;br/&gt;
        Colums for :&lt;br/&gt;
        CRANK                   INT32                   Rank of galaxy candidate (best=0)&lt;br/&gt;
        Z                       FLOAT                   Redshift&lt;br/&gt;
        Z_ERR                   FLOAT                   Redshift error&lt;br/&gt;
        Z_PROBA                 FLOAT                   Areak of the PDF peak (dz=+/-3.e-3)&lt;br/&gt;
        SUBCLASS                STR                     Subclassifications&lt;br/&gt;
        CFILE                   STR                     Continuum template file name&lt;br/&gt;
        LFILE                   STR                     Linecatalog ratio template file name&lt;br/&gt;
        MODELFLUX               FLOAT&lt;span class=&quot;error&quot;&gt;&amp;#91;NROW&amp;#93;&lt;/span&gt;             Spectrum model (unit: nJy)&lt;/p&gt;

&lt;p&gt;HDU#2 GALAXY_PDF                Binary table            &lt;span class=&quot;error&quot;&gt;&amp;#91;FITS BINARY TABLE&amp;#93;&lt;/span&gt;     NPIX&lt;br/&gt;
        Colums for :&lt;br/&gt;
        REDSHIFT                FLOAT&lt;span class=&quot;error&quot;&gt;&amp;#91;NPIX&amp;#93;&lt;/span&gt;             Redshift grid&lt;br/&gt;
        PDF                     FLOAT&lt;span class=&quot;error&quot;&gt;&amp;#91;NPIX&amp;#93;&lt;/span&gt;             PDF marginalised over all models&lt;/p&gt;

&lt;p&gt;HDU#3 GALAXY_LINES              Binary table            &lt;span class=&quot;error&quot;&gt;&amp;#91;FITS BINARY TABLE&amp;#93;&lt;/span&gt;     NLINE&lt;br/&gt;
        Columns for :&lt;br/&gt;
        LINENAME                STR                     Line name&lt;br/&gt;
        LINEWAVE                FLOAT                   Catalog wavelength for this line in vacuum (unit: nm)&lt;br/&gt;
        LINEZ                   FLOAT                   Redshift&lt;br/&gt;
        LINEZ_ERR               FLOAT                   Redshift error&lt;br/&gt;
        LINESIGMA               FLOAT                   Gaussian width (unit: nm)&lt;br/&gt;
        LINESIGMA_ERR           FLOAT                   Error in gaussian width&lt;br/&gt;
        LINEVEL                 FLOAT                   Gaussian width (unit: km/sec)&lt;br/&gt;
        LINEVEL_ERR             FLOAT                   Error in gaussian width&lt;br/&gt;
        LINEFLUX                FLOAT                   Area in gaussian fit (unit: 10^-35 W/m2)&lt;br/&gt;
        LINEFLUX_ERR            FLOAT                   Flux error&lt;br/&gt;
        LINEEW                  FLOAT                   Equivalent width (unit: nm)&lt;br/&gt;
        LINEEW_ERR              FLOAT                   Equivalent width error&lt;br/&gt;
        LINECONTLEVEL           FLOAT                   Continuum level at line center (unit: nJy)&lt;br/&gt;
        LINECONTLEVEL_ERR       FLOAT                   Error in continuum level at line center&lt;/p&gt;

&lt;p&gt;HDU#4 QSO_CANDIDATES            Binary table            &lt;span class=&quot;error&quot;&gt;&amp;#91;FITS BINARY TABLE&amp;#93;&lt;/span&gt;     NQSO_CANDIDATES&lt;br/&gt;
        Colums for :&lt;br/&gt;
        CRANK                   INT32                   Rank of QSO candidate (best=0)&lt;br/&gt;
        Z                       FLOAT                   Redshift&lt;br/&gt;
        Z_ERR                   FLOAT                   Redshift error&lt;br/&gt;
        Z_PROBA                 FLOAT                   Areak of the PDF peak (dz=+/-3.e-3)&lt;br/&gt;
        SUBCLASS                STR                     Subclassifications&lt;br/&gt;
        MODELFLUX               FLOAT&lt;span class=&quot;error&quot;&gt;&amp;#91;NROW&amp;#93;&lt;/span&gt;             Spectrum model (unit: nJy)&lt;/p&gt;

&lt;p&gt;HDU#5 QSO_PDF                   Binary table            &lt;span class=&quot;error&quot;&gt;&amp;#91;FITS BINARY TABLE&amp;#93;&lt;/span&gt;     NPIX&lt;br/&gt;
        Colums for :&lt;br/&gt;
        REDSHIFT                FLOAT&lt;span class=&quot;error&quot;&gt;&amp;#91;NPIX&amp;#93;&lt;/span&gt;             Redshift grid&lt;br/&gt;
        PDF                     FLOAT&lt;span class=&quot;error&quot;&gt;&amp;#91;NPIX&amp;#93;&lt;/span&gt;             PDF marginalised over all models&lt;/p&gt;

&lt;p&gt;HDU#6 QSO_LINES                 Binary table            &lt;span class=&quot;error&quot;&gt;&amp;#91;FITS BINARY TABLE&amp;#93;&lt;/span&gt;     NLINE&lt;br/&gt;
        Columns for :&lt;br/&gt;
        LINENAME                STR                     Line name&lt;br/&gt;
        LINEWAVE                FLOAT                   Catalog wavelength for this line in vacuum (unit: nm)&lt;br/&gt;
        LINEZ                   FLOAT                   Redshift&lt;br/&gt;
        LINEZ_ERR               FLOAT                   Redshift error&lt;br/&gt;
        LINESIGMA               FLOAT                   Gaussian width (unit: nm)&lt;br/&gt;
        LINESIGMA_ERR           FLOAT                   Error in gaussian width&lt;br/&gt;
        LINEVEL                 FLOAT                   Gaussian width (unit: km/sec)&lt;br/&gt;
        LINEVEL_ERR             FLOAT                   Error in gaussian width&lt;br/&gt;
        LINEFLUX                FLOAT                   Area in gaussian fit (unit: erg/cm^2/s)&lt;br/&gt;
        LINEFLUX_ERR            FLOAT                   Flux error&lt;br/&gt;
        LINEEW                  FLOAT                   Equivalent width (unit: nm)&lt;br/&gt;
        LINEEW_ERR              FLOAT                   Equivalent width error&lt;br/&gt;
        LINECONTLEVEL           FLOAT                   Continuum level at line center (unit: nJy)&lt;br/&gt;
        LINECONTLEVEL_ERR       FLOAT                   Error in continuum level at line center&lt;/p&gt;

&lt;p&gt;HDU#7 STAR_CANDIDATES            Binary table            &lt;span class=&quot;error&quot;&gt;&amp;#91;FITS BINARY TABLE&amp;#93;&lt;/span&gt;        NSTAR_CANDIDATES&lt;br/&gt;
        Columns for :&lt;br/&gt;
        CRANK                   INT32                   Rank of star candidate (best=0)&lt;br/&gt;
        V                       FLOAT                   Star velocity (unit: kms-1)&lt;br/&gt;
        V_ERR                   FLOAT                   Star velocity error&lt;br/&gt;
        T_PROBA                 FLOAT                   Area of the PDF peak&lt;br/&gt;
        SUBCLASS                STR                     Subclassifications&lt;br/&gt;
        TFILE                   STR                     Template file name&lt;br/&gt;
        MODELFLUX               FLOAT&lt;span class=&quot;error&quot;&gt;&amp;#91;NROW&amp;#93;&lt;/span&gt;             Spectrum model (unit: nJy)&lt;/p&gt;

&lt;p&gt;HDU#8 STAR_PDF                   Binary table            &lt;span class=&quot;error&quot;&gt;&amp;#91;FITS BINARY TABLE&amp;#93;&lt;/span&gt;     NPIX&lt;br/&gt;
        Colums for :&lt;br/&gt;
        REDSHIFT                FLOAT&lt;span class=&quot;error&quot;&gt;&amp;#91;NPIX&amp;#93;&lt;/span&gt;             Redshift grid&lt;br/&gt;
        PDF                     FLOAT&lt;span class=&quot;error&quot;&gt;&amp;#91;NPIX&amp;#93;&lt;/span&gt;             PDF related to best model&lt;/p&gt;</comment>
                            <comment id="21648" author="msyktnk" created="Tue, 6 Jul 2021 07:04:06 +0000"  >&lt;p&gt;I am terribly sorry for being extremely slow.&#160; Morishima-san at NAOJ (he is a database person) and I carefully looked at the datamodel as well as real psfZCandidates files from drp_1dpipe (ver.0.20.1) + drp_1d (ed36a29) + datamodel (w.2021.26).&#160; The majority of the work is kindly done by Morishima-san and thanks go to him.&lt;/p&gt;

&lt;p&gt;HDU #0: We see TRACT, PATCH, CATID, OBJID, NVISIT, VHASH are gone.&#160; They are in the file names, but a user may well rename the file.&#160; So, it is easy to loose this key information.&#160; We prefer to have them in the primary header.&#160; I discussed with Ali offline, and I think it would be good to explicitly have the line list version in the header.&#160; The keyword PAR_FILE may not be super informative and we could have the configs defined in PAR_FILE in the header if the configs are not too many.&#160; Finally, this is not a datamodel issue, but where can I find the definition of Z_WARNING?&lt;br/&gt;
HDU #1: In addition to probabilities, it would be good to have reduced chi-squares.&#160; It is useful; we don&apos;t trust a fit with chi2_nu=1e9 even if P(galaxy)=1 and Z_PROBA=0.99.&#160; Maybe such a bad fit is captured by Z_WARNING, but again, I was not able to find its definition.&lt;/p&gt;

&lt;p&gt;HDU #2: Where can I find the wavelengths of the best-fit model?&#160; I guess you used the CRPIX, CRCAL, CD from pfsObject but it would be nice to copy it to pfsZCandidates.&#160; Also, it might make sense to have the galaxy and QSO PDF in the same HDU so they can share the REDSHIFT column.&#160; By the way, I do not understand the numbers in the REDSHIFT column (you can look at the sample files in datapack-0.20.1/validation.&#160; This is not a datamodel issue, though.&lt;/p&gt;

&lt;p&gt;HDU #4: It would be nice to be explicit about the units in the header (LINEWAVE is nm, LINEVEL is km/s).&#160;&#160; I see some of the Balmer lines are measured twice: once for absorption and the other for emission.&#160; Is this intended?&lt;/p&gt;

&lt;p&gt;HDU #7: What does T_PROBA mean?&#160; It is an integrated probability over what area?&lt;/p&gt;

&lt;p&gt;HDU #8: REDSHIFT does not mean a lot for stars.&#160; Maybe we can use RADIAL_VELOCITY (or simply VELOCITY) instead?&#160; The explanation of PDF should be &apos;PDF marginalized over all models&apos;, no?&lt;/p&gt;

&lt;p&gt;HDU #9: Do you plan to make line measurements for stars?&#160; If so, it should be included here.&lt;/p&gt;</comment>
                            <comment id="21926" author="ali.allaoui" created="Wed, 8 Sep 2021 16:05:39 +0000"  >&lt;p&gt;First of all, you can find the correct definition of the datamodel &lt;a href=&quot;https://github.com/Subaru-PFS/datamodel/blob/tickets/DAMD-92/datamodel.txt&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;&lt;br/&gt;
Some of it is still under development (&lt;a href=&quot;https://pfspipe.ipmu.jp/jira/projects/PIPE1D/issues/PIPE1D-52&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;https://pfspipe.ipmu.jp/jira/projects/PIPE1D/issues/PIPE1D-52&lt;/a&gt;)&lt;br/&gt;
HDU #0 : All remarks have been taken into account. Z_WARNING will be defined in drp1d_pipe README if that&apos;s ok. For now it is restricted to 1 bit, telling if line measurement is deactivated, this definition is themporary. The major content of this flag is still under development, the specification (still not definitive, extracted from RM-5638) is :&lt;/p&gt;
&lt;div class=&apos;table-wrap&apos;&gt;
&lt;table class=&apos;confluenceTable&apos;&gt;&lt;tbody&gt;
&lt;tr&gt;
&lt;td class=&apos;confluenceTd&apos;&gt;_. Bit Name                                        &lt;/td&gt;
&lt;td class=&apos;confluenceTd&apos;&gt;_. Binary Digit &lt;/td&gt;
&lt;td class=&apos;confluenceTd&apos;&gt;_. Description                                                                                  &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td class=&apos;confluenceTd&apos;&gt; &lt;b&gt;INVALID_SPECTRA_FLUX&lt;/b&gt;           &lt;/td&gt;
&lt;td class=&apos;confluenceTd&apos;&gt;  0             &lt;/td&gt;
&lt;td class=&apos;confluenceTd&apos;&gt; Invalid spectra flux (Nans, Infs, ...)                                                        &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td class=&apos;confluenceTd&apos;&gt; &lt;b&gt;INVALID_NOISE&lt;/b&gt;                            &lt;/td&gt;
&lt;td class=&apos;confluenceTd&apos;&gt;  1             &lt;/td&gt;
&lt;td class=&apos;confluenceTd&apos;&gt; Invalid noise (Nans, Infs, err=0, ...)                                                        &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td class=&apos;confluenceTd&apos;&gt; &lt;b&gt;SMALL_WAVELENGTH_RANGE&lt;/b&gt;  &lt;/td&gt;
&lt;td class=&apos;confluenceTd&apos;&gt;  2             &lt;/td&gt;
&lt;td class=&apos;confluenceTd&apos;&gt; Available wavelength range is too small                                                   &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td class=&apos;confluenceTd&apos;&gt; &lt;b&gt;NEGATIVE_CONTINUUM&lt;/b&gt;             &lt;/td&gt;
&lt;td class=&apos;confluenceTd&apos;&gt;  3             &lt;/td&gt;
&lt;td class=&apos;confluenceTd&apos;&gt; Negative continuum found (AMPLITUDE + 3 * AMPLITUDE_ERR &amp;lt; 0) at all z &lt;em&gt;at all lambda? (VLB)&lt;/em&gt; (=&amp;gt; flat continuum pdf ?) &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td class=&apos;confluenceTd&apos;&gt; &lt;b&gt;BAD_CONTINUUMFIT&lt;/b&gt;                  &lt;/td&gt;
&lt;td class=&apos;confluenceTd&apos;&gt;  4             &lt;/td&gt;
&lt;td class=&apos;confluenceTd&apos;&gt; Bad continum fit (=&amp;gt; linemodel fit will be bad, except when polynomial added in the model) &lt;em&gt;how do we know? (VLB)&lt;/em&gt;   &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td class=&apos;confluenceTd&apos;&gt; &lt;b&gt;EXPECTED_LINES&lt;/b&gt;                       &lt;/td&gt;
&lt;td class=&apos;confluenceTd&apos;&gt;  5             &lt;/td&gt;
&lt;td class=&apos;confluenceTd&apos;&gt; H_alpha / OII, ... lines detectability in case of truncated spectra _for one line, all? _                         &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td class=&apos;confluenceTd&apos;&gt; &lt;b&gt;CANDIDATE_ELIMINATION&lt;/b&gt;          &lt;/td&gt;
&lt;td class=&apos;confluenceTd&apos;&gt;  6             &lt;/td&gt;
&lt;td class=&apos;confluenceTd&apos;&gt; Eliminate candidate at second-pass range border                                               &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td class=&apos;confluenceTd&apos;&gt; &lt;b&gt;NULL_AMPLITUDES&lt;/b&gt;                     &lt;/td&gt;
&lt;td class=&apos;confluenceTd&apos;&gt;  7             &lt;/td&gt;
&lt;td class=&apos;confluenceTd&apos;&gt; All amplitudes are null at all z (=&amp;gt; flat pdf)                                                            &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td class=&apos;confluenceTd&apos;&gt; &lt;b&gt;PEAK_NOT_FOUND_PDF&lt;/b&gt;            &lt;/td&gt;
&lt;td class=&apos;confluenceTd&apos;&gt;  8             &lt;/td&gt;
&lt;td class=&apos;confluenceTd&apos;&gt; Pdf finder peaks has failed                                                                                   &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td class=&apos;confluenceTd&apos;&gt; &lt;b&gt;MAX_AT_BORDER_PDF&lt;/b&gt;              &lt;/td&gt;
&lt;td class=&apos;confluenceTd&apos;&gt;  9             &lt;/td&gt;
&lt;td class=&apos;confluenceTd&apos;&gt; Pdf extremum is too close the border                                                                   &lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;


&lt;p&gt;HDU GALAXY_CANDIDATES: Indeed, what would be usefull is a goodness of fit estimation. The reduced chi-squares being one of the possibilities. We are curently investigating several criteria to do so. You are right we missed that column for each candidate (HDU #2. HDU #4 &amp;amp; HDU #7), could be named &quot;reliability&quot; or &quot;goodness_fit&quot; ? &lt;/p&gt;

&lt;p&gt;HDU GALAXY_CANDIDATES model:   We use the wavelength WavelengthArray from PfsObject. We can add CRPIX, CRCAL, CD from pfsObject to HDU #0 (as it is common to HDU #1 #4 and #7)&lt;/p&gt;

&lt;p&gt;HDU GALAXY_PDF: Galaxy and QSO pdf do not share the redshift column, as the solvers work on different redshift ranges. They are on a logarithmic scale&lt;/p&gt;

&lt;p&gt;HDU GALAXY_LINES: Yes this is intended. These lines can be either in emission or absorption, eventually simultaneously (with different velocity dispersion)&lt;/p&gt;

&lt;p&gt;HDU STAR_CANDIDATES: It means probability a posteriori of the star template. The sum of all templates prob being 1 =&amp;gt; description to be changed.&lt;/p&gt;

&lt;p&gt;HDU STAR PDF: Name has been changed. Explanation is correct&lt;/p&gt;

&lt;p&gt;Line measurement for stars are not planned&lt;/p&gt;</comment>
                            <comment id="21967" author="msyktnk" created="Sat, 18 Sep 2021 01:34:41 +0000"  >&lt;p&gt;Thank you, Ali!&#160; I am sorry for this delay, but the changes look good to me. If you expect the meaning of Z_WARNING to evolve with time, then it would be a good idea to have the definition in the fits header. If not, README is perhaps fine (but we could of course have them in the header even in this case, so the user does not have to go back to README). I do not have a strong opinion on reliability vs goodness_fit. You can pick one that best describes the parameter you choose to use.&lt;/p&gt;</comment>
                            <comment id="30211" author="hassan" created="Fri, 17 Dec 2021 20:48:44 +0000"  >&lt;p&gt;Any updates on this &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/secure/ViewProfile.jspa?name=ali.allaoui&quot; class=&quot;user-hover&quot; rel=&quot;ali.allaoui&quot;&gt;Ali Allaoui&lt;/a&gt;?&lt;/p&gt;</comment>
                            <comment id="30311" author="ali.allaoui" created="Tue, 11 Jan 2022 16:12:20 +0000"  >&lt;p&gt;branch tickets/&lt;a href=&quot;https://pfspipe.ipmu.jp/jira/browse/DAMD-92&quot; title=&quot;Update 1D pipeline DM with multi-type candidates&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DAMD-92&quot;&gt;&lt;del&gt;DAMD-92&lt;/del&gt;&lt;/a&gt; is rebased and ready to be merged&lt;/p&gt;</comment>
                            <comment id="30330" author="hassan" created="Thu, 13 Jan 2022 21:35:06 +0000"  >&lt;p&gt;ticket branch merged to master.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10003">
                    <name>Relates</name>
                                                                <inwardlinks description="relates to">
                                        <issuelink>
            <issuekey id="14904">PIPE1D-25</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                            <customfield id="customfield_10500" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                            <customfield id="customfield_10010" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|02qpq3:0a</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10005" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="93">2DDRP-2021 A</customfieldvalue>
    <customfieldvalue id="111">2DDRP-2021 A 6</customfieldvalue>
    <customfieldvalue id="115">2DDRP-2021 A 7</customfieldvalue>
    <customfieldvalue id="116">2DDRP-2021 A 8</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                    </customfields>
    </item>
</channel>
</rss>