Re: [R-sig-Geo] gridded time series analysis

2010-11-26 Thread steven mosher
that's cool, I'm also interested in a similar problem but just with one brick ending up with a slope raster as the output. It may be possible with stackApply(). have a look. or maybe robert will chime in On Fri, Nov 26, 2010 at 1:35 PM, Martin wrote: > > this is what I did to perform a regress

Re: [R-sig-Geo] Anyone attempted to "animate" multi-layered rasters?

2010-11-15 Thread steven mosher
into an R package, making an external install unnecessary. > > Jacob. > > > --- On *Mon, 15/11/10, Kevin Ummel * wrote: > > > From: Kevin Ummel > Subject: Re: [R-sig-Geo] Anyone attempted to "animate" multi-layered > rasters? > To: "steven mosher"

Re: [R-sig-Geo] Anyone attempted to "animate" multi-layered rasters?

2010-11-15 Thread steven mosher
isn't the place for ImageMagick troubleshooting, but a heads up for Mac > users trying to implement Jacob's example... > > Thanks, > Kevin > > On Nov 15, 2010, at 9:35 PM, steven mosher wrote: > > Thanks Jacob, > > I was unable to get ImageMagick working ( w

Re: [R-sig-Geo] Anyone attempted to "animate" multi-layered rasters?

2010-11-15 Thread steven mosher
Thanks Jacob, I was unable to get ImageMagick working ( which saveMovie() relies upon.. as I recall ) so I had to live with the html animation. On Mon, Nov 15, 2010 at 12:58 PM, Jacob van Etten wrote: > A function is not really necessary. It´s actually quite simple. > > library(raster) > libr

Re: [R-sig-Geo] Anyone attempted to "animate" multi-layered rasters?

2010-11-13 Thread steven mosher
Yes, I've done it and blogged about it a while ago. I used raster a raster brick and then the animate package. For my own project I made some changes to the animate package functions. ( the functions currently switch directories under the cover of an API ) I don't promote my blog on here cause it

Re: [R-sig-Geo] Why I can't install RGDAL after R 2.12.0 release?

2010-11-12 Thread steven mosher
Thanks Roger, That appears to have cleared part of the problem up. And raster is back in working order. Now I have to recall how I got ncdf working on the MAC. Steve On Fri, Nov 12, 2010 at 2:01 PM, Roger Bivand wrote: > On Fri, 12 Nov 2010, steven mosher wrote: > > well, That d

Re: [R-sig-Geo] Why I can't install RGDAL after R 2.12.0 release?

2010-11-12 Thread steven mosher
ck to 2.11 On Fri, Nov 12, 2010 at 2:01 PM, Roger Bivand wrote: > On Fri, 12 Nov 2010, steven mosher wrote: > > well, That didnt work. >> > > Did you check the configure arguments carefully, or is your mailer that has > catenated: > > .../unix/include-with-proj-lib=

Re: [R-sig-Geo] Why I can't install RGDAL after R 2.12.0 release?

2010-11-12 Thread steven mosher
well, That didnt work. I upgraded to R 2.12 and sure enough GDAL is broken. I downloaded the latest framework from KngChaos and did a standard install. I tried the code provided here and Got the following > install.packages("rgdal", configure.args='--with-gdal-config=/Library/Frameworks/GDAL.

Re: [R-sig-Geo] plotting time series for particular months!

2010-11-04 Thread steven mosher
t; Graduate Student > #20, Department of Geography > Michigan State University > East Lansing, MI 48824 > Quoting steven mosher : > > > I would look at using the package 'zoo' your time series data would be a > > zoo object > > and then your date data would be coe

Re: [R-sig-Geo] plotting time series for particular months!

2010-11-04 Thread steven mosher
I would look at using the package 'zoo' your time series data would be a zoo object and then your date data would be coerced as well, zoo, is very slick. On Thu, Nov 4, 2010 at 12:18 PM, wrote: > > > Hi all, > > I have a matrix as given below... > > year month day prec > 1 198010 1 13

Re: [R-sig-Geo] doubt in climate variability analysis in R!

2010-10-29 Thread steven mosher
I Can take a look at it for you, if you want to work with gridded climate data I would suggest raster. You can visit my blog and I'll do my best to help you. On Fri, Oct 29, 2010 at 8:30 AM, wrote: > > > Hello all, > > I am trying to use "clim.pact" package for my work, but since this is th

Re: [R-sig-Geo] Why I can't install RGDAL after R 2.12.0 release?

2010-10-28 Thread steven mosher
Thanks for the heads up I was going to switch to 2.12. Guess I will wait for resolution to your issue since I use Kyngchaos 2010/10/27 Ralf Schäfer > Hello, > > don`t know if this issue is already fixed given that Roger posted an > answer. > However, I just installed from source with the comma

Re: [R-sig-Geo] points, raster

2010-10-08 Thread steven mosher
see pointsToRaster() On Fri, Oct 8, 2010 at 2:12 AM, Arnald Marcer wrote: > Hi, > > Can anybody help me a little on how to transfer values from a data frame > (coord.x, coord.y, value) to > a raster file. I have a raster initialized to 0 values and I want to > substitute zeros for the specifi

Re: [R-sig-Geo] Syntax for reading & Ploting Satellite Image using raster library

2010-10-05 Thread steven mosher
What is the format of the data? if the file is in a standard format, please see the "raster" or "brick" command they will allow you to read direct from the file, with no trouble. plot() just works as plot() is defined as a method for a raster layer and for a brick if you happen to have a multi ba

Re: [R-sig-Geo] Raster package writeRaster format="NCF"

2010-10-05 Thread steven mosher
Elizabeth, Are you using a raster stack or a raster brick? i've written out 'bricks" successfully. Robert (maintainer) is Out of the office for a bit if you havent tried it using a brick, give that a go. On Mon, Oct 4, 2010 at 8:20 PM, Elizabeth Crisfield wrote: > I have read a 10 band .nc fi

[R-sig-Geo] Fwd: using the 'mask' function to set NAs in 'raster'

2010-09-23 Thread steven mosher
forgot to copy the list -- Forwarded message -- From: steven mosher Date: Thu, Sep 23, 2010 at 1:14 PM Subject: Re: [R-sig-Geo] using the 'mask' function to set NAs in 'raster' To: Jason MacKenzie To get an idea about how mask works, see the following.

Re: [R-sig-Geo] raster layer to shapefile

2010-09-18 Thread steven mosher
the formats supported by "raster" for writing files are listed in the ?writeRaster() ?writeFormats() raster'Native' raster package format.grdYesasciiESRI Ascii.ascNoSAGASAGA GIS.sdatNoIDRISIIDRISI.rstNoCDFnetCDF (requires ncdf).ncpendingGTiffGeoTiff (requires rgdal).tifYesENVIENVI .hdr Labelled.e

Re: [R-sig-Geo] suggestion to write a function

2010-09-13 Thread steven mosher
I like these suggestions as well http://www1.maths.lth.se/help/R/RCC/ So for your function, combining the x and y coords into a single structure ( they are always paired so have a structure that reflects that ) dataToShape <- function( inputFileName, outputFileName, points, projection, height)

Re: [R-sig-Geo] suggestion to write a function

2010-09-13 Thread steven mosher
I've been struggling with naming conventions as well. having a style guide is important ( I say that now after having written way too much code without one) Here's a start.. I bet there are other resources http://google-styleguide.googlecode.com/svn/trunk/google-r-style.html On Mon, Sep 13, 201

Re: [R-sig-Geo] NetCDF and raster on MAC

2010-08-22 Thread steven mosher
gt; > For all layers: > > b = brick('file.nc') > > You may get a warning about the variable that was selected. You can > avoid that by explicitly setting the variable you want with the > varname=" " argument, e.g., > > b = brick('file.nc', varname=

[R-sig-Geo] NetCDF and raster on MAC

2010-08-22 Thread steven mosher
I'm looking for some examples of how to read a NetCDF file with raster directly. The manual is a bit terse on the matter. The dats in question is a 3D (lon,lat,time) 72*36, 161 "bands" On the MAC I get a request to load RNetCDF, which is not available in Binary. I found a few mails on geting RNetC

Re: [R-sig-Geo] spatial autocorrelation

2010-08-07 Thread steven mosher
What kinda data are you working with? I can probably direct you to some folks who can help, or you can join some of our discussions. On Fri, Aug 6, 2010 at 4:23 AM, nuncio m wrote: > How to start with dealina spatial auto correlation in a gridded climate > data > set? > thanks > nuncio > > --

[R-sig-Geo] creating rasterStack from a matrix

2010-07-09 Thread steven mosher
Assuming I have a matrix of Nrows and Mcols where Column #1 is filled with a valid cell number for a raster. ALL cell numbers will not be present. Subsequent columns (2-M) contain the data that I want to place in a sequence of layers, so that in the end I have a rasterStack of M layers. M can

Re: [R-sig-Geo] rgdal on MAC

2010-05-19 Thread steven mosher
curious. I'm really looking forward to working with the package. Thanks ever so much. Steve On Wed, May 19, 2010 at 1:16 AM, Roger Bivand wrote: > On Wed, 19 May 2010, steven mosher wrote: > > On Cran it indicates that the package is not available on MAC (OSX 10.5.8) >&g

Re: [R-sig-Geo] rgdal on MAC

2010-05-19 Thread steven mosher
6 AM, Roger Bivand wrote: > On Wed, 19 May 2010, steven mosher wrote: > > On Cran it indicates that the package is not available on MAC (OSX 10.5.8) >> Is that the whole story? >> Is it a situation that will change or am I missing something. I've left a >> similar Q o

[R-sig-Geo] rgdal on MAC

2010-05-19 Thread steven mosher
On Cran it indicates that the package is not available on MAC (OSX 10.5.8) Is that the whole story? Is it a situation that will change or am I missing something. I've left a similar Q on the Mac Sig, but havent got any feedback [[alternative HTML version deleted]] ___