X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 19 Sep 2013 08:07 AM by  anon
issue with opening ASCII files (v4.8)
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
19 Sep 2013 08:07 AM
    Hi All, I am having an interesting issue when loading ascii files via the Open External File ->Generic Formats -> ASCII The result from loading a single band floating point file will have an incorrect delimeter, meaning the pixel values are not correct. My input file is basically a re-processed ascii file that was exported from envi (processed by loading into ArcGIS and then exported as ascii) So my originally exported file has the format as follows: ncols 1354 nrows 2030 xllcorner 0 yllcorner 0 cellsize 1 3.5918 3.2542 2.9571 3.3517 3.3842 3.2298 2.9449 3.2377 3.3474 etc and after processing, the input file becomes: ncols 1354 nrows 2030 xllcorner 0 yllcorner 0 cellsize 1 NODATA_value -9999 3.5918 3.2542 2.9571 3.3517 3.3842 3.2298 2.9449 3.2377 3.3474 So the difference in the two files is that the number of spaces as the delimeter has been reduced to 1, but I wouldn't have thought that this would be a problem. The issue that I am having though, is that when loading this new file, the decimal point is also being considered a delimeter, so an example of my image as seen in envi is: (1,1) 3 (2,1) 5918 (3,1) 3 (4,1) 2542 etc The data type that I have used is floating point, so I cannot see how the resulting image will include the decimal as a delimeter. If any one can give me an explanation as to why this is happening (probably my own fault that I cannot see) or give me a workaround for this. Much appreciated in advance. SM

    Deleted User



    New Member


    Posts:
    New Member


    --
    20 Sep 2013 12:40 PM
    It could be the way that ArcGIS is creating the ASCII format. What processing is Arc doing that ENVI isn't able to do? What happens if you out to ASCII in ENVI? Comparing the 2 results may also provide some ideas of what is happening with the format.
    You are not authorized to post a reply.