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

DM-40955: LATISS psf stamp size is incorrect for the large PSFs #480

Merged
merged 1 commit into from
Nov 1, 2023

Conversation

laurenam
Copy link
Contributor

No description provided.

@laurenam laurenam requested a review from erykoff November 1, 2023 04:24
Copy link
Contributor

@erykoff erykoff left a comment

Choose a reason for hiding this comment

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

Minor spelling comments.

@@ -15,6 +15,9 @@

# Reduce psfex spatialOrder to 1, this helps ensure success with low numbers of psf candidates.
config.measurePsf.psfDeterminer["psfex"].spatialOrder = 1
# Set the default kernel and stamp sizes for PSF modelling appropriate for LATISS
Copy link
Contributor

Choose a reason for hiding this comment

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

US spelling is modeling (one l).

# Reduce piff spatialOrder to 1, this helps ensure success with low numbers of psf candidates.
config.psf_determiner['piff'].spatialOrder = 1
# Change the PSF determiner to psfex from piff default as the latter will not
# scale well to the large kernel/stamp sizes for PSF modelling for LATISS data.
Copy link
Contributor

Choose a reason for hiding this comment

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

Also here.

config.psf_determiner.name = "psfex"
# Reduce spatialOrder to 1, this helps ensure success with low numbers of psf candidates.
config.psf_determiner["psfex"].spatialOrder = 1
# Set the default kernel and stamp sizes for PSF modelling appropriate for LATISS.
Copy link
Contributor

Choose a reason for hiding this comment

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

And here.

Namely:
(a) set the characterizeImage kernelSize and stampSize to 71
(b) change finalize to use a kernelSize and stampSize of 71
(c) change finalize PSF model from piff to psfex

Note that (c) is required (for now) because piff doesn't scale well
with increasing stampSize.
@laurenam
Copy link
Contributor Author

laurenam commented Nov 1, 2023

I made the update to move the import from finalizeCharacterization to the config here (and added setupOptional(meas_extensions_psfex) to ups/obs_lsst.table). Let me know if you want to take another look while Jenkins is running.

@@ -9,6 +9,7 @@ setupRequired(astro_metadata_translator)
setupRequired(obs_lsst_data)
setupRequired(daf_butler)
setupOptional(meas_extensions_gaap)
setupOptional(meas_extensions_psfex)
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm never sure what should be optional or required here, and I'm sure this has to be picked up by pipe_tasks currently, but I think it's okay to have this here.

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'm not totally clear on this either! My reasoning was:
a) we should not rely on it being picked up by another required package (as that could change from underneath us).
b) it's "optional" because it is only actually "required" if processing LATISS data (but I'm not 100% sure that's correct reasoning since it seems that it's crossing a line).

I'll leave it as is for now (but will keep it in mind if we see problems down the road that could be related).

@erykoff
Copy link
Contributor

erykoff commented Nov 1, 2023

Assuming you confirmed that moving to the config works, then 👍

@laurenam laurenam merged commit 091d041 into main Nov 1, 2023
3 checks passed
@laurenam laurenam deleted the tickets/DM-40955 branch November 1, 2023 21:36
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.

2 participants