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
|