Thanks Mike and Micheal for suggestions. It now worked!
Many thanks
Mintewab
Från: Michael Sumner [mdsum...@gmail.com]
Skickat: den 11 maj 2012 01:20
Till: Mintewab Bezabih
Kopia: r-help@r-project.org
Ämne: Re: [R] converting raster image
You should
You should provide reproducible code and at the very least declare the
packages you are using. I guess this from the package raster? See
example in ?raster::interpolate:
## Thin plate spline interpolation with x and y only
library(fields)
r <- raster(system.file("external/test.grd", pa
write.csv() perhaps? I'm not sure what the csv of a raster image is though...
What does p look like? str(p) will be important -- if the raster codes
(RGB values) are in lists or 3D arrays or something more complex
(i.e., if no grayscale) you might need to put them in multiple files.
Hope this hel
Dear R users,
I was wondering how I can convert a raster image (that made R through
interpolation) into an ascii or csv format?
this is the last line of my command
p <- interpolate(r, tpsfit)
So p is my raster file which I want to convert into ascii or csv
Many thanks
Regards
Mintewab
4 matches
Mail list logo