from:	Zhao, Jun-Hui 
to:	"Petitpas, Glen" 
cc:	"" 
date:	Mon, Oct 30, 2017 at 5:41 PM
subject:	Re: SMA MIRIAD Bug Report
  I have been working on 170923_11:03:17 used in your bugReport (9/27) and its corresponding Miriad converted data sets with
SMALOD. Finally, I appear to understand the issues after several trials. Please find attached log files reported from Miriad program
UVINDEX for both sideband data. There appears two issues:

1) Miriad treats a data string from two RX as a data string with two separated frequency configurations, see the lines
between 1164 and 1178 in the two log files. Not all the Miriad routines seem to understand the dual frequency configurations;
For further reduction in Miriad, one needs to use the relevant existing programs that understand the dual frequency configured data,
such as UVINDEX, UVCAT and etc.  I would suggest to use UVCAT to separate dual frequency configurations
into single one first; then the routines in your pipeline script can work.

2) options=flagch0 in SMALOD has not coded in for this specific mode, thus the pseudo continuum or CH0 produced from
online software is flagged. Before this options to be implemented in next updated version, one can use
UVFLAG with flagval=unflag to get the CH0 data back or use UVAVER to make your own chunk-based continuum with
the single frequency configured dataset.

2 Attachments:

On Tue, Sep 26, 2017 at 10:41 AM,  wrote:

    Below is the result of the form submission.  It was submitted by
     ( on Tuesday, September 26, 2017 at 10:41:42

    Logging to SMAMBugRpt

    Bug Tracking No          57

    User_Name: Glen Petitpas

    Report_Type: Bug

    Severity: Critical

    Priority: Medium

    Linux: RedHat


    Linux_Ver: Linux hilodr3 2.6.32-696.3.2.el6.x86_64 1 SMP Wed Jun 7 11:51:39 EDT 2017 x86_64 x86_64 x86_64 GNU/Linux


    Hardware: hilodr3

    Occured_When: Task

    Occured_Notes: SmaFix: version 1.16 14-Jan-2016

    SmaUvPlt: version 2.3 22-Sept-2015

    Description: smafix gives an error about inconsistent dimensions.

    smauvplt seg faults for all plot attempts.

    Terminal: hilodr3:gpetitpaquickLook 765 % source /sma/local/miriad_WB/automiriad.csh

    hilodr3:gpetitpaquickLook 766 % smalod in=/sma/data/science/mir_data/170923_11:03:17 out=170923_11:03:17_rxl.lsb  rxif=-1 sideband=0 nscans=2 options=flagch0

    hilodr3:gpetitpaquickLook 769 % smafix vis=170923_11:03:17_rxl.lsb out=170923_11:03:17_rxl.lsb.tsys options=tsyscorr log=junk.log
    SmaFix: version 1.16 14-Jan-2016
     Fatal Error smafix:  Inconsisten dimension info for var: systemp

    hilodr3:gpetitpaquickLook 771 % smauvplt vis=170923_11:03:17_rxl.lsb axis=time,ampl device=1/xs nxy=2,2 dotsize=6
    SmaUvPlt: version 2.3 22-Sept-2015
    Will plot unflagged data
    File  1  = 170923_11:03:17_rxl.lsb
    217.4947 GHz
    Segmentation fault (core dumped)