Howdy,
me again…
i’ve got movie working and i can make animations.
the globe example from the documents works fine.
i’ve got the overlay thing working and am making movies using my own data from layered netCDF files.
what i cannot figure out is the relationship between the frame size and the number of pixels and how the image is positioned within the movie frame etc…
in the example for the globe you use -C6ix6ix100 for a 600x600 pixel image, and it fills the space perfectly
in my example, i am trying a 15cx16.3cx100 image and it shunts my image up and to the right such that i can only see the lower left corner of the plot as below:
for this i am using -JM180/0/${MOVIE_WIDTH} as the projection.
I also tried using -JM180/0/15c as the projection then I used -C2200px2409px1 and the resulting image looks like:
i.e. really small and in the lower left corner. but the animated gif works fine, i.e. the image moves as expected.
the movie script i am using looks like:
gmt movie plot_anim_modern.sh -Nanim -T10 -Agif+l -C15cx16.43cx100 -Vl #2200px2409px1
and the plotting script looks like:
export GMT_SESSION_NAME=$$
datafile=../data_ha.nc
region=-R172/186/-40/-25
echo $region
project=-JM180/0/${MOVIE_WIDTH} #15c
border=-Baf
gmt begin
gmt set MAP_ORIGIN_X 0p
gmt set MAP_ORIGIN_Y 0p
gmt set FORMAT_GEO_MAP +D.x
gmt makecpt -Cjet -D -M -T-1000/1000/1 -H > tmp.cpt
gmt grdimage $datafile?ha[${MOVIE_FRAME}] $region $project $border -Ctmp.cpt -Q
gmt colorbar -Dx3c/18c+w4c/0.5c+jTC+m -Bxaf+l"Tsunami Amplitude" -By+lcm -Ctmp.cpt
gmt coast $region $project $border -W -Df -Ggrey -N1/1p,white
gmt end
also putting one of the somewhat working animations in as an example:

For this one i used -C1100px1204px1 and the image is still not ‘full frame’.
have tried all sorts of other combinations, but i still cannot see how the size of the image relates to the positioning and size within the movie frame.
i obtained my pixel dimensions by plotting one frame with the -JM180/0/15c and noting that the resulting image was 2200x2409 pixels, so this gave me the aspect ratio.
thanks!

