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

Speed up computation of glacier parameters #141

Open
hboisgon opened this issue Jan 10, 2023 · 1 comment
Open

Speed up computation of glacier parameters #141

hboisgon opened this issue Jan 10, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@hboisgon
Copy link
Contributor

Seems we compute glacier store and frac by looping over glacier. We may be able to do this faster by computing for all glaciers at once:

for i in range(len(gdf)):
glacier = gdf.iloc[i]
gridded_glacier = gdf_grid.intersection(glacier.geometry)
gridded_glacier = gridded_glacier.loc[~gridded_glacier.is_empty]

@hboisgon hboisgon added the enhancement New feature or request label Jan 10, 2023
@hboisgon
Copy link
Contributor Author

Closed as duplicate of #19

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

No branches or pull requests

1 participant