Jump to content

 
Photo

Delete 0 value on Raster

- - - - -

  • Please log in to reply
3 replies to this topic

#1
razornole

razornole

    Legendary Contributor

  • Validated Member
  • PipPipPipPipPip
  • 452 posts
  • Gender:Male
  • Location:Ozark Plateau, Arkansas
  • Interests:Photography, Cartography, Down-river canoeing, Backpacking, Cross country biking, Geomorphology, Ornithology, Ecology, Quaternary, and last but first; drinking beer on the beach.
  • United States

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
"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

#2
David Medeiros

David Medeiros

    Hall of Fame

  • Validated Member
  • PipPipPipPipPipPipPip
  • 1,089 posts
  • Gender:Male
  • Location:Redwood City CA
  • Interests:Cartography, wood working, wooden boats, fishing, camping, overland travel, exploring.
  • United States

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.

GIS Reference and Instruction Specialist, Stanford Geospatial Center.

 

www.mapbliss.com

 


#3
frax

frax

    Hall of Fame

  • Associate Admin
  • PipPipPipPipPipPipPip
  • 2,320 posts
  • Gender:Male
  • Location:Stockholm, Sweden
  • Interests:music, hiking, friends, nature, photography, traveling. and maps!
  • Sweden

You can also use Set Null: http://resources.arc...z0000000m000000
Hugo Ahlenius
Nordpil - custom maps and GIS
http://nordpil.com/
Twitter

#4
razornole

razornole

    Legendary Contributor

  • Validated Member
  • PipPipPipPipPip
  • 452 posts
  • Gender:Male
  • Location:Ozark Plateau, Arkansas
  • Interests:Photography, Cartography, Down-river canoeing, Backpacking, Cross country biking, Geomorphology, Ornithology, Ecology, Quaternary, and last but first; drinking beer on the beach.
  • United States

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

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




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

-->