Skip to content
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

Consider using geopandas for iceflow dataframes #44

Open
trey-stafford opened this issue Oct 16, 2024 · 0 comments
Open

Consider using geopandas for iceflow dataframes #44

trey-stafford opened this issue Oct 16, 2024 · 0 comments

Comments

@trey-stafford
Copy link
Contributor

I am not sure we can use geopandas directly for ITRF transformations, but we can at least make the dataframes geo-aware. E.g., this works:

>>> from pathlib import Path
>>> from nsidc.iceflow.data import glah06


>>> filepath = Path("downloaded-data/GLAH06/GLAH06_634_1102_001_0072_1_01_0001.H5")
>>> result = glah06.glah06_data(filepath)
>>> geodf = gpd.GeoDataFrame(result, geometry=gpd.points_from_xy(result["longitude"], result["latitude"], crs="ITRF2008"))
>>> geodf.crs
<Geographic 2D CRS: EPSG:8999>
Name: ITRF2008
Axis Info [ellipsoidal]:
- Lat[north]: Geodetic latitude (degree)
- Lon[east]: Geodetic longitude (degree)
Area of Use:
- name: World.
- bounds: (-180.0, -90.0, 180.0, 90.0)
Datum: International Terrestrial Reference Frame 2008
- Ellipsoid: GRS 1980
- Prime Meridian: Greenwich
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant