Skip to content

Conversation

@ssolson
Copy link

@ssolson ssolson commented Feb 3, 2023

Emily great job on your improvements from yesterday. Up top I made some clean up suggestions for language and added some TODOs.

Working on your idealized transect downsample section I added some plots that I think you can improve your analysis from.

  1. On the downsampling of the x,y transect you did this perfect. I added a graphic to show the user what you did
    image

  2. However you did not actually downsample the depth values. I fixed that in the current PR. You can additionally see that I added the river depth to the plot. From this, I would suggest that you do not use the range of the ADCP but the range of the river bed. What are your thoughts?
    Edit: Actually I suggest a combination, the max of the ADCP but a min from the riverbed (assuming a negative down referenceframe)
    image

Let's focus on doing the best analysis we can here and not what we submitted. Any changes we do will still be best for the paper.

jmcvey3 and others added 3 commits February 1, 2023 08:08
* RDI reader, logging, duty cycle motion correction

* Updates

* Force float32 datatype

* Docstring formatting

* Change 'default' docstring default

* Remove old comments
@browniea browniea merged commit bbcfcd7 into browniea:trasect_comparison Feb 3, 2023
browniea pushed a commit that referenced this pull request Dec 19, 2024
* fix assignment in type_handling

* temporary testing file

* initial conversion of energy_period and frequency_moment to DataArray

* energy_period working with variety of types and converting to dataArray base

* extend xr.dataarray basis to all wave.resource functions

* remove testing script

* black formatting

* fix most test formatting

* use dataarrays instead of datasets in wave.performance

* revert surface_elevation function back to datasets

* Revert "revert surface_elevation function back to datasets"

This reverts commit a2d5f61.

* allow datasets, 2d dataframes. Update test formatting appropriately

* simplify and improve robustness of convert_to_dataarray for 1-var dataframes and 2+ var datasets

* update test formatting

* clean up frequency_bin and method checks in elevation_surface

* update and annotate type_handling

* black formatting

* minor type fix

* update type references in loads

* update type references in loads - v2

* black formatting

* fix call to fillna() in MLER example

* fix references to k in MLER example

* add variable names to Hm0, Te, and Tp for DataFrame creation

* update pd.Series naming in examples

* fix typo in pacwave notebook

* add variable names after data conversion

* update pacwave example

* add type check to all wave.resource variable naming

* update wave example with new data types

* pull buoy name from metadata in cdip example

* tighten up example timing

* address minor review comments, add some type checking tests

* complicated dataset and dataframe handling in surface_elevation and elevation_spectrum

* restore and simplify dataset input to elevation_spectrum, surface_elevation

* black formatting

* update missed docstring

* use np.nan_to_num correctly in test_loads

* Speed up wave (#6)

* matplotlib >=3.8

* remove debug

---------

Co-authored-by: ssolson <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants