Giter Site home page Giter Site logo

Comments (3)

orianif avatar orianif commented on August 25, 2024

from eodal.

lukasValentin avatar lukasValentin commented on August 25, 2024

Hi @orianif

thanks for the suggestions. While I think we can discuss about fill values, I have two comments:

First: The mask method actually should not alter data values. It uses np.ma.MaskedArray to mask out pixels by setting their entry in the mask part of the MaskedArray to False. Operations in EOdal always check for the is_masked_array attribute to handle these arrays correctly. So, it should not happen that data values are set to zero (which is the no-data value of Sentinel-2 defined by ESA by the way). In case it happens, could you please post a code snippet for reproducing the issue?

Second, I think a major issue with using custom fill values is the data type. 'nan' will produce an error when working with integer values, which are widely used for remote sensing data products (e.g., 16bit integers for Sentinel-2). So, the question would be how to handle such "wrong" fill values?

Best,
Lukas

from eodal.

lukasValentin avatar lukasValentin commented on August 25, 2024

Hi @orianif, is this issue still applicable? If so, can you please post a minimum reproducible example so that I can see what's going on in your case?

from eodal.

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.