You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In sliderule/clients/python/sliderule/icesat2.py, the 'spot' column is calculated using geopandas.apply and the __calcspot function. Using pandas.Series.map here instead should be much faster.
Pandas map function returns NaNs in case of missing keys.
It's also possible to change the current function to accept a tuple as input. Along the lines of:
In sliderule/clients/python/sliderule/icesat2.py, the 'spot' column is calculated using geopandas.apply and the __calcspot function. Using pandas.Series.map here instead should be much faster.
For a granule of about 2 million photons, this takes about 19s. Using a dictionary and pandas.Series.map takes less than 2s:
Pandas map function returns NaNs in case of missing keys.
It's also possible to change the current function to accept a tuple as input. Along the lines of:
The text was updated successfully, but these errors were encountered: