On Fri, Oct 21, 2011 at 1:29 PM, Matthias Boer <M.Boer@uws.edu.au> wrote:

> Dear list members
>
> I have a very large number of ascii map layers representing interpolated
> daily weather observations for Australia.
> Each file is an ascii grid with a header consisting of 15 lines (6 lines
> for the usual header of Arcraster ascii grids plus 9 lines of additional
> info). I want to import the maps one by one, to compute monthly and annual
> values, overlay those with veg type maps, etc. I am having trouble with the
> spatial data formats.
>
> I usually use 'read.asciigrid' to import ascii grids in Arcraster format
> but this fails here due to the header format. I can read the actual grid
> data using read.delim and create the GridTopology seperately but then
> struggle to create a SpatialGridDataFrame or other spatial data format. I
> assume there is a simple way to do this, but I haven't managed to work it
> out. Some help from the list would be great.
>

What OS? on most, there are commandline tools to delete lines from your file
- just look around.

Look e.g.
http://stackoverflow.com/questions/418916/delete-certain-lines-in-a-txt-file-via-a-batch-filefor
something similar under Linux

Cheers,

Rainer


>
> Thanks for your time.
>
> Matthias
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo@r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>



-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology,
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :       +33 - (0)9 53 10 27 44
Cell:       +33 - (0)6 85 62 59 98
Fax (F):       +33 - (0)9 58 10 27 44

Fax (D):    +49 - (0)3 21 21 25 22 44

email:      Rainer@krugs.de

Skype:      RMkrug

	[[alternative HTML version deleted]]

