Problem with SPAWN command in IDL code [message #88873] |
Mon, 30 June 2014 07:24  |
atmospheric physics
Messages: 121 Registered: June 2010
|
Senior Member |
|
|
Hello,
I am using SPAWN command to transform an original image and then use the transformed image with cgImage to insert in a plotting window.
SPAWN, 'convert '+ImgFile+' -flop -rotate 60 -crop 2980x3216+500+600 '+ $
'-crop 2980x3216-500-600 TempImg.JPG'
READ_JPEG,'TempImg.JPG',img1,/ORDER
cgImage,img1,/OVERPLOT
SPAWN, 'rm -rf TempImg.JPG'
The problem was that I am not finding the transformed image in the desired manner. While I try running the convert tool on command line in linux, it works fine but I don't see the image being transformed when I do suing SPAWN command. Can anyone help me realize what mistake I was doing?
Thanks in advance,
Regards,
Madhavan
|
|
|
|