Skip to content

Commit

Permalink
expect cells_to_coordinates to return a RecordBatch
Browse files Browse the repository at this point in the history
  • Loading branch information
keewis committed Dec 9, 2024
1 parent a47bc0a commit 03bc4ed
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion xdggs/h3.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,10 @@ def cell_ids2geographic(
lat : array-like
The latitude coordinate values of the grid cells in degree
"""
lat, lon = cells_to_coordinates(cell_ids, radians=False)
result = cells_to_coordinates(cell_ids, radians=False)

lon = result.column("lng").to_numpy()
lat = result.column("lat").to_numpy()

return lon, lat

Expand Down

0 comments on commit 03bc4ed

Please sign in to comment.