Giter Site home page Giter Site logo

Comments (7)

mraspaud avatar mraspaud commented on June 20, 2024

@simonrp84 thanks for reporting the issue.

It looks like pyresample complains that the source and destination areas are the same, which is actually true for some of the channels of the true color image I suppose, and probably not for others.
My first reaction here is why not use the native resampler instead? Are you after the bilinear interpolation gradient search provides?

from pyresample.

simonrp84 avatar simonrp84 commented on June 20, 2024

No, this is just a simple example to prove the bug. I'm actually trying to use the true_color_with_night_ir composite, which is unable to use native as it has non-geos data included. It produces the same error.

from pyresample.

mraspaud avatar mraspaud commented on June 20, 2024

I understand. I suppose one solution will be to make this a warning rather than an error...

from pyresample.

djhoese avatar djhoese commented on June 20, 2024

@mraspaud perhaps Satpy, if it doesn't already, should skip resampling data in these cases and instead do a .copy(deep=True) on the DataArray? Why don't we see this issue with the kdtree version?

from pyresample.

djhoese avatar djhoese commented on June 20, 2024

Wait...are we completely wasting time with all resamplers by asking to resample data to its same projection?!?!? No. I don't believe it.

from pyresample.

simonrp84 avatar simonrp84 commented on June 20, 2024

Yeah, that was going to be my next question: If this is a warning rather than an error then what happens with the data? Sounds like it might still get 'resampled' even for the bands where there's no need...

from pyresample.

mraspaud avatar mraspaud commented on June 20, 2024

So, looking at this I can see that in the case of the kdtree resampler, the resampling will take place even if source and target areas are identical. Native works around it by nature (sizes being the same, nothing is done). Gradient search atm raises an error. Working on a PR for the latter.

from pyresample.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.