Skip to content

disaggregate does not preserve extent #913

Open
@tiemvanderdeure

Description

@tiemvanderdeure

Now that it's not possible to pass a locus to disaggregate, it always disaggregates at the Start, which returns some pretty unexpected dimensions (to me). I think it should be a priority to always return the same bounds when disaggregating - right now that doesn't happen.

using Rasters, Rasters.Lookups
ras = Raster(rand(X(Sampled(5:10:95; sampling = Intervals(Center())))))
ras2 = disaggregate(ras, 10)

extent(ras2) == extent(ras)

I thought this would be an easy fix, but it requires changing some of the internals and then everything gets messed up.

So maybe the solution is to shiftlocus internally or something. Or do should we make it possible to pass a locus again?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions