Date: Fri, 03 Feb 2012 13:39:37 -0500
From: Peter Teuben 
To: Ben Sargent 
Cc: Jun-Hui Zhao 
Subject: Re: cgdisp error in Miriad

editing the file isn't enough, did you recompile and link it as well?

On 02/03/2012 01:19 PM, Ben Sargent wrote:
> Peter,
>
> I changed the 1 to a 2 in cgdisp.for and restarted MIRIAD and ran my script.  I still get the same error:
>
> cgdisp: CVS Revision 1.10, 2010/06/08 17:04:15 UTC
>
> ### Fatal Error [cgdisp]:  KeyA: value "p" of keyword "slev" is doesn't fit in its Fortran buffer, which
is only 1 bytes.
>
> Ben
>
> ________________________________________
> From: Peter Teuben [teuben@astro.umd.edu]
> Sent: Friday, February 03, 2012 12:48 PM
> To: Ben Sargent
> Cc: Jun-Hui Zhao
> Subject: Re: cgdisp error in Miriad
>
> what i also worry about is the supporting routine (the key routines)
> that now
> more stringently check for string length.
> What you could try and do and make the line
>       character labtyp(2)*6, levtyp(MAXCON)*1, trfun(maxchan)*3
> into
>      character labtyp(2)*6, levtyp(MAXCON)*2, trfun(maxchan)*3
>
> and see if that compiles. It's a hack, but if it works, ok.
> That's for me line 804 in $MIRPROG/disp/cgdisp.for
>
>
> On 02/03/2012 12:45 PM, Ben Sargent wrote:
>> Jun-Hui,
>>
>> I don't remember if my version of MIRIAD is the CVS version or some other one, but it probably dates back
to 12-18 months ago.
>>
>> Ben
>>

>>
>> ________________________________________
>> From: Jun-Hui Zhao [jzhao@cfa.harvard.edu]
>> Sent: Friday, February 03, 2012 12:35 PM
>> To: Ben Sargent
>> Cc: Peter Teuben
>> Subject: RE: cgdisp error in Miriad
>>
>>> PS: I haven't updated MIRIAD-CVS in a while.  Is there a new version?
>>       For handling SMA data from 4GHz band observations, we have made
>> many updates for the SMA routines (beta versions) that haven't been
>> integrated back to Miriad_cvs yet. Other Miriad routines in the beta are
>> still based on the old Miriad-cvs (4.1.3).
>>
>>       I would suggest to use the beta version for SMA data reduction.
>> Here is the site,
>>       http://www.cfa.harvard.edu/sma/miriad/download/
>>
>>       The SMA beta will be eventually merged back to miriad_cvs.
>>
>>       Jun-Hui
>>
>>> ________________________________________
>>> From: Peter Teuben [teuben@astro.umd.edu]
>>> Sent: Friday, February 03, 2012 12:15 PM
>>> To: Jun-Hui Zhao
>>> Cc: Ben Sargent
>>> Subject: Re: cgdisp error in Miriad
>>>
>>> On 02/03/2012 11:23 AM, Jun-Hui Zhao wrote:
>>>> options=full,blacklab,3value beamtyp=b,l,4 cols1=2 slev=p,2 levs1=1,2,3,4,5,6,7,8,9,10
>>> i tried reproducing it with the latest version, but cannot.  Just to be sure
>>> can Ben use the following test:
>>>
>>>        imgen out=map0
>>>        cgdisp in=map0 type=c cols1=2 slev=p,2 levs1=0.3 device=/xs
>>>
>>> and see if you get this error, because i don't. The buffer for
>>> the slev=p is a character*1 variable, so that should be good.
>>> But i do recall some messing around with the routine tht checks
>>> this, and perhaps the SMA didn't get that routine updated?
>>>
>>> peter
>>>