salem icon indicating copy to clipboard operation
salem copied to clipboard

long runtime salem.roi

Open ghost opened this issue 4 years ago • 1 comments

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?

ghost avatar Jun 15 '20 15:06 ghost

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.

jlandmann avatar Oct 04 '20 20:10 jlandmann