Skip to content

Commit

Permalink
df to rioxarray example
Browse files Browse the repository at this point in the history
  • Loading branch information
RichardScottOZ committed Jul 12, 2024
1 parent 752e6fc commit 69c56af
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/richardutils/richardutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1438,6 +1438,9 @@ def df_to_rioxarray(df, data):
Returns:
pyvista.PolyData: PyVista mesh object created from the CSV data.
Examples:
da_grav = df_to_xarray(dfjoin,'gravity')
"""

data = np.asarray(df[data]).reshape(1,df.y.unique().size,df.x.unique().size)
Expand Down

0 comments on commit 69c56af

Please sign in to comment.