Coder Social home page Coder Social logo

Comments (5)

dtarb avatar dtarb commented on August 19, 2024

This is true and is an issue. A short term fix would be to fiddle in the tiffio library, but I am loath to do that as tiffio has significant limitations and is at a dead end. A longer term fix that we are working on is to replace the use of tiffio library with the GDAL library. Then hopefully this and other I/O issues will be resolved. I am hoping that we can get to this in the next few months. Until then the workaround of computing statistics afterwards will have to suffice, unless there is someone who can get to the implementation of GDAL as an IO library before us.

from taudem.

mwtoews avatar mwtoews commented on August 19, 2024

Great to hear plans to use GDAL; GDALRasterBand::ComputeStatistics is the function to do this.

from taudem.

dtarb avatar dtarb commented on August 19, 2024

@nazmussazib please check if the GDAL implementation resolves this. Please evaluate whether GDALRasterBand::ComputeStatistics should be performed on each raster output by TauDEM and implement if necessary. The current strategy is

  1. Python script is called by ArcGIS toolbox tools.
  2. Python script calls TauDEM C++ command line function.
  3. Python script runs compute statistics on result.

The limitation of this is that statistics are only evaluated automatically in the ArcGIS implementation.

Including ComputeStatistics in the C++ command line functions would make statistics available to all deployments, not only ArcGIS, however there may be a computational hit, and the parallel large grid performance is unknown and needs to be evaluated.

from taudem.

dtarb avatar dtarb commented on August 19, 2024

Closing. GDAL implementation will have resolved the incorrect statistics from tiffio. Our C++ code does not compute statistics. It is unclear whether GDAL does this internally, but even if not I am loathe to fiddle without a pressing concern. There is always the option to run a separate GDAL function to compute statistics, and one could argue this is better anyway as not all codes need to be burdened by statistics evaluation.

from taudem.

mwtoews avatar mwtoews commented on August 19, 2024

GDAL does not automatically calculate statistics, and I think it's best to leave that to the users to figure out.

from taudem.

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.