Skip to content
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 Line Masking Functionality #83

Closed
3 tasks done
ctuguinay opened this issue Jun 2, 2023 · 0 comments · Fixed by #95
Closed
3 tasks done

Add Line Masking Functionality #83

ctuguinay opened this issue Jun 2, 2023 · 0 comments · Fixed by #95
Assignees

Comments

@ctuguinay
Copy link
Collaborator

ctuguinay commented Jun 2, 2023

As of right now, there exists no such Line Mask in echoregion modules. We need line masking in order to get precise depth values to better Hake ML biomass calculations. To resolve this issue, a function line.mask(Sv, interp options) must be created that should include the following:

  • filter time start/end based on Sv
  • basic interp that always occur using pandas df interp options
  • make mask

This implementation will repurpose the following code in the notebook created by Valentina Staneva as Hake Bottom Interpolation.
Sufficient implementation of this function will resolve this issue and those of #43, #82.

@ctuguinay ctuguinay self-assigned this Jun 5, 2023
@ctuguinay ctuguinay moved this to Todo in Echoregions Jun 5, 2023
@ctuguinay ctuguinay moved this from Todo to Done in Echoregions Jun 23, 2023
@ctuguinay ctuguinay mentioned this issue Jun 22, 2023
@ctuguinay ctuguinay linked a pull request Jun 26, 2023 that will close this issue
@ctuguinay ctuguinay moved this from Done to Review Needed in Echoregions Jun 30, 2023
ctuguinay added a commit that referenced this issue Jul 2, 2023
### Refactoring

This PR closes the following issues: #91, #88, #83, #43.

**The main folders are now:**
- utils
- lines
- regions2d

**As opposed to before:**
- utils
- convert
- formats
- mask
- plot

**Refactoring notes:**
- `core.py` contains `read_evl` and `read_evr`.
- In both regions2d and lines, plotting is still kept as a class function: `r2d.plot() `and `lines.plot()`.
- In both regions2d and lines, masking is still kept as a class function: `r2d.mask() `and `lines.mask()`.
- In both regions2d and lines, parsing is kept outside of class: `parse_regions_file(input_file)` and `parse_lines_file(input_file)`.
- We now always initialize regions2d and lines with appropriate .evr and .evl functions at initialization ALWAYS. This is enforced with an error if not initialized properly (incorrect .evr or .evl file).

**Other Changes Include:**
- Added line masking based on Valentina's example notebook with options for what to do with NA values and what interpolation method to use.
@github-project-automation github-project-automation bot moved this from Review Needed to Done in Echoregions Jul 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant