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

long runtime salem.roi #174

Open
ghost opened this issue Jun 15, 2020 · 1 comment
Open

long runtime salem.roi #174

ghost opened this issue Jun 15, 2020 · 1 comment

Comments

@ghost
Copy link

ghost commented Jun 15, 2020

Hey, I am using salem.roi to subset data with a shapefile, but I am getting a very long runtime of about 1,5 hrs. Is this normal or am I doing something wrong?

@jlandmann
Copy link
Contributor

I just bumped into your issue by coincidence....
Well, usually this shouldn't happen from my experience with salem. Can it be you are using the xarray accessor?
For me it happens sometimes, for example, that I process satellite images using dask in xarray. Then the dataset needs to be loaded first before I can create a ROI/subset, i.e. also all previously chained operations need to be executed. But this doesn't take much longer than ~ half a minute either for me (but depends, of course, on the data size, chunk size, and the choice of operations).
A little more insight into your code and data dimensions would probably help to understand where this extraordinarily long runtime might come from.

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

1 participant