You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The returned measurements dataframe is very complete. However, it contains a lot of metadata that is often the same for all rows. Add a function to drop all these constant rows and that return a dict with all the key+value pairs. This would also help in the conversion to e.g. xarray.
Description
The returned measurements dataframe is very complete. However, it contains a lot of metadata that is often the same for all rows. Add a function to drop all these constant rows and that return a dict with all the key+value pairs. This would also help in the conversion to e.g. xarray.
What I Did
This function adds all constant metadata to a xarray dataset attrs and all varying metadata as additional variables to the xarray dataset. It can be used as a first step:
https://github.com/Deltares/dfm_tools/blob/a8e5631e8c0257a29f3b0a4397f97f9fee1ace84/dfm_tools/observations.py#L919-L935
The text was updated successfully, but these errors were encountered: