-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add additional dolfyn functionality #102
Open
zur-quin
wants to merge
15
commits into
MHKiT-Software:develop
Choose a base branch
from
zur-quin:adp-clean-fillgaps_time
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Add additional dolfyn functionality #102
zur-quin
wants to merge
15
commits into
MHKiT-Software:develop
from
zur-quin:adp-clean-fillgaps_time
Conversation
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
-fillgaps_depth and val_exceeds_thresh added to clean folder -formatting changes for fillgaps_time for consistency -remove numpy from nan_beyond_surface to fix error -notice that fillgaps_time and fillgaps_depth do the same thing, need to change to interpolate over just time/depth respectively
-update these functions to interpolate over time and depth respectively -using fillmissing function in matlab now to specify an interpolation dimension -include maxgap option for both above functions -update comments for above functions
New worksheet to demo val_exceeds_thresh and fill_gaps_time functions. Calls the same functions/uses same file for testing as python tests for these functions.
-fillgaps_time now checks var's type a little, and also uses correct error syntax -Note: MATLAB's fillmissing function does not have a default option for MaxGap, so if statement is still used for MaxGap argument
-update fillgaps_depth function to cover discussed changes. now checking if var is from dolfyn structure, using better syntax for throwing errors -Note: fillmissing function doesn't offer default value for MaxGap in documentation, if statement needed to call correct function from fillgaps_depth
-val_exceeds_thresh now checks types and throws an error if structure passed to function is not from dolfyn
Add tests/Dolfyn_Test_Clean.m to mimic test_clean.py from python version of MHKiT. Currently compares cleaned data to itself in order to pass tests. Next step: Move cleaned data files into repo to compare with tests here.
Since actual test file added, test_clean_adcp_example.mlx not needed
Dolfyn_Test_Clean.m updated to have functions for future tests. Dolfyn_Test_Clean.m now has all same tests as test_clean.py Commented out sections for "TODO" component/future clean functions to be added
move required cleaned data from python version to test_data folder start using cleaned data to compare in the tests (instead of comparing to self)
There was a bug in read_netcd.m where it wasn't reading from the fixed field x_star, and was trying to read the nonexistant x* field.
Add find_surface function, not quite finished still has a few errors from translating from python.
Cleaned up these files with additional comments and clarifications on items.
Finished Tasks:
TO-DO:
Final notes:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Starting with
fillgaps_time()
andval_exceeds_thresh()
functions as well as some tests/examples for both.