MapInfo Pro

 View Only
  • 1.  Raster Calculator

    Posted 06-03-2024 23:50

    Hello, in the raster calculator, is there a way to write an expression that looks at values in all adjoining cells and only keeps the cell if one of the adjoining cells returned a value. Or in other words, if all adjoining cells had a null value, then that cell assessed would not be kept in the output raster.

    Thank you for any assistance.



    ------------------------------
    Lisa Karklis
    Knowledge Community Shared Account
    Burlington MA
    ------------------------------


  • 2.  RE: Raster Calculator

    Employee
    Posted 06-07-2024 01:32

    Hi Lisa

    Did you check the Filter options?

    The Majority Focal Filter almost does what you are after.



    ------------------------------
    Peter Horsbøll Møller
    Principal Presales Consultant | Distinguished Engineer
    Precisely | Trust in Data
    ------------------------------



  • 3.  RE: Raster Calculator

    Posted 06-17-2024 21:16

    The Raster Calculator only operates on a single cell at a time and is not able to be used to perform this operation.

    The Focal Filters operate on a window that you can customise, but are not flexible enough to be used for this purpose.

    I have implemented a "Declutter" processing operation in ProRaster Scientific which Lisa was able to use to perform this operation.

    The Declutter operation uses a user-defined window of NxN cells and, at each valid cell, will invalidate the cell if it cannot find a user-defined minimum number of valid cells in the window centred on the cell. It can perform multiple passes, as invalidating cells may lead to others being invalidated in a subsequent pass.

    You can buy ProRaster Scientific on the Microsoft Store.



    ------------------------------
    Sam Roberts
    Founder, Roberts Geospatial Engineering
    Australia
    ------------------------------