<!-- 
RSS generated by JIRA (8.3.4#803005-sha1:1f96e09b3c60279a408a2ae47be3c745f571388b) at Sat Feb 10 15:48:12 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-80] Task-ify code for creating normalized flats</title>
                <link>https://pfspipe.ipmu.jp/jira/browse/PIPE2D-80</link>
                <project id="10002" key="PIPE2D">DRP 2-D Pipeline</project>
                    <description>&lt;p&gt;Currently, it exists only in an IPython notebook.&lt;/p&gt;

&lt;p&gt;Task name: &lt;tt&gt;ConstructDitheredFlat&lt;/tt&gt;.&lt;/p&gt;</description>
                <environment></environment>
        <key id="11150">PIPE2D-80</key>
            <summary>Task-ify code for creating normalized flats</summary>
                <type id="5" iconUrl="https://pfspipe.ipmu.jp/jira/secure/viewavatar?size=xsmall&amp;avatarId=10516&amp;avatarType=issuetype">Sub-task</type>
                            <parent id="10102">PIPE2D-10</parent>
                                    <priority id="3" iconUrl="https://pfspipe.ipmu.jp/jira/images/icons/priorities/major.svg">Major</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="aritter">aritter</assignee>
                                    <reporter username="swinbank">swinbank</reporter>
                        <labels>
                    </labels>
                <created>Fri, 9 Sep 2016 17:35:10 +0000</created>
                <updated>Tue, 24 Jan 2017 22:08:00 +0000</updated>
                            <resolved>Tue, 15 Nov 2016 08:13:58 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                <comments>
                            <comment id="11305" author="aritter" created="Thu, 15 Sep 2016 07:32:43 +0000"  >&lt;p&gt;See obs_pfs tickets/&lt;a href=&quot;https://pfspipe.ipmu.jp/jira/browse/PIPE2D-80&quot; title=&quot;Task-ify code for creating normalized flats&quot; class=&quot;issue-link&quot; data-issue-key=&quot;PIPE2D-80&quot;&gt;&lt;del&gt;PIPE2D-80&lt;/del&gt;&lt;/a&gt;. To test you will need drp_stella tickets/&lt;a href=&quot;https://pfspipe.ipmu.jp/jira/browse/PIPE2D-10&quot; title=&quot;Flat field the data&quot; class=&quot;issue-link&quot; data-issue-key=&quot;PIPE2D-10&quot;&gt;&lt;del&gt;PIPE2D-10&lt;/del&gt;&lt;/a&gt; as this ticket contains the functions needed in the namespace pfs.drp.stella(.math). On tiger obs_pfs, drp_stella_data, and drp_stella are in /tigress/HSC/PFS. The data repository is in /tigress/HSC/PFS/PFS. To test run&lt;br/&gt;
/tigress/HSC/PFS/obs_pfs/bin/constructNormFlat.py /tigress/HSC/PFS/PFS --rerun azuri/tmp --id visit=29..53 --calibId calibVersion=flat calibDate=2016-08-11 arm=r spectrograph=2 --clobber-config&lt;br/&gt;
The normalised Flat will be in /tigress/HSC/PFS/PFS/CALIB/FLAT/r/flat/pfsFlat-2016-08-11-0-2r.fits.&lt;/p&gt;</comment>
                            <comment id="11306" author="swinbank" created="Thu, 15 Sep 2016 16:45:06 +0000"  >&lt;p&gt;Great!&lt;/p&gt;

&lt;p&gt;But: I&apos;ll be travelling a lot over the next month, and will have even less time than usual available to do code reviews. Since you&apos;re already being blocked by my failure to review other tickets, maybe it would be smarter to have somebody else look at this? Perhaps &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/secure/ViewProfile.jspa?name=cloomis&quot; class=&quot;user-hover&quot; rel=&quot;cloomis&quot;&gt;cloomis&lt;/a&gt; could help? (Sorry Craig...)&lt;/p&gt;</comment>
                            <comment id="11308" author="swinbank" created="Mon, 19 Sep 2016 18:41:45 +0000"  >&lt;p&gt;We believe this has broken reading &amp;amp; writing flats because it hasn&apos;t been done with &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/browse/PIPE2D-81&quot; title=&quot;Design access mechanism, dataset types for accessing flats from Butler&quot; class=&quot;issue-link&quot; data-issue-key=&quot;PIPE2D-81&quot;&gt;&lt;del&gt;PIPE2D-81&lt;/del&gt;&lt;/a&gt; in mind. &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/secure/ViewProfile.jspa?name=aritter&quot; class=&quot;user-hover&quot; rel=&quot;aritter&quot;&gt;aritter&lt;/a&gt; will check.&lt;/p&gt;</comment>
                            <comment id="11316" author="rhl" created="Tue, 20 Sep 2016 19:30:59 +0000"  >&lt;p&gt;Please provide instructions for how to use this without any reference to azuri/tmp reruns.  Probably the best way to do this would be to update the install.text file (or did John rewrite it in rst?  If so, please update that)&lt;/p&gt;</comment>
                            <comment id="11317" author="swinbank" created="Tue, 20 Sep 2016 19:45:41 +0000"  >&lt;blockquote&gt;
&lt;p&gt;did John rewrite it in rst?&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;He did, but it should still be straightforward to edit: &lt;a href=&quot;https://github.com/Subaru-PFS/drp_stella/blob/master/sphinx/user/getting_started.rst&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;https://github.com/Subaru-PFS/drp_stella/blob/master/sphinx/user/getting_started.rst&lt;/a&gt;.&lt;/p&gt;</comment>
                            <comment id="11360" author="aritter" created="Fri, 30 Sep 2016 03:50:56 +0000"  >&lt;p&gt;As the construction of the normalized Flat and persisting it according to the datamodel broke the FiberTrace extraction, we first need to persist the FiberTraceSets before we can merge this issue with master.&lt;/p&gt;</comment>
                            <comment id="11427" author="aritter" created="Mon, 10 Oct 2016 02:07:19 +0000"  >&lt;p&gt;This ticket is based on &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/browse/PIPE2D-90&quot; title=&quot;Create Calib Task to create and write FiberTraces&quot; class=&quot;issue-link&quot; data-issue-key=&quot;PIPE2D-90&quot;&gt;&lt;del&gt;PIPE2D-90&lt;/del&gt;&lt;/a&gt; as it needs to read the pfsFiberTrace file. Once &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/browse/PIPE2D-90&quot; title=&quot;Create Calib Task to create and write FiberTraces&quot; class=&quot;issue-link&quot; data-issue-key=&quot;PIPE2D-90&quot;&gt;&lt;del&gt;PIPE2D-90&lt;/del&gt;&lt;/a&gt; is reviewed and merged into master, I will rebase this ticket on master and submit for review&lt;/p&gt;</comment>
                            <comment id="11453" author="aritter" created="Tue, 11 Oct 2016 20:04:52 +0000"  >&lt;p&gt;Rebased onto master. However to include it in the quick-start guide I need a consistent data set (I think we have Biases and Darks now, but 1 arc and dithered flats with fiber traces in the same positions, preferably no 2 adjacent ones, are needed). Craig says he can give me an Arc with the same fiber traces as the dithered Flats quickly what would be enough for now to test &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/browse/PIPE2D-80&quot; title=&quot;Task-ify code for creating normalized flats&quot; class=&quot;issue-link&quot; data-issue-key=&quot;PIPE2D-80&quot;&gt;&lt;del&gt;PIPE2D-80&lt;/del&gt;&lt;/a&gt;. Should we aim for new dithered Flats in the long term (would take a long time to produce)?&lt;/p&gt;</comment>
                            <comment id="11457" author="rhl" created="Wed, 12 Oct 2016 00:08:17 +0000"  >&lt;p&gt;I don&apos;t quite understand.  You can use the better biases and darks that Craig pointed you at (we agree).  So you&apos;re asking about the fibre flats;  what&apos;s the issue here?  Whether Craig needs to include the full imaging flats in the simulations?&lt;/p&gt;</comment>
                            <comment id="11461" author="aritter" created="Wed, 12 Oct 2016 07:52:53 +0000"  >&lt;p&gt;The fiber traces in the arc I have are not in the same positions as the fiber traces in the dithered flats. Craig said there is an Arc on tiger (which was down yesterday) I can use.&lt;/p&gt;</comment>
                            <comment id="11462" author="rhl" created="Wed, 12 Oct 2016 12:16:57 +0000"  >&lt;p&gt;I&apos;m still lost; the dithered flats have a range of trace positions.  You mean that there is no flat that has the same trace as the arcs?  If so, it sounds as if you know what to do.&lt;/p&gt;</comment>
                            <comment id="11468" author="aritter" created="Fri, 14 Oct 2016 19:52:05 +0000"  >&lt;p&gt;In the old arc different fibers were illuminated compared to the dithered Flats. I now got a new Arc with the same fibers as the dithered Flats. I will add it to drp_stella_data so we can flatfield the arc before the extraction.&lt;/p&gt;</comment>
                            <comment id="11475" author="aritter" created="Thu, 20 Oct 2016 19:41:49 +0000"  >&lt;p&gt;With the new Arc tests/Spectra.py fails. Both reduceArc versions (one using Craig&apos;s file &apos;RedFiberPixels.fits.gz&apos; with the predicted wavelengths for each pixel in each fiber to create the initial line list, and the one using a previously identified reference spectrum) fail for different reasons. Using the predicted wavelengths fails because something has changed in the simulations and the file &apos;RedFiberPixels.fits.gz&apos; is not up-to-date anymore. A ticket has been filed to recreate this file (&lt;a href=&quot;https://pfspipe.ipmu.jp/jira/browse/SIM2D-68&quot; title=&quot;Please recreate file containing predicted wavelengths for each pixel in each fiber trace&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SIM2D-68&quot;&gt;&lt;del&gt;SIM2D-68&lt;/del&gt;&lt;/a&gt;). The reduceArc version using the reference spectrum fails because of cosmic-rays which irritate the wavelength calibration procedure. While cosmic rays are not new to the simulated arc, in this particular case there is 1 cosmic ray (see attached image) which made it through the cosmic-ray detection steps in the extraction procedure and badly affects the RMS of the fitted lines. There are 2 ways to avoid this in the future.&lt;br/&gt;
 &lt;span class=&quot;image-wrap&quot; style=&quot;&quot;&gt;&lt;a id=&quot;10301_thumb&quot; href=&quot;https://pfspipe.ipmu.jp/jira/secure/attachment/10301/10301_Screen+Shot+2016-10-20+at+3.36.38+PM.png&quot; title=&quot;Screen Shot 2016-10-20 at 3.36.38 PM.png&quot; file-preview-type=&quot;image&quot; file-preview-id=&quot;10301&quot; file-preview-title=&quot;Screen Shot 2016-10-20 at 3.36.38 PM.png&quot;&gt;&lt;img src=&quot;https://pfspipe.ipmu.jp/jira/secure/thumbnail/10301/_thumb_10301.png&quot; style=&quot;border: 0px solid black&quot; /&gt;&lt;/a&gt;&lt;/span&gt; &lt;br/&gt;
1. Write a CalibTask (constructArc.py) to construct a master Arc from a number of input Arcs and mask cosmic rays (even if there is only 1 input Arc). I have done this already (&lt;a href=&quot;https://pfspipe.ipmu.jp/jira/browse/PIPE2D-108&quot; title=&quot;Create CalibTask to construct master Arc&quot; class=&quot;issue-link&quot; data-issue-key=&quot;PIPE2D-108&quot;&gt;&lt;del&gt;PIPE2D-108&lt;/del&gt;&lt;/a&gt;) and confirmed that it does fix the problem, at least for that particular cosmic ray. However, now another emission line in a different spectrum gets mis-identified due to the fact that most pixels of that PSF are affected by a cosmic ray and set to background values close to 0. So, additionally to masking cosmic rays we also need to exclude emission lines which have too many pixels masked as being problematic (See &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/browse/PIPE2D-110&quot; title=&quot;Please ignore emission lines with too many masked pixels in wavelength calib&quot; class=&quot;issue-link&quot; data-issue-key=&quot;PIPE2D-110&quot;&gt;&lt;del&gt;PIPE2D-110&lt;/del&gt;&lt;/a&gt;).&lt;br/&gt;
2. Include sigma clipping in the fitting procedure to remove outliers (&lt;a href=&quot;https://pfspipe.ipmu.jp/jira/browse/PIPE2D-109&quot; title=&quot;Include sigma clipping in wavelength calibration&quot; class=&quot;issue-link&quot; data-issue-key=&quot;PIPE2D-109&quot;&gt;&lt;del&gt;PIPE2D-109&lt;/del&gt;&lt;/a&gt;). This requires minor changes to Spectra::identify which I am testing now.&lt;br/&gt;
I personally think that both ways should be implemented to improve the wavelength solution. First of all we did want to include the &apos;detrend&apos; procedure in the reduceArc... task (&lt;a href=&quot;https://pfspipe.ipmu.jp/jira/browse/PIPE2D-106&quot; title=&quot;change reduceArc(RefSpec).py to include detrend&quot; class=&quot;issue-link&quot; data-issue-key=&quot;PIPE2D-106&quot;&gt;&lt;del&gt;PIPE2D-106&lt;/del&gt;&lt;/a&gt; = former &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/browse/PIPE2D-106&quot; title=&quot;change reduceArc(RefSpec).py to include detrend&quot; class=&quot;issue-link&quot; data-issue-key=&quot;PIPE2D-106&quot;&gt;&lt;del&gt;INFRA-55&lt;/del&gt;&lt;/a&gt; &lt;span class=&quot;error&quot;&gt;&amp;#91;just moved it to PIPE2D where it belongs&amp;#93;&lt;/span&gt;). Since we have 2 independent wavelength-calibration tasks (one using the predicted wavelengths from the simulator &lt;span class=&quot;error&quot;&gt;&amp;#91;reduceArc.py&amp;#93;&lt;/span&gt;, one using a reference spectrum &lt;span class=&quot;error&quot;&gt;&amp;#91;reduceArcRefSpec.py&amp;#93;&lt;/span&gt; to create the initial line list), I think it makes sense to first create a master Arc and then run the wavelength calibration (reduceArc...). Also, I believe that detrend.py does not support cosmic-ray detection, so a CalibTask is needed here. Re the sigma clipping I think that this should definitely be included in order to remove outliers caused by remaining cosmic rays, misidentifications, and blends.&lt;/p&gt;</comment>
                            <comment id="11482" author="aritter" created="Fri, 28 Oct 2016 03:59:00 +0000"  >&lt;p&gt;Changes are in tickets/&lt;a href=&quot;https://pfspipe.ipmu.jp/jira/browse/PIPE2D-80&quot; title=&quot;Task-ify code for creating normalized flats&quot; class=&quot;issue-link&quot; data-issue-key=&quot;PIPE2D-80&quot;&gt;&lt;del&gt;PIPE2D-80&lt;/del&gt;&lt;/a&gt; in drp_stella, drp_stella_data, and obs_pfs.&lt;br/&gt;
Tests in drp_stella/tests/Spectra.py are failing due to cosmics (see &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/browse/PIPE2D-108&quot; title=&quot;Create CalibTask to construct master Arc&quot; class=&quot;issue-link&quot; data-issue-key=&quot;PIPE2D-108&quot;&gt;&lt;del&gt;PIPE2D-108&lt;/del&gt;&lt;/a&gt; &lt;span class=&quot;error&quot;&gt;&amp;#91;in review&amp;#93;&lt;/span&gt;, &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/browse/PIPE2D-109&quot; title=&quot;Include sigma clipping in wavelength calibration&quot; class=&quot;issue-link&quot; data-issue-key=&quot;PIPE2D-109&quot;&gt;&lt;del&gt;PIPE2D-109&lt;/del&gt;&lt;/a&gt; &lt;span class=&quot;error&quot;&gt;&amp;#91;in review&amp;#93;&lt;/span&gt;, and &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/browse/PIPE2D-110&quot; title=&quot;Please ignore emission lines with too many masked pixels in wavelength calib&quot; class=&quot;issue-link&quot; data-issue-key=&quot;PIPE2D-110&quot;&gt;&lt;del&gt;PIPE2D-110&lt;/del&gt;&lt;/a&gt; &lt;span class=&quot;error&quot;&gt;&amp;#91;open&amp;#93;&lt;/span&gt;) and the still missing new file from Craig containing the predicted wavelengths. Submitting anyway as we know why the tests are failing and that it will be fixed next week.&lt;br/&gt;
drp_stella/examples/runPipeline tested and working&lt;/p&gt;</comment>
                            <comment id="11534" author="rhl" created="Fri, 11 Nov 2016 04:51:23 +0000"  >&lt;p&gt;See comments on github; &lt;a href=&quot;https://github.com/Subaru-PFS/obs_pfs/pull/4&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;https://github.com/Subaru-PFS/obs_pfs/pull/4&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;We can merge this now, but only after filing tickets to remove the issues identified in the review.&lt;/p&gt;

&lt;p&gt;Next time, you need to clean up the commits prior to submitting the ticket for review.  It should be arranged into a tidy set of changesets that the reviewer can understand (e.g. all the white space changes in one changset;  all the removed print statements;  one changeset shouldn&apos;t remove or modify one that appeared earlier &amp;#8212; the reviewer shouldn&apos;t have to comment on something, only to find that it was resolved later). &lt;/p&gt;</comment>
                            <comment id="11550" author="aritter" created="Tue, 15 Nov 2016 08:13:58 +0000"  >&lt;p&gt;Git history cleaned up. Merged drp_stella, obs_pfs, and drp_stella_data with master.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10000">
                    <name>Blocks</name>
                                                                <inwardlinks description="is blocked by">
                                        <issuelink>
            <issuekey id="11011">PIPE2D-47</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="11166">PIPE2D-90</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="11221">PIPE2D-108</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="11222">PIPE2D-109</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="11219">SIM2D-68</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10003">
                    <name>Relates</name>
                                            <outwardlinks description="relates to">
                                        <issuelink>
            <issuekey id="11320">PIPE2D-122</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="11321">PIPE2D-123</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="11447">PIPE2D-151</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="10301" name="Screen Shot 2016-10-20 at 3.36.38 PM.png" size="48933" author="aritter" created="Thu, 20 Oct 2016 19:37:31 +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_10010" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|ii00pr:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10005" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="23">2014-17</customfieldvalue>

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