Coder Social home page Coder Social logo

Handle nodata masks about rio-hist HOT 1 CLOSED

perrygeo avatar perrygeo commented on June 18, 2024
Handle nodata masks

from rio-hist.

Comments (1)

perrygeo avatar perrygeo commented on June 18, 2024

Thinking through what this will take...

  • We can just drop nodata in the reference when we convert to 1D, no info lost there
  • We have to keep track of the masked value's index, delete it from the values and counts arrays before cdf. Then after the target values have been interpolated we need to re-introduce the fill value at that index, recreate the array and re-mask by position
  • We need to ensure that we're writitng masked rasters with nodata values
  • Histogram and cdf plots need to also consider mask
  • the hard one colorspace conversions (forward and backward) need to retain the mask. This means that we'll need to save the mask and reapply it at various steps. There's some uncertainty as to how this will work - real data might become a nodata value in a given colorspace so the mask will need to be applied by position, not value.
  • This is going to add a bit of complexity to the code. Maybe we need to detect the case automatically and make the logic conditional?

from rio-hist.

Related Issues (16)

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.