Repository navigation
Add Spot model and baseline Bay of Plenty spot profiles - #23
Merged
Merged
Conversation
Spot directions are stored as degrees so a later conditions check can calculate offshore wind and swell fit. The seven profiles are unverified and their notes are paraphrased from the cited pages. Co-authored-by: Zane <xquantize@users.noreply.github.com>
This file contains hidden or 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
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.
Part of #22 (stage 3, parent #21). Targets
feature/conditions.Spot profiles are the static facts a later conditions check can use. Directions are degrees true, so offshore wind and swell fit can be calculated. An offshore wind blows from
facing_deg + 180. A swell window may cross north (330to60is valid).Spot,SwellWindowandSpotSourceinsrc/swellsense/spots/models.py. Latitude, longitude and degrees are range-checked.verifieddefaults to false.load_spotsrejects duplicate ids.get_spotraisesValueErrornaming an unknown id.data/spots.yamlhas the seven Bay of Plenty spots, allverified: false, allfacing_deg: 45. Notes are paraphrased. Each spot lists the pages it was drawn from.best_tidesis the overlap (high, and low with a rising tide) andtide_noteskeeps both claims.tide_confidenceisconflicting.AGENTS.mdnow includessrc/swellsense/spots/anddata/spots.yaml. No new dependencies.bash scripts/check.shpassed (99 tests).