-
Notifications
You must be signed in to change notification settings - Fork 286
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Iris <-> GeoPandas interface? #6047
Comments
Thanks @hsteptoe I do think this is interesting. |
Just been chatting to @hsteptoe offline. He works with some software that insists on GeoPandas format, I think there are enough other geo-referenced tabular formats - mostly relying on polygon information, it seems - that it's a space worth investigating. I'm wondering about a callable utility that would add Shapely polygon information to a given It would presumably also be possible to construct a grid from a series of polygons. This would be required for the reverse interoperability, and I know there are other use cases for this (@gcsima brought me one this year). @hsteptoe might have some spare cycles to look into this, certainly earlier than the Iris maintainers could get to it. |
I think my instinct is to add an
My API suggestions would be something like (equivalent to >>> from iris.geopandas import as_geo_data_frame
>>> import geopandas as gpd
>>> cube = iris.load_cube(path)
>>> gdf = as_geo_data_frame(cube) |
I could see the case for not having the existing routines 'magically' do two different things, but I'd still rather see any new routines put into |
OK, so |
Yes that's the kind of thing I meant |
|
|
✨ Feature Request
Build interface for translating between Iris cubes and GeoPandas dataframes.
Motivation
GeoPandas is quickly becoming a key package for working with geospatial data in python.
We have a
Iris <-> pandas
interface, but should this be extended to GeoPandas?In principal we could do
Iris <-> pandas <-> GeoPandas
... but we could also make this more user-friendly.Is this within scope of what Iris should do? Thoughts?
The text was updated successfully, but these errors were encountered: