Date: Thu, 3 Mar 2011 18:19:13 -0500 (EST)
From: Jun-Hui Zhao 
To: Carolin Dedes 
Subject: Re: SMA miriad data reduction problem 

Hi Carolin,

    You probably took the Miriad package from Miriad_CVS which is
managed by the BIMA group. The version is good only for the SMA
2GHz bandwidth data. For the 4GHz data, we have developed beta
version Miriad to handle the new formatted SMA data. This version
is in the final phase of internal test. You are welcome to use it.
Here is the beta release site http://www.cfa.harvard.edu/sma/miriad/download/
We currently support Redhat and CentOS. From the above site,
you can download either the regular source-code version
or the binary version. There are simple and straight-forward
instructions for the installations.

    Also from this site, you can find a few sample scripts
(http://www.cfa.harvard.edu/sma/miriad/spec/SMAscripts/).
We are developing more for the basic observing mode provided
by the SMA.

    You may follow the 1-Receiver-Standard/4.0 GHz/script2 that is for
the 4GHz data with uniform spectral resolution taken with
340 GHz receivers, which should be close to what you want:
http://www.cfa.harvard.edu/sma/miriad/spec/SMAscripts/SCRIPTS/uni4GHz2010_340rx.txt

    The data process is pretty much similar to that for handling ATCA
data except SMA correlator provides much more complicated
data.

    Also, I would be happy to help you to develop a script
to reduce your data from loading, calibrations, to imaging
in next a couple of days if you prefer to.

    Please feel free to ask any questions regarding
Miriad data reduction for SMA data.

    The best.
    Jun-Hui



On Thu, 3 Mar 2011, Carolin Dedes wrote:

> Dear Jun-Hui,
>
>
> I hope I am not bothering you with this question, but I have a problem with the SMA data reduction with
miriad.
>
> Gurkan Sengun has recently installed the new 4GHz miriad version here at ETH, like you suggested to him,
since I got data from December 2010.
>
> Now I am trying to load the data with smaload and I already ran into a problem, which I could not fix

using the manual.
>
> Below you can see a copy of my terminal:
> It is a bit strange that smalod still says 23-Jan-2008, even though we took the new version.
> Now it is failing for something with number of channels (see below).
>
> Could you maybe also point me to some recent tutorials or example scripts for the reduction? I have a a
bit of previous experience with miriad, but only for ATCA data.
>
> Thank you very much,
> Carolin
>
>
> dedesc@columba:/export/data1/sma/data/reduction$ smalod in=../101219_04:07:01/ out=06055 rxif=0 sideband=0
restfreq=219.15 vsource=9.3
> SmaLod: version 2.11 23-Jan-08
> ### Warning [smalod]:  Reading antenna positions from ASCII file antennas:
> ### Warning [smalod]:  Number of antennas exceeded the limit 8.
>  1        -0.507919    -25.152683      1.280749
>  2         5.228478    -20.076470    -14.842942
>  3        -6.398551    -68.002889      3.637981
>  4         4.441909    -63.874310    -21.837051
>  5       -17.916431    -59.557678     30.070285
>  6         0.000000      0.000000      0.000000
>  7        11.739543    -53.665352    -40.723320
>  8        -5.700583    -18.984222     15.610627
>  9        56.923113     54.468911   -143.193522
> 10        58.858790    212.382145   -186.576144
>
> Loading standard SMA data ...
>
> User's input vSource = 9.300000 km/s
> User's input RestFrequency = 219.150000 GHz
> Processing file ../101219_04:07:01/
> Found file ../101219_04:07:01/in_read
> Found file ../101219_04:07:01/bl_read
> Found file ../101219_04:07:01/sp_read
> Found file ../101219_04:07:01/codes_read
> Found file ../101219_04:07:01/eng_read
> Found file ../101219_04:07:01/sch_read
> Found file ../101219_04:07:01/projectInfo
> Observer: SMA
> *******************************
> * Observing Date: 2010 Dec 19 *
> *******************************
> FINISHED READING  IN HEADERS (endian-swapped)
> NUMBER OF SIDEBANDS =2
> NUMBER OF RECEIVERS =1
> rx1->230
> Processing LSB
> to load rx->230 visdata
> mirRead: number of antenna =7 are found.
> FINISHED READING  BL HEADERS (endian-swapped)
> NUMBER OF ANTENNAS =8
> Geocentrical coordinates of antennas (m), reference antenna=6
> ANT x y z AN1     -0.5079    -25.1527      1.2807
> ANT x y z AN2      5.2285    -20.0765    -14.8429
> ANT x y z AN3     -6.3986    -68.0029      3.6380
> ANT x y z AN4      4.4419    -63.8743    -21.8371
> ANT x y z AN5    -17.9164    -59.5577     30.0703
> ANT x y z AN6      0.0000      0.0000      0.0000
> ANT x y z AN7     11.7395    -53.6654    -40.7233
> ANT x y z AN8     -5.7006    -18.9842     15.6106
> Miriad coordinates of antennas (nanosecs), reference antenna=6
> ANT x y x AN1     -1.6942    -83.9003      4.2721
> ANT x y x AN2     17.4403    -66.9679    -49.5107
> ANT x y x AN3    -21.3433   -226.8332     12.1350
> ANT x y x AN4     14.8166   -213.0618    -72.8406
> ANT x y x AN5    -59.7628   -198.6630    100.3037
> ANT x y x AN6      0.0000      0.0000      0.0000
> ANT x y x AN7     39.1589   -179.0083   -135.8384
> ANT x y x AN8    -19.0151    -63.3245     52.0714
> FINISHED READING  CD HEADERS (endian-swapped)
> Actual numberSpectra=49 end_iband=48
> ### Fatal Error [smalod]:  numberSpectra >25 ....
>
>