Finding null values in raster file
Peter_GURS
Global Mapper User
in Raster Data
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
-
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
Categories
- 12.8K All Categories
- 5.7K Features Discussion
- 345 Downloading Imagery
- 1.3K Elevation Data
- 385 Georeferencing Imagery Discussion
- 638 GM Script Language
- 54 User Scripts
- 115 GPS Features
- 417 Projection Questions
- 827 Raster Data
- 1.3K Vector Data
- 6.6K Support
- 178 Announcement and News
- 914 Bug Report
- 558 SDK
- 1.2K Suggestion Box
- 3.7K Technical Support
- 569 Other Discussion
- 131 GIS Data Sources
- 27 Global Mapper Showcase
- 238 How I use Global Mapper
- 107 Global Mapper Forum Website