Date: Tue, 4 Sep 2012 16:22:17 -0400 (EDT)
From: Jun-Hui Zhao 
To: Eric R. Keto 
Cc: kyoung@cfa.harvard.edu, rblundell@cfa.harvard.edu, Peter Teuben ,
     melvyn wright 
Subject: Re: miriad bugs

Hi Eric,
  I look into more about the version of Miriad /sma/miriad/linux/MIRRC.linux
that you mentioned. The header says VERSION 4.1.2 but some of the codes
appear to be quite old. I wonder who is supporting this package
in which several of my old SMA Miriad codes are mixed with old Miriad
subroutines. I understand your concerns about Alice's effort. We
are not able to support those files produced from obsolete
software. Here is the place that you can find updated versions
http://www.cfa.harvard.edu/sma/miriad/download/
Please use the updated software for SMA data reduction
and also direct SMA users to use the package that we currently
support.
  Also, we are in the middle of merging the current SMA components
with the latest version of Miriad as we have discussed in the
past Miriad Users' meeting (http://www.cfa.harvard.edu/sma/miriad/wbcorrTest/).
I found that there have been many significant updates in Miriad.
It takes time to catch up.
  Thanks.
 Jun-Hui

On Tue, 4 Sep 2012, Eric R. Keto wrote:

> JH,
>
> Found a couple of bugs:
>
> -Eric
>
>  2 Bugs. UVFLAG and UVSPEC
>
> data set is
> /sma/SMAusers/keto/pgquasars/100602/cal/100602_030013_PG1613+658_lsb
>
> FIRST BUG UVFLAG
> ------------------------------------------------------------------------------
> cfa0> uvflag vis=$vis edge=8 flagval=flag
> uvflag: beta 09-Jan-10
>
> Set flags to indicate bad data in visibility file 100602_030013_PG1613+658_lsb
> Linetype channel; select all channels
> Set flags for the first 8 and the last 8 channels of each window
> Segmentation fault
> ------------------------------------------------------------------------------
>
> My speculation:
>
> The first bug in UVFLAG derives from the MIRIAD distribution. They forgot to have UVFLAG refer
to the parameter file which specifies the maximum number of windows. UVFLAG is still hard-codes
the number of windows (chunks).  The MIRIAD version here: /sma/miriad/linux/MIRRC.linux works.
>
> SECOND BUG UVSPEC
>
> ------------------------------------------------------------------------------
> cfa0> smauvspec vis=$vis interval=9999 device=$dev axis=freq,amp hann=5 nxy=1,1
> SmaUvSpec: version beta 27-Jan-2012
> ### Fatal Error [smauvspec]:  Incompatible: Input vis must be SMA data output from SMALOD.
> ------------------------------------------------------------------------------
>
> My speculation:
>
> It's probably not really incompatible. Again, the MIRIAD version here:
/sma/miriad/linux/MIRRC.linux works.
> This incompatibility prevents the use of the data that Alice Argon calibrated for the RTDC.
This calibrated data base is a major effort for the SMA, several years of work by Alice. We have
to be able to read this data into MIRIAD.