Skip to content

Commit

Permalink
Merge pull request #10 from lsst-dm/u/erykoff/mapoffsets
Browse files Browse the repository at this point in the history
Add code to make and plot offset maps and histograms.
  • Loading branch information
erykoff authored Oct 31, 2023
2 parents b78c364 + e0b9518 commit 2f7f47d
Show file tree
Hide file tree
Showing 13 changed files with 743 additions and 2 deletions.
27 changes: 27 additions & 0 deletions bin.src/make_all_offset_maps.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!/usr/bin/env python

from lsst.the.monster import (
GaiaXPMinusDESOffsetMapMaker,
PS1MinusDESOffsetMapMaker,
SkyMapperMinusDESOffsetMapMaker,
VSTMinusDESOffsetMapMaker,
PS1MinusGaiaXPOffsetMapMaker,
SkyMapperMinusGaiaXPOffsetMapMaker,
SkyMapperMinusPS1OffsetMapMaker,
VSTMinusGaiaXPOffsetMapMaker,
)


for maker_class in (
GaiaXPMinusDESOffsetMapMaker,
PS1MinusDESOffsetMapMaker,
SkyMapperMinusDESOffsetMapMaker,
VSTMinusDESOffsetMapMaker,
PS1MinusGaiaXPOffsetMapMaker,
SkyMapperMinusGaiaXPOffsetMapMaker,
SkyMapperMinusPS1OffsetMapMaker,
VSTMinusGaiaXPOffsetMapMaker,
):
maker = maker_class()
hsp_file = maker.measure_offset_map()
maker.plot_offset_maps(hsp_file)
1 change: 1 addition & 0 deletions python/lsst/the/monster/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,5 @@
from .splinecolorterms import *
from .refcats import *
from .measure_colorterms import *
from .measure_offsetmaps import *
from .utils import *
4 changes: 2 additions & 2 deletions python/lsst/the/monster/isolate_and_transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

from lsst.pipe.tasks.isolatedStarAssociation import IsolatedStarAssociationTask
from .splinecolorterms import ColortermSpline
from .refcats import GaiaXPInfo, GaiaDR3Info, SkyMapperInfo, PS1Info, VSTInfo
from .refcats import GaiaXPInfo, GaiaDR3Info, SkyMapperInfo, PS1Info, VSTInfo, DESInfo
from .utils import read_stars, makeRefSchema, makeRefCat

__all__ = ["MatchAndTransform"]
Expand Down Expand Up @@ -42,7 +42,7 @@ class MatchAndTransform:
def __init__(self,
gaia_reference_class=GaiaDR3Info,
catalog_info_class_list=[GaiaXPInfo, SkyMapperInfo,
PS1Info, VSTInfo],
PS1Info, VSTInfo, DESInfo],
write_path_inp=None,
testing_mode=False,
):
Expand Down
Loading

0 comments on commit 2f7f47d

Please sign in to comment.