#!/bin/bash

deltav=1

for((v=0; v<360; v+=deltav))
do
printf -v v0 "%03d" $v
./flx2plot <auplot1out/auplot1_$v0.flx >auplot1out/auplot1_$v0.ps
convert -alpha off -density 235 -depth 8 -crop 1920x1080+0+1668 auplot1out/auplot1_$v0.ps auplot1out/auplot1_$v0.tiff
done
rm -f output.mp4
ffmpeg -framerate 30 -pattern_type glob -i 'auplot1out/*.tiff' -c:v libx264 -r 30 output.mp4

