8000 Detect if running in an environment with arcpy and use their mosaic and zonal stats functions in that case · Issue #10 · water3d/eedl · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Detect if running in an environment with arcpy and use their mosaic and zonal stats functions in that case #10

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

Open
nickrsan opened this issue Jun 12, 2023 · 1 comment
Assignees

Comments

@nickrsan
Copy link
Contributor
nickrsan commented Jun 12, 2023

This one is kind of interesting. We should detect at install time if we're running in an arcpy environment. If we are, skip adding GDAL as a dependency (this is just a list comprehension in setup.py, not sure about other package specs). Then we can run raster merging and zonal stats without additional installations and with less code that runs faster. But we still want to support the current pipeline since it is more cross-platform and doesn't require a license. We'll want to see if we can test the arcpy branch and we'll want to compare the outputs with current methods to make sure we get roughly comparable numbers (pandas has a method for asserting two data frames are roughly equal down to a certain decimal precision. We'll use that)

@nickrsan nickrsan converted this from a draft issue Jun 12, 2023
@nickrsan nickrsan self-assigned this Jun 12, 2023
@nickrsan
Copy link
Contributor Author

This probably also suggests an architecture where mosaicking and zonal stats are run as classes. There can be a subclass for EE zonal stats, rasterstats zonal stats, and arcpy zonal stats. Similarly, we'll have subclasses for
gdal mosaicking and arcpy mosaicking.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

1 participant
0