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 8232 #89

Merged
merged 4 commits into from Jan 4, 2017
Merged

Tickets/dm 8232 #89

merged 4 commits into from Jan 4, 2017

Conversation

SimonKrughoff
Copy link
Contributor

No description provided.

@param[in] refObjLoader An instance of LoadReferenceObjectsTasks that supplies an
external reference catalog. May be None if the desired loader can be constructed
from the butler argument or all steps requiring a reference catalog are disabled.
@param[in] charRefObjLoader An instance of LoadReferenceObjectsTasks that supplies an
Copy link
Member

Choose a reason for hiding this comment

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

charImage only uses this for selecting PSF stars, if a catalog star selector is used. It's probably worth making that clear in this docstring. Also maybe charRefObjLoader should be psfRefObjLoader?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

O.K. updated docstring.

@@ -121,11 +120,11 @@ class CharacterizeImageConfig(pexConfig.Config):
target = LoadAstrometryNetObjectsTask,
doc = "reference object loader",
)
astrometry = pexConfig.ConfigurableField(
target = AstrometryTask,
calib = pexConfig.ConfigurableField(
Copy link
Member

Choose a reason for hiding this comment

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

calib is confusing here because it's not doing any calibration. refObjMatcher maybe?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Changed to ref_match

if self.config.doAstrometry:
if astromRefObjLoader is None:
self.makeSubtask('astromRefObjLoader', butler=butler)
refObjLoader = self.astromRefObjLoader
self.pixelMargin = refObjLoader.config.pixelMargin
self.makeSubtask("astrometry", refObjLoader=refObjLoader, schema=self.schema)
Copy link
Member

Choose a reason for hiding this comment

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

Doesn't this need to be refObjLoader=self.astromRefObjLoader instead of refObjLoader=refObjLoader? If astromRefObjLoader is not None, the refObjLoader variable would not get set. It would be nice to get rid of the refObjLoader variable entirely.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch. I'll look into how to fix this.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I couldn't find an immediate way around the intermediate variable. I just changed refObjLoader -> astromRefObjLoader.

self.makeSubtask('photoRefObjLoader', butler=butler)
refObjLoader = self.photoRefObjLoader
self.pixelMargin = refObjLoader.config.pixelMargin
self.makeSubtask("photoCal", refObjLoader=refObjLoader, schema=self.schema)
Copy link
Member

Choose a reason for hiding this comment

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

Same as above.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Changed refObjLoader -> photoRefObjLoader

This allows different catalogs for astrometry and photometry.  This requires
a few steps:
1. Pull out the matching code from AstrometryTask so that PhotoCal can use it as well.
2. Rework the two calibration tasks to inherit from that base class.
3. Modify the top level tasks to take multiple configurable ref object loaders.
@SimonKrughoff SimonKrughoff merged commit 1a8b0af into master Jan 4, 2017
@ktlim ktlim deleted the tickets/DM-8232 branch August 25, 2018 06:46
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

2 participants