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

Home » Public Forums » archive » Broken CGFIXPS routine?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Broken CGFIXPS routine? [message #94715 is a reply to message #94712] Mon, 04 September 2017 17:24 Go to previous messageGo to previous message
wlandsman is currently offline  wlandsman
Messages: 743
Registered: June 2000
Senior Member
A couple of things are unclear in your post.

1. You say you installed ImageMagick. Does it work (outside of IDL)? Can you convert (from the MacOS terminal prompt) a postscript file to PDF

convert idl.ps idl.pdf

2. IDL simply spawns a call to ImageMagick to convert the postscript file so there shouldn't be any special steps needed to "link" IDL. But you also mention a problem with the created postscript file, which would have nothing to do with ImageMagick. Are you able to run your program and successfully create a postscript plot? --Wayne



On Friday, September 1, 2017 at 8:46:42 PM UTC-4, Matteo wrote:

> I think this fixes that particular step, although I recently installed a new IDL on my laptop and now I encounter the issue with cgImageMagick not being found. I went through the various posts on this (see e.g: http://www.idlcoyote.com/cg_tips/findimonmac.php) but it gets a bit involved...is there a clear sequence of steps to link IDL to the right place? I seem to understand the problem is with the "convert" executable. I tried to download the last version of ImageMagick and it got unpacked in the Applications/ directory but nothing changes. Note that I tried to use the older PS_START and PS_END commands, everything runs fine but the generates ps file is blank.
>
> Running IDL 8.6.1 on Mac/OS (Yosemite).
>
> I hope somebody can help...
>
>
>
>
>
>
>
>
> On Friday, September 1, 2017 at 10:19:06 AM UTC-4, wlandsman wrote:
>> So I assume that cgfixps.pro is not found because it is not compiling
>>
>> IDL> .run cgfixps
>>
>> because of spurious characters introduced during a bad merge. This was fixed on the GitHub site (according to the link you give) but still seems to be broken on the main Coyote site
>> http://www.idlcoyote.com/programs/cgfixps.pro
>> So I would make sure you get your copy of cgfixps.pro from GitHub
>>
>> https://github.com/idl-coyote/coyote/blob/master/cgfixps.pro
>>
>> --Wayne
>>
>> On Thursday, August 31, 2017 at 7:21:40 PM UTC-4, Matteo wrote:
>>> Hi,
>>>
>>> I was trying to generate a plot in a way that was used to work, as in:
>>>
>>> CGPS_OPEN, filename='testplot.ps'
>>> CGPLOT, FINDGEN(10)
>>> CGPS_CLOSE, /pdf
>>>
>>> but know I obtained the error message: "CGPS_CLOSE -> Attempt to call undefined procedure: CGFIXPS". I obviously have CGFIXPS in the Coyote library, but the problem seem to be in the following lines (as it seems to have been noted here: https://github.com/idl-coyote/coyote/issues/11). Any idea on the best fix for this issue?
>>>
>>>
>>>
>>> <<<<<<< HEAD
>>> Get_Lun, in_lun
>>> OpenR, in_lun, in_filename
>>> =======
>>>> >>>>>> 8ba3a7b34691137b0d0b3d3f508b434ded51fa12
>>> IF (FStat(in_lun)).size EQ 0 THEN BEGIN
>>> Free_lun, in_lun
>>> Free_lun, out_lun
>>> File_Delete, out_filename
>>> ;Print, 'Zero Length File Encountered...'
>>> RETURN
>>> ENDIF
>>>
>>> <<<<<<< HEAD
>>> ; Move along in the file until the end of the Prolog.
>>> line = ""
>>> count = 0
>>> target = "void"
>>> buffer = StrArr(100)
>>>
>>> =======
>>>> >>>>>> 8ba3a7b34691137b0d0b3d3f508b434ded51fa12
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: histogram and color bar
Next Topic: EP Flux

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

Current Time: Wed Oct 08 09:15:20 PDT 2025

Total time taken to generate the page: 0.00409 seconds