I have a program to plot 10 maps like the below:
for i in 1:10 coast... grdimage... ... end
My goal is to save them all as a GIF file. So based on the documentation, I would need to wrap them up into a function (
f1, in this example), and do something like the below? Then I would be able to find my created movie called
abc.gif, with a folder named “abc” storing all of the 10 PNG images?
movie(f1, canvas="15x15x100", name=:abc, frames=360, gif=true, label=:f, progress=true, Vd=1)
Unfortunately, this did not work for me, and I get a lot of errors:
movie main_script.sh -C15x15x100 -Nglobe -Lf -A -P -T360 movie [WARNING]: Main script appears to have a sub-shell call $(...) without the leading $: gmt colorbar -Bpx+l"Variable (@%Times-Italic%f@%Times-Roman%CO@-2@-, @%Times-Roman%@~m@~atm)" --FONT_ANNOT_PRIMARY=10p,Times-Roman,black --FONT_LABEL=14p,Times-Roman,black -DJBC+w12.5/0.4+o-0.2/0.6 -Cmakecpt -Cjet -T0/1500/100 -H
Interesting that I do not get the above error related to my colorbar at all, while plotting each of those maps previously, without trying to create a GIF file.
movie [ERROR]: GraphicsMagick is not installed or not in your executable path - cannot build animated GIF.
Sounds like I would need to follow this link to install GrahicsMagick?