Global Mapper v25.0

Finding null values in raster file

Peter_GURS
Peter_GURS Global Mapper User

I have tiff raster files ( a lot of them...), they are in three bands (RGB). I need to find if there are 0 values in either of these bands. Is there any way to do that in Global Mapper?

Regards,

Peter

Comments

  • bmg_mike
    bmg_mike Global Mapper Guru Moderator, Trusted User

    Hi Peter,

    If you have a Global Mapper Pro license, the easiest way might be a short Python script to loop through the pixels in the layer and call GM_GetPixelColor to query the color of each pixel and see if any band has a value of 0.

    Thanks,

    Mike

    Global Mapper Guru