Hi Jan,

Thank you very much for the reply. Looks like the header format was not
proper. Format in the sense, no of spaces between ncol, nrows and the
actual values. I am not if that was the problem, but now raster function is
reading the file.

Thanks again,

Narayani



On Fri, Nov 18, 2011 at 10:15 AM, Jan Verbesselt <janverbesselt@gmail.com>wrote:

> Hi Narayani,
>
> Please provide a reproducible example and sessionInfo(). It is very
> difficult to help you without any more details.
> I think the problem is just that you need to check if the path to your
> ASCII file is correctly define in your R script.
>
> > sessionInfo()
>
>
> Regards,
> Jan
>
>
> On 18/11/2011, at 4:33 PM, Narayani Barve wrote:
>
> > Hi All,
> >
> > I am using raster package and was trying to read the ASCII file and I am
> > getting error as "Error in .rasterFromASCIIFile(x) : object 'xn' not
> > found". I am unable to understand why this error is coming. I try to open
> > the same ASCII file  in Arcgis and there is no problem.
> >
> > Can anyone guide me what could be the problem ?
> >
> > Thanks in advance,
> > Narayani Barve
> >
> > --
> > Narayani Barve
> > PhD Candidate,
> > Ecology and Evolutionary Biology,
> > University of Kansas, KS 66044
> >
> >       [[alternative HTML version deleted]]
> >
> > _______________________________________________
> > R-sig-Geo mailing list
> > R-sig-Geo@r-project.org
> > https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>
>
>
>


-- 
Narayani Barve
PhD Candidate,
Ecology and Evolutionary Biology,
University of Kansas, KS 66044

	[[alternative HTML version deleted]]

