VeinsOfTheEarth / rabpro

Delineating watershed basins and computing attribute statistics using Google Earth Engine
https://VeinsOfTheEarth.github.io/rabpro
BSD 3-Clause "New" or "Revised" License
35 stars 8 forks source link

Cryptic error if profiler point does not intersect HydroBASINS #152

Open jsta opened 1 year ago

jsta commented 1 year ago

We already catch this in https://github.com/VeinsOfTheEarth/rabpro/blob/main/rabpro/basins.py#L338:L342 as a warning but maybe we should upgrade this to an error? @jonschwenk

jsta commented 1 year ago

Test with:

# Hawaii
rpo = rabpro.profiler(("19.685", "-155.6"))
rpo.delineate_basin()