-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert wave module to xarray (#302)
* fix type error message in power.quality * convert wave.performance to xarray * remove extraneous variables from test_performance * wave/resource 90 percent converted to xarray * speed up conversion to dataset * wave.resource conversion complete * allow xarray input to wave.contours functions * allow xarray in wave.graphics * minor cleanup * update type handling in wave_number and depth_regime * update error messages in convert_to_dataarray * test_wave_metrics passing * correct typo in graphics * wave tests passing except frequency binned surface_elevation calls * fix bug/memory error with surface_elevation frequency bins * black formatting * allow xarray output in wave.io.cdip * allow xarray output from wave.io.wecsim * make utils function to convert nesed dicts of dataframes to xarray * allow xarray input/output in wave.io.swan * allow xarray input/output in wave.io.ndbc * add xarray test for test_wecsim.py * add xarray test in test_cdip * update dataframe to dataarray case in utils.type_handling * add xarray test to test_ndbc * add xarray tests to test_swan * black formatting * fix single value dataframe to dataarray conversion * black formatting * update docstring in type_handling * update description of to_pandas flag when returning a dict of pd or xr * update ndbc docstrings * move TODO from comment to an issue * update error message * update output types for wavelength * add frequency_dimension and time_dimension kwargs * add check for shape of phases and S in surface_elevation * black formatting * pylint suggestion in power.characteristics * fix cdip example * allow xarray output in wave.io.hindcast functions
- Loading branch information
Showing
22 changed files
with
1,057 additions
and
635 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.