-
Notifications
You must be signed in to change notification settings - Fork 5
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
Migrate RAVEN GIS utilities and fix the documentation #68
Conversation
I'm sorry I'm a little bit confused: we are migrating what from what exactly? I don't understand the migration aspect just by looking at the code (admittedly I looked superficially so far). Also, since it seems this is related to it, are we addressing #44? If not, should we? I really find that confusing to have both |
I am migrating all the GIS-like file operations that RAVEN uses into RavenPy for easier maintenance. This PR is meant to synchronize the two (so that we don't have redundancies in both projects). If we want to move/split/rename |
I've already moved all non- |
If you don't mind that would be great! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FAILED tests/test_geoserver.py::TestWCS::test_get_raster_wcs - rasterio.errors.CRSError: The EPSG code is unknown. Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment vari...
FAILED tests/test_utils.py::TestGdalOgrFunctions::test_dem_properties - AssertionError:
FAILED tests/test_utils.py::TestGenericGeoOperations::test_raster_warp - rasterio.errors.CRSError: The EPSG code is unknown. Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA enviro...
FAILED tests/test_utils.py::TestGenericGeoOperations::test_warped_raster_slope - rasterio.errors.CRSError: The EPSG code is unknown. Unable to open EPSG support file gcs.csv. Try setting the GDAL_DAT...
FAILED tests/test_utils.py::TestGenericGeoOperations::test_warped_raster_aspect - rasterio.errors.CRSError: The EPSG code is unknown. Unable to open EPSG support file gcs.csv. Try setting the GDAL_DA...
Hmmm... Is this in a fresh environment? What version of GDAL is in your system libraries? |
Yes I know this error, you need to do: |
Just did a rebuild with Anaconda and another with |
…ting, use `next(iter(src))` in fiona accessors, blacken
…oduct, blacken test_utils.py
@cjauvin I think I have a schema for refactoring the
If this works for you, I can move forward with this. It should be one of the last thing I do here before merge. |
@Zeitsperre Thanks a lot I really appreciate it! |
…ted imports for ravenpy tests, and raven-wps processes, and parse_lonlat refactored to raven
… __init__, adjust if/else code, fix a few tests
According to this: readthedocs/readthedocs.org#1139 RTD is not able to run (1) Commit all its generated files |
I find this "hack" to be somewhat reasonable:
Shall we implement it? |
Leaving this here since this needs to be addressed: Toblerity/Fiona#986 Edit: For clarification, this warning is a regression in Fiona 1.8.18. Feel free to ignore any raised warning about sequential read. |
A final comment: I'm updating the installation docs to add another step. So long as there are no additional python libraries to install, running |
This PR migrates all but one function (only used in RAVEN WPS) from
raven.utils.py
. This PR also addresses most of theFIXME
notes pointing to unexpected/broken behaviour. Things should now be much more resilient/functional than previously.This PR also refactors
ravenpy/utils.py
intoutilities
(analysis
,geo
,checks
,io
). This refactoring was done synonymously with Ouranosinc/raven#335, so changes are already up-to-date on that PR. Some utilities have been migrated there (parse_lonlat()
).As a final added benefit, the
hydro_routing
functions for collecting and performing upstream sub-basin identification have now been written in this PR. Tests for these functions are also written and passing.This PR now fixes #44
EDIT: With the merge from #70 this PR is also set to close #58