Closed AndrewPlayer3 closed 11 months ago
autorift golden test is running: https://github.com/ASFHyP3/hyp3-testing/actions/runs/6254008848
I expect everything to look good, and we can merge this. I'll review the golden test run today, if it finishes by 2:30 PM AK, or review it tomorrow morning if not.
Fixes Improve performance of crop
It seemed that the
drop=True
portion of theds.where(..., drop=True)
calls was the root of the slowdown. When I removed that argument, the function executed very quickly. I chose to remove that argument and replaced it with a string ofdropna(..., how='all')
calls. The crop function now executes in around 2 seconds for the product Joe sent me (before it was minutes). I checked to make sure that the outputted datasets where identical usingxarray.Dataset.equals
, and they were.