comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Problem with SPAWN command in IDL code
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Problem with SPAWN command in IDL code [message #88873] Mon, 30 June 2014 07:24 Go to next message
atmospheric physics is currently offline  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
Re: Problem with SPAWN command in IDL code [message #88874 is a reply to message #88873] Mon, 30 June 2014 07:47 Go to previous message
atmospheric physics is currently offline  atmospheric physics
Messages: 121
Registered: June 2010
Senior Member
Sorry for posting this ... I found my problem.

The /ORDER keyword while reading the TempImg.JPG is actually making all the problem. Removed /ORDER keyword and works fine in the desired way!!!

Thanks.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: IDL code running error in envi environment(ENVI + IDL)
Next Topic: SPAWN background command without nohup?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 11:27:40 PDT 2025

Total time taken to generate the page: 0.00440 seconds