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-40301: Update configurations to use large 35 pixel aperture for LATISS calibration. #466

Merged
merged 1 commit into from
Aug 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions config/latiss/calibrate.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,7 @@
config.doWriteMatchesDenormalized = True

config.measurement.plugins["base_Jacobian"].pixelScale = 0.1

# Set the default aperture as appropriate for the LATISS plate scale.
config.measurement.slots.apFlux='base_CircularApertureFlux_35_0'
config.measurement.slots.calibFlux='base_CircularApertureFlux_35_0'
6 changes: 5 additions & 1 deletion config/latiss/characterizeImage.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,15 @@
config.measurePsf.psfDeterminer["psfex"].spatialOrder = 1

config.installSimplePsf.width = 21
config.installSimplePsf.fwhm = 2.355*2 # LATISS platescale is 2x LSST nominal
config.installSimplePsf.fwhm = 2.355*2 # LATISS plate scale is 2x LSST nominal

# Turn off S/N cut for aperture correction measurement source selection
# (it now only includes calib_psf_used objects, and that cut is "good
# enough" for the shallow LATISS data).
config.measureApCorr.sourceSelector["science"].doSignalToNoise = False

config.measurement.plugins["base_Jacobian"].pixelScale = 0.1

# Set the default aperture as appropriate for the LATISS plate scale.
config.measurement.slots.apFlux='base_CircularApertureFlux_35_0'
config.measurement.slots.calibFlux='base_CircularApertureFlux_35_0'
27 changes: 27 additions & 0 deletions config/latiss/isolatedStarAssociation.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Override calibration apertures as appropriate for LATISS plate scale.
config.inst_flux_field='apFlux_35_0_instFlux'

config.extra_columns = [
'x',
'y',
'apFlux_50_0_instFlux',
'apFlux_50_0_instFluxErr',
'apFlux_50_0_flag',
Copy link
Contributor

Choose a reason for hiding this comment

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

Why 50 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.

For testing background offsets, fgcm uses the calibration aperture plus 1 larger. 50 is that one larger. (And the calibration flux already gets transferred, this is just the "extra" bit.)

'localBackground_instFlux',
'localBackground_flag',
]

config.source_selector['science'].flags.bad = [
'pixelFlags_edge',
'pixelFlags_interpolatedCenter',
'pixelFlags_saturatedCenter',
'pixelFlags_crCenter',
'pixelFlags_bad',
'pixelFlags_interpolated',
'pixelFlags_saturated',
'centroid_flag',
'apFlux_35_0_flag',
]

config.source_selector['science'].signalToNoise.fluxField = 'apFlux_35_0_instFlux'
config.source_selector['science'].signalToNoise.errField = 'apFlux_35_0_instFluxErr'