Skip to content

Commit

Permalink
removed unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
s-goldman committed Dec 5, 2023
1 parent 4d5aa4e commit 034116d
Showing 1 changed file with 0 additions and 37 deletions.
37 changes: 0 additions & 37 deletions drizzlepac/haputils/hla_flag_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -1612,43 +1612,6 @@ def xytord(xy_coord_array, image, image_ext, origin=1):

# ======================================================================================================================


def flag4and8_hunter_killer(catalog_data, column_titles):
"""This function searches through photometry catalogs for sources whose flags contain
both bits 4 (multi-pixel saturation), and 8 (faint magnitude limit).
If found, the subroutine removes the "8" bit value from the set of flags for that source.
Parameters
----------
catalog_data : astropy Table object
catalog data to process
column_titles : dictionary
Relevant column titles
Returns
-------
catalog_data : astropy Table object
input catalog data with updated flags
"""
conf_ctr = 0
log.info("Searching for flag 4 + flag 8 conflicts....")
for catalog_line in catalog_data:
if ((catalog_line["Flags"] & 4 > 0) and (catalog_line["Flags"] & 8 > 0)):
conf_ctr += 1
catalog_line["Flags"] = int(catalog_line["Flags"]) - 8
if conf_ctr == 0:
log.info("No conflicts found.")
if conf_ctr == 1:
log.info("{} conflict fixed.".format(conf_ctr))
if conf_ctr > 1:
log.info("{} conflicts fixed.".format(conf_ctr))

return catalog_data

# ======================================================================================================================


def make_mask_array(drz_image):
"""
Creates _msk.fits mask file that contains pixel values of 1 outside the drizzled image footprint and pixel values
Expand Down

0 comments on commit 034116d

Please sign in to comment.