-
Notifications
You must be signed in to change notification settings - Fork 161
Remove implicit use of CRS in code base #1020
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
Closed
Closed
Changes from 22 commits
Commits
Show all changes
68 commits
Select commit
Hold shift + click to select a range
657b612
Add function to test if lat and lon are in geographic coords
luseverin b594b7f
Add test for geographic coords in dist_to_coast
luseverin e36ded8
Add test for geographic coords in coord_on_land
luseverin dc78a13
Merge branch 'develop-white' into feature/remove_implicit_use_crs
luseverin b88ecc4
Switch branch feature/remove_implicite_use_crs to black format
luseverin 96ede79
Merge branch 'develop-black' into feature/remove_implicit_use_crs
luseverin 2bc5c6a
Merge branch 'develop' into feature/remove_implicit_use_crs
luseverin b139e8f
Merge branch 'develop' into feature/remove_implicit_use_crs
luseverin c8aac80
Merge branch 'develop' into feature/remove_implicit_use_crs
luseverin 320d0f7
Extend allowed extent for geo coords
luseverin 9ef7323
Modify allowed extents in geo_coords check function to allow for bounds
luseverin f27c4aa
Include possible wrong lat lon extension in error message
luseverin df439a5
Add check for geo coords in get_country_code
luseverin d3aea1e
Add test for geocoords in convert_wgs_to_utm
luseverin fb3cf7e
Update error message in coord_on_land
luseverin cf57963
Harmonize error messages
luseverin cb1e718
Adapt test get_country_geometries_fail
luseverin 2a1f9b1
Check for geo coords in match_coordinates
luseverin 322a9d3
Add check for lat in get_gridcellarea
luseverin 60dc067
Modify check geo coords function to please linter
luseverin a0e02be
Add test for geo coords in calc of coriolis param
luseverin 127d9cc
Add tests for check_if_geo_coords function
luseverin 737fcd4
Merge branch 'develop' into feature/remove_implicit_use_crs
luseverin eca9f77
Incorporate suggestions from review 1
luseverin 99635bf
Start adapating match_coordinates function to other crs
luseverin a642c04
Add handling of unit in match_centroids
luseverin eea31cb
Rename deg to degrees
luseverin 35f0f7f
Add function to infer unit of coordinates
luseverin 782b53d
Use infer_unit_coords in match_centroids function
luseverin ffee7f8
Add tests for unit_infer and unit-adapted match_coordinates
luseverin 61e7b0f
Make test_tack_land_params compliant with new requirement of geodetic…
luseverin ef250c4
Correct wrong is_geodetic crs attribute
luseverin bca6e3a
Add restriction for haversine with non-degree units
luseverin 54e2f75
Finish adding test for handling of different units
luseverin 63bf8b5
Add test invalid unit for match coords and docstrings
luseverin da1c965
Update docstrings
luseverin 5d53512
Try to fix new linter issues
luseverin 54c8565
Correct error in logger warning
luseverin e1c9633
Force check_antimeridian to False in distance euclidean if unit is no…
luseverin fbcb163
Remove outdated test for raise of ValueError when check_antimeridian …
luseverin 41b66bb
Add function to get coordinates from axis of coordinates'crs
luseverin 7d1d3f3
Update unit names to be consistent with epsg notation and remove unit…
luseverin 2176402
Clarify docstring check_if_geo_coords
luseverin 8edb184
Make conversion between radians and degrees more consistent
luseverin 91600a9
Remove deprecated infer_unit_coords function
luseverin f0d8dcc
Update tests
luseverin d45e55f
Force input coords and centroids to have crs attribute in match_centr…
luseverin 409ff73
Re-harmonize unit names and raise error when crs of centroids or coor…
luseverin 028fa0b
Add missing tests
luseverin 2da2e2e
Fix linter issues
luseverin e2022ba
Refix linter
luseverin 9c4b51e
Wrap valuerror raising in check_if_geo_coords
luseverin f14d5f0
Update tests
luseverin a733e8e
Remove useless info in get_crs_unit docstring
luseverin 685c241
Raise separate exceptions for missing crs in coord_gdf and centroids
luseverin a5d5c20
Fix error in _nearest_neighbor_approx docstring
luseverin 16bcc84
Make clearer error message for _nearest_neighbor with non-allowed units
luseverin 07a4a73
Simplify crs check in match_centroids
luseverin f2d49b3
Correct typo and update tests for new error messages in match_centroids
luseverin 0f3de31
Only warn for check_antimeridian when it is true and add tests
luseverin c67d6da
Allow for units other than degree km and m by keeping distance thresh…
luseverin a260848
Update thresholds in test to be consisten with handling of thresholds…
luseverin 2f6bb5e
Remove mention to calling functions in error message in _nearest_neig…
luseverin 734541a
Remove mention to calling functions in error message in _nearest_neig…
luseverin 86d8126
Update docstrings match_centroids
luseverin faf8666
update docstrings for match_coordinates
luseverin b55b02a
Update changelog
luseverin 45175c2
Remove confusing comments in code
luseverin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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.
Uh oh!
There was an error while loading. Please reload this page.