Date: Wed, 24 Apr 2013 14:44:00 -0400
From: Peter Teuben 
To: Jun-Hui Zhao 
Cc: Tyler Bourke , Qizhou Zhang , "cqi@cfa.harvard.edu Qi" ,
     smamiriad@cfa.harvard.edu
Subject: Re: SMA antenna files in miriad format?

Although LISTOBS is formally carma specific, I must guess it's either
working for SMA data, or with a trivial change can be made to work
for it.

At the top of listobs you would see the following type of information.
The output of uvlist of the 'antpos' variable is fairly useless, as it's
in nsec and in the XYZ (equatorial) coordinate system, and we're
not used to think of it that way. Hence my conversion in listobs to
the ENU format.
You can also look at the python script in $MIRCAT/baselines/carma/xyz2enu.py
which hopefully does the same.

--------------------------------------------------------------------------------
         Antenna and Baseline Information
         --------------------------------
            Antenna Locations (in nsec)            Antenna Locations (in m)
                 X           Y           Z              E          
N           U
Antenna  1:    17.6993    142.0127      6.4643        42.574     
-1.672       5.396
Antenna  2:   -31.2067    115.8721     71.6032        34.738     
22.747       5.558
Antenna  4:   -73.5649   -150.8217    132.3831       -45.215     
44.937       6.491
Antenna  5:   184.5637   -113.5735   -217.0265       -34.048    
-85.284       4.616
Antenna  7:    36.8304   -140.0886    -18.7523       -41.998    
-11.161       5.380
Antenna  8:    13.9358     -0.1147     10.4475        -0.034     
-0.038       5.221
Antenna  9:    49.7516    -65.8389    -37.3738       -19.738    
-17.949       5.081
Antenna 10:   107.0618    -35.5327   -114.5522       -10.652    
-46.766       4.737
Antenna 11:    15.0533    -68.3174      9.4523       -20.481     
-0.479       5.307
Antenna 12:   103.2400   -146.6406   -108.1413       -43.962    
-44.543       4.990
Antenna 13:    28.5646    -39.5781     -9.0247       -11.865     
-7.340       5.175
Antenna 14:    47.3875     -8.2270    -34.3819        -2.466    
-16.806       5.060
Antenna 15:    78.6271     76.7574    -76.7263        23.011    
-32.580       4.823
--------------------------------------------------------------------------------


On 04/24/2013 02:37 PM, Jun-Hui Zhao wrote:
> The SMA antenna file (ASCII) under a raw data set is converted to Miriad
> format under the variable entry for each of the data sets. Using Miriad
> task uvlist, one could look at it ,
>
>
> Task:   uvlist
>   vis      = n7538S.d1lsb.uv
>   options  = var