Delete 0 value on Raster
Started by
razornole
, Nov 27 2012 08:06 PM
3 replies to this topic
#1
Posted 27 November 2012 - 08:06 PM
Does anyone know of an easy way to delete the zero value for a raster in ArcMap 10? I've created a raster of 1s and 0s and multiplied it by my NED. Now I want to get rid of all my zero values or reclass them to NoData.
I could always reclass, but I would have to do that for all 255 values. In the end I will work on 8 different rasters so I don't want to manually reclass 255x8. Furthermore, every time I try to reclass they say that I must use an integer and not floating point.
Thanks,
kru
I could always reclass, but I would have to do that for all 255 values. In the end I will work on 8 different rasters so I don't want to manually reclass 255x8. Furthermore, every time I try to reclass they say that I must use an integer and not floating point.
Thanks,
kru
"Ah, to see the world with the eyes of the gods is geography--to know cities and tribes, mountains and rivers, earth and sea, this is our gift."
Strabo 22AD
Strabo 22AD
#2
Posted 27 November 2012 - 10:31 PM
Does anyone know of an easy way to delete the zero value for a raster in ArcMap 10? I've created a raster of 1s and 0s and multiplied it by my NED. Now I want to get rid of all my zero values or reclass them to NoData.
I could always reclass, but I would have to do that for all 255 values. In the end I will work on 8 different rasters so I don't want to manually reclass 255x8. Furthermore, every time I try to reclass they say that I must use an integer and not floating point.
Thanks,
kru
You might try the Extract by Attribute with the following clause: OutRas = Select(InRas1, "Value >= 1")
http://help.arcgis.c...00029000000.htm
You may need to build an attribute table for the raster first. I don't think reclassifying would be that difficult though. I think you only need to adjust the value for your 0 class. Raster Calculator may also work using a similar expression as the Extract tool.
#3
Posted 28 November 2012 - 02:22 AM
You can also use Set Null: http://resources.arc...z0000000m000000
#4
Posted 28 November 2012 - 12:06 PM
I've tried extracting by attribute and ArcMap just keeps sending me to jail regardless of the expression that I use (i've tried many variations. See attachment, I just get bars of 0 value and NoData.
Set Null doesn't seem to work either as it automatically returns a 0 value and NoData as false. The only value that I want true is 0.
Thanks for the help, I know how to fix this in Photoshop, was just trying to learn ArcMap better.
kru
Set Null doesn't seem to work either as it automatically returns a 0 value and NoData as false. The only value that I want true is 0.
Thanks for the help, I know how to fix this in Photoshop, was just trying to learn ArcMap better.
kru
Attached Files
"Ah, to see the world with the eyes of the gods is geography--to know cities and tribes, mountains and rivers, earth and sea, this is our gift."
Strabo 22AD
Strabo 22AD
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users


Sign In
Create Account

United States
Back to top
Sweden









