Skip to content

Commit

Permalink
update quenched flag
Browse files Browse the repository at this point in the history
  • Loading branch information
yymao committed Dec 5, 2023
1 parent fa1c9ef commit 3a68a24
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion SAGA/objects/build3.py
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,12 @@ def add_quenched_flag(base):
fill_values_by_query(base, Query("EW_Halpha - abs(EW_Halpha_err) >= 2"), {"quenched": 0})

if "nuv_sfr" in base.colnames:
fill_values_by_query(base, Query("nuv_sfr - log_sm - abs(nuv_sfr_err) >= -11", "nuv_mag_flag == 1"), {"quenched": 0})
# assuming an error of 0.2 dex in log_sm, 0.2 ** 2 = 0.04
fill_values_by_query(
base,
Query("nuv_sfr - log_sm - sqrt(nuv_sfr_err ** 2 + 0.04) >= -11", "nuv_mag_flag == 1"),
{"quenched": 0},
)

# Set by hand:
fill_values_by_query(base, Query("OBJID == 902436850000000279"), {"quenched": 1}) # foreground stars w/uv
Expand Down
2 changes: 1 addition & 1 deletion SAGA/version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""
SAGA package version
"""
__version__ = "0.66.0"
__version__ = "0.66.1"

0 comments on commit 3a68a24

Please sign in to comment.