MHKiT-Python provides the marine renewable energy (MRE) community tools for data processing, visualization, quality control, resource assessment, and device performance.
This PR outputs the time 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 return as 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`
'cords_to_layers' dictionary
depth output z :z=[bottom_depth*Layer_percentages[layer_index]]-water_level
updated interpolation for bottom_depth and water_level in wdim coordinate system
Changes in 'get_all_data_points`
'cords_to_layers' dictionary
depth z is pulled from 'get_layer_data` and takes into account water level
This PR outputs the time based on the time step in function
convert_time
,d3d. get_layer_data
andd3d.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 return as all the time stamps for that data set -convert_time
: converts atime_index
to atime_stamp
in seconds or vice versaChanges in 'get_layer_data`
z
:z=[bottom_depth*Layer_percentages[layer_index]]-water_level
Changes in 'get_all_data_points`
z
is pulled from 'get_layer_data` and takes into account water level