Date: Wed, 18 Jul 2012 16:12:35 -0400 (EDT)
From: Jun-Hui Zhao 
To: Berengere Parise 
Cc: smamiriad@cfa.harvard.edu
Subject: Re: Miriad on Ubuntu for SMA data reduction

Dear Berengere,
    There was a bug to handle 100822_03:10:31 using the old 2GHz mode
code. The bug has been fixed. A new version 1.4.5 beta Miriad for SMA
has been released (http://www.cfa.harvard.edu/sma/miriad/download/).
Please download the version 1.4.5 (Binary UB 12_64bit)
(http://www.cfa.harvard.edu/sma/miriad/download/smaMiriadDB/BinaryUB12_64smaMiriadBeta.tar.gz).

    The binary codes of this version work for 64 bit Ubuntu 12.02+
(tested). I noticed that you have a 32 bit software. You may have
to go through the regular installation by following the procedure
(http://www.cfa.harvard.edu/sma/miriad/download/UB64installLinux.html).

    I also noticed that spectral window s13 and s15 were empty in your
high-spectral resolution setup. Please let us know if you have any
problems to further reduce this data in Miriad.

    Jun-Hui


On Tue, 17 Jul 2012, Berengere Parise wrote:

> Dear Jun-Hui,
>
> Since our last conversation on Miriad for Ubuntu, I was able to go
> through the whole calibration
> of the 110622_03:13:48 dataset. Thanks for your help!
> I have now another question/problem. I am trying to reduce the other
> dataset of the project,
> which was observed in 2010: 100822_03:10:31.
> The problem happens already at the smalod stage: after reading the
> header, miriad fails (see error message below). I suppose that the data
> has a different structure than the one acquired in 2011? Do you know why
> the new SMA version is not able to read older data? Do I need to use
> another version of miriad?
>
> Thanks a lot for your help,
>
> Berengere
>
> PS: error message:
>
>
> smalod in=rawdata/100822_03:10:31 out=data100822 rxif=0 sideband=0
> nscans=1 readant=8 options='linear'
> SmaLod: version 3.8-beta 12-June-2012
> ### Warning [smalod]:  Keyword [readant] not used or not exhausted.
> ### Warning [smalod]:  #############################################
> ### Warning [smalod]:  Miriad needs updating for SMA data reduction.
> ### Warning [smalod]:  #############################################
> Loading standard SMA data ...
> Processing file rawdata/100822_03:10:31/
>
> single-band standard (2GHz)................version 3.3: 2012-06-11
> Found file rawdata/100822_03:10:31/in_read
> Found file rawdata/100822_03:10:31/bl_read
> Found file rawdata/100822_03:10:31/sp_read
> Found file rawdata/100822_03:10:31/codes_read
> Found file rawdata/100822_03:10:31/eng_read
> Found file rawdata/100822_03:10:31/sch_read
> Found file rawdata/100822_03:10:31/projectInfo
> Observer: Berengere Parise*******************************
> * Observing Date: 2010 Aug 22 *
> *******************************
> FINISHED READING  IN HEADERS (endian-swapped)
> NUMBER OF SIDEBANDS =2
> NUMBER OF RECEIVERS =1
> rx1->230
> Processing LSB
> to load rx->230 visdata
> numberBaselines=56
> mirRead: number of antenna =8 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    -17.9157    -59.5579     30.0688
> ANT x y z AN2     -4.4418    -10.0943     12.2376
> ANT x y z AN3      2.7377    -23.7461     -7.7551
> ANT x y z AN4     -5.7018    -18.9844     15.6106
> ANT x y z AN5     -0.5092    -25.1517      1.2817
> ANT x y z AN6      0.0000      0.0000      0.0000
> ANT x y z AN7      4.4417    -63.8749    -21.8359
> ANT x y z AN8      1.9578     -7.4632     -5.4999
> Miriad coordinates of antennas (nanosecs), reference antenna=6
> ANT x y x AN1    -59.7603   -198.6637    100.2988
> ANT x y x AN2    -14.8163    -33.6711     40.8201
> ANT x y x AN3      9.1320    -79.2085    -25.8682
> ANT x y x AN4    -19.0192    -63.3250     52.0715
> ANT x y x AN5     -1.6984    -83.8971      4.2754
> ANT x y x AN6      0.0000      0.0000      0.0000
> ANT x y x AN7     14.8160   -213.0638    -72.8366
> ANT x y x AN8      6.5304    -24.8945    -18.3455
> FINISHED READING  CD HEADERS (endian-swapped)
> decode velocity type
> decode the source information
> *** buffer overflow detected ***: smalod terminated
> ======= Backtrace: =========
> /lib32/libc.so.6(__fortify_fail+0x50)[0x5dc3a3e0]
> /lib32/libc.so.6(+0xe331a)[0x5dc3931a]
> /lib32/libc.so.6(+0xe2a58)[0x5dc38a58]
> /lib32/libc.so.6(__overflow+0x4a)[0x5dbc0c6a]
> /lib32/libc.so.6(__printf_fp+0x1464)[0x5db99da4]
> /lib32/libc.so.6(_IO_vfprintf+0x2509)[0x5db953e9]
> /lib32/libc.so.6(__vsprintf_chk+0xad)[0x5dc38b0d]
> /lib32/libc.so.6(__sprintf_chk+0x2d)[0x5dc38a4d]
> /aux/pc166a/bparise/app/smaMiriadBeta/miriad_cvs/lib/linux/libmir.so(rsmir_Read+0x307b)[0x556354d3]
> /aux/pc166a/bparise/app/smaMiriadBeta/miriad_cvs/lib/linux/libmir.so(rsmiriadwrite_c+0x47)[0x55639c5c]
> /aux/pc166a/bparise/app/smaMiriadBeta/miriad_cvs/lib/linux/libmir.so(rsmiriadwrite_+0x33)[0x556409ff]
> smalod[0x804ad97]
> smalod[0x804d9ec]
> smalod[0x804f97b]
> /lib32/libc.so.6(__libc_start_main+0xe6)[0x5db6cbd6]
> smalod[0x80495e1]
> ======= Memory map: ========
> 08048000-08051000 r-xp 00000000 08:06 43255066
> /aux/pc166a/bparise/app/smaMiriadBeta/miriad_cvs/bin/linux/smalod
> 08051000-08052000 r--p 00008000 08:06 43255066
> /aux/pc166a/bparise/app/smaMiriadBeta/miriad_cvs/bin/linux/smalod
> 08052000-08053000 rw-p 00009000 08:06 43255066
> /aux/pc166a/bparise/app/smaMiriadBeta/miriad_cvs/bin/linux/smalod
> 08053000-0ed69000 rw-p 00000000 00:00 0
> 101ab000-11bc1000 rw-p 00000000 00:00 0
> [heap]
> 55555000-55571000 r-xp 00000000 08:05 813892
> /lib32/ld-2.11.1.so
> 55571000-55572000 r--p 0001b000 08:05 813892
> /lib32/ld-2.11.1.so
> 55572000-55573000 rw-p 0001c000 08:05 813892
> /lib32/ld-2.11.1.so
> 55573000-55574000 r-xp 00000000 00:00 0
> [vdso]
> 55574000-55576000 rw-p 00000000 00:00 0
> 55576000-5568f000 r-xp 00000000 08:06 43255513
> /aux/pc166a/bparise/app/smaMiriadBeta/miriad_cvs/lib/linux/libmir.so
> 5568f000-55697000 rw-p 00118000 08:06 43255513
> /aux/pc166a/bparise/app/smaMiriadBeta/miriad_cvs/lib/linux/libmir.so
> 55697000-5d890000 rw-p 00000000 00:00 0
> 5d890000-5d8cf000 r-xp 00000000 08:06 43255515
> /aux/pc166a/bparise/app/smaMiriadBeta/miriad_cvs/lib/linux/libpgplot.so
> 5d8cf000-5d8d0000 r--p 0003e000 08:06 43255515
> /aux/pc166a/bparise/app/smaMiriadBeta/miriad_cvs/lib/linux/libpgplot.so
> 5d8d0000-5d8d1000 rw-p 0003f000 08:06 43255515
> /aux/pc166a/bparise/app/smaMiriadBeta/miriad_cvs/lib/linux/libpgplot.so
> 5d8d1000-5d929000 rw-p 00000000 00:00 0
> 5d92b000-5da44000 r-xp 00000000 08:05 1467504
> /usr/lib32/libX11.so.6.3.0
> 5da44000-5da45000 r--p 00118000 08:05 1467504
> /usr/lib32/libX11.so.6.3.0
> 5da45000-5da47000 rw-p 00119000 08:05 1467504
> /usr/lib32/libX11.so.6.3.0
> 5da47000-5da48000 rw-p 00000000 00:00 0
> 5da48000-5db0d000 r-xp 00000000 08:05 1455040
> /usr/lib32/libgfortran.so.3.0.0
> 5db0d000-5db0e000 r--p 000c4000 08:05 1455040
> /usr/lib32/libgfortran.so.3.0.0
> 5db0e000-5db0f000 rw-p 000c5000 08:05 1455040
> /usr/lib32/libgfortran.so.3.0.0
> 5db0f000-5db10000 rw-p 00000000 00:00 0
> 5db10000-5db34000 r-xp 00000000 08:05 784903
> /lib32/libm-2.11.1.so
> 5db34000-5db35000 r--p 00023000 08:05 784903
> /lib32/libm-2.11.1.so
> 5db35000-5db36000 rw-p 00024000 08:05 784903
> /lib32/libm-2.11.1.so
> 5db36000-5db53000 r-xp 00000000 08:05 1440123
> /usr/lib32/libgcc_s.so.1
> 5db53000-5db54000 r--p 0001c000 08:05 1440123
> /usr/lib32/libgcc_s.so.1
> 5db54000-5db55000 rw-p 0001d000 08:05 1440123
> /usr/lib32/libgcc_s.so.1
> 5db55000-5db56000 rw-p 00000000 00:00 0
> 5db56000-5dca9000 r-xp 00000000 08:05 813907
> /lib32/libc-2.11.1.so
> 5dca9000-5dcab000 r--p 00153000 08:05 813907
> /lib32/libc-2.11.1.so
> 5dcab000-5dcac000 rw-p 00155000 08:05 813907
> /lib32/libc-2.11.1.so
> 5dcac000-5dcaf000 rw-p 00000000 00:00 0
> /usr/lib32/libxcb.so.1.1.0
> 5dcc7000-5dcc8000 r--p 00017000 08:05 1467740
> /usr/lib32/libxcb.so.1.1.0
> 5dcc8000-5dcc9000 rw-p 00018000 08:05 1467740
> /usr/lib32/libxcb.so.1.1.0
> 5dcc9000-5dccb000 r-xp 00000000 08:05 813911
> /lib32/libdl-2.11.1.so
> 5dccb000-5dccc000 r--p 00001000 08:05 813911
> /lib32/libdl-2.11.1.so
> 5dccc000-5dccd000 rw-p 00002000 08:05 813911
> /lib32/libdl-2.11.1.so
> 5dccd000-5dccf000 r-xp 00000000 08:05 1467618
> /usr/lib32/libXau.so.6.0.0
> 5dccf000-5dcd0000 r--p 00001000 08:05 1467618
> /usr/lib32/libXau.so.6.0.0
> 5dcd0000-5dcd1000 rw-p 00002000 08:05 1467618
> /usr/lib32/libXau.so.6.0.0
> 5dcd1000-5dcd5000 r-xp 00000000 08:05 1469394
> /usr/lib32/libXdmcp.so.6.0.0Abort
>