attribute table delete row in raster

3411
3
07-19-2016 06:56 PM
StephenJordan2
New Contributor

Hey Guys

I have a raster of 0 and 1, I want to delete row 0 and I thought I could simply go in to the Atrribute table to delete it but "delete Selected" is greyed out. I gather that its not possible to do it this way so how would I go about it?

Capture.JPG

Im a total noob but Im loving ArcGIS and my site selection project is almost finished

thanks in advance !

0 Kudos
3 Replies
DanPatterson_Retired
MVP Emeritus

close... since you have selected the 1's in the table, right-click on the layer in the table of contents and select data, export data and save it to a new raster  You could also query for the 1's in the raster calculator to get your selection... what ever you want. 

StephenJordan2
New Contributor

Hi Dan thanks very much!

I cant see where in the Export Raster Data window to select only one row (1 or 0) (even if the row in the table is also selected)

I also tried the raster calculator: (raster"==0) (raster"!=1)

but it still grabs both rows (0 and 1), Im sure theres a algebra expression that would do this..

cheers

0 Kudos
DanPatterson_Retired
MVP Emeritus

open the table select the row... then do the export

'raster' == 0    it will do the selection, then export

raster calculator heop Raster Calculator—Help | ArcGIS for Desktop

help on everything      Documentation | ArcGIS for Desktop

0 Kudos