cal-adapt / climakitae

A Python toolkit for retrieving, visualizing, and performing scientific analyses with data from the Cal-Adapt Analytics Engine.
https://climakitae.readthedocs.io
BSD 3-Clause "New" or "Revised" License
19 stars 2 forks source link

Small enough latitude, longitude filter in `selections` does not do spatial filtering #377

Open elehmer opened 2 months ago

elehmer commented 2 months ago

Looking into another matter regarding spatial filtering I ran across this code in data_load that bails on spatial filtering if the area is smaller than a single cell:

https://github.com/cal-adapt/climakitae/blob/19a516c07d2f1715ed782e82a4b04cc7e903e4ed/climakitae/core/data_load.py#L343

We need to find a way to return one cell or exit with error...