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
47 stars 45 forks source link

Xarray conversion - Project Tracking Card #260

Open akeeste opened 10 months ago

akeeste commented 10 months ago

In the near future, MHKiT will begin transitioning from using pandas as its base to xarray. The development team made this decision for several reasons:

The below comment is a Project Tracking Card (i.e. roadmap) that records the reasoning for this change and further details the intended steps to complete this process. There is no hard timeline for each step yet, but we're hoping to make significant progress over FY24.

If @ryancoe @cmichelenstrofer @jmcvey3 or others have modules that you would like prioritized, please let us know!

Closing #78 in favor of tracking things here.

akeeste commented 10 months ago

Project Tracking Card

Conversion to Xarray

Target

MHKiT fully supports xarray as its default, base dependency throughout the software package. Functions optionally accept pandas input/output with a new flag, but internal MHKiT functionality uses xarray.

User Story

"As a , I want , so that ___" As a user, I want new version of xarray, so that MHKiT keeps up to date with other software I use As a user, I want xarray support, so that I can more easily couple MHKiT with other software As a developer, I want an xarray base, because it is easier to convert xarray to pandas than pandas to xarray As a developer, I want an xarray base, to consolidate and standardize the base dependency of MHKiT

Card

akeeste commented 2 months ago

Low priority TODO: WEC-Sim data can be better read using xarray and specifying the DOF as a new dimension instead of tacking it onto variable names