<!-- 
RSS generated by JIRA (8.3.4#803005-sha1:1f96e09b3c60279a408a2ae47be3c745f571388b) at Sat Feb 10 16:01:51 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>[PIPE2D-1044] Flux models for flux calibration must have wavelengths in vacuum</title>
                <link>https://pfspipe.ipmu.jp/jira/browse/PIPE2D-1044</link>
                <project id="10002" key="PIPE2D">DRP 2-D Pipeline</project>
                    <description>&lt;p&gt;AMBRE synthetic spectra are used for Yamashita-san&apos;s flux calibration, but their wavelengths are in air. They should be converted to those in vacuum.&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;ambre_to_vacuum (Halpha).png&amp;#93;&lt;/span&gt;: You see the blue curve (AMBRE) has the H alpha line at&#160;656.28 nm, which is in-air value. It should be at&#160;656.46 nm, as in the red curve.&lt;/p&gt;

&lt;p&gt;When &#955;_air is converted to &#955;_vacuum, the AMBRE synthetic spectra no longer have their sampling points at regular intervals. Down-sampling was formerly achieved by simply averaging neighboring bins, but it now needs a better resampling method. I interpolate the spectra with cubic splines, and integrate the cubic polynomials in each bin (scipy has this method).&lt;/p&gt;

&lt;p&gt;I am not sure of this, but I assume that the AMBRE synthetic spectra are dE / d&#955;_air. It means that the spectra must be multiplied by d&#955;_air /&#160;d&#955;_vacuum.&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;slant-bias.png&amp;#93;&lt;/span&gt;: Extrapolation (from 1200nm to 1300nm) was formerly done with a simple exponential function (black line). The red line is an AMBRE synthetic spectum to fit to. The pink region is not used in fitting, but is displayed for checking with eyes.&#160; You see that the fit would be improved with some slant bias &lt;tt&gt;c&apos; + d&apos;x&lt;/tt&gt; (green dotted line), or the 2nd-order term in the exponential (blue line). I use the 2nd-order-term method (blue line) for extrapolation rather than the slant-bias method (green line) because the former involves fewer number of parameters.&#160;&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;compare_5500_g_5_m_1_a_0.4.png&amp;#93;&lt;/span&gt; The new flux models look like the middle pane. You see that extrapolation is improved indeed, though most of the improvement is not due to the 2nd order term but to a better fitting algorithm.&lt;/p&gt;

&lt;p&gt;The amplitude of the new flux models are 10^{32} times lower than the old ones because the new flux models are in&#160;&lt;tt&gt;erg/s/cm^2/Hz&lt;/tt&gt; rather than &lt;tt&gt;nJy&lt;/tt&gt;. I choose the former unit because the unit of flux models is not important anyway, and &quot;10^{27}&quot; as in the old flux models is so large that the values may be troublesome (flux^2 is infinity if flux is stored in float32).&lt;/p&gt;

&lt;p&gt;I will replace the old fluxmodeldata package with the new one after I write a script to pre-compute broadband fluxes.&lt;/p&gt;</description>
                <environment></environment>
        <key id="22792">PIPE2D-1044</key>
            <summary>Flux models for flux calibration must have wavelengths in vacuum</summary>
                <type id="3" iconUrl="https://pfspipe.ipmu.jp/jira/secure/viewavatar?size=xsmall&amp;avatarId=10518&amp;avatarType=issuetype">Task</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="sogo.mineo">sogo.mineo</assignee>
                                    <reporter username="sogo.mineo">sogo.mineo</reporter>
                        <labels>
                            <label>flux-calibration</label>
                            <label>model-templates</label>
                    </labels>
                <created>Wed, 18 May 2022 07:56:13 +0000</created>
                <updated>Wed, 8 Jun 2022 00:13:05 +0000</updated>
                            <resolved>Wed, 8 Jun 2022 00:13:05 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                <comments>
                            <comment id="30947" author="sogo.mineo" created="Thu, 26 May 2022 06:30:03 +0000"  >&lt;p&gt;The new package is here:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://hscdata.mtk.nao.ac.jp/hsc_bin_dist/pfs/fluxmodeldata-ambre-20220518-small.tar.xz&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;https://hscdata.mtk.nao.ac.jp/hsc_bin_dist/pfs/fluxmodeldata-ambre-20220518-small.tar.xz&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I confirmed that drp_stella (before&#160;&lt;a href=&quot;https://pfspipe.ipmu.jp/jira/browse/PIPE2D-506&quot; title=&quot;Migrate code to use LSST gen3 middleware&quot; class=&quot;issue-link&quot; data-issue-key=&quot;PIPE2D-506&quot;&gt;&lt;del&gt;PIPE2D-506&lt;/del&gt;&lt;/a&gt;) works with this new package without raising exceptions. The broadband fluxes in the new package are a little larger than those in the old package (when the new ones are multiplied by 10^{32}), and the ratios (new flux) x 10^{32} / (old flux) are almost equal to the&#160;refractive index of the air. This fact verifies that the spectra in the new package are correct.&lt;/p&gt;</comment>
                            <comment id="30948" author="sogo.mineo" created="Thu, 26 May 2022 06:50:58 +0000"  >&lt;p&gt;The new package also contains (1) the script to convert the wavelengths, resample the spectra, and extrapolate them to 1300nm, and (2) the script to compute broadband fluxes. The scripts are dirty but I hope they will make the package falsifiable.&lt;/p&gt;</comment>
                            <comment id="30949" author="sogo.mineo" created="Thu, 26 May 2022 07:26:28 +0000"  >&lt;p&gt;Could you review this ticket? I think some review is required in order to close this ticket, though I don&apos;t know the correct procedure, for this ticket does not involve any pull requests. The tarball in one of the comments is the only product of this ticket.&lt;/p&gt;</comment>
                            <comment id="30956" author="hassan" created="Fri, 27 May 2022 14:22:29 +0000"  >&lt;p&gt;Thanks &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/secure/ViewProfile.jspa?name=sogo.mineo&quot; class=&quot;user-hover&quot; rel=&quot;sogo.mineo&quot;&gt;sogo.mineo&lt;/a&gt;. I&apos;ve been looking at the ticket and I&apos;ll pass you comments by early next week if that&apos;s OK. So far, your changes look good to me.&lt;/p&gt;</comment>
                            <comment id="30991" author="hassan" created="Mon, 6 Jun 2022 17:26:38 +0000"  >&lt;p&gt;&lt;a href=&quot;https://pfspipe.ipmu.jp/jira/secure/ViewProfile.jspa?name=sogo.mineo&quot; class=&quot;user-hover&quot; rel=&quot;sogo.mineo&quot;&gt;sogo.mineo&lt;/a&gt; is it possible to verify your changes by examining other stellar lines such as the &lt;tt&gt;CaII&lt;/tt&gt; triplet at ~850nm ?&lt;/p&gt;</comment>
                            <comment id="30992" author="sogo.mineo" created="Tue, 7 Jun 2022 02:47:18 +0000"  >&lt;p&gt;&lt;span class=&quot;image-wrap&quot; style=&quot;&quot;&gt;&lt;img src=&quot;https://pfspipe.ipmu.jp/jira/secure/attachment/15206/15206_CaII_triplet.png&quot; style=&quot;border: 0px solid black&quot; /&gt;&lt;/span&gt;&lt;br/&gt;
These are CaII triplet. The blue lines (&quot;air&quot;) are from the previous fluxmodeldata package. The red lines (&quot;vacuum&quot;) are from the new package. The wavelength values represented by the vertical dotted lines were looked up in &lt;a href=&quot;https://physics.nist.gov/PhysRefData/Handbook/Tables/calciumtable2_a.htm&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;https://physics.nist.gov/PhysRefData/Handbook/Tables/calciumtable2_a.htm&lt;/a&gt; (air values) and &lt;a href=&quot;http://classic.sdss.org/dr6/algorithms/linestable.html&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;http://classic.sdss.org/dr6/algorithms/linestable.html&lt;/a&gt; (vacuum values).&lt;/p&gt;</comment>
                            <comment id="30994" author="hassan" created="Tue, 7 Jun 2022 10:58:16 +0000"  >&lt;p&gt;I think all the checks made by Mineo-san are sufficient to verify the air-to-vacuum conversion.&lt;/p&gt;</comment>
                            <comment id="30997" author="sogo.mineo" created="Wed, 8 Jun 2022 00:13:05 +0000"  >&lt;p&gt;Thanks for review. I close this ticket.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="15196" name="ambre_to_vacuum (Halpha).png" size="24461" author="sogo.mineo" created="Wed, 18 May 2022 06:56:19 +0000"/>
                            <attachment id="15206" name="CaII_triplet.png" size="42610" author="sogo.mineo" created="Tue, 7 Jun 2022 02:40:22 +0000"/>
                            <attachment id="15194" name="compare_5500_g_5_m_1_a_0.4.png" size="68199" author="sogo.mineo" created="Wed, 18 May 2022 07:38:22 +0000"/>
                            <attachment id="15195" name="slant-bias.png" size="74533" author="sogo.mineo" created="Wed, 18 May 2022 07:20:25 +0000"/>
                    </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_10006" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>PIPE2D-303</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10010" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|02qpjd:00xznup2c9</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10100" key="com.atlassian.jira.plugin.system.customfieldtypes:userpicker">
                        <customfieldname>Reviewers</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>hassan</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10005" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="147">2DDRP-2022 E</customfieldvalue>

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