Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extract flag values to config #150

Open
trey-stafford opened this issue Sep 17, 2024 · 0 comments
Open

Extract flag values to config #150

trey-stafford opened this issue Sep 17, 2024 · 0 comments

Comments

@trey-stafford
Copy link
Contributor

There are various flag values that are hard-coded where needed and should instead be extracted to a configuration to ensure consistency. See e.g.,

# TODO: the flag value being "or"ed to the bitmask should be looked
# up as the temporally-interpolation-has-occured value
# rather than hardcoded as '128'.
cde_ds_with_melt_onset["cdr_seaice_conc_qa"] = cde_ds_with_melt_onset[
"cdr_seaice_conc_qa"
].where(
~is_melt_has_occurred,
other=np.bitwise_or(cde_ds_with_melt_onset["cdr_seaice_conc_qa"], 128),
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant