Closed aburrell closed 1 year ago
@jklenzing, this is the project I was talking about with you. Would appreciate your input!
Looked into this and found a step that reduced test run time from about 4 hours to about 40 minutes. Explored more xarray/pandas methods and they didn't seem appropriate, so this may close with #115
Describe the bug The pysat custom function uses for loops instead of pandas/xarray functionality and this makes processing some datasets (like the Madrigal VTEC) too slow to be useful.
To Reproduce Steps to reproduce the behavior:
Expected behavior The function should work on this data set in a way that is useful
Desktop (please complete the following information):
Additional context The problem is the for-loops in
ocbpy.instruments.pysat_instrument.add_ocb_to_data
. The function is working correctly, it's just too slow to be used.