Coder Social home page Coder Social logo

Bounds option for Image.warp about ukis-pysat HOT 6 CLOSED

dlr-eoc avatar dlr-eoc commented on July 26, 2024
Bounds option for Image.warp

from ukis-pysat.

Comments (6)

fwfichtner avatar fwfichtner commented on July 26, 2024

Please be careful with the order of parameters to keep compatibility. I am also not sure how useful this is, why would you read in the whole image and then only use a subset of it? Would it not be better to read in a subset from the start?

from ukis-pysat.

MWieland avatar MWieland commented on July 26, 2024

To work on a subset of an image can be very useful and efficient. I agree with you that reading in a subset from the start would be the better option. @fwfichtner Can we add a subset option (like windowed reading) to Image initialization?

from ukis-pysat.

fwfichtner avatar fwfichtner commented on July 26, 2024

It is quite simple and already there if you want. You can read in the subset like in this example and the initialize Image with the windowed dataset.

from ukis-pysat.

MWieland avatar MWieland commented on July 26, 2024

Thanks for the example. It seems to work with image coordinates though. Wouldnt it be desirable to have this work with real world coordinates? We could provide this as a convenience call option in ukis-pysat, which could proof an added value compared to plain rasterio windowed reading. Curious about your opinion.

from ukis-pysat.

fwfichtner avatar fwfichtner commented on July 26, 2024

This you can solve using rasterio.windows.from_bounds. I guess what I'm saying is that we would just put something inside which already exists outside and is more accessible there.

from ukis-pysat.

MWieland avatar MWieland commented on July 26, 2024

Alright in this case I agree. Did not know about this rasterio method. Thanks for clarifying. Closing this issue.

from ukis-pysat.

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.