Problem opening ascii grid-file

1017
4
06-06-2012 12:36 AM
TomasTomsky
Emerging Contributor
I have a problem When I´m trying to open ascii grid file. When I´m trying to open file, I create pyramids, as Arcmap asks. Then, when it shows as a black box, i use "conversion tools ->ASCII to raster". Then i can get something out. My problem is, how can I set right coordinates in this map?  I´m trying to make a visibilityanalysis from viewshed in arcmap. So i need this ascii grid -file, because it contains hightmodels that I need. So I need to add in this file few shapefiles, but all i get is that this new map doesn´t show in same area as other shapefiles. I can see it only if I press "zoom to layer".
0 Kudos
4 Replies
TomasTomsky
Emerging Contributor
I have a problem When I´m trying to open ascii grid file. When I´m trying to open file, I create pyramids, as Arcmap asks. Then, when it shows as a black box, i use "conversion tools ->ASCII to raster". Then i can get something out. My problem is, how can I set right coordinates in this map?  I´m trying to make a visibilityanalysis from viewshed in arcmap. So i need this ascii grid -file, because it contains hightmodels that I need. So I need to add in this file few shapefiles, but all i get is that this new map doesn´t show in same area as other shapefiles. I can see it only if I press "zoom to layer".


Problem solved. I had to locate right coordinate system, that was the problem.
0 Kudos
JeffreySwain
Esri Regular Contributor
Do not forget that you will most likely have to generate statistics to change it from a 'black box' to looking like data is there.  The reason for this is that usually ascii files come in with the entire range of possible values.  When you apply the standard deviation stretch then the raster will display as expected. Also don't forget the Ascii to Raster tool.
0 Kudos
TomasTomsky
Emerging Contributor
Do not forget that you will most likely have to generate statistics to change it from a 'black box' to looking like data is there.  The reason for this is that usually ascii files come in with the entire range of possible values.  When you apply the standard deviation stretch then the raster will display as expected. Also don't forget the Ascii to Raster tool.


I did that "standard deviation stretch" and raster displayed as expected. Is it necessary to do "Ascii to Raster", if raster is shown as right?What is the difference?
0 Kudos
JeffreySwain
Esri Regular Contributor
The ascii file will generally not have statistics created for them, so the default behavior of a standard deviation stretch will not occur so you will have the black box.  However, if you use the Ascii to Raster the statistics will be created as the new raster is created, unless you disable it manually.  So when this new file is added to ArcMap, it will display as expected.  So you do not have to use the Ascii to Raster, but if you want it to display you will have to generate statistics.
0 Kudos