gmt begin
gmt math -o0 -T${index_start}/${index_stop}/1 T = index_period.txt
gmt math -o0 -fit -foT -T${time_start}/${time_stop}/3 T --TIME_UNIT=h --TIME_EPOCH=$(gmt get TIME_EPOCH) = date_period.txt
paste -d "," index_period.txt date_period.txt > period.txt
gmt makecpt -Cgray -T0/5000 -I -H > relief.cpt
gmt makecpt -Ccork -T${lim1}/${lim2}/${linc} -G0/1 -A50 -N -H > cold.cpt
gmt grdimage $region $projection @earth_relief_03m -Crelief.cpt -I+d # Topography
gmt pscoast -Di -Wthinnest -Sdeepskyblue $map_annot -t25 # Oceans
gmt end
main.sh
gmt begin
gmt grdcontour -C+1 -Ncold.cpt -A- $NCfile"?var[${t1}]" -B+t$(echo ${MOVIE_COL1} | awk -F[T] '{printf "%s %s",$1,$2}')
gmt end
Debug prompt
grdimage [WARNING]: Changing to PostScript landscape orientation based on your plot and paper dimensions, but we cannot be 100% sure.
grdimage [WARNING]: Use PS_MEDIA and/or PS_PAGE_ORIENTATION to specify correct paper dimensions and/or orientation if our guesses are inadequate.
gmt [ERROR]: The call to grdview failed
end [WARNING]: Figure # 1 (event_1) was registered but no matching PostScript-|+ file found - skipping
mv: rename event_1.pdf to ./movie_session/event_1.pdf: No such file or directory
gmt [ERROR]: The call to grdview failed
end [WARNING]: Figure # 1 (../event_1_00) was registered but no matching PostScript-|+ file found - skipping
# ... and it freezes here
Your main script seems to be missing a projection so you are getting a default -JX15c I think which with margins will exceed your canvas. Also worry about what -X -Y you wish to use if not the 72p/72p.
Perhaps you can try this. When I am stuck like you on an issue with movie, I run it with -Qs, then I manually go into the directory with all those scripts and parameters and try to run one frame manually, something like bash -xv movie_master.sh 05 (for frame 05) and examine the output for any errors (that hopefully are helpful) to try to see what is going on. Because movie makes system calls to run stuff it is hard to debug via a typical debugger like Xcode…
OK, so this command is failing. I do not understand what etc means, did you just replace a long actual path with that tag just for the purpose of posting here? WIth quotes and missing quotes it is hard to see as your -B seems to have a hanging 00:00:00 that is not part of the string and would be seen as a possible grid input file. But again, tough to understand that command line. Maybe you need a double-quote around that entire -B arg.
Alright : Here’s the result with double quote : -B+t"text"
I still got the warning
grdview [WARNING]: Changing to PostScript landscape orientation based on your plot and paper dimensions, but we cannot be 100% sure.
grdview [WARNING]: Use PS_MEDIA and/or PS_PAGE_ORIENTATION to specify correct paper dimensions and/or orientation if our guesses are inadequate.
Sorry, it’s “et cetera” abbreviated. (“and so forth” or ...)
And yes, <path2file> and <path> are just absolute path on my laptop (/User/guillaume/Documents....)
Sorry bad formatting. I put your path in the angular bracket with formatting it and it disappeared, making it sound like I don’t understood what etc meant…
Selecting png and ps: png will crop to fit, ps requires a page size. Do you really want PS? WHo needs PS anymore? Do you mean eps?
Transparency: So I understand, you want to use cold.cpt which append @50 to all colors to set transparent colors in the filled view run by grdview, yes? I am pretty sure it is not using those settings. Perhaps -t50 is better here.
Sorry, you are right the ps,png is automatic and done by movie since it needs to sandwich in the background PS…
I believe the PS complaints has to do with you setting a 15cm wide canvas but your projection will make a 15 cm wide plot (not included space needed by frame annotations) that is then shifted by 72 points for margins. So you are far exceeding your paper size and PS complaints. SOlution is to make the canwas wider until your plot fits inside the canvas.