pydl.pydlutils.sdss.sdss_flagexist(flagname, bitname, flagexist=False, whichexist=False)[source]

Check for the existence of flags.


The name of a bitmask group. Not case-sensitive.

bitnamestr or list

The name(s) of the specific bitmask(s) within the flagname group.

flagexistbool, optional

If flagexist is True, return a tuple with the second component indicating whether the binary flag named flagname exists, even if bitname is wrong.

whichexistbool, optional

If whichexist is True, return a list containing existence test results for each individual flag.

bool or tuple

A boolean value or a tuple of bool.