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
GeoBox.zoom_to
with a resolution
#79
Comments
I don't think I follow what you mean by "convert GeoBox to Dataset". do any of ⬇️ do what you need?
|
those produce DataArray, or coordinates for it, you can then wrap dataset around that if needed |
Thanks a lot for the quick reply! |
like this? https://odc-geo.readthedocs.io/en/latest/_api/odc.geo.geobox.GeoBox.flipy.html |
I'm not sure. This helps with doing the actual transformation, but I'd still have to decide when to call it (and switch between |
actually, since that particular geobox was created by rescaling a existing geobox I could just pass a Which leads to a different question: is there a simple way to create a geobox from an existing one, but with changed resolution? Basically, what I'm looking for is something similar to new_geobox = GeoBox.from_bbox(geobox.boundingbox, resolution=0.01) but that feels clunky, and that's also where the negative resolution is from. |
GeoBox
to Dataset
GeoBox
to Dataset
so like you can use |
thanks. I'll probably use Edit: I'll leave this open to track the |
I've been trying to use
odc-geo
to define the target grid for regridding withxesmf
. This works great so far, but one of the features I've been missing so far is creating aDataset
from theGeoBox
.The naive version I've been using so far
which obviously lacks support for affine transformations, assumes 1D coordinates, and the resolution trick should probably configurable (and off by default?)
Did I miss anything? Do you know of a better way to do this? If not, would you be open to adding something like this to
odc.geo.xr
?The text was updated successfully, but these errors were encountered: