Proceed to GeoCommunity Home Page


SpatialNewsGIS Data DepotGeoImaging ChannelGIS and MappingSoftwareGIS JobsGeoBids-RFPsGeoCommunity MarketplaceGIS Event Listings
HomeLoginAccountsAboutContactAdvertiseSearchFAQsForumsCartFree Newsletter

Sponsored by:


TOPICS
Today's News

Submit News

Feature Articles

Product Reviews

Education

News Affiliates

Discussions

Newsletters

Email Lists

Polls

Editor's Corner


SpatialNews Daily Newswire!
Subscribe now!

Latest Industry Headlines
SiteVision GIS Partnership With City of Roanoke VA Goes Live
Garmin® Introduces Delta™ Upland Remote Trainer with Beeper
Caliper Offers Updated Chile Data for Use with Maptitude 2013
Southampton’s Go! Rhinos Trail Mapped by Ordnance Survey
New Approach to Measuring Coral Growth Offers Valuable Tool for Reef Managers
Topo ly - Tailor-Fit for Companies' Online Mapping Needs

Latest GeoBids-RFPs
Nautical Charts*Poland
Software & Telemetry GPS
Spatial Data Management-DC
Geospatial and Mapping-DC
Next-Gen 911-MO

Recent Job Opportunities
Planner/GIS Specialist
Team Leader- Grape Supply Systems
Geospatial Developer

Recent Discussions
Raster images
cartographic symbology
Telephone Exchange areas in Europe
Problem showcasing Vector map on Windows CE device
Base map

GeoCommunity Mailing List
 
Mailing List Archives

Subject: [gislist] Summary of Raster Woes responses
Date:  12/15/2003 12:20:01 PM
From:  Michele Mattix



Hi Everyone,

I want to summarize the responses I received for my question about how to
remove the black collar from raster images (using ArcGIS 8.3). Thanks to
all who wrote: Robert Lega, Fernando Gil, Jordan Chamberlin, Todd Clausen,
Jim Cueno, Emily Smith, Margaret Gooding, Mike Juvrud, Travis Smith,
Cynthia True, Doug Culbert, and Gwen Wolph.

Most everyone had the same suggestion:

Here is what I do to make the background disappear:
Right click on the raster layer --> properties --> symbology tab -->
select stretched --> check the box: "Display Background Value:" -->
Enter the value of the background (in my case it is 255 because I have
inverted the high/low values...it is probably 0 in your case) --> click
the dropdown box next to the value you entered --> select "No Color" at
the top of the color selector that pops up --> click apply. If you still
see the background...try the other extreme value in your raster layer.


Basically, that is what worked for me. I clicked the symbology tab, saw
that a color ramp was chosen by default, clicked on the very first item
which was a black box with nothing written beside it (null), then clicked
the removed button. It went bye-bye and with my problem.

Additionally, here are some other suggestions from some responders:

* Now, if you've got a lot of images, you might want to go through each
one, group them, and then save the group as a layer file so you won't need
to re-symbolize every time.

* There are 3 items in the ArcMap help:
Contents: ArcMap --> Working with rasters --> removing the background
area of a raster layer. They are all basically saying the same
thing...just depending on what kind of symbology you are using.

* if you want to permanently remove this void data, you can do this in
a variety of ways including, deleting that particular black signature
value,
clipping each scene, or merging the scenes, etc...


* I wrote this AML awhile back to make the black areas NODATA. It gets rid
of black collars around images, and should work for this. You can modify
it for your needs, but the basic commands are in the ArcInfo help docs
(ArcDocs). Here are the basic steps from my AML (and the full thing is
attached):

/* First turn the image into a grid
arc: imagegrid %in_image% %outgrid%
/* Set all of the "black" cells to NODATA
grid: %nulloutgrid% = setnull(%outgrid% eq 0,%outgrid%) /* Keep in
mind that if your image turns into a gridstack,

/* you have to run this command for every band that is in the
stack
/* Repeat the above steps until ALL of your images have been processed
/* Now merge all of the grids. If you have gridstacks, then merge each
band. For example, merge all of the %outgrid%c1 grids. Then all of the
%outgrid%c2, and so on.
grid: %mergedgrid% = merge(%nulloutgrid%)

/* If you were working with gridstacks, now you need to create a stack from
the merged bands
grid: makestack %finalgrid% list %mergedgridband1% %mergedgridband2%
/* only use this "addtostack" if there was more than 2 bands in the image
grid: addtostack %finalgrid% %mergedbandn%

/* Convert the merged grid back to an image
arc: gridimage %finalgrid% # %outimage% TIFF /* or whatever kind of
image you want



Thanks again to all who came to my rescue. You guys ROCK!

Happy Holidays,
Michele Mattix

_______________________________________________
gislist mailing list
gislist@lists.geocomm.com
http://lists.geocomm.com/mailman/listinfo/gislist

_________________________________
This list is brought to you by
The GeoCommunity
http://www.geocomm.com/

Get Access to the latest GIS & Geospatial Industry RFPs and bids
http://www.geobids.com

Sponsored by:

For information
regarding
advertising rates
Click Here!

Copyright© 1995-2012 MindSites Group / Privacy Policy

GeoCommunity™, Wireless Developer Network™, GIS Data Depot®, and Spatial News™
including all logos and other service marks
are registered trademarks and trade communities of
MindSites Group