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

fix zero buffer for cmems datasets without step attribute #1006

Closed
veenstrajelmer opened this issue Sep 25, 2024 · 0 comments · Fixed by #1009
Closed

fix zero buffer for cmems datasets without step attribute #1006

veenstrajelmer opened this issue Sep 25, 2024 · 0 comments · Fixed by #1009

Comments

@veenstrajelmer
Copy link
Collaborator

veenstrajelmer commented Sep 25, 2024

from dfm_tools.download import copernicusmarine_get_buffer
dataset_id = 'cmems_obs-oc_glo_bgc-transp_my_l3-multi-4km_P1D'
buffer = copernicusmarine_get_buffer(dataset_id)
print(f"buffer: {buffer}")

Results in a zero buffer since the step attribute is nonexistent in this dataset. Find a more robust way to define the buffer, or make the default 0.5 instead of 0

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

Successfully merging a pull request may close this issue.

1 participant