Closed pkdash closed 4 months ago
😮
gdf = gpd.GeoDataFrame.from_features(feature_collection)
...slick. Thank you for showing me that one.
Before the final merge, I want to check the size of the dependencies with GeoPandas, and we might discuss with Jeff whether to make it an optional dependency. A nice feature of dataretrieval
is that our dependencies are small enough to deploy on Lambda.
Looks great so far.
@thodson-usgs I like the idea of making the GeoPandas as optional dependency. I am going to implement the remaining NLDI data retrieval functions.
@pkdash, did you run out of time? Should I pick this up?
@thodson-usgs Thanks for checking. Yeah has been busy with other projects. I will try to finish it next week. If I can't get to it next week, you can pick this up. I will let you know.
Ah sorry! I'm too used to relying on CI. I should've tested before mucking up your PR. Stand by
@pkdash, I tweaked the CI and build pipeline. I might also tweak how we handle geopandas as an optional dependency. Otherwise, these changes are looking good so far. Is this PR ready or still draft?
@thodson-usgs The only thing left is handling of the geopandas as optional dependency. I ran out of time yesterday. If you can take care of that then the PR is ready. Thanks.
Created this draft PR to get some early feedback.
This is a draft implementation of 2 functions for accessing NLDI. This implementation adds a new dependency - geopandas NLDI API documentation does not help much in terms of implementing validation for input parameters. The parameters of the 2 functions that I have implemented probably need more accurate description to make it user friendly.