ecmwf / earthkit-data

A format-agnostic Python interface for geospatial data
Apache License 2.0
47 stars 9 forks source link

Add convenience methods for point data #302

Open JamesVarndell opened 4 months ago

JamesVarndell commented 4 months ago

Is your feature request related to a problem? Please describe.

This idea comes from a desire to remove pain points when plotting point data with earthkit-maps. At present, one has to manually extract geospatial point information from point data (normally using pandas), even when the geospatial information about each point is clearly labelled using well-understood labels (e.g. "lat" and "lon").

Describe the solution you'd like

Starting with CSV, we should implement the to_points() method, which will look for common column titles (e.g. "lat", "latitude", "lon", "longitude" etc.) and return the points list, if found.

Describe alternatives you've considered

No response

Additional context

No response

Organisation

ECMWF

gritk commented 2 months ago

This would be very useful for working with the C3S LOT5 Fire AF & FRP summary datasets, which are provided as a table in csv format. (https://www.wekeo.eu/data?view=dataset&dataset=EO%3AECMWF%3ADAT%3ASATELLITE_FIRE_RADIATIVE_POWER)