#!/bin/bash window=2025-04-26T20:00:00/2025-04-26T21:30:00 #--- Test #------------------------------- Common parameters ---------------------------------------- cat > inc.sh << EOF window=$window map_offset="-X0.5 -Y0.5" frame=0/12/0/9 proj=x1 EOF #----------------------------- Common background slide ------------------------------ cat << 'EOF' > pre.sh gmt begin printf "pre: -R${frame} -J$proj\n" gmt basemap -R${frame} -J$proj -Ba1 $map_offset gmt plot polygons1_time.txt -Wfaint,red gmt plot polygons2_time.txt -Wfaint,red gmt end EOF #cat pre.sh #--------------------------- Animated slides ---------------------------------------- # -Es+r2+d6 r:raise phase of 2u, d:decay phase of 6u u=time=unit # -Ms5+c0.5 s:magnify symbol 5 times then reduce it to 0.5 # -Mi1+c-0.6 i:reduce intensity from 1 [default] to -0.6 # -Mt+c0 t:change transparency to 0 cat << 'EOF' > main.sh gmt begin printf "\rmain: -T$MOVIE_COL0 " gmt basemap -R$frame -J$proj -B+n $map_offset gmt events -As polygons1_time.txt -Lt -Es+r2+f2 -W1,blue -G200 -T$MOVIE_COL0 --TIME_UNIT=m gmt events -As polygons2_time.txt -L5m -Es+r1+f5 -Ms3+c1.1 -Mi1+c0 -Mt+c0 -W1,blue -G150 -T$MOVIE_COL0 --TIME_UNIT=m gmt end EOF #------------------------ Time/animation progression -------------------------------- echo "------- Start animation ---------" progress=-Pa+jTL+w.6+o5.5/0.125c+Gwhite+gblue gmt movie main.sh -Iinc.sh -Sbpre.sh -C13.5x10.5x80 -D4 -Zs -T$window/1m -NAnim_cont_simple -Fmp4 -Ml,pdf+v \ $progress -Lc0+o0.5/0.2 --FONT_TAG=18p,Helvetica,red \ --FORMAT_CLOCK_MAP=hh:mm:ss --FORMAT_DATE_MAP="o dd"