Skip to content

Commit

Permalink
suprimecam: add a --run entry to support maskbits
Browse files Browse the repository at this point in the history
  • Loading branch information
dstndstn committed Oct 19, 2023
1 parent f6f9120 commit 505bb6f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions py/legacypipe/runs.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,17 @@ def filter_annotated_ccds_files(self, fns):
def get_default_release(self):
return 200

class SuprimeData(LegacySurveyData):
def __init__(self, **kwargs):
super().__init__(**kwargs)
self.update_maskbits_bands(['I-A-L427',
'I-A-L464',
'I-A-L484',
'I-A-L505',
'I-A-L527',])
print('Maskbits:', self.get_maskbits())
print('Maskbits descriptions:', self.get_maskbits_descriptions())

class RerunWithCcds(LegacySurveyData):
def get_brick_by_name(self, brickname):
# BRUTAL HACK -- runbrick.py's stage_tims first calls
Expand All @@ -82,6 +93,7 @@ def get_ccd_kdtrees(self):
'odin': OdinData,
'hsc': HscData,
'rerun-ccds': RerunWithCcds,
'suprime': SuprimeData,
None: LegacySurveyData,
}

Expand Down

0 comments on commit 505bb6f

Please sign in to comment.