Thanks Kevin.

There are other ports you could use. Perhaps graphicsMagick ( as I recall)
The fork from ImageMagick.
( I think that was the name)

The saveMovie() command is just a wrapper for a sys call so I considered
going that route,
but given the grief I had with ImageMagick, I decided not to try. You appear
to have had more success,
so you might try graphicsmagick.



On Mon, Nov 15, 2010 at 2:26 PM, Kevin Ummel <kevinum...@gmail.com> wrote:

> Thanks, Jacob.
>
> For the community: I've successfully installed ImageMagick on Mac OS 10.6.4
> (i.e. the sample commands to verify functionality check OK:
> http://www.imagemagick.org/script/binary-releases.php?ImageMagick=cmdb7qc5snnquootuef90ki645#macosx
> ).
>
> I receive an error running Jacob's example code:
>
> Error in cmd.fun(sprintf("%s --version", convert), intern = TRUE) :
>   error in running command
> sh: convert: command not found
>
> I don't believe this is an 'animate' issue, but is a thorny path problem
> that apparently plagues ImageMagick installs via MacPorts. I tried some
> things based on the message boards at ImageMagick without success. This
> 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 ( 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 <jacobvanet...@yahoo.com
> > wrote:
>
>> A function is not really necessary. It´s actually quite simple.
>>
>> library(raster)
>> library(animation)
>> setwd("c:/empty")
>>
>> logo <- raster(system.file("external/rlogo.grd", package="raster"),
>> values=TRUE)
>>
>> saveMovie(
>> for(i in 1:250)
>> {
>>     logo1 <- logo
>>     logo1[logo1<i] <- 0
>>     #here you could also extract a RasterLayer from a RasterStack
>>     plot(logo1, main=i)
>> },
>> loop=1,
>> interval= 0.1,
>> outdir = getwd(),
>> moviename="logo")
>>
>> Cheers,
>>
>> Jacob.
>>
>> --- On Sat, 13/11/10, Kevin Ummel <kevinum...@gmail.com> wrote:
>>
>> From: Kevin Ummel <kevinum...@gmail.com>
>> Subject: [R-sig-Geo] Anyone attempted to "animate" multi-layered rasters?
>> To: R-sig-Geo@stat.math.ethz.ch
>> Date: Saturday, 13 November, 2010, 12:58
>>
>> Hello,
>>
>> I came across the 'animate' package, and I'm wondering if anyone has
>> successfully adapted it to create animations of multi-layered spatial data.
>>
>> This seems like a logical advance of R's spatial data visualization,
>> especially given the prominence of NetCDF and HDR file types, but I don't
>> want to replicate if someone else already has a function in working order...
>>
>> Cheers,
>> Kevin
>>
>> Kevin Ummel
>> Senior Visiting Associate, Center for Global Development
>> MESPOM Candidate, University of Manchester
>>
>> _______________________________________________
>> R-sig-Geo mailing list
>> R-sig-Geo@stat.math.ethz.ch
>> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>>
>>
>>
>>
>>         [[alternative HTML version deleted]]
>>
>>
>> _______________________________________________
>> R-sig-Geo mailing list
>> R-sig-Geo@stat.math.ethz.ch
>> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>>
>>
>
>

        [[alternative HTML version deleted]]

_______________________________________________
R-sig-Geo mailing list
R-sig-Geo@stat.math.ethz.ch
https://stat.ethz.ch/mailman/listinfo/r-sig-geo

Reply via email to