MHKiT-Software / MHKiT-Python

MHKiT-Python provides the marine renewable energy (MRE) community tools for data processing, visualization, quality control, resource assessment, and device performance.
https://mhkit-software.github.io/MHKiT/
BSD 3-Clause "New" or "Revised" License
50 stars 45 forks source link

Delft 3D Timestep to Seconds Function #155

Closed browniea closed 2 years ago

browniea commented 2 years ago

Adding on to the PR #Delft3D io functions this PR outputs the time output based on the time step in function convert_time, d3d. get_layer_data and d3d.get_all_data_points. A function to get all timestamps 'get_all_timestamps' will return an array of all the timestamps for a data set.

Additions: -get_all_timestamps : inputs netcdf4 dataframe and returnas all the time stamps for that data set -convert_time : converts a time_index to a time_stamp in seconds or vice versa

Changes in 'get_layer_data`

Changes in 'get_all_data_points`

ssolson commented 2 years ago

Superceeded by #168