Skip to content

Commit

Permalink
Add Sersic (+PS) model fits to pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
taranu committed Dec 5, 2023
1 parent 98126c0 commit d1b1dfc
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 7 deletions.
32 changes: 32 additions & 0 deletions pipelines/fit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,38 @@ tasks:
prior_size_stddev=0.3,
)
}
fit_src_ser_multiprofit:
class: lsst.pipe.tasks.fit_coadd_multiband.CoaddMultibandFitTask
config:
connections.cat_output: deepCoadd_ser_multiprofit
python: |
from lsst.meas.extensions.multiprofit.fit_coadd_multiband import MultiProFitSourceTask
from lsst.multiprofit.componentconfig import SersicConfig, SersicIndexConfig
config.fit_coadd_multiband.retarget(MultiProFitSourceTask)
config.fit_coadd_multiband.n_pointsources = 0
config.fit_coadd_multiband.sersics = {
"ser": SersicConfig(
sersicindex=SersicIndexConfig(fixed=False, value_initial=1.0),
prior_axrat_stddev=0.8,
prior_size_stddev=0.3,
)
}
fit_src_psser_multiprofit:
class: lsst.pipe.tasks.fit_coadd_multiband.CoaddMultibandFitTask
config:
connections.cat_output: deepCoadd_psser_multiprofit
python: |
from lsst.meas.extensions.multiprofit.fit_coadd_multiband import MultiProFitSourceTask
from lsst.multiprofit.componentconfig import SersicConfig, SersicIndexConfig
config.fit_coadd_multiband.retarget(MultiProFitSourceTask)
config.fit_coadd_multiband.n_pointsources = 1
config.fit_coadd_multiband.sersics = {
"ser": SersicConfig(
sersicindex=SersicIndexConfig(fixed=False, value_initial=1.63),
prior_axrat_stddev=0.8,
prior_size_stddev=0.3,
)
}
fit_src_psexpdev_multiprofit:
class: lsst.pipe.tasks.fit_coadd_multiband.CoaddMultibandFitTask
config:
Expand Down
20 changes: 13 additions & 7 deletions pipelines/merge.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,24 @@ tasks:
is_multipatch=True,
storageClass="DataFrame",
),
"deepCoadd_psexpdev_multiprofit": InputConfig(
doc="Point Source + Exponential + DeVaucouleurs source fit",
action=MergeMultibandFluxes(name_model="psexpdev"),
column_id="id",
is_multiband=True,
),
"deepCoadd_psgauss_multiprofit": InputConfig(
doc="Point Source + Gaussian source fit",
action=MergeMultibandFluxes(name_model="psgauss"),
column_id="id",
is_multiband=True,
),
"deepCoadd_psser_multiprofit": InputConfig(
doc="Point Source + Sersic source fit",
action=MergeMultibandFluxes(name_model="psser"),
column_id="id",
is_multiband=True,
),
"deepCoadd_psexpdev_multiprofit": InputConfig(
doc="Point Source + Exponential + DeVaucouleurs source fit",
action=MergeMultibandFluxes(name_model="psexpdev"),
column_id="id",
is_multiband=True,
),
}
match_multiprofit:
class: lsst.pipe.tasks.match_tract_catalog.MatchTractCatalogTask
Expand Down Expand Up @@ -100,7 +106,7 @@ tasks:
if parameters.size_include:
for ax in ("x", "y"):
config.columns_target_copy.append(
f"{parameters.model_prefix}_{parameters.size_include}_sigma_{ax}"
f"{parameters.model_prefix}_{parameters.size_include}_reff_{ax}"
)
config.columns_flux = columns_flux
config.coord_format.column_target_coord1 = f"{parameters.model_prefix}_cen_ra"
Expand Down

0 comments on commit d1b1dfc

Please sign in to comment.