Delft3DFM Application and Spatial Functionality - #57
Conversation
…teps are manually updated with default always set to false to keep origional function. Additional function to create CDF plot with lines for exposure time at 50, 75, and 90th percentile.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #57 +/- ##
==========================================
- Coverage 97.65% 97.57% -0.09%
==========================================
Files 2 3 +1
Lines 555 701 +146
==========================================
+ Hits 542 684 +142
- Misses 13 17 +4 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Awesome @caitlinturner. @wrightky is this something you want to review/test out or should I? |
These additions look very cool! I might have time for a full review later this the week, but if you have time @elbeejay feel free. |
|
Thank you! I noticed your notebook examples were in their "run" form. Would y'all like me to do this? When learning the code, I used that version quite a bit instead of running it. |
|
I can probably look things over tomorrow evening. I don't have a preference on notebook form |
There was a problem hiding this comment.
Pull Request Overview
This PR adds comprehensive Delft3D-Flexible Mesh support and spatial functionality to dorado, focusing on exposure time analysis capabilities. The implementation provides both system-wide and localized exposure time calculations with spatial visualization.
- Adds complete Delft3D-FM unstructured grid support with data conversion utilities
- Implements spatial exposure time analysis with chunking and threshold computation
- Provides comprehensive documentation through example notebooks and unit tests
Reviewed Changes
Copilot reviewed 5 out of 7 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| tests/test_spatial.py | Unit tests for spatial exposure time functionality with test fixtures and plotting validation |
| examples/unstructured_grid_Delft3dFM.ipynb | Complete walkthrough notebook for Delft3D-FM integration with Lake Pontchartrain example |
| examples/spatial_exposure_time_example_Delft3DFM.ipynb | Tutorial notebook demonstrating spatial exposure time calculations and visualization |
| dorado/spatial.py | Core spatial analysis module implementing system-wide and localized exposure time computations |
| dorado/routines.py | Enhanced plotting functions with threshold visualization capabilities |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
elbeejay
left a comment
There was a problem hiding this comment.
My comments are all minor, the only change that I think needs to be made prior to merging is the fix to the end_time variable name in routines.py. I think I'd be okay with opening up issues to look into some of the other items like streamlining the plotting functions etc.
|
Apologies for testing out this GitHub AI code review feature but I saw the button and couldn't help it @caitlinturner - although the comments the bot made also seem very minor! |
I agree with these suggestions for |
Totally fine! Its interesting to see what it picked up! |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
adding spatial
Fixed typos and addressed suggestions from @elbeejay
removed extra spacing
I added my name to authorship and copyright
|
I have made the above updates and suggestions! I did change the notebooks to be in a run form. While learning how to use the code when I first started this work, it was helpful to refer to the 'run' version, although I did remove long outputs that made things look clunky. Thank you for the feedback, @elbeejay! |
|
The code looks good to me! Y'all have already addressed most of the same things I would've commented on. Here are just a few extra suggestions:
|
removed extra line spacing
|
Okay, I think I have addressed everything! |
|
Thank you both again for checking this over. If there are any other steps I need to take, please let me know! |
|
@wrightky merge when you're ready |
I have added the following components to dorado:
A second set of eyes (Mark Piper from CSDMS) checked over code, functionality, and unit testing.