Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tickets/DM-2915: Port safe coadd clipping from HSC #20

Merged
merged 4 commits into from Oct 29, 2015
Merged

Conversation

rearmstr
Copy link
Contributor

No description provided.

@@ -130,6 +133,7 @@ def __init__(self, *args, **kwargs):
self.makeSubtask("interpImage")
self.makeSubtask("matchBackgrounds")
self.makeSubtask("scaleZeroPoint")
self.testvar = 10
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this

@natelust natelust force-pushed the tickets/DM-2915 branch 2 times, most recently from 72fe8f1 to 2105159 Compare October 20, 2015 13:43
@jdswinbank
Copy link
Contributor

A couple of generic comments on the commit messages:

  • Please write in the imperative ("add", not "added");
  • Please reword the summary of 4b03a5. The commit itself is an implementation of safe coadd clipping; the fact that it happens to be ported from HSC is a detail which we need to keep track of for book-keeping now, but in a few years time will be irrelevant. Further, that commit is currently attributed to Bob, and, while he did the work on HSC, he didn't do the porting.

@@ -20,7 +20,34 @@
# the GNU General Public License along with this program. If not,
# see <http://www.lsstcorp.org/LegalNotices/>.
#
from __future__ import print_function
import lsst.pex.logging as pexLog
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pexLog is unused. You're not changing that line here, but maybe take this opportunity to remove it?

@@ -478,6 +478,9 @@ class MeasureMergedCoaddSourcesConfig(Config):
def setDefaults(self):
Config.setDefaults(self)
self.deblend.propagateAllPeaks = True
# The following line must be set if clipped pixel flags are to be added to the output table
# The clipped mask plane is added by running the clipped coadd task
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please give the specific name of "the clipped coadd task".

rearmstr and others added 4 commits October 29, 2015 12:19
Identify objects in the tempExp files that need to be clipped by
looking at the difference between a clipped and unclipped coadd.  The clipped
masks that get created for each tempExp are not currently stored.

PORT: This code has moved locations from HscPipe to pipe_tasks in LSST.
Original commit can be found at
https://hsc-jira.astro.princeton.edu/jira/browse/HSC-1166
Safe coadd clipping introduces a new mask plane, "CLIPPED". In order for
routines to see this plan and add appropriate pixel flags, we must specify
it as a plane to read. The configuration for pixelFlags algorithm has an
any and center plane, which specifies if the routine should look for the
plane anywhere in the foot print or near the center and set the flag
accordingly.
Changed the "binary" command used to run assemble coadd. By default the
command will run the new SafeClipAssembleCoaddTask. If the --legacyCoadd
option is passed with the command, it will run the original coadd task,
and print a message warning the user to set configuration changes necessary
so future tasks run with a coadd made with the legacy code will not fail. In
the case where no arguments are passed, the default help message will be
triggered in the task argument parser. To ensure the extra
help is printed, the function needs to print its help when the
argument list has zero length.
@natelust natelust merged commit a38fce8 into master Oct 29, 2015
@ktlim ktlim deleted the tickets/DM-2915 branch August 25, 2018 06:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants