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

Issue with the precision of quality flag #18

Closed
diesseh opened this issue Apr 7, 2024 · 1 comment · Fixed by #25
Closed

Issue with the precision of quality flag #18

diesseh opened this issue Apr 7, 2024 · 1 comment · Fixed by #25
Labels
documentation Improvements or additions to documentation

Comments

@diesseh
Copy link

diesseh commented Apr 7, 2024

Hi Marco,

Thanks again for this script

I am getting this error

gdf_l2a = extract_data(directory=gedi_dir, gedi_product='L2A', only_full_power=True, subset_vector=vec_path)
Traceback (most recent call last):
File "", line 1, in
TypeError: extract_data() got an unexpected keyword argument 'only_full_power'

@maawoo
Copy link
Owner

maawoo commented Apr 8, 2024

Hi @diesseh,
there have been some changes to the extract_data-function that are not reflected in the Readme yet (#16) . I will update it as soon as possible!

The only_full_power-parameter has been replaced by beams, which accepts a list of beam names (e.g., ['BEAM0101', 'BEAM0110', 'BEAM1000', 'BEAM1011']). If you only want to extract data from the full power beams, you can do the following:

from gedixr.gedi import extract_data, FULL_POWER_BEAMS

gdf_l2a = extract_data(directory=gedi_dir, gedi_product='L2A', beams=FULL_POWER_BEAMS, subset_vector=vec_path)

Let me know if that works for you.

@maawoo maawoo added the documentation Improvements or additions to documentation label Apr 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants