write.cl2grass {pgirmess} | R Documentation |
Convert the output of contourLines into a ascii GRASS vector file (lines).
write.cl2grass(mescont, filename)
mescont |
A list obtained from a call to contourLines. |
filename |
The name of the file to be written (a character string). |
Writes two files: a suffix ".txt" is added to filename, the ascii GRASS vector file (to be imported from GRASS); a suffix "lev.txt" is added to filename, a text file with the level of each contour.
Files are written in the directory specified in file name or in the current working directory:
filename.txt |
the ascii GRASS vector file. |
filenamelev.txt |
a text file with the level of each contour. |
Patrick Giraudoux <pgiraudo@univ-fcomte.fr>
x<-1:nrow(volcano) y<-1:ncol(volcano) contour(x, y, volcano) mycontours<-contourLines(x, y, volcano) write.cl2grass(mycontours, "volcanocont") # check the new files "volacnocont.txt" and "volacnocontlev.txt"in the working directory