Re: Broken CGFIXPS routine? [message #94712 is a reply to message #94709] |
Fri, 01 September 2017 17:46   |
Matteo
Messages: 28 Registered: August 2011
|
Junior Member |
|
|
Thank you Wayne for looking into this!
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
|
|
|