Select to view content in your preferred language

ArcGIS Pro 3.4.2: Reclassifying a raster into two classes results in three,

245
7
3 weeks ago
Labels (1)
JamalNUMAN
Legendary Contributor

ArcGIS Pro 3.4.2: Reclassifying a raster into two classes results in three,

In the screenshots below, I attempted to classify a raster into two classes using the “Reclassify” tool, but the output ends up with three classes.

What could be causing this issue?

The data raster is attached.

Clip_569.jpgClip_570.jpgClip_571.jpg

----------------------------------------
Jamal Numan
Geomolg Geoportal for Spatial Information
Ramallah, West Bank, Palestine
0 Kudos
7 Replies
JonM32
by
Frequent Contributor

@JamalNUMAN The value of 0 is for the No Data cell in the raster.

I'd try running the tool again with the check box marked for 'change missing values to nodata' and see what happens.

Otherwise, you could assign a value for the no data cell, to either 1 or 2 value you're working with or something else.

Jon

Jon
JamalNUMAN
Legendary Contributor

I set the 'New' value for NODATA to 7. However, the Reclassify tool produces 4 classes, even though the number of classes is set to 3, as shown in the screenshots below.

What could be the reason behind the class with the value '0'?

 

Clip_573.jpgClip_574.jpg

----------------------------------------
Jamal Numan
Geomolg Geoportal for Spatial Information
Ramallah, West Bank, Palestine
0 Kudos
JonM32
by
Frequent Contributor

I'm honestly not sure.

Maybe check the statistics of the dataset you're reclassifying to see if the values being changed are within it. 

Or try to reclassifying using different ranges of values and see what happens?

Jon
JamalNUMAN
Legendary Contributor

Does it indicate anything that the cell taking the value 0 originally had a value of -0.149068, which is the minimum value in the original raster? Why is a separate class automatically created for this value?

Clip_2126.jpg

----------------------------------------
Jamal Numan
Geomolg Geoportal for Spatial Information
Ramallah, West Bank, Palestine
0 Kudos
JonM32
by
Frequent Contributor

If I had to guess, it's a rounding thing that occurs when the tool is run. You could always try to reclass a value below the -0.149068 and see what happens. For example, reclass anything from -1 to 0.744594 to 1

Jon
JamalNUMAN
Legendary Contributor

I changed -0.149068 to -0.15 in the classification, and the classes were then created as expected.
This seems like strange behavior in Pro—could it be a bug? Why isn’t -0.149068 recognized as a value in the first class?

 

Clip_2127.jpgClip_2128.jpg

----------------------------------------
Jamal Numan
Geomolg Geoportal for Spatial Information
Ramallah, West Bank, Palestine
JonM32
by
Frequent Contributor

Not sure why - that's likely how they wrote the code to assess values.

Glad it worked for you!

Jon

Jon
0 Kudos