# GMT movie

**URL:** <https://forum.generic-mapping-tools.org/t/gmt-movie/2659>\
**Category:** Q&A\
**Created:** [February 23, 2022, 11:17am UTC](https://forum.generic-mapping-tools.org/t/gmt-movie/2659 "2022-02-23T11:17:23Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![LongNguyen031017](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/longnguyen031017/32/1389_2.png) [@LongNguyen031017](https://forum.generic-mapping-tools.org/u/LongNguyen031017)\
**Post date:** [February 23, 2022, 11:17am UTC](https://forum.generic-mapping-tools.org/t/gmt-movie/2659/1 "2022-02-23T11:17:23Z")

</div>

Hi everyone,  
I’m trying to use a GMT movie to make an animated gif now.

However, it seems to be not allowed to make gif files.

Here is my coding

> gmt begin Subtropical\_High png  
> gmt basemap -R100/180/0/45 -JQ180/9 -Bxa10Wf5W -Bya10Nf5N -BWeSn -X1 -Y2  
> gmt coast -W1 -G200 -Di
> 
> gmt plot %1.monthly -R100/180/0/45 -Sc0.1i -W0.01i,0/0/0 -G153/0/153  
> gmt contour %2.monthly -A5880+f18+d+r1 -W5p,red
> 
> gmt movie Subtropical\_High.bat -Chd -Nanime02 -Tangles.txt -Fgif -H8 -Vi -SbSubtropical\_High.bat  
> gmt end

 ![image](https://canada1.discourse-cdn.com/flex047/uploads/gmt/original/2X/2/23356ce55826d58145db2b205876d96c19258b98.png)

And if replaced “begin Subtropical\_High gif” by “begin Subtropical\_High tif”  
The problem appears like this

 ![image](https://canada1.discourse-cdn.com/flex047/uploads/gmt/original/2X/c/cc364a8f59113faff244120b9a2ede37e1acf331.png)

Please help me to over this problem.

---

<div class="post-metadata">

**Author:** ![biggle1856](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/biggle1856/32/3169_2.png) [@biggle1856](https://forum.generic-mapping-tools.org/u/biggle1856)\
**Post date:** [February 23, 2022, 2:54pm UTC](https://forum.generic-mapping-tools.org/t/gmt-movie/2659/2 "2022-02-23T14:54:06Z")

</div>

The shell script you use to generate the frames of the movie doesn’t need a figure name or output format after “gmt begin” . The frame differences can be set using the MOVIE\_ variables.  
The output name is specified in the call to gmt movie using the -N option and gif output using -Agif (I see you have GraphicsMagick installed so that should work).  
The man page makes this quite clear: have a look at the examples.  
NB The documentation may be a concise description of many options, but it’s worth reading.

---

<div class="post-metadata">

**Author:** ![LongNguyen031017](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/longnguyen031017/32/1389_2.png) [@LongNguyen031017](https://forum.generic-mapping-tools.org/u/LongNguyen031017)\
**Post date:** [February 24, 2022, 5:44am UTC](https://forum.generic-mapping-tools.org/t/gmt-movie/2659/3 "2022-02-24T05:44:57Z")

</div>

Hello,  
Thank you for your response.

- I also modified based on your comments. Now, I’m using GMT 6.3 and as I read in _movie documents_ ([movie — GMT 6.6.0 documentation](https://docs.generic-mapping-tools.org/latest/movie.html)). There is no -A, instead of that we use -F.

- I wanna generate the series of figures in _gif_, thus I use the _call_ function to do that. Is it the right way to do generate figures and make _gif_?. %1 and %2 in _Subtropical High.bat_ is corresponded to STPs\_1977 and WSPH\_1977 in _call_ function.

Here is the call function.

| call Subtropical\_High STPs\_1977 | WSPH\_1977 |
| --- | --- |
| call Subtropical\_High STPs\_1978 | WSPH\_1978 |
| call Subtropical\_High STPs\_1979 | WSPH\_1979 |
| call Subtropical\_High STPs\_1980 | WSPH\_1980 |
| call Subtropical\_High STPs\_1981 | WSPH\_1981 |

- After that, I combine it with the above _subtropical high batch_ to generate the gif. But the output generates more folders. There is still no gif output!!!  
 ![image](https://canada1.discourse-cdn.com/flex047/uploads/gmt/original/2X/d/d86f08b45affdfb24a01de51b8dfb160f3bcbbd3.png).

It is the first time I use GMT 6, and it is a huge difference from GMT 5. I read examples, but most of them are related to _Linux_. There is some strange to me like CAT \< function. I use _call_ function to replace it and it seems to be not working well.

I very much appreciate any kind of help.

"This is the response from the command window! It is quite strange to me. "

D:\Subtropical\_High\Data\Animation\>gmt movie Subtropical\_High.bat -Chd -Nanime02 -Fgif -T5 -H8 -Vi -Z  
movie [INFORMATION]: GraphicsMagick 1.3.36 found.  
movie [INFORMATION]: Paper dimensions: Width = 24c Height = 13.5c  
movie [INFORMATION]: Pixel dimensions: 1920 x 1080  
movie [INFORMATION]: Building opaque PNG images.  
movie [INFORMATION]: Create parameter initiation script movie\_init.bat  
movie [INFORMATION]: Number of main animation frames: 5  
movie [INFORMATION]: Parameter files for main animation: 5  
movie [INFORMATION]: Create main movie frame script movie\_frame.bat  
movie [INFORMATION]: Total frames to process: 5  
movie [INFORMATION]: Build frames using 15 cores  
movie [INFORMATION]: Execute movie frame scripts in parallel  
gmt [ERROR]: Unrecognized keyword =.  
gmt [ERROR]: 1 GMT Defaults conversion errors in file C:/Users/user/.gmt/sessions/gmt\_session.1/gmt.conf.1!  
plot [ERROR]: Cannot find file 1.monthly  
plot [ERROR]: Cannot find file 3.monthly  
plot [ERROR]: Cannot find file 0.monthly  
plot [ERROR]: Cannot find file 2.monthly  
contour [ERROR]: Cannot find file .monthly  
plot [ERROR]: Cannot find file 4.monthly  
contour [ERROR]: Cannot find file .monthly  
contour [ERROR]: Cannot find file .monthly  
contour [ERROR]: Cannot find file .monthly  
contour [ERROR]: Cannot find file .monthly  
movie [INFORMATION]: GraphicsMagick 1.3.36 found.  
movie [INFORMATION]: Paper dimensions: Width = 24c Height = 13.5c  
movie [INFORMATION]: Pixel dimensions: 1920 x 1080  
movie [INFORMATION]: Building opaque PNG images.  
movie [INFORMATION]: Create parameter initiation script movie\_init.bat  
movie [INFORMATION]: Number of main animation frames: 5  
movie [INFORMATION]: Parameter files for main animation: 5  
movie [INFORMATION]: GraphicsMagick 1.3.36 found.  
movie [INFORMATION]: Paper dimensions: Width = 24c Height = 13.5c  
movie [INFORMATION]: Pixel dimensions: 1920 x 1080  
movie [INFORMATION]: Building opaque PNG images.  
movie [INFORMATION]: Create main movie frame script movie\_frame.bat  
movie [INFORMATION]: Create parameter initiation script movie\_init.bat  
movie [INFORMATION]: Total frames to process: 5  
movie [INFORMATION]: Build frames using 15 cores  
movie [INFORMATION]: Number of main animation frames: 5  
movie [INFORMATION]: Execute movie frame scripts in parallel  
movie [INFORMATION]: Parameter files for main animation: 5  
movie [INFORMATION]: Create main movie frame script movie\_frame.bat  
movie [INFORMATION]: Total frames to process: 5  
movie [INFORMATION]: Build frames using 15 cores  
movie [INFORMATION]: Execute movie frame scripts in parallel  
movie [INFORMATION]: GraphicsMagick 1.3.36 found.  
movie [INFORMATION]: Paper dimensions: Width = 24c Height = 13.5c  
movie [INFORMATION]: Pixel dimensions: 1920 x 1080  
movie [INFORMATION]: Building opaque PNG images.  
movie [INFORMATION]: Create parameter initiation script movie\_init.bat  
movie [INFORMATION]: Number of main animation frames: 5  
movie [INFORMATION]: Parameter files for main animation: 5  
movie [INFORMATION]: Create main movie frame script movie\_frame.bat  
movie [INFORMATION]: Total frames to process: 5  
movie [INFORMATION]: Build frames using 15 cores  
movie [INFORMATION]: Execute movie frame scripts in parallel  
movie [INFORMATION]: GraphicsMagick 1.3.36 found.  
movie [INFORMATION]: Paper dimensions: Width = 24c Height = 13.5c  
movie [INFORMATION]: Pixel dimensions: 1920 x 1080  
movie [INFORMATION]: Building opaque PNG images.  
movie [INFORMATION]: Create parameter initiation script movie\_init.bat  
movie [INFORMATION]: Number of main animation frames: 5  
movie [INFORMATION]: Parameter files for the main animation: 5  
movie [INFORMATION]: GraphicsMagick 1.3.36 found.  
movie [INFORMATION]: Paper dimensions: Width = 24c Height = 13.5c  
movie [INFORMATION]: Pixel dimensions: 1920 x 1080  
movie [INFORMATION]: Create main movie frame script movie\_frame.bat  
movie [INFORMATION]: Building opaque PNG images.  
movie [INFORMATION]: Total frames to process: 5  
movie [INFORMATION]: Build frames using 15 cores  
movie [INFORMATION]: Create parameter initiation script movie\_init.bat  
movie [INFORMATION]: Execute movie frame scripts in parallel  
movie [INFORMATION]: Number of main animation frames: 5  
movie [INFORMATION]: Parameter files for main animation: 5  
movie [INFORMATION]: Create main movie frame script movie\_frame.bat  
movie [INFORMATION]: Total frames to process: 5  
movie [INFORMATION]: Build frames using 15 cores  
movie [INFORMATION]: Execute movie frame scripts in parallel  
figure [ERROR]: gmt figure: Cannot select an existing figure and change its format.  
figure [ERROR]: gmt figure: Cannot select an existing figure and change its format.  
figure [ERROR]: gmt figure: Cannot select an existing figure and change its format.  
figure [ERROR]: gmt figure: Cannot select an existing figure and change its format.  
figure [ERROR]: gmt figure: Cannot select an existing figure and change its format.  
figure [ERROR]: gmt figure: Cannot select an existing figure and change its format.  
figure [ERROR]: gmt figure: Cannot select an existing figure and change its format.  
begin [ERROR]: Failed to remove gmt.conf! [remove error: Permission denied]  
begin [WARNING]: Unable to remove gmt.conf [permissions?]  
figure [ERROR]: gmt figure: Cannot select an existing figure and change its format.  
figure [ERROR]: gmt figure: Cannot select an existing figure and change its format.  
figure [ERROR]: gmt figure: Cannot select an existing figure and change its format.  
figure [ERROR]: gmt figure: Cannot select an existing figure and change its format.  
figure [ERROR]: gmt figure: Cannot select an existing figure and change its format.  
figure [ERROR]: gmt figure: Cannot select an existing figure and change its format.

---

<div class="post-metadata">

**Author:** ![biggle1856](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/biggle1856/32/3169_2.png) [@biggle1856](https://forum.generic-mapping-tools.org/u/biggle1856)\
**Post date:** [February 24, 2022, 7:37am UTC](https://forum.generic-mapping-tools.org/t/gmt-movie/2659/4 "2022-02-24T07:37:12Z")

</div>

Yes it is very linux oriented which can be confusing for those dealing with the inadequacies of DOS

My suggestion:

1. create a timeline file (eg TimeLine.dat) containing parameters that change in each frame:  
TimeLine.dat:  
STPs\_1977 WSPH\_1977  
STPs\_1978 WSPH\_1978  
STPs\_1979 WSPH\_1979  
STPs\_1980 WSPH\_1980  
STPs\_1981 WSPH\_1981

2. the SubtropicalHigh.bat should probably be:  
SubtropicalHigh.bat:  
gmt begin  
gmt basemap -R100/180/0/45 -JQ180/%MOVIE\_WIDTH% -Bxa10Wf5W -Bya10Nf5N -BWeSn -X1 -Y2  
gmt coast -W1 -G200 -Di  
gmt plot %MOVIE\_COL1%.monthly -Sc0.1i -W0.01i,0/0/0 -G153/0/153  
gmt contour %MOVIE\_COL2%.monthly -A5880+f18+d+r1 -W5p,red  
gmt end  
–  
the MOVIE\_COLn variables pick up the data from your timeline file  
In modern mode you don’t need to repeat the -R option in the plot command

Don’t include the movie instruction in the SubtropicalHigh.bat – this will just create recursion (giving you all those subdirectories)

1. call from the command line (or a separate batch file)  
gmt movie Subtropical\_High.bat -Chd -Nanime02 -Fgif -TTimeLine.dat

As all that seems to be changing is the plot and contour commands you could probably put the basemap and coast commands in a background script file which can be specified in the -Sb option to movie.

This should generate a file anime02.gif in the working directory and the individual frames as .png in the ./anime02 subdirectory.  
If I wanted each of these frames as gif files I would use ImageMagick: cd into the subdirectory and run:  
mogrify -format gif \*.png

Hope this helps

---

<div class="post-metadata">

**Author:** ![LongNguyen031017](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/longnguyen031017/32/1389_2.png) [@LongNguyen031017](https://forum.generic-mapping-tools.org/u/LongNguyen031017)\
**Post date:** [February 24, 2022, 9:18am UTC](https://forum.generic-mapping-tools.org/t/gmt-movie/2659/5 "2022-02-24T09:18:49Z")

</div>

Your suggestion is useful and actually similar to what I tried to do last night.

There is a bug that I cannot understand the reason behind that cannot recognize my file name “STPs\_1977 WSPH\_1977” as stored up in _TimeLine.dat_. So the results in empty.

Again, thank you so much for this kind of help.

Here is new coding:

> Blockquote  
> gmt begin  
> gmt set GMT\_THEME cookbook  
> gmt set FONT\_ANNOT\_PRIMARY +20p FONT\_LABEL +20p  
> gmt set MAP\_TICK\_LENGTH 4p MAP\_TICK\_PEN 2p MAP\_FRAME\_PEN 1p  
> gmt set PROJ\_LENGTH\_UNIT INCH FORMAT\_GEO\_MAP ddd:mm:ssF gmt basemap -R100/180/0/45 -JQ180/MOVIE\_WIDTH -Bxa10Wf5W -Bya10Nf5N -BWeSn -X1 -Y2  
> gmt coast -W1 -G200 -Di  
> gmt plot MOVIE\_COL1.monthly -R100/180/0/45 -Sc0.1i -W0.01i,0/0/0 -G153/0/153  
> gmt contour MOVIE\_COL2.monthly -A5880+f18+d+r1 -W5p,red   
> gmt end

> Blockquote  
> movie [INFORMATION]: Frame 00 of 44 completed [2.3 %]  
> movie [INFORMATION]: Frame 03 of 44 completed [4.5 %]  
> movie [INFORMATION]: Frame 01 of 44 completed [6.8 %]  
> movie [INFORMATION]: Frame 02 of 44 completed [9.1 %]  
> movie [INFORMATION]: Frame 04 of 44 completed [11.4 %]  
> movie [INFORMATION]: Frame 05 of 44 completed [13.6 %]  
> movie [INFORMATION]: Frame 06 of 44 completed [15.9 %]  
> movie [INFORMATION]: Frame 07 of 44 completed [18.2 %]  
> movie [INFORMATION]: Frame 08 of 44 completed [20.5 %]  
> movie [INFORMATION]: Frame 09 of 44 completed [22.7 %]  
> movie [INFORMATION]: Frame 10 of 44 completed [25.0 %]  
> movie [INFORMATION]: Frame 11 of 44 completed [27.3 %]  
> movie [INFORMATION]: Frame 12 of 44 completed [29.5 %]  
> movie [INFORMATION]: Frame 13 of 44 completed [31.8 %]  
> movie [INFORMATION]: Frame 14 of 44 completed [34.1 %]  
> plot [ERROR]: Cannot find file 15.monthly  
> contour [ERROR]: Cannot find file 15.monthly  
> plot [ERROR]: Cannot find file 16.monthly  
> plot [ERROR]: Cannot find file 17.monthly  
> plot [ERROR]: Cannot find file 22.monthly  
> contour [ERROR]: Cannot find file 17.monthly  
> plot [ERROR]: Cannot find file 19.monthly  
> contour [ERROR]: Cannot find file 16.monthly  
> plot [ERROR]: Cannot find file 18.monthly  
> plot [ERROR]: Cannot find file 20.monthly  
> plot [ERROR]: Cannot find file 21.monthly  
> contour [ERROR]: Cannot find file 22.monthly  
> contour [ERROR]: Cannot find file 18.monthly  
> contour [ERROR]: Cannot find file 19.monthly  
> contour [ERROR]: Cannot find file 20.monthly  
> plot [ERROR]: Cannot find file 23.monthly  
> plot [ERROR]: Cannot find file 24.monthly  
> contour [ERROR]: Cannot find file 21.monthly  
> plot [ERROR]: Cannot find file 26.monthly  
> plot [ERROR]: Cannot find file 25.monthly  
> contour [ERROR]: Cannot find file 24.monthly  
> contour [ERROR]: Cannot find file 23.monthly  
> plot [ERROR]: Cannot find file 28.monthly  
> contour [ERROR]: Cannot find file 26.monthly  
> contour [ERROR]: Cannot find file 25.monthly  
> contour [ERROR]: Cannot find file 28.monthly  
> plot [ERROR]: Cannot find file 29.monthly  
> plot [ERROR]: Cannot find file 27.monthly  
> contour [ERROR]: Cannot find file 29.monthly  
> contour [ERROR]: Cannot find file 27.monthly  
> movie [INFORMATION]: Frame 15 of 44 completed [36.4 %]  
> movie [INFORMATION]: Frame 17 of 44 completed [38.6 %]  
> movie [INFORMATION]: Frame 16 of 44 completed [40.9 %]  
> movie [INFORMATION]: Frame 18 of 44 completed [43.2 %]  
> movie [INFORMATION]: Frame 19 of 44 completed [45.5 %]  
> movie [INFORMATION]: Frame 20 of 44 completed [47.7 %]  
> movie [INFORMATION]: Frame 22 of 44 completed [50.0 %]  
> movie [INFORMATION]: Frame 24 of 44 completed [52.3 %]  
> movie [INFORMATION]: Frame 21 of 44 completed [54.5 %]  
> movie [INFORMATION]: Frame 23 of 44 completed [56.8 %]  
> movie [INFORMATION]: Frame 25 of 44 completed [59.1 %]  
> movie [INFORMATION]: Frame 26 of 44 completed [61.4 %]  
> movie [INFORMATION]: Frame 27 of 44 completed [63.6 %]  
> movie [INFORMATION]: Frame 28 of 44 completed [65.9 %]  
> movie [INFORMATION]: Frame 29 of 44 completed [68.2 %]  
> plot [ERROR]: Cannot find file 30.monthly  
> contour [ERROR]: Cannot find file 30.monthly  
> plot [ERROR]: Cannot find file 31.monthly  
> contour [ERROR]: Cannot find file 31.monthly  
> plot [ERROR]: Cannot find file 33.monthly  
> plot [ERROR]: Cannot find file 32.monthly  
> plot [ERROR]: Cannot find file 37.monthly

 ![image](https://canada1.discourse-cdn.com/flex047/uploads/gmt/original/2X/c/c040964bf29c186bbcb194c0f7777bad2d7211c1.png)

---

<div class="post-metadata">

**Author:** ![pwessel](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/pwessel/32/30_2.png) [@pwessel](https://forum.generic-mapping-tools.org/u/pwessel)\
**Post date:** [February 24, 2022, 9:28am UTC](https://forum.generic-mapping-tools.org/t/gmt-movie/2659/6 "2022-02-24T09:28:29Z")

</div>

Note that if your TImeLine.dat file just has text (like file names) then there are no MOVIE\_COL entries, just MOVIE\_WORD1, MOVIE\_WORD2 (see how to tell the -T option to break your text into words. MOVIE\_COLs are for data columns of which you have none.

---

<div class="post-metadata">

**Author:** ![LongNguyen031017](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/longnguyen031017/32/1389_2.png) [@LongNguyen031017](https://forum.generic-mapping-tools.org/u/LongNguyen031017)\
**Post date:** [February 24, 2022, 9:57am UTC](https://forum.generic-mapping-tools.org/t/gmt-movie/2659/7 "2022-02-24T09:57:10Z")

</div>

Hello, Mr. Pwessel,  
I have changed based on your suggestions. But it is still not working. Do you have any suggestions? Anything is fine regarding individual plotting, but I faced very difficulty applying the GMT movie function.

The minor problem is the movement of the framework. It is ok for individual plotting (I mean without GMT movie).

 ![image](https://canada1.discourse-cdn.com/flex047/uploads/gmt/original/2X/b/babbfcae1d4903e5842a7fdbe4748d5dfdb10f31.png)

Here is my data structure.

 ![image](https://canada1.discourse-cdn.com/flex047/uploads/gmt/original/2X/a/a0e5354b460f180ebf73c91a261d13f3c08e775a.png)

---

<div class="post-metadata">

**Author:** ![pwessel](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/pwessel/32/30_2.png) [@pwessel](https://forum.generic-mapping-tools.org/u/pwessel)\
**Post date:** [February 24, 2022, 10:25am UTC](https://forum.generic-mapping-tools.org/t/gmt-movie/2659/8 "2022-02-24T10:25:10Z")

</div>

Having file names with spaces is asking for trouble in scripting. Perhaps replace the with dash or underscore.

---

<div class="post-metadata">

**Author:** ![biggle1856](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/biggle1856/32/3169_2.png) [@biggle1856](https://forum.generic-mapping-tools.org/u/biggle1856)\
**Post date:** [February 24, 2022, 10:53am UTC](https://forum.generic-mapping-tools.org/t/gmt-movie/2659/9 "2022-02-24T10:53:55Z")

</div>

Paul’s right about the text in the timeline file (and spaces in filenames). But you might find the words 0-based. Ie the first word accessed using MOVIE\_WORD0

---

<div class="post-metadata">

**Author:** ![LongNguyen031017](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/longnguyen031017/32/1389_2.png) [@LongNguyen031017](https://forum.generic-mapping-tools.org/u/LongNguyen031017)\
**Post date:** [February 24, 2022, 11:34am UTC](https://forum.generic-mapping-tools.org/t/gmt-movie/2659/10 "2022-02-24T11:34:18Z")

</div>

But actually, there is no spacing in my file name, I can really sure about it. The name is STPs\_1977.monthly and WSPH\_1977.monthly. There are two different files.

And inside _TimeLine.dat_, I stored as two columns of “STPs\_1977" and "WSPH\_1977”.  
So, my plotting is  
“gmt plot %MOVIE\_COL1%.monthly -Sc0.1i -W0.01i,0/0/0 -G153/0/153  
gmt contour %MOVIE\_COL2%.monthly -A5880+f18+d+r1 -W5p,red”

As I mentioned above, I work perfectly for plotting individual images. But coming to the movie function, such as errors appear.

Thank for your comments.

---

<div class="post-metadata">

**Author:** ![seisman](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/seisman/32/4_2.png) [@seisman](https://forum.generic-mapping-tools.org/u/seisman)\
**Post date:** [February 24, 2022, 2:27pm UTC](https://forum.generic-mapping-tools.org/t/gmt-movie/2659/11 "2022-02-24T14:27:53Z")

</div>

Following @pwessel and @biggle1856’s suggestions, I think you should change your plotting commands to:

```auto
gmt plot %MOVIE_WORD0%.monthly -Sc0.1i -W0.01i,0/0/0 -G153/0/153
gmt contour %MOVIE_WORD1%.monthly -A5880+f18+d+r1 -W5p,red

```

---

<div class="post-metadata">

**Author:** ![LongNguyen031017](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/longnguyen031017/32/1389_2.png) [@LongNguyen031017](https://forum.generic-mapping-tools.org/u/LongNguyen031017)\
**Post date:** [February 25, 2022, 1:37am UTC](https://forum.generic-mapping-tools.org/t/gmt-movie/2659/12 "2022-02-25T01:37:15Z")

</div>

Hi,  
That’s not working at all even I replace my name’s file like this _STPs1977_. No spacing, no underscore, or nothing else. But the command and function cannot understand.

```auto
 D:\Subtropical_High\Data\Animation>gmt movie Subtropical_High.bat -Chd -Nanime02 -Fgif -Tfile_name.dat
plot [ERROR]: Cannot find file .monthly
plot [ERROR]: Cannot find file .monthly
plot [ERROR]: Cannot find file .monthly
movie [NOTICE]: Running: gm convert -delay 4 -loop 1 +dither D:\Subtropical_High\Data\Animation\anime02\anime02_*.png anime02.gif

```

---

<div class="post-metadata">

**Author:** ![seisman](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/seisman/32/4_2.png) [@seisman](https://forum.generic-mapping-tools.org/u/seisman)\
**Post date:** [February 25, 2022, 4:04am UTC](https://forum.generic-mapping-tools.org/t/gmt-movie/2659/13 "2022-02-25T04:04:46Z")

</div>

If possible, please post your scripts and sample data files so that it’s easier for us to help.

---

<div class="post-metadata">

**Author:** ![LongNguyen031017](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/longnguyen031017/32/1389_2.png) [@LongNguyen031017](https://forum.generic-mapping-tools.org/u/LongNguyen031017)\
**Post date:** [February 25, 2022, 6:08am UTC](https://forum.generic-mapping-tools.org/t/gmt-movie/2659/14 "2022-02-25T06:08:31Z")

</div>

Sure, here is the compressed files that I run.  
Thank you for the help from everyone. I’m very much grateful for that.  
[GMT\_Forum.zip](https://forum.generic-mapping-tools.org/uploads/short-url/gGqfIv6Gh7VDUqoEMkJxf2kchbo.zip) (849.9 KB)

---

<div class="post-metadata">

**Author:** ![seisman](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/seisman/32/4_2.png) [@seisman](https://forum.generic-mapping-tools.org/u/seisman)\
**Post date:** [February 25, 2022, 6:14am UTC](https://forum.generic-mapping-tools.org/t/gmt-movie/2659/15 "2022-02-25T06:14:03Z")

</div>

> Append **+w** to split the trailing string into individual words that can be accessed via variables **MOVIE\_WORD0** , **MOVIE\_WORD1** , etc.

Following the documentation, you need to use `-Tfile_name.dat+w` instead.

---

<div class="post-metadata">

**Author:** ![LongNguyen031017](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/longnguyen031017/32/1389_2.png) [@LongNguyen031017](https://forum.generic-mapping-tools.org/u/LongNguyen031017)\
**Post date:** [February 25, 2022, 6:31am UTC](https://forum.generic-mapping-tools.org/t/gmt-movie/2659/16 "2022-02-25T06:31:26Z")

</div>

That’s work perfectly now. Just one thing I want to ask, why my frame is moving upward and is cannot fix position as I plotted individual images ??

---

<div class="post-metadata">

**Author:** ![pwessel](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/pwessel/32/30_2.png) [@pwessel](https://forum.generic-mapping-tools.org/u/pwessel)\
**Post date:** [March 1, 2022, 9:46am UTC](https://forum.generic-mapping-tools.org/t/gmt-movie/2659/17 "2022-03-01T09:46:58Z")

</div>

Could you explain what you mean in a different way, or show it? I do not understand.

---

<div class="post-metadata">

**Author:** ![PlanetGus](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/planetgus/32/303_2.png) [@PlanetGus](https://forum.generic-mapping-tools.org/u/PlanetGus)\
**Post date:** [March 1, 2022, 10:13am UTC](https://forum.generic-mapping-tools.org/t/gmt-movie/2659/18 "2022-03-01T10:13:03Z")

</div>

I think he struggles with -C (movie) as opposed to the dimensions imposed by -J (not movie)

The workaround I use is:  
In plot adding a line

> gmt basemap -R0/1/0/1 -JX(horizontal size)/(vertical size)

… just make sure this one is positioned at the bottom left corner (no -X or -Y history)

The in movie command use the sale dimensions as -J

> gmt movie […] -C(hor)x(ver)xdpu
