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

Feature request: GEDI flags should be unpacked #316

Open
jpswinski opened this issue Sep 15, 2023 · 2 comments
Open

Feature request: GEDI flags should be unpacked #316

jpswinski opened this issue Sep 15, 2023 · 2 comments

Comments

@jpswinski
Copy link
Member

From @dshean

Function to unpack the returned flag bits and prepare a tuple of 0/1 or other integer values for each:
"flags": flags set for footprint (0x01: degrade, 0x02: l2 quality, 0x04: l4 quality, 0x80: surface) (edited)

@dshean
Copy link
Member

dshean commented Sep 15, 2023

Thanks for posting!
Better yet, we could unpack into dictionary with labels {'degrade':0, 'l2_quality':1...} and store in the GeoDataFrame "flags" column.

@scottyhq
Copy link
Contributor

I'm not sure what the current values are in the "flags" column are (coming from gedi.gedi02ap): I see 130, 131, which don't correspond to hex numbers listed in the docs... I'm pretty sure it is the sum of flags? So 131 -> is_suface + not_degraded + meets_quality

related issues/discussion https://github.com/orgs/SlideRuleEarth/discussions/442, #446

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

3 participants