Dear pyferret users,
I've noticed that before the output image file from a FRAME command is generated, the next command is executed. As a result, the next command doesn't necessary find the newly created image.
This is a practical problem when you manipulate the newly created image using SPAWN.
A workaround is to "SPAWN sleep 5" before manipulating the image.
(Does FRAME do its work in another thread?)
Regards,
Ryo
----------------
set data etopo5
fill/hlimits=160W:120W/vlimits=30N:50N rose
frame/file=tmp.png
SPAWN ls tmp.png ! file not found!
SPAWN sleep 5
SPAWN ls tmp.png ! file found.
I use pyferret on macOS Catalina.
NOAA/PMEL TMAP
PyFerret v7.5 (optimized)
Darwin 17.7.0 - 11/14/19
26-Nov-19 21:25