Unverified Commit dc322a0e authored by Akke Viitanen's avatar Akke Viitanen
Browse files

initialize LINCC

parent 21a25d6f
Loading
Loading
Loading
Loading

etc/cmodel.py

0 → 100644
+10 −0
Original line number Diff line number Diff line
# This script should help in attaching cmodels to the measurements

# Below the original message by Arun Kannawadi 2024/02/023
#     Put this in a file, say cmodel.py
#     import lsst.meas.modelfit
#     config.measurement.plugins.names |= ["modelfit_CModel"]
#     and when you run the pipeline with pipetask, append the command with -C calibrate:cmodel.py (edited)

# config.measurement.plugins.names |= ["modelfit_CModel"]
config.measurement.plugins.names |= ["modelfit_DoubleShapeletPsfApprox", "modelfit_CModel"]
+43 −0
Original line number Diff line number Diff line
from convert_agile_manager import ConvertAgileManager

config.manager.retarget(ConvertAgileManager)
config.dataset_config.ref_dataset_name = "my-refcat"
config.n_processes = 10

config.full_position_information = True

config.id_name = "source_id"
config.ra_name = "ra"
config.dec_name = "dec"
config.mag_column_list = list("ugrizy")

config.pm_ra_name = "pmra"
config.pm_dec_name = "pmdec"
config.pm_scale = 1.0
config.parallax_name = "parallax"
config.parallax_scale = 1.0
config.epoch_name = "epoch"
config.epoch_format = "iso"
config.epoch_scale = "utc"

# Errors
config.pm_ra_err_name = "pmra_error"
config.pm_dec_err_name = "pmdec_error"
config.coord_err_unit = "milliarcsecond"
config.parallax_err_name = "parallax_error"
config.ra_err_name = "ra_error"
config.dec_err_name = "dec_error"
config.parallax_err_name = "parallax_error"

# Covariances
# NOTE: Best of luck, see lsst.meas.algorithms/convertRefcatManager.py l. 509
# config.coord_ra_coord_dec_Cov_name = "ra_dec_corr"
# config.coord_ra_parallax_Cov_name = "ra_parallax_corr"
# config.coord_dec_parallax_Cov_name = "dec_parallax_corr"
# config.coord_ra_pm_ra_Cov_name = "ra_pmra_corr"
# config.coord_dec_pm_ra_Cov_name = "dec_pmra_corr"
# config.pm_ra_parallax_Cov_name = "parallax_pmra_corr"
# config.coord_ra_pm_dec_Cov_name = "ra_pmdec_corr"
# config.coord_dec_pm_dec_Cov_name = "dec_pmdec_corr"
# config.pm_dec_parallax_Cov_name = "parallax_pmdec_corr"
# config.pm_ra_pm_dec_Cov_name = "pmra_pmdec_corr"
+12 −11
Original line number Diff line number Diff line
@@ -55,6 +55,7 @@ addopts = "--doctest-modules --doctest-glob=*.rst"
[tool.ruff]
line-length = 110
target-version = "py39"
exclude = ["etc/"]
[tool.ruff.lint]
select = [
    # pycodestyle
@@ -63,7 +64,7 @@ select = [
    # Pyflakes
    "F",
    # pep8-naming
    "N",
    #"N",
    # pyupgrade
    "UP",
    # flake8-bugbear
@@ -73,16 +74,16 @@ select = [
    # isort
    "I",
    # docstrings
    "D101",
    "D102",
    "D103",
    "D106",
    "D206",
    "D207",
    "D208",
    "D300",
    "D417",
    "D419",
    #"D101",
    #"D102",
    #"D103",
    #"D106",
    #"D206",
    #"D207",
    #"D208",
    #"D300",
    #"D417",
    #"D419",
    # Numpy v2.0 compatibility
    "NPY201",
]
+0 −3
Original line number Diff line number Diff line
from .example_module import greetings, meaning

__all__ = ["greetings", "meaning"]
+618 −0

File added.

Preview size limit exceeded, changes collapsed.

Loading