#! /bin/csh # # "movie.csh" uses ImageMagick "convert" function # goto step-2 # step-1: # # strips the "A" for Aqua and "T" for Terra from file names and places it at the end # [via dynamically generated rename.csh script] # ll *.pdf | nawk 'BEGIN{print "#! /bin/csh"};{print "mv",substr($9,1,18), substr($9,2,13)substr($9,1,1)".pdf"}' >rename.csh chmod 755 rename.csh ./rename.csh # step-2: # # converts .pdf files sorted by date to .png files # [via dynamically generated pdf2png.csh] # ll *.pdf | nawk 'BEGIN{print "#! /bin/csh"};{print "convert",$9,substr($9,1,14)".png"}' >pdf2png.csh chmod 755 pdf2png.csh ./pdf2png.csh # step-3: # # makes the movie which is Output.gif # convert -set delay 3 -colorspace GRAY -colors 16 -dispose 1 -loop 0 -scale 50% *.png Output.gif