XMLWordPrintable

#### Details

• Type: Story
• Status: Done
• Resolution: Done
• Fix Version/s: None
• Component/s: None
• Labels:
None
• Story Points:
1
• Sprint:
DRP S19-2
• Team:
Data Release Production

#### Description

assembleCoadd wants to apply the bright object masks. They are inputs available to ci_hsc. gen2convert should convert them so they're available to the gen3 version when processing on ci_hsc

#### Activity

Hide
Jim Bosch added a comment - - edited

Changed my mind: I'm now leaning towards putting the SkyMap in the root repo, as that will let us inherit both in Gen3-only processing later instead of having to manually transfer them from the Gen2 output repo.

Show
Jim Bosch added a comment - - edited Changed my mind: I'm now leaning towards putting the SkyMap in the root repo, as that will let us inherit both in Gen3-only processing later instead of having to manually transfer them from the Gen2 output repo.
Hide
Jim Bosch added a comment -

Changed my mind again: makeSkyMap.py won't run unless you give it an explicit output repo, so the brightObjectMasks are going in the ci_hsc rerun.

Anyhow, in addition to those changes I've added a new Formatter class to pipe_tasks (next to the definition of the ObjectMaskCatalog class) to support reading these without lying about them being FITS the way we did in Gen2.

Tim Jenness, could you look at the daf_butler changes?  It's some straightforward config additions, along with the removal of a bad validity check as we discussed briefly on Slack.

Show
Hide

brightObjectMasks.table.getMetadata() (which in this case is ‘patch’: ‘5,4’, ‘tract’: 0}}doesn’t match the dataID which is {{'abstract_filter': 'r', 'skymap': 'ci_hsc', 'tract': 0, 'patch': 69 The code that checks the header: https://github.com/lsst/pipe_tasks/commit/a6db3fba5ff6b925e49eb8b8039fb54bb818a66c#diff-f9cf63fcf2aed29eec448bae6d243b5fR595

 [yusra@lsst-dev01 0]$more BrightObjectMask-0-5,4-HSC-R.reg  # BRIGHT STAR CATALOG: Jean Coupon # GENERATED ON: 2017-06-04 # TRACT: 0 # PATCH: 5,4 # FILTER HSC-I wcs; fk5 circle(320.735301,-0.407181,0.003015d) # ID: 2686366082164587136, mag: 16.787139 box(320.735301,-0.407181,0.000905d,0.009046d,0) # ID: 2686366082164587136, mag: 16.78713  and it prints this warning:  compareWarpAssembleCoadd WARN: Expected to see abstract_filter in metadata compareWarpAssembleCoadd WARN: Expected to see skymap in metadata compareWarpAssembleCoadd WARN: Expected to see patch == 5,4 in metadata, saw 69  We could either: (a) adapt the lines that check it so that it sees this as match (b) remove the lines that check it (use the second commit) (c) just leave it printing the warnings Show Yusra AlSayyad added a comment - - edited Looks good. Confirmed it works (left= mask before, right= mask after) I put two commits on pipe_tasks u/yusra/ DM-17300 for you to cherry-pick: https://github.com/lsst/pipe_tasks/tree/u/yusra/DM-17300 The metadata-check commit is optional. More info on that: brightObjectMasks.table.getMetadata() (which in this case is ‘patch’: ‘5,4’, ‘tract’: 0}}doesn’t match the dataID which is {{'abstract_filter': 'r', 'skymap': 'ci_hsc', 'tract': 0, 'patch': 69 The code that checks the header: https://github.com/lsst/pipe_tasks/commit/a6db3fba5ff6b925e49eb8b8039fb54bb818a66c#diff-f9cf63fcf2aed29eec448bae6d243b5fR595 The headers look like: [yusra @lsst -dev01 0 ]$ more BrightObjectMask- 0 - 5 , 4 -HSC-R.reg # BRIGHT STAR CATALOG: Jean Coupon # GENERATED ON: 2017 - 06 - 04 # TRACT: 0 # PATCH: 5 , 4 # FILTER HSC-I wcs; fk5 circle( 320.735301 ,- 0.407181 , 0 .003015d) # ID: 2686366082164587136 , mag: 16.787139 box( 320.735301 ,- 0.407181 , 0 .000905d, 0 .009046d, 0 ) # ID: 2686366082164587136 , mag: 16.78713 and it prints this warning: compareWarpAssembleCoadd WARN: Expected to see abstract_filter in metadata compareWarpAssembleCoadd WARN: Expected to see skymap in metadata compareWarpAssembleCoadd WARN: Expected to see patch == 5,4 in metadata, saw 69 We could either: (a) adapt the lines that check it so that it sees this as match (b) remove the lines that check it (use the second commit) (c) just leave it printing the warnings
Hide
Jim Bosch added a comment -

Adapting the data IDs is tricky, because looking up the (camera-specific) translator for a data ID is hard to do in this context.

I think long term I'd like to move this check to whatever is responsible for ingesting these into the data repo (right now that's just gen2convert, in which it is possible to get at those translators).  Note that in Gen3 that can't just be moving the files into position, so there will have to be some kind of script that can do this.  But I don't think we need to do that now, and I don't have a strong preference between (b) and (c) in the meantime.

Show
Jim Bosch added a comment - Adapting the data IDs is tricky, because looking up the (camera-specific) translator for a data ID is hard to do in this context. I think long term I'd like to move this check to whatever is responsible for ingesting these into the data repo (right now that's just gen2convert, in which it is possible to get at those translators).  Note that in Gen3 that can't just be moving the files into position, so there will have to be some kind of script that can do this.  But I don't think we need to do that now, and I don't have a strong preference between (b) and (c) in the meantime.
Hide
Jim Bosch added a comment -

Merged, with (as discussed OOB) the warnings removed.

Show
Jim Bosch added a comment - Merged, with (as discussed OOB) the warnings removed.

#### People

Assignee:
Jim Bosch
Reporter:
Reviewers: