SlideRuleEarth / sliderule

Server and client framework for on-demand science data processing in the cloud
https://slideruleearth.io
Other
27 stars 12 forks source link

Consolidate __flattenbatches in Python client #264

Open jpswinski opened 1 year ago

jpswinski commented 1 year ago

The functions called __flattenbatches are present in both the gedi.py and icesat2.py modules with slight differences. They contain the logic that combines all of the different returned records into a coherent GeoDataFrame. The vast majority of the logic is duplicated - especially the handling of the raster-sample code.

These functions should be consolidated into a single function provided by the core sliderule.py module and used by the different plugin modules.