I am using 'OpenLandMap/SOL/SOL_TEXTURE-CLASS_USDA-TT_M/v02'

band 'b0'

when I run my analysis, why I am getting null pixels.


Object (5 properties)

4: 67274

6: 963

7: 280852

9: 144241

null: 59043

My code:

var soil_class = ee.Image("OpenLandMap/SOL/SOL_TEXTURE-CLASS_USDA-TT_M/v02")

var pixelCountStats = soil_class.reduceRegion({
    reducer: ee.Reducer.frequencyHistogram().unweighted(),
    geometry: roi,
    scale: 250,
    maxPixels: 1e10

What do the null pixels represent and how to solve the issue?

1 Answer 1


Generally, null pixels indicate NoData or missing data. If you inspect from the Google Earth Engine editor you can see the water bodies show null pixels or masked value whereas others show a certain value. Hence, the null values can be related to the waterbodies.

enter image description here

From the above screenshot, an example is shown for the inspector tool. The cross mark is the place where the inspector tool was kept and it shows a masked value. The basemap shows a river. Additionally, there are some lands not covered by the data. They have null pixels as well.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.