AIPS version = /home/auto/aips/31DEC06/LINUX/SYSTEM/VLA_PIPE/aips Prep version = Nov 2 07:07 /home/hamal/vlbacald/bin/AVLAPREP.001 Pipe version = Nov 3 12:51 /home/hamal/vlbacald/bin/AVLAPIPE.001 Post version = Nov 2 07:08 /home/hamal/vlbacald/bin/AVLAPOST.001 /home/hamal/vlbacald/run/BG086C_2000MAY17_1.0.run started on Wed Nov 15 15:57:47 MST 2006 ------------- Pops Prior Date Time Task Messages for user18412 1 0 15-NOV-2006 15:57:48 AIPS version'ABIN' 1 0 15-NOV-2006 15:57:48 AIPS run avlaprep 1 2 15-NOV-2006 15:57:48 AIPS Found in Version=ABIN 1 2 15-NOV-2006 15:57:48 AIPS $ Lorant Sjouwerman, versions 1.. 2005, for NRAO 1 2 15-NOV-2006 15:57:48 AIPS 1 2 15-NOV-2006 15:57:48 AIPS $$ General naming utilities - default to data disk 1 (safest of all) 1 2 15-NOV-2006 15:57:48 AIPS procedure pipedef1 1 2 15-NOV-2006 15:57:48 AIPS string*12 pnam 1 2 15-NOV-2006 15:57:48 AIPS string*6 pcls 1 2 15-NOV-2006 15:57:48 AIPS scalar pseq,pdsk 1 2 15-NOV-2006 15:57:48 AIPS pdsk=1 1 2 15-NOV-2006 15:57:48 AIPS finish 1 2 15-NOV-2006 15:57:48 AIPS pipedef1 1 2 15-NOV-2006 15:57:48 AIPS procedure namepipe 1 2 15-NOV-2006 15:57:48 AIPS pnam=inname;pcls=inclass;pseq=inseq;indisk=pdsk 1 2 15-NOV-2006 15:57:48 AIPS finish 1 2 15-NOV-2006 15:57:48 AIPS procedure pipename 1 2 15-NOV-2006 15:57:48 AIPS inname=pnam;inclass=pcls;inseq=pseq;indisk=pdsk 1 2 15-NOV-2006 15:57:48 AIPS finish 1 2 15-NOV-2006 15:57:48 AIPS 1 2 15-NOV-2006 15:57:48 AIPS procedure checkcat 1 2 15-NOV-2006 15:57:48 AIPS $LOS - count and make sure catalog starts at one (and not more than 10 files) 1 2 15-NOV-2006 15:57:48 AIPS scalar numcat 1 2 15-NOV-2006 15:57:48 AIPS clrname;indisk=pdsk;chkname;numcat=1-error 1 2 15-NOV-2006 15:57:48 AIPS $ for later: find out how to deal with CH0/LINE data in MOVE 1 2 15-NOV-2006 15:57:48 AIPS if(numcat>0)then;recat;end;clrtemp 1 2 15-NOV-2006 15:57:48 AIPS return numcat 1 2 15-NOV-2006 15:57:48 AIPS finish 1 2 15-NOV-2006 15:57:48 AIPS 1 2 15-NOV-2006 15:57:48 AIPS procedure gx 1 2 15-NOV-2006 15:57:48 AIPS $ inputs 1 2 15-NOV-2006 15:57:48 AIPS go;wait 1 2 15-NOV-2006 15:57:48 AIPS finish 1 2 15-NOV-2006 15:57:48 AIPS 1 2 15-NOV-2006 15:57:48 AIPS procedure pre_fillm 1 2 15-NOV-2006 15:57:48 AIPS $LOS - sets VLA archive defaults for fillm 1 2 15-NOV-2006 15:57:48 AIPS default fillm;outdisk=pdsk;doall=1;douvcomp=-1;cparm(8)=0.05;bparm(10)=0.75 1 2 15-NOV-2006 15:57:48 AIPS finish 1 2 15-NOV-2006 15:57:48 AIPS 1 2 15-NOV-2006 15:57:48 AIPS procedure fname 1 2 15-NOV-2006 15:57:48 AIPS return inname!!'.'!!inclass!!'.'!!char(inseq) 1 2 15-NOV-2006 15:57:48 AIPS finish 1 2 15-NOV-2006 15:57:48 AIPS 1 2 15-NOV-2006 15:57:48 AIPS procedure del 1 2 15-NOV-2006 15:57:48 AIPS error=1;zap 1 2 15-NOV-2006 15:57:48 AIPS finish 1 2 15-NOV-2006 15:57:48 AIPS 1 2 15-NOV-2006 15:57:48 AIPS procedure skipdata 1 2 15-NOV-2006 15:57:48 AIPS $LOS - delete unwanted data sets - currently all but continuum X and C bands 1 2 15-NOV-2006 15:57:48 AIPS $ if(inclass='LINE')then;del;inclass'CH 0';del;type'ZAP LINE :'fname;end 1 2 15-NOV-2006 15:57:48 AIPS if((inclass='CH 0')!(inclass='LINE'))then;del;type'ZAP LINE :'fname;end 1 2 15-NOV-2006 15:57:48 AIPS if(inclass='4 BAND')then;del;type'ZAP 4-BAND :'fname;end 1 2 15-NOV-2006 15:57:48 AIPS if(inclass='P BAND')then;del;type'ZAP P-BAND :'fname;end 1 2 15-NOV-2006 15:57:48 AIPS $ if(inclass='L BAND')then;del;type'ZAP L-BAND :'fname;end 1 2 15-NOV-2006 15:57:48 AIPS $ if(inclass='U BAND')then;del;type'ZAP U-BAND :'fname;end 1 2 15-NOV-2006 15:57:48 AIPS $ if(inclass='K BAND')then;del;type'ZAP K-BAND :'fname;end 1 2 15-NOV-2006 15:57:48 AIPS $ if(inclass='Q BAND')then;del;type'ZAP Q-BAND :'fname;end;clrtemp 1 2 15-NOV-2006 15:57:48 AIPS if(error<1)then $ file not zapped, check for single dish vlbi; #vis=0 1 2 15-NOV-2006 15:57:48 AIPS task'TABGET';userid 0;inext'NX';invers=0;keyvalue=0;keystrng'' 1 2 15-NOV-2006 15:57:48 AIPS keyword'NUM ROW';getthead;pixxy=keyvalue(1),6,0;tabget;clrtemp 1 2 15-NOV-2006 15:57:48 AIPS if(keyvalue(1)=0)then;del;type'ZAP S-DISH :'fname;end 1 2 15-NOV-2006 15:57:48 AIPS end 1 2 15-NOV-2006 15:57:48 AIPS $also zap if solar/planetary/pulsar mode - su table proper motion?? 1 2 15-NOV-2006 15:57:48 AIPS $ and what about PT-link? antenna VPT is not OUT, later also EVLA names 1 2 15-NOV-2006 15:57:48 AIPS finish 1 2 15-NOV-2006 15:57:48 AIPS 1 2 15-NOV-2006 15:57:48 AIPS procedure checkids 1 2 15-NOV-2006 15:57:48 AIPS $LOS - account for fast switching source names - check on pos, qual, calco 1 2 15-NOV-2006 15:57:48 AIPS scalar ra1a,ra1b,ra2a,ra2b,dc1a,dc1b,dc2a,dc2b,n,m,l,idx 1 2 15-NOV-2006 15:57:48 AIPS scalar q1,q2 1 2 15-NOV-2006 15:57:48 AIPS string*1 co1,co2 1 2 15-NOV-2006 15:57:48 AIPS string*16 n1,n2 1 2 15-NOV-2006 15:57:48 AIPS array alist(100),blist(100) 1 2 15-NOV-2006 15:57:48 AIPS inext'SU';invers 0;keyword'NUM ROW';keyvalue 0;keystrng'';getthead 1 2 15-NOV-2006 15:57:48 AIPS n=keyvalue(1);idx=1;aparm 0;bparm 0;alist 0;blist 0 1 2 15-NOV-2006 15:57:48 AIPS if (n > 1) then 1 2 15-NOV-2006 15:57:48 AIPS for m=1:(n-1);clrtemp 1 2 15-NOV-2006 15:57:48 AIPS pixxy m,11;tabget;ra1a keyvalue(1);ra1b keyvalue(2) 1 2 15-NOV-2006 15:57:48 AIPS for l=(m+1):n;clrtemp 1 2 15-NOV-2006 15:57:48 AIPS pixxy l,11;tabget;ra2a keyvalue(1);ra2b keyvalue(2) 1 2 15-NOV-2006 15:57:48 AIPS if (abs(ra1a-ra2a)=0) then 1 2 15-NOV-2006 15:57:48 AIPS if ( abs((ra1b-ra2b)*3600*1000) < 3 ) then $ RA within 3 mas! 1 2 15-NOV-2006 15:57:48 AIPS pixxy m,12;tabget;dc1a keyvalue(1);dc1b keyvalue(2) 1 2 15-NOV-2006 15:57:48 AIPS pixxy l,12;tabget;dc2a keyvalue(1);dc2b keyvalue(2) 1 2 15-NOV-2006 15:57:48 AIPS if (abs(dc1a-dc2a)=0) then 1 2 15-NOV-2006 15:57:48 AIPS if ( abs((dc1b-dc2b)*3600*1000) < 3 ) then $ DC within 3 mas! 1 2 15-NOV-2006 15:57:48 AIPS pixxy m,3;tabget;q1 keyvalue(1);pixxy l,3;tabget;q2 keyvalue(1) 1 2 15-NOV-2006 15:57:48 AIPS if (q1=q2) then $ same qualifier; same calcode? 1 2 15-NOV-2006 15:57:48 AIPS pixxy m,4;tabget;co1 keystrng;pixxy l,4;tabget;co2 keystrng 1 2 15-NOV-2006 15:57:48 AIPS if (co1=co2) then 1 2 15-NOV-2006 15:57:48 AIPS pixxy m,1;tabget;q1 keyvalue(1) 1 2 15-NOV-2006 15:57:48 AIPS pixxy l,1;tabget;q2 keyvalue(1) 1 2 15-NOV-2006 15:57:48 AIPS pixxy m,2;tabget;n1 keystrng;pixxy l,2;tabget;n2 keystrng 1 2 15-NOV-2006 15:57:48 AIPS if (idx>100) then; 1 2 15-NOV-2006 15:57:48 AIPS type 'TOO MANY SOURCES TO DO DSORC - DO BY HAND!' 1 2 15-NOV-2006 15:57:48 AIPS type 'NEXT =.'!!char(idx)!!' DO:'!!char(l)!!'.&.'!!char(m) 1 2 15-NOV-2006 15:57:48 AIPS else 1 2 15-NOV-2006 15:57:48 AIPS if (length(n1)1) then;task'DSORC';n=0 1 2 15-NOV-2006 15:57:48 AIPS outname inname;outclass inclass;outseq inseq;outdisk indisk 1 2 15-NOV-2006 15:57:48 AIPS while (n100)then;type'TOO MANY SOURCES FOR DSORC';error 1;end;clrtemp 1 2 15-NOV-2006 15:57:48 AIPS end 1 2 15-NOV-2006 15:57:48 AIPS finish 1 2 15-NOV-2006 15:57:48 AIPS 1 2 15-NOV-2006 15:57:48 AIPS procedure checkcal 1 2 15-NOV-2006 15:57:48 AIPS $LOS Currently (Sep 22, 2005) can/will do 3C286 and 3C48 at X and C 1 2 15-NOV-2006 15:57:48 AIPS $LOS (and for now skip 3C286/3C48/3C138/3C147 Q,K,U and 3C48 L) 1 2 15-NOV-2006 15:57:48 AIPS scalar idx,jdx 1 2 15-NOV-2006 15:57:48 AIPS string*16 sname 1 2 15-NOV-2006 15:57:48 AIPS task'TABGET';userid 0;inext'SU';invers=0;keyvalue=0;keystrng'';error=1 1 2 15-NOV-2006 15:57:48 AIPS keyword'NUM ROW';getthead;idx=keyvalue(1);clrtemp 1 2 15-NOV-2006 15:57:48 AIPS for jdx=1:idx 1 2 15-NOV-2006 15:57:48 AIPS pixxy=jdx,2,0;tabget;sname=substr(keystrng,1,length(keystrng)) 1 2 15-NOV-2006 15:57:48 AIPS if(sname='3C286')then;error=-1;jdx=idx+1;end 1 2 15-NOV-2006 15:57:48 AIPS if(sname='3C48')then;error=-1;jdx=idx+1;end 1 2 15-NOV-2006 15:57:48 AIPS if(sname='3C138')then;error=-1;jdx=idx+1;end 1 2 15-NOV-2006 15:57:48 AIPS if(sname='3C147')then;error=-1;jdx=idx+1;end 1 2 15-NOV-2006 15:57:48 AIPS if(sname='3C295')then;error=-1;jdx=idx+1;end 1 2 15-NOV-2006 15:57:48 AIPS if(error>0)then $ try B1950 name 1 2 15-NOV-2006 15:57:48 AIPS if(sname='1328+307')then;error=-1;jdx=idx+1;end 1 2 15-NOV-2006 15:57:48 AIPS if(sname='0134+329')then;error=-1;jdx=idx+1;end 1 2 15-NOV-2006 15:57:48 AIPS if(sname='0518+165')then;error=-1;jdx=idx+1;end 1 2 15-NOV-2006 15:57:48 AIPS if(sname='0538+498')then;error=-1;jdx=idx+1;end 1 2 15-NOV-2006 15:57:48 AIPS if(sname='1409+524')then;error=-1;jdx=idx+1;end 1 2 15-NOV-2006 15:57:48 AIPS if(error>0)then $ try J2000 1 2 15-NOV-2006 15:57:48 AIPS if(sname='1331+305')then;error=-1;jdx=idx+1;end 1 2 15-NOV-2006 15:57:48 AIPS if(sname='0137+331')then;error=-1;jdx=idx+1;end 1 2 15-NOV-2006 15:57:48 AIPS if(sname='0521+166')then;error=-1;jdx=idx+1;end 1 2 15-NOV-2006 15:57:48 AIPS if(sname='0542+498')then;error=-1;jdx=idx+1;end 1 2 15-NOV-2006 15:57:48 AIPS if(sname='1411+522')then;error=-1;jdx=idx+1;end 1 2 15-NOV-2006 15:57:48 AIPS if(error>0)then $ try J2000 name 1 2 15-NOV-2006 15:57:48 AIPS if(sname='J1331+3030')then;error=-1;jdx=idx+1;end 1 2 15-NOV-2006 15:57:48 AIPS if(sname='J0137+3309')then;error=-1;jdx=idx+1;end 1 2 15-NOV-2006 15:57:48 AIPS if(sname='J0521+1638')then;error=-1;jdx=idx+1;end 1 2 15-NOV-2006 15:57:48 AIPS if(sname='J0542+4951')then;error=-1;jdx=idx+1;end 1 2 15-NOV-2006 15:57:48 AIPS if(sname='J1411+5212')then;error=-1;jdx=idx+1;end 1 2 15-NOV-2006 15:57:48 AIPS end;end;end;clrtemp 1 2 15-NOV-2006 15:57:48 AIPS end 1 2 15-NOV-2006 15:57:48 AIPS $ if error>0 check on coords (for different name than standard) 1 2 15-NOV-2006 15:57:48 AIPS $ but keyval not reliable to do this.. ?? 1 2 15-NOV-2006 15:57:48 AIPS $ end 1 2 15-NOV-2006 15:57:48 AIPS if(error>0)then;del;type'ZAP - NO STD CAL SRC FOR :'fname;error=1 1 2 15-NOV-2006 15:57:48 AIPS else;checkids;error=-1;end;clrtemp 1 2 15-NOV-2006 15:57:48 AIPS finish 1 2 15-NOV-2006 15:57:48 AIPS 1 2 15-NOV-2006 15:57:48 AIPS procedure j2000fix 1 2 15-NOV-2006 15:57:48 AIPS $LOS - convert data to J2000 by default use of uvfix 1 2 15-NOV-2006 15:57:48 AIPS task'UVFIX';outname=inname;outclass=inclass;outseq=inseq;outdisk=indisk 1 2 15-NOV-2006 15:57:48 AIPS shift=0;uvfixprm=0;tput uvfix;outclass'PREFIX';rename 1 2 15-NOV-2006 15:57:48 AIPS tget uvfix;inclass'PREFIX';gx;zap;inclass=outclass;clrtemp 1 2 15-NOV-2006 15:57:48 AIPS finish 1 2 15-NOV-2006 15:57:48 AIPS 1 2 15-NOV-2006 15:57:48 AIPS procedure datachks 1 2 15-NOV-2006 15:57:48 AIPS $LOS - delete unwanted data sets, check for standard calibrators and make J2000 1 2 15-NOV-2006 15:57:48 AIPS if(error<1)then $ file exists 1 2 15-NOV-2006 15:57:48 AIPS skipdata;if(error<1)then $ file was not zapped 1 2 15-NOV-2006 15:57:48 AIPS checkcal;if(error<1)then $ file has standard calibrator in it 1 2 15-NOV-2006 15:57:48 AIPS j2000fix 1 2 15-NOV-2006 15:57:48 AIPS $ addcalco 1 2 15-NOV-2006 15:57:48 AIPS end;end;end;clrtemp 1 2 15-NOV-2006 15:57:48 AIPS finish 1 2 15-NOV-2006 15:57:48 AIPS 1 2 15-NOV-2006 15:57:48 AIPS procedure freqchks 1 2 15-NOV-2006 15:57:48 AIPS $LOS - split up in frequency IDs, run INDXR, and remove 1 2 15-NOV-2006 15:57:48 AIPS scalar rows, nfrq 1 2 15-NOV-2006 15:57:48 AIPS if(error<1)then $ file exists 1 2 15-NOV-2006 15:57:48 AIPS inext'FQ';invers=1;keyword='NUM ROW';getthead;nfrq=keyvalue(1) 1 2 15-NOV-2006 15:57:48 AIPS if (nfrq > 1) then 1 2 15-NOV-2006 15:57:48 AIPS if (nfrq > 9) then;type' WARNING! MORE THAN 9 FREQUENCY ID-S!';end 1 2 15-NOV-2006 15:57:48 AIPS tput getthead;default'UVCOP';tget getthead;keyword='';task'UVCOP';tput 1 2 15-NOV-2006 15:57:48 AIPS for rows=1:nfrq 1 2 15-NOV-2006 15:57:48 AIPS pixxy=rows,1,1;inver=1;inext='FQ';tabget;tget;freqid=keyvalue(1) 1 2 15-NOV-2006 15:57:48 AIPS outclass=substr(inclass,1,1)!!substr(inclass,3,6)!!char(freqid) 1 2 15-NOV-2006 15:57:48 AIPS type'COPYING FREQUENCY ID #'!!char(freqid);gx 1 2 15-NOV-2006 15:57:48 AIPS default'INDXR';tget uvcop;task'INDXR';inclass outclass;gx;task'DQUAL' 1 2 15-NOV-2006 15:57:48 AIPS $out not in! ** outname=inname;outclass=inclass;outseq=inseq;outdisk=indisk;gx 1 2 15-NOV-2006 15:57:48 AIPS tget uvcop;freqid=1;clrtemp 1 2 15-NOV-2006 15:57:48 AIPS end;end;end;if(nfrq>1)then;type fname!!' SPLIT IN :'!!char(nfrq);zap;end 1 2 15-NOV-2006 15:57:48 AIPS finish 1 2 15-NOV-2006 15:57:48 AIPS 1 2 15-NOV-2006 15:57:48 AIPS procedure pre_move 1 2 15-NOV-2006 15:57:48 AIPS $LOS - moves file to another AIPS user number 1 2 15-NOV-2006 15:57:48 AIPS default move;indisk=pdsk;outseq=-1;opcode'MOVE';clrtemp 1 2 15-NOV-2006 15:57:48 AIPS finish 1 2 15-NOV-2006 15:57:48 AIPS 1 2 15-NOV-2006 15:57:48 AIPS procedure expid 1 2 15-NOV-2006 15:57:48 AIPS string*20 expnm 1 2 15-NOV-2006 15:57:48 AIPS string*75 expmsg 1 2 15-NOV-2006 15:57:48 AIPS return expnm 1 2 15-NOV-2006 15:57:48 AIPS finish 1 2 15-NOV-2006 15:57:48 AIPS type expid 1 5 15-NOV-2006 15:57:48 AIPS ' ' 1 0 15-NOV-2006 15:57:48 AIPS run avlapipe 1 2 15-NOV-2006 15:57:48 AIPS Found in Version=ABIN 1 2 15-NOV-2006 15:57:48 AIPS $ 1 2 15-NOV-2006 15:57:48 AIPS $ Ver 1.0 : Copy of private Ver 3.0 of VLARUN (public version is 2.5): 1 2 15-NOV-2006 15:57:48 AIPS $ was 3.0 : Add PLVER (in goplt) for plot files and to include TASAV (12MAY04) 1 2 15-NOV-2006 15:57:48 AIPS $ Repositioned inseq=0 to safeguard to SU-tab confusion (12NOV04) 1 2 15-NOV-2006 15:57:48 AIPS $ Rearanged inputs and options, added integration time calculation, 1 2 15-NOV-2006 15:57:48 AIPS $ QUACK, selective plotting, INNAME vs DOCAT, alternative flux cal, 1 2 15-NOV-2006 15:57:48 AIPS $ selective imaging, SCIMG for targets, use model in CALIB, find VLA 1 2 15-NOV-2006 15:57:48 AIPS $ array, use model,.. 1 2 15-NOV-2006 15:57:48 AIPS $ 1 2 15-NOV-2006 15:57:48 AIPS $Next vers add polarization calibration, SCIMG->SCIMG? 1 2 15-NOV-2006 15:57:48 AIPS $ find imsize, find cutoffflux, include infile 1 2 15-NOV-2006 15:57:48 AIPS $--------------------------------------------------------------- 1 2 15-NOV-2006 15:57:48 AIPS $0000000011111111112222222222333333333344444444445555555555666666666677777777778 1 2 15-NOV-2006 15:57:48 AIPS $2345678901234567890123456789012345678901234567890123456789012345678901234567890 1 2 15-NOV-2006 15:57:48 AIPS $=============================================== 1 2 15-NOV-2006 15:57:48 AIPS $! Calibrating amplitude and phase, and imaging VLA data 1 2 15-NOV-2006 15:57:48 AIPS $# RUN POPS VLA UTILITY CALIBRATION IMAGING 1 2 15-NOV-2006 15:57:48 AIPS $--------------------------------------------------------------- 1 2 15-NOV-2006 15:57:48 AIPS $; Copyright (C) 2002-2006 1 2 15-NOV-2006 15:57:48 AIPS $; Associated Universities, Inc. Washington DC, USA. 1 2 15-NOV-2006 15:57:48 AIPS $; 1 2 15-NOV-2006 15:57:48 AIPS $; This program is free software; you can redistribute it and/or 1 2 15-NOV-2006 15:57:48 AIPS $; modify it under the terms of the GNU General Public License as 1 2 15-NOV-2006 15:57:48 AIPS $; published by the Free Software Foundation; either version 2 of 1 2 15-NOV-2006 15:57:48 AIPS $; the License, or (at your option) any later version. 1 2 15-NOV-2006 15:57:48 AIPS $; 1 2 15-NOV-2006 15:57:48 AIPS $; This program is distributed in the hope that it will be useful, 1 2 15-NOV-2006 15:57:48 AIPS $; but WITHOUT ANY WARRANTY; without even the implied warranty of 1 2 15-NOV-2006 15:57:48 AIPS $; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1 2 15-NOV-2006 15:57:48 AIPS $; GNU General Public License for more details. 1 2 15-NOV-2006 15:57:48 AIPS $; 1 2 15-NOV-2006 15:57:48 AIPS $; You should have received a copy of the GNU General Public 1 2 15-NOV-2006 15:57:48 AIPS $; License along with this program; if not, write to the Free 1 2 15-NOV-2006 15:57:48 AIPS $; Software Foundation, Inc., 675 Massachusetts Ave, Cambridge, 1 2 15-NOV-2006 15:57:48 AIPS $; MA 02139, USA. 1 2 15-NOV-2006 15:57:48 AIPS $; 1 2 15-NOV-2006 15:57:48 AIPS $; Correspondence concerning AIPS should be addressed as follows: 1 2 15-NOV-2006 15:57:48 AIPS $; Internet email: aipsmail@nrao.edu. 1 2 15-NOV-2006 15:57:48 AIPS $; Postal address: AIPS Project Office 1 2 15-NOV-2006 15:57:48 AIPS $; National Radio Astronomy Observatory 1 2 15-NOV-2006 15:57:48 AIPS $; 520 Edgemont Road 1 2 15-NOV-2006 15:57:48 AIPS $; Charlottesville, VA 22903-2475 USA 1 2 15-NOV-2006 15:57:48 AIPS $--------------------------------------------------------------- 1 2 15-NOV-2006 15:57:48 AIPS $=============================================================== 1 2 15-NOV-2006 15:57:48 AIPS 1 2 15-NOV-2006 15:57:48 AIPS procedure pipeinit 1 2 15-NOV-2006 15:57:48 AIPS scalar lsdisk,lsname,lsrant,lscont,lserr,lsplot,lsflag,k,lsflux,lstarg,lsmodl 1 2 15-NOV-2006 15:57:48 AIPS scalar lsids,star,tint,fsw,kj 1 2 15-NOV-2006 15:57:48 AIPS string*2 lstyp 1 2 15-NOV-2006 15:57:48 AIPS string*3 lsvla 1 2 15-NOV-2006 15:57:48 AIPS string*6 lsidc,lsstrng 1 2 15-NOV-2006 15:57:48 AIPS string*16 lsidn,lscal 1 2 15-NOV-2006 15:57:48 AIPS string*16 lsampcal(20),lsbndcal(5),lsphacal(20),lspntcal(25),lsallcal(30), 1 2 15-NOV-2006 15:57:48 AIPS array lsbadd(10),lsparm(16),lssid(1000) $ D=1,C=3.3,B=10.8,A=35.4,PT=73 1 2 15-NOV-2006 15:57:48 AIPS finish 1 2 15-NOV-2006 15:57:48 AIPS pipeinit 1 2 15-NOV-2006 15:57:48 AIPS 1 2 15-NOV-2006 15:57:48 AIPS procedure pipeinpt 1 2 15-NOV-2006 15:57:48 AIPS lsampcal '3C48', '0134+329','0137+331','J0137+3309' 1 2 15-NOV-2006 15:57:48 AIPS lsampcal(5)~ '3C138','0518+165','0521+166','J0521+1638' 1 2 15-NOV-2006 15:57:48 AIPS lsampcal(9)~ '3C147','0538+498','0542+498','J0542+4951' 1 2 15-NOV-2006 15:57:48 AIPS lsampcal(13)~'3C286','1328+307','1331+305','J1331+3030' 1 2 15-NOV-2006 15:57:48 AIPS lsampcal(17)~'3C295','1409+524','1411+522','J1411+5212' 1 2 15-NOV-2006 15:57:48 AIPS lserr=0;lsbadd=baddisk;lsdisk=indisk;lsname=docat 1 2 15-NOV-2006 15:57:48 AIPS lsidn=inname;lsidc=inclass;lsids=inseq;lstyp'UV';fsw=doalign;lsflag=flagver 1 2 15-NOV-2006 15:57:48 AIPS lsparm(2)=solint;lsparm(13)=factor;lsrant=refant;lsmodl=domodel 1 2 15-NOV-2006 15:57:48 AIPS lscal=keystrng;lsflux=flux;lsparm(3)=uvrange(1);lsparm(4)=uvrange(2) 1 2 15-NOV-2006 15:57:48 AIPS for k=1:20;lsphacal(k)=sources(k);end;for k=1:5;lsbndcal(k)=calsour(k);end 1 2 15-NOV-2006 15:57:48 AIPS lsparm(11)=dopol;lsparm(12)=bpa;lscont=docont;lsplot=plver;lsparm(1)=doall 1 2 15-NOV-2006 15:57:48 AIPS lsparm(5)=doarray;lsparm(6)=imsize(1);lsparm(7)=niter;lsparm(8)=cutoff 1 2 15-NOV-2006 15:57:48 AIPS lsparm(9)=docal;lsparm(10)=doresid 1 2 15-NOV-2006 15:57:48 AIPS $ check input values 1 2 15-NOV-2006 15:57:48 AIPS $->lsbadd 1 2 15-NOV-2006 15:57:48 AIPS if (lsdisk<=0) then;lserr=1;type'SPECIFY THE INDISK';end 1 2 15-NOV-2006 15:57:48 AIPS if(lsname<=0)then;inname=lsidn;inclass=lsidc;inseq=lsids;intype=lstyp;chkname 1 2 15-NOV-2006 15:57:48 AIPS if (error<>0) then 1 2 15-NOV-2006 15:57:48 AIPS lserr=2; type 'SPECIFY INNAME, ETC, OR THE CATALOG NUMBER = DOCAT' 1 2 15-NOV-2006 15:57:48 AIPS else 1 2 15-NOV-2006 15:57:48 AIPS userid=0;k=1;lsname=0 1 2 15-NOV-2006 15:57:48 AIPS while (lsname=0);egetname k 1 2 15-NOV-2006 15:57:48 AIPS if (( (lsidn=inname)&(lsidc=inclass) )&(lsids=inseq)) then 1 2 15-NOV-2006 15:57:48 AIPS lsname=k;lsidn=inname;lsidc=inclass;lsids=inseq;lstyp=intype 1 2 15-NOV-2006 15:57:48 AIPS else;k=k+1;end;end;end;else 1 2 15-NOV-2006 15:57:48 AIPS if ( ((inname <> '')!(inclass <> '')) ! (inseq <> 0) ) then 1 2 15-NOV-2006 15:57:48 AIPS lserr=2; type 'DO NOT SPECIFY BOTH INNAME, ETC, AND VARIABLE DOCAT' 1 2 15-NOV-2006 15:57:48 AIPS else 1 2 15-NOV-2006 15:57:48 AIPS getname(lsname);lsidn=inname;lsidc=inclass;lsids=inseq;lstyp=intype 1 2 15-NOV-2006 15:57:48 AIPS end 1 2 15-NOV-2006 15:57:48 AIPS end 1 2 15-NOV-2006 15:57:48 AIPS 1 2 15-NOV-2006 15:57:48 AIPS $->inname 1 2 15-NOV-2006 15:57:48 AIPS $->inclass 1 2 15-NOV-2006 15:57:48 AIPS $->inseq 1 2 15-NOV-2006 15:57:48 AIPS $->fsw 1 2 15-NOV-2006 15:57:48 AIPS $->lsflag 1 2 15-NOV-2006 15:57:48 AIPS if (lsparm(2)<=0) then; lserr=3; type 'SPECIFY THE SOLUTION INTERVAL';end 1 2 15-NOV-2006 15:57:48 AIPS if (lsparm(13)<1)then;lsparm(13)=1;type'FACTOR<1 QUESTIONABLE, SET TO 1';end 1 2 15-NOV-2006 15:57:48 AIPS if (lsrant<=0)then;lsrant=0;type'AIPS WILL CHOOSE THE REFERENCE ANTENNA';end 1 2 15-NOV-2006 15:57:48 AIPS if ( (lsmodl>0) & (length(lscal)>0) ) then 1 2 15-NOV-2006 15:57:48 AIPS lserr=4;type 'CANNOT USE STANDARD SOURCE MODEL FOR ALTERNATIVE CALIBRATOR' 1 2 15-NOV-2006 15:57:48 AIPS end 1 2 15-NOV-2006 15:57:48 AIPS $->lscal 1 2 15-NOV-2006 15:57:48 AIPS if (length(lscal)<>0) then 1 2 15-NOV-2006 15:57:48 AIPS type 'USING NON-STANDARD AMPLITUDE CALIBRATOR, FLUX, UVRANGE :' 1 2 15-NOV-2006 15:57:48 AIPS type lscal, lsflux, lsparm(3), lsparm(4);lsampcal='';lsampcal(1)=lscal 1 2 15-NOV-2006 15:57:48 AIPS end 1 2 15-NOV-2006 15:57:48 AIPS 1 2 15-NOV-2006 15:57:48 AIPS $->lsflux 1 2 15-NOV-2006 15:57:48 AIPS $-> #3+#4 uvrange 1 2 15-NOV-2006 15:57:48 AIPS for i=1:20;for j=1:16;if(substr(lsphacal(i),j,j)='*')then;if (lserr<>7) then 1 2 15-NOV-2006 15:57:48 AIPS if((i=1)&(j=1))then;star=1;else; 1 2 15-NOV-2006 15:57:48 AIPS star=-1;lserr=7;type'ONLY USE * IN THE 1ST CHARACTER OF THE 1ST SOURCE' 1 2 15-NOV-2006 15:57:48 AIPS end;end;end;end;clrtemp;end 1 2 15-NOV-2006 15:57:48 AIPS if (lsname>0) then; indisk=lsdisk; getname(lsname); clrtemp 1 2 15-NOV-2006 15:57:48 AIPS if ( (inclass='CH 0') & (substr(lsbndcal(1),1,1) = ' ') ) then 1 2 15-NOV-2006 15:57:48 AIPS lserr=8;type 'SPECIFY THE BANDPASS CALIBRATOR = CALSOUR' 1 2 15-NOV-2006 15:57:48 AIPS end;end;clrtemp 1 2 15-NOV-2006 15:57:48 AIPS $-> #11 dopol 1 2 15-NOV-2006 15:57:48 AIPS $-> #12 bpa 1 2 15-NOV-2006 15:57:48 AIPS $->lscont 1 2 15-NOV-2006 15:57:48 AIPS $->lsplot 1 2 15-NOV-2006 15:57:48 AIPS if (lsparm(1) > 0) then 1 2 15-NOV-2006 15:57:48 AIPS if (lsparm(5)<0) then;type 'SETFC WILL DETERMINE THE CELL SIZE' 1 2 15-NOV-2006 15:57:48 AIPS else; 1 2 15-NOV-2006 15:57:48 AIPS if (lsparm(5)=0) then; 1 2 15-NOV-2006 15:57:48 AIPS keyword='TELESCOP';gethead; 1 2 15-NOV-2006 15:57:48 AIPS if (substr(keystrng,1,3)<>'VLA') then; 1 2 15-NOV-2006 15:57:48 AIPS lserr=5; type 'CANNOT DETERMINE ARRAY - THIS IS NOT THE VLA' 1 2 15-NOV-2006 15:57:48 AIPS else;keyword'NUM ROW';inext'AN';invers=0;getthead;k=keyvalue(1) 1 2 15-NOV-2006 15:57:48 AIPS for j=1:k 1 2 15-NOV-2006 15:57:48 AIPS pixxy=j,1,0;tabget;i=1;clrtemp 1 2 15-NOV-2006 15:57:48 AIPS while((substr(keystrng,i,i)<>':')&(i<9));i=i+1;end 1 2 15-NOV-2006 15:57:48 AIPS if (substr(keystrng,i+1,i+1)<>' ')then; 1 2 15-NOV-2006 15:57:48 AIPS lsvla=substr(keystrng,i+1,i+3);else 1 2 15-NOV-2006 15:57:48 AIPS lsvla=substr(keystrng,i+2,i+4);end 1 2 15-NOV-2006 15:57:48 AIPS if ((lsvla<>'OUT')&(lsvla<>'MPD'))then; 1 2 15-NOV-2006 15:57:48 AIPS if (lsvla='VPT')then;lsparm(5)=75;else 1 2 15-NOV-2006 15:57:48 AIPS if (substr(keystrng,i+1,i+1)<>' ')then; 1 2 15-NOV-2006 15:57:48 AIPS keyword=substr(keystrng,i+2,i+8);else 1 2 15-NOV-2006 15:57:48 AIPS keyword=substr(keystrng,i+3,i+9);end 1 2 15-NOV-2006 15:57:48 AIPS lsparm(5)=max(lsparm(5),value(keyword));clrtemp;end;end;end 1 2 15-NOV-2006 15:57:48 AIPS if (lsparm(5)<75) then;if (lsparm(5)>36) then;lsparm(5)=36;else 1 2 15-NOV-2006 15:57:48 AIPS if (lsparm(5)>18) then;lsparm(5)=11;else 1 2 15-NOV-2006 15:57:48 AIPS if(lsparm(5)>9)then;lsparm(5)=3.5;else;lsparm(5)=1;end;end;end;end 1 2 15-NOV-2006 15:57:48 AIPS end;if(lsparm(5)=0)then;lserr=5;type'WHAT ARRAY?! USE DOARRAY';else 1 2 15-NOV-2006 15:57:48 AIPS if(lsparm(5)>0)then 1 2 15-NOV-2006 15:57:48 AIPS type char(lsparm(5))!!' KILOMETERS WILL BE USED AS MAXIMUM BASELINE' 1 2 15-NOV-2006 15:57:48 AIPS end;end;end;end 1 2 15-NOV-2006 15:57:48 AIPS if (lsparm(6)>=0)then;if((lsparm(6)<128)!(imsize(2)<128))then 1 2 15-NOV-2006 15:57:48 AIPS lserr=6; type 'SPECIFY THE IMSIZE CORRECTLY (>127 OR <0)';end;end 1 2 15-NOV-2006 15:57:48 AIPS 1 2 15-NOV-2006 15:57:48 AIPS $-> #7 niter 1 2 15-NOV-2006 15:57:48 AIPS if (lsparm(7) < 0) then; lsparm(7) = 7e4; end 1 2 15-NOV-2006 15:57:48 AIPS $-> #8 cutoff 1 2 15-NOV-2006 15:57:48 AIPS $-> #9 docal 1 2 15-NOV-2006 15:57:48 AIPS $-> #10 doresid 1 2 15-NOV-2006 15:57:48 AIPS 1 2 15-NOV-2006 15:57:48 AIPS end 1 2 15-NOV-2006 15:57:48 AIPS finish 1 2 15-NOV-2006 15:57:48 AIPS 1 2 15-NOV-2006 15:57:48 AIPS procedure getidn 1 2 15-NOV-2006 15:57:48 AIPS indisk=lsdisk;inname=lsidn;inclass=lsidc;inseq=lsids;intype=lstyp 1 2 15-NOV-2006 15:57:48 AIPS finish 1 2 15-NOV-2006 15:57:48 AIPS 1 2 15-NOV-2006 15:57:48 AIPS procedure gx 1 2 15-NOV-2006 15:57:48 AIPS $ inputs 1 2 15-NOV-2006 15:57:48 AIPS go;wait 1 2 15-NOV-2006 15:57:48 AIPS finish 1 2 15-NOV-2006 15:57:48 AIPS 1 2 15-NOV-2006 15:57:48 AIPS procedure getset 1 2 15-NOV-2006 15:57:48 AIPS default;getidn;clrtemp 1 2 15-NOV-2006 15:57:48 AIPS finish 1 2 15-NOV-2006 15:57:48 AIPS 1 2 15-NOV-2006 15:57:48 AIPS procedure lsclrcal 1 2 15-NOV-2006 15:57:48 AIPS $ consolidate lists, deal with calcode='*' later 1 2 15-NOV-2006 15:57:48 AIPS scalar lsidx,l,m,n 1 2 15-NOV-2006 15:57:48 AIPS task'TABGET';getset;inext'NX';invers 0;keyvalue=0;keystrng'' 1 2 15-NOV-2006 15:57:48 AIPS keyword'NUM ROW';getthead;lsidx=keyvalue(1);clrtemp;n=0;lssid=0 1 2 15-NOV-2006 15:57:48 AIPS if (keyvalue(1)>1000)then;type'WARNING: MORE THAN 1000 SCANS !';end 1 2 15-NOV-2006 15:57:48 AIPS for i=1:lsidx $ remember source number 1 2 15-NOV-2006 15:57:48 AIPS pixxy=i,3,0;tabget;error=0 1 2 15-NOV-2006 15:57:48 AIPS for l=1:n;if(lssid(l)=keyvalue(1))then;error=1;end;end;clrtemp 1 2 15-NOV-2006 15:57:48 AIPS if(error=0)then;n=n+1;lssid(n)=keyvalue(1);end 1 2 15-NOV-2006 15:57:48 AIPS end;inext'SU';invers 0;keyvalue=0;keystrng'';keyword'NUM ROW' 1 2 15-NOV-2006 15:57:48 AIPS getthead;lsidx=keyvalue(1);clrtemp;sources'';l=1;m=1;n=1 1 2 15-NOV-2006 15:57:48 AIPS for i=1:lsidx 1 2 15-NOV-2006 15:57:48 AIPS pixxy=i,2,0;tabget;k=length(keystrng);j=0;clrtemp 1 2 15-NOV-2006 15:57:48 AIPS while (j<20);j=j+1;if (substr(lsampcal(j),1,k)=substr(keystrng,1,k)) then 1 2 15-NOV-2006 15:57:48 AIPS lsampcal(l)=lsampcal(j);j=30;lsparm(14)=l;l=l+1;end;end;j=0;clrtemp 1 2 15-NOV-2006 15:57:48 AIPS while (j<20);j=j+1;if (substr(lsphacal(j),1,k)=substr(keystrng,1,k)) then 1 2 15-NOV-2006 15:57:48 AIPS lsphacal(m)=lsphacal(j);j=30;lsparm(15)=m;m=m+1;end;end;j=0;clrtemp 1 2 15-NOV-2006 15:57:48 AIPS while (j<5);j=j+1;if (substr(lsbndcal(j),1,k)=substr(keystrng,1,k)) then 1 2 15-NOV-2006 15:57:48 AIPS lsbndcal(n)=lsbndcal(j);j=30;lsparm(16)=n;n=n+1;end;end;clrtemp 1 2 15-NOV-2006 15:57:48 AIPS end;lspntcal'';lsallcal'';for j=l:20;lsampcal(j)='';end 1 2 15-NOV-2006 15:57:48 AIPS for j=m:20;lsphacal(j)='';end;for j=n:5;lsbndcal(j)='';end 1 2 15-NOV-2006 15:57:48 AIPS for j=1:lsparm(15);lspntcal(j)=lsphacal(j);end;k=lsparm(15) 1 2 15-NOV-2006 15:57:48 AIPS for j=1:lsparm(16);lspntcal(j+k)=lsbndcal(j);end;j=0;l=1;clrtemp 1 2 15-NOV-2006 15:57:48 AIPS while (j<(lsparm(15)+lsparm(16)));j=j+1;if (length(lspntcal(j))>0) then 1 2 15-NOV-2006 15:57:48 AIPS lspntcal(l)=lspntcal(j);if(l<>j)then;lspntcal(j)='';end;l=l+1;end;end 1 2 15-NOV-2006 15:57:48 AIPS $here - clean up pnt cal for doubles - subtract from total count below 1 2 15-NOV-2006 15:57:48 AIPS k=lsparm(15)+lsparm(16);for j=1:k;lsallcal(j)=lspntcal(j);end;l=1 1 2 15-NOV-2006 15:57:48 AIPS for j=1:lsparm(14);i=length(lsampcal(j));lsidx=0;m=j 1 2 15-NOV-2006 15:57:48 AIPS while ((lsidx0) then;lsallcal(l)=lsallcal(j) 1 2 15-NOV-2006 15:57:48 AIPS if(l<>j)then;lsallcal(j)='';end;l=l+1;end;end 1 2 15-NOV-2006 15:57:48 AIPS $typ 'LSAMPCAL, LSPHACAL, LSBNDCAL, LSPNTCAL, AND LSALLCAL :' 1 2 15-NOV-2006 15:57:48 AIPS $typ lsampcal; typ lsphacal; typ lsbndcal; typ lspntcal; typ lsallcal; 1 2 15-NOV-2006 15:57:48 AIPS return;clrtemp 1 2 15-NOV-2006 15:57:48 AIPS finish 1 2 15-NOV-2006 15:57:48 AIPS 1 2 15-NOV-2006 15:57:48 AIPS procedure numtab(lsstrng) 1 2 15-NOV-2006 15:57:48 AIPS keystrng'';j=0;clrtemp 1 2 15-NOV-2006 15:57:48 AIPS while ((j<15)&(keystrng<>lsstrng)) 1 2 15-NOV-2006 15:57:48 AIPS j=j+1;keyword'EXTYPE'!!char(j);gethead;end;clrtemp 1 2 15-NOV-2006 15:57:48 AIPS if (keystrng=lsstrng) then 1 2 15-NOV-2006 15:57:48 AIPS keyword'EXTVER'!!char(j);gethead;else;keyvalue=0;end 1 2 15-NOV-2006 15:57:48 AIPS keyword'';keystrng'';clrtemp 1 2 15-NOV-2006 15:57:48 AIPS return keyvalue(1);finish 1 2 15-NOV-2006 15:57:48 AIPS 1 2 15-NOV-2006 15:57:48 AIPS procedure numbasel 1 2 15-NOV-2006 15:57:48 AIPS scalar numarow,numbout,numbant,numbase,idx;string*16 nameant 1 2 15-NOV-2006 15:57:48 AIPS numbout=0;keyword'NUM ROW';inext'AN';invers=0;getthead;numarow=keyvalue(1) 1 2 15-NOV-2006 15:57:48 AIPS for numbant=1:numarow 1 2 15-NOV-2006 15:57:48 AIPS pixxy=numbant,1,0;tabget;nameant=keystrng;idx=1;clrtemp 1 2 15-NOV-2006 15:57:48 AIPS while(substr(nameant,idx,idx)<>':');idx=idx+1;end 1 2 15-NOV-2006 15:57:48 AIPS if(substr(nameant,idx+1,idx+3)='OUT')then;numbout=numbout+1;end 1 2 15-NOV-2006 15:57:48 AIPS if(substr(nameant,idx+2,idx+4)='OUT')then;numbout=numbout+1;end 1 2 15-NOV-2006 15:57:48 AIPS end;numbase=(numarow-numbout)*(numarow-numbout-1)/2;clrtemp 1 2 15-NOV-2006 15:57:48 AIPS $ type char(numarow-numbout)!!' ANTENNAS',char(numbase)!!' BASELINES' 1 2 15-NOV-2006 15:57:48 AIPS return numbase 1 2 15-NOV-2006 15:57:48 AIPS finish 1 2 15-NOV-2006 15:57:48 AIPS 1 2 15-NOV-2006 15:57:48 AIPS procedure calcintt 1 2 15-NOV-2006 15:57:48 AIPS scalar numxrow,numscan,numbbeg,numbend,numcnst,sum,avr,rms,rmax;rmax=300 1 2 15-NOV-2006 15:57:48 AIPS array interval(1000),numbvis(1000);avr=0;if(rmax>1000)then;rmax=1000;end 1 2 15-NOV-2006 15:57:48 AIPS if (numtab('NX')<1) then;type'NOT MULTISOURCE - NO INTTIME CALCULATED' 1 2 15-NOV-2006 15:57:48 AIPS else 1 2 15-NOV-2006 15:57:48 AIPS keyword'NUM ROW';inext'NX';invers 0;getthead;numxrow=keyvalue(1) 1 2 15-NOV-2006 15:57:48 AIPS if(numxrow>rmax)then;numxrow rmax;end 1 2 15-NOV-2006 15:57:48 AIPS for numscan=1:numxrow;clrtemp 1 2 15-NOV-2006 15:57:48 AIPS pixxy=numscan,2,0;tabget;interval(numscan)=86400*keyvalue(1) 1 2 15-NOV-2006 15:57:48 AIPS pixxy=numscan,5,0;tabget;numbbeg=keyvalue(1) 1 2 15-NOV-2006 15:57:48 AIPS pixxy=numscan,6,0;tabget;numbend=keyvalue(1) 1 2 15-NOV-2006 15:57:48 AIPS numbvis(numscan)=numbend-numbbeg+1;avr=max(avr,numbvis(numscan)) 1 2 15-NOV-2006 15:57:48 AIPS end;numcnst=numbasel;sum=0 1 2 15-NOV-2006 15:57:48 AIPS if (avr > 0) then 1 2 15-NOV-2006 15:57:48 AIPS for numscan=1:numxrow;if (numbvis(numscan)>0) then 1 2 15-NOV-2006 15:57:48 AIPS sum=sum+( (numcnst*interval(numscan)) / numbvis(numscan) ) 1 2 15-NOV-2006 15:57:48 AIPS end;end;clrtemp;avr=sum/numxrow;sum=0 1 2 15-NOV-2006 15:57:48 AIPS for numscan=1:numxrow;if (numbvis(numscan)>0) then 1 2 15-NOV-2006 15:57:48 AIPS sum=sum+((numcnst*interval(numscan))/numbvis(numscan)-avr)**2 1 2 15-NOV-2006 15:57:48 AIPS end;end;clrtemp;rms=sum/numxrow;clrtemp;end 1 2 15-NOV-2006 15:57:48 AIPS $ type char(numxrow)!!' SCANS/SAMPLES WITH RMS(SEC) +/-'!!char(rms) 1 2 15-NOV-2006 15:57:48 AIPS $ type char(avr)!!' SECOND INTEGRATIONS (APPROXIMATELY)' 1 2 15-NOV-2006 15:57:48 AIPS end 1 2 15-NOV-2006 15:57:48 AIPS return avr 1 2 15-NOV-2006 15:57:48 AIPS finish 1 2 15-NOV-2006 15:57:48 AIPS 1 2 15-NOV-2006 15:57:48 AIPS procedure guesintt 1 2 15-NOV-2006 15:57:48 AIPS scalar intcst,intavr,intmod,intime 1 2 15-NOV-2006 15:57:48 AIPS intavr=calcintt;intcst=intavr;keyword'TELESCOP';gethead 1 2 15-NOV-2006 15:57:48 AIPS if (keystrng='VLA') then;intcst=1+(2/3);end 1 2 15-NOV-2006 15:57:48 AIPS if (keystrng='VLBA') then;intcst=0.131072;end 1 2 15-NOV-2006 15:57:48 AIPS if (intcst=intavr) then;type'UNKNOWN TELESCOPE :'!!keystrng;end 1 2 15-NOV-2006 15:57:48 AIPS if (intavr>10) then 1 2 15-NOV-2006 15:57:48 AIPS $ intime=10*floor(0.5+(intavr/10)) 1 2 15-NOV-2006 15:57:48 AIPS intime=10*floor(intavr/10) 1 2 15-NOV-2006 15:57:48 AIPS else;if (intavr>0) then 1 2 15-NOV-2006 15:57:48 AIPS intmod=mod(intavr,intcst) 1 2 15-NOV-2006 15:57:48 AIPS $ intime=intcst*((intavr-intmod)/intcst+floor(0.5+(intmod/intcst))) 1 2 15-NOV-2006 15:57:48 AIPS intime=intcst*((intavr-intmod)/intcst+floor(intmod/intcst)) 1 2 15-NOV-2006 15:57:48 AIPS else;intime=intavr;end;end;clrtemp 1 2 15-NOV-2006 15:57:48 AIPS if(numtab('NX')>0)then;type char(intime)!!' SECOND INTEGRATIONS (GUESS)';end 1 2 15-NOV-2006 15:57:48 AIPS return intime 1 2 15-NOV-2006 15:57:48 AIPS finish 1 2 15-NOV-2006 15:57:48 AIPS 1 2 15-NOV-2006 15:57:48 AIPS procedure checkids 1 2 15-NOV-2006 15:57:48 AIPS $LOS - account for fast switching source names - check on pos, qual, calco 1 2 15-NOV-2006 15:57:48 AIPS scalar ra1a,ra1b,ra2a,ra2b,dc1a,dc1b,dc2a,dc2b,n,m,l,idx 1 2 15-NOV-2006 15:57:48 AIPS scalar q1,q2 1 2 15-NOV-2006 15:57:48 AIPS string*1 co1,co2 1 2 15-NOV-2006 15:57:48 AIPS string*16 n1,n2 1 2 15-NOV-2006 15:57:48 AIPS array alist(100),blist(100) 1 2 15-NOV-2006 15:57:48 AIPS inext'SU';invers 0;keyword'NUM ROW';keyvalue 0;keystrng'';getthead 1 2 15-NOV-2006 15:57:48 AIPS n=keyvalue(1);idx=1;aparm 0;bparm 0;alist 0;blist 0 1 2 15-NOV-2006 15:57:48 AIPS if (n > 1) then 1 2 15-NOV-2006 15:57:48 AIPS for m=1:(n-1);clrtemp 1 2 15-NOV-2006 15:57:48 AIPS pixxy m,11;tabget;ra1a keyvalue(1);ra1b keyvalue(2) 1 2 15-NOV-2006 15:57:48 AIPS for l=(m+1):n;clrtemp 1 2 15-NOV-2006 15:57:48 AIPS pixxy l,11;tabget;ra2a keyvalue(1);ra2b keyvalue(2) 1 2 15-NOV-2006 15:57:48 AIPS if (abs(ra1a-ra2a)=0) then 1 2 15-NOV-2006 15:57:48 AIPS if ( abs((ra1b-ra2b)*3600*1000) < 3 ) then $ RA within 3 mas! 1 2 15-NOV-2006 15:57:48 AIPS pixxy m,12;tabget;dc1a keyvalue(1);dc1b keyvalue(2) 1 2 15-NOV-2006 15:57:48 AIPS pixxy l,12;tabget;dc2a keyvalue(1);dc2b keyvalue(2) 1 2 15-NOV-2006 15:57:48 AIPS if (abs(dc1a-dc2a)=0) then 1 2 15-NOV-2006 15:57:48 AIPS if ( abs((dc1b-dc2b)*3600*1000) < 3 ) then $ DC within 3 mas! 1 2 15-NOV-2006 15:57:48 AIPS pixxy m,3;tabget;q1 keyvalue(1);pixxy l,3;tabget;q2 keyvalue(1) 1 2 15-NOV-2006 15:57:48 AIPS if (q1=q2) then $ same qualifier; same calcode? 1 2 15-NOV-2006 15:57:48 AIPS pixxy m,4;tabget;co1 keystrng;pixxy l,4;tabget;co2 keystrng 1 2 15-NOV-2006 15:57:48 AIPS if (co1=co2) then 1 2 15-NOV-2006 15:57:48 AIPS pixxy m,1;tabget;q1 keyvalue(1) 1 2 15-NOV-2006 15:57:48 AIPS pixxy l,1;tabget;q2 keyvalue(1) 1 2 15-NOV-2006 15:57:48 AIPS pixxy m,2;tabget;n1 keystrng;pixxy l,2;tabget;n2 keystrng 1 2 15-NOV-2006 15:57:48 AIPS if (idx>100) then; 1 2 15-NOV-2006 15:57:48 AIPS type 'TOO MANY SOURCES TO DO DSORC - DO BY HAND!' 1 2 15-NOV-2006 15:57:48 AIPS type 'NEXT =.'!!char(idx)!!' DO:'!!char(l)!!'.&.'!!char(m) 1 2 15-NOV-2006 15:57:48 AIPS else 1 2 15-NOV-2006 15:57:48 AIPS if (length(n1)1) then;task'DSORC';n=0 1 2 15-NOV-2006 15:57:48 AIPS outname inname;outclass inclass;outseq inseq;outdisk indisk 1 2 15-NOV-2006 15:57:48 AIPS while (n100)then;type'TOO MANY SOURCES FOR DSORC';error 1;end;clrtemp 1 2 15-NOV-2006 15:57:48 AIPS end 1 2 15-NOV-2006 15:57:48 AIPS finish 1 2 15-NOV-2006 15:57:48 AIPS 1 2 15-NOV-2006 15:57:48 AIPS procedure chkobjct 1 2 15-NOV-2006 15:57:48 AIPS if (( (object='1331+305') ! (object='1328+307') ) ! (object='J1331+3030') ) 1 2 15-NOV-2006 15:57:48 AIPS then; object='3C286';end 1 2 15-NOV-2006 15:57:48 AIPS if (( (object='0137+331') ! (object='0134+329') ) ! (object='J0137+3309') ) 1 2 15-NOV-2006 15:57:48 AIPS then; object='3C48';end 1 2 15-NOV-2006 15:57:48 AIPS if (( (object='0521+166') ! (object='0518+165') ) ! (object='J0521+1638') ) 1 2 15-NOV-2006 15:57:48 AIPS then; object='3C138';end 1 2 15-NOV-2006 15:57:48 AIPS if (( (object='0542+498') ! (object='0538+498') ) ! (object='J0542+4951') ) 1 2 15-NOV-2006 15:57:48 AIPS then; object='3C147';end 1 2 15-NOV-2006 15:57:48 AIPS if (( (object='1411+522') ! (object='1409+524') ) ! (object='J1411+5212') ) 1 2 15-NOV-2006 15:57:48 AIPS then; object='3C295';end;clrtemp;return 1 2 15-NOV-2006 15:57:48 AIPS finish 1 2 15-NOV-2006 15:57:48 AIPS 1 2 15-NOV-2006 15:57:48 AIPS procedure checkbnd 1 2 15-NOV-2006 15:57:48 AIPS band='';j=1 1 2 15-NOV-2006 15:57:48 AIPS while (j<9) 1 2 15-NOV-2006 15:57:48 AIPS keyword='CTYPE'!!char(j);gethead;keyword='CRVAL'!!char(j);clrtemp 1 2 15-NOV-2006 15:57:48 AIPS if (keystrng='FREQ') then;gethead;j=9;else;j=j+1;end;end 1 2 15-NOV-2006 15:57:48 AIPS keyvalue(1)=keyvalue(1)/1e9; 1 2 15-NOV-2006 15:57:48 AIPS if ( (keyvalue(1)>38) & (keyvalue(1)<51) ) then; band='Q';end 1 2 15-NOV-2006 15:57:48 AIPS if ( (keyvalue(1)>20.4) & (keyvalue(1)<25.5) ) then; band='K';end 1 2 15-NOV-2006 15:57:48 AIPS if ( (keyvalue(1)>13.5) & (keyvalue(1)<16.3) ) then; band='U';end 1 2 15-NOV-2006 15:57:48 AIPS if ( (keyvalue(1)> 6.8) & (keyvalue(1)< 9.6) ) then; band='X';end 1 2 15-NOV-2006 15:57:48 AIPS if ( (keyvalue(1)> 4.2) & (keyvalue(1)< 5.1) ) then; band='C';end 1 2 15-NOV-2006 15:57:48 AIPS if ( (keyvalue(1)> 1.15) & (keyvalue(1)< 1.75) ) then; band='L';end 1 2 15-NOV-2006 15:57:48 AIPS if ( (keyvalue(1)>0.298) & (keyvalue(1)<0.345) ) then; band='P';end 1 2 15-NOV-2006 15:57:48 AIPS if ( (keyvalue(1)>0.072) & (keyvalue(1)<0.076) ) then; band='4';end;clrtemp 1 2 15-NOV-2006 15:57:48 AIPS return 1 2 15-NOV-2006 15:57:48 AIPS finish 1 2 15-NOV-2006 15:57:48 AIPS 1 2 15-NOV-2006 15:57:48 AIPS procedure chkmodel 1 2 15-NOV-2006 15:57:48 AIPS error=0;sysout='';sys2com'' 1 2 15-NOV-2006 15:57:48 AIPS syscom'ls -1 $AIPSTARS/ 1 2 15-NOV-2006 15:57:48 AIPS sys2com(1) inname!!'.MODEL' 1 2 15-NOV-2006 15:57:48 AIPS sys2com(2) ' >& /dev/null 1 2 15-NOV-2006 15:57:48 AIPS system 1 2 15-NOV-2006 15:57:48 AIPS finish 1 2 15-NOV-2006 15:57:48 AIPS 1 2 15-NOV-2006 15:57:48 AIPS procedure loadmodl 1 2 15-NOV-2006 15:57:48 AIPS scalar lsidx,l 1 2 15-NOV-2006 15:57:48 AIPS array lsload(5) 1 2 15-NOV-2006 15:57:48 AIPS task'TABGET';getset;inext'SU';invers 0;keyvalue=0;keystrng'' 1 2 15-NOV-2006 15:57:48 AIPS keyword'NUM ROW';getthead;lsidx=keyvalue(1);l=1;clrtemp 1 2 15-NOV-2006 15:57:48 AIPS for i=1:lsidx 1 2 15-NOV-2006 15:57:48 AIPS pixxy=i,2,0;tabget;k=length(keystrng);j=1;clrtemp 1 2 15-NOV-2006 15:57:48 AIPS while (j<21) 1 2 15-NOV-2006 15:57:48 AIPS if (substr(lsampcal(j),1,k)=substr(keystrng,1,k)) then 1 2 15-NOV-2006 15:57:48 AIPS lsload(l)=i;j=30;l=l+1;else;j=j+1;clrtemp 1 2 15-NOV-2006 15:57:48 AIPS end;end;end;lsidx=0;checkbnd;keyword'EPOCH';keyvalue=0;keystrng='';gethead 1 2 15-NOV-2006 15:57:48 AIPS if (keyvalue(1)<1999) then;lsidx=1;end 1 2 15-NOV-2006 15:57:48 AIPS for j=1:(l-1) 1 2 15-NOV-2006 15:57:48 AIPS object=lsampcal(j);chkobjct;clrtemp;intype'MA';outdisk=lsdisk 1 2 15-NOV-2006 15:57:48 AIPS inname=object!!'_'!!band;inclass'MODEL';inseq=1;indisk=lsdisk;chkname 1 2 15-NOV-2006 15:57:48 AIPS $$ if (error>0) then;type lsampcal(lsload(j))!!' MODEL ='inname;chkmodel 1 2 15-NOV-2006 15:57:48 AIPS if (error>0) then;type lsampcal(j)!!' MODEL ='inname;chkmodel 1 2 15-NOV-2006 15:57:48 AIPS if(error<1)then;go calrd;if (lsidx>0) then;eposwtch;end;end;end $ J2000 1 2 15-NOV-2006 15:57:48 AIPS end;return 1 2 15-NOV-2006 15:57:48 AIPS finish 1 2 15-NOV-2006 15:57:48 AIPS 1 2 15-NOV-2006 15:57:48 AIPS procedure vlanew 1 2 15-NOV-2006 15:57:48 AIPS clrstat;j=numtab('BP');if (j>0) then;inext'BP';invers=-1;extdest;end 1 2 15-NOV-2006 15:57:48 AIPS j=numtab('CL');if (j>1) then;inext'CL';for k=2:j;invers=k;extdest;end;end 1 2 15-NOV-2006 15:57:48 AIPS j=numtab('SN');if (j>0) then;inext'SN';invers=-1;extdest;end 1 2 15-NOV-2006 15:57:48 AIPS j=numtab('XX');if (j>0) then;inext'XX';invers=-1;extdest;end 1 2 15-NOV-2006 15:57:48 AIPS if (inclass='LINE') then 1 2 15-NOV-2006 15:57:48 AIPS j=numtab('FG');if (j>1) then;inext'FG';for k=2:j;invers=k;extdest;end;end 1 2 15-NOV-2006 15:57:48 AIPS j=numtab('CL');if (j>1) then;inext'CL';for k=2:j;invers=k;extdest;end;end 1 2 15-NOV-2006 15:57:48 AIPS j=numtab('BP');if (j>0) then;inext'BP';invers=-1;extdest;end 1 2 15-NOV-2006 15:57:48 AIPS j=numtab('PL');if (j>0) then;inext'PL';invers=-1;extdest;end 1 2 15-NOV-2006 15:57:48 AIPS end;j=numtab('PL');if (j>0) then;inext'PL';invers=-1;extdest;end;clrtemp 1 2 15-NOV-2006 15:57:48 AIPS type'DONE CLEANUP OF OLD TABLE EXTENTION FILES (CL,SN,FG,BP,PL,XX)' 1 2 15-NOV-2006 15:57:48 AIPS finish 1 2 15-NOV-2006 15:57:48 AIPS 1 2 15-NOV-2006 15:57:48 AIPS procedure allzap 1 2 15-NOV-2006 15:57:48 AIPS chkname;if(error<1)then;for j=1:(1-error);zap;end;end;clrtemp 1 2 15-NOV-2006 15:57:48 AIPS finish 1 2 15-NOV-2006 15:57:48 AIPS 1 2 15-NOV-2006 15:57:48 AIPS procedure allplot 1 2 15-NOV-2006 15:57:48 AIPS tvinit;j=numtab('PL');type 'NUMBER OF PLOT FILES TO SHOW ON TV:'!!char(j) 1 2 15-NOV-2006 15:57:48 AIPS if (j>0) then 1 2 15-NOV-2006 15:57:48 AIPS for k=1:j;plver=k;type 'PLOT'char(k)!!'/'!!char(j);go tvpl;read;end 1 2 15-NOV-2006 15:57:48 AIPS else;type 'NOTHING TO PLOT - DONE';end 1 2 15-NOV-2006 15:57:48 AIPS finish 1 2 15-NOV-2006 15:57:48 AIPS 1 2 15-NOV-2006 15:57:48 AIPS procedure goplt 1 2 15-NOV-2006 15:57:48 AIPS if (lsplot>=0) then;go;end 1 2 15-NOV-2006 15:57:48 AIPS finish $UV and vis only 1 2 15-NOV-2006 15:57:48 AIPS procedure goplt0 1 2 15-NOV-2006 15:57:48 AIPS if (lsplot>0) then;go;end 1 2 15-NOV-2006 15:57:48 AIPS finish $SN only 1 2 15-NOV-2006 15:57:48 AIPS procedure goplt1 1 2 15-NOV-2006 15:57:48 AIPS if (lsplot>1) then;go;end 1 2 15-NOV-2006 15:57:48 AIPS finish $SN+CL 1 2 15-NOV-2006 15:57:48 AIPS procedure goplt2 1 2 15-NOV-2006 15:57:48 AIPS if (lsplot>2) then;go;end 1 2 15-NOV-2006 15:57:48 AIPS finish $SN+CL+BP 1 2 15-NOV-2006 15:57:48 AIPS procedure goplt3 1 2 15-NOV-2006 15:57:48 AIPS if (lsplot>3) then;go;end 1 2 15-NOV-2006 15:57:48 AIPS finish $CL,BP applied 1 2 15-NOV-2006 15:57:48 AIPS 1 2 15-NOV-2006 15:57:48 AIPS procedure calpipe(lsdisk,lsname,lsrant) 1 2 15-NOV-2006 15:57:48 AIPS vnum=33;dowait=true;getidn;vlanew;j=0;clrtemp 1 2 15-NOV-2006 15:57:48 AIPS if (inclass='CH 0') then;inclass'LINE';vlanew;end;clrtemp 1 2 15-NOV-2006 15:57:48 AIPS if(fsw>0)then;checkids;if(inclass='CH 0')then;inclass'LINE';checkids;end;end 1 2 15-NOV-2006 15:57:48 AIPS if ((numtab('FG')<1)&(lsflag>=0)) then 1 2 15-NOV-2006 15:57:48 AIPS if (lsflag>=1) then 1 2 15-NOV-2006 15:57:48 AIPS task'QUACK';getset;flagver=1;opcode'BEG';i=min(3*tint,20) 1 2 15-NOV-2006 15:57:48 AIPS reason char(i)!!' SEC AUTO-QUACK';aparm=0,i/60,-1;j=1 1 2 15-NOV-2006 15:57:48 AIPS while (j<9);keyword='CTYPE'!!char(j);gethead;clrtemp 1 2 15-NOV-2006 15:57:48 AIPS if(keystrng='FREQ')then 1 2 15-NOV-2006 15:57:48 AIPS keyword='CRVAL'!!char(j);gethead;keyval(1)=keyval(1)/1e10;j=9 1 2 15-NOV-2006 15:57:48 AIPS if (keyval(1) < 1.8) then;clrtemp;go;else;tput quack 1 2 15-NOV-2006 15:57:48 AIPS type 'QUACK SKIPPED FOR THIS HIGH FREQUENCY OBSERVATION' 1 2 15-NOV-2006 15:57:48 AIPS type 'MAY BE A FAST-SWITHCING OBS - IE LOSS OF ALL DATA' 1 2 15-NOV-2006 15:57:48 AIPS type 'RUN BY HAND IF YOU REALLY WANT THIS QUACK';tget quack 1 2 15-NOV-2006 15:57:48 AIPS end;else;j=j+1;end;end 1 2 15-NOV-2006 15:57:48 AIPS end;task'FLAGR';getset 1 2 15-NOV-2006 15:57:48 AIPS docal 2;solint=max(3*tint-2,2.7*tint);vector=-1;docrt 0;go 1 2 15-NOV-2006 15:57:48 AIPS end 1 2 15-NOV-2006 15:57:48 AIPS task'SNPLT';getset;inext'CL';nplots 8;optype'AMP';vput;pixrange=0.7,1.8 1 2 15-NOV-2006 15:57:48 AIPS goplt1;task'SETJY';getset;optype'REJY';aparm=0;freqid=1;go;optype'CALC' 1 2 15-NOV-2006 15:57:48 AIPS if (length(lscal)<>0) then 1 2 15-NOV-2006 15:57:48 AIPS optype'';zerosp=lsflux,0;lsallcal=lscal,lspntcal 1 2 15-NOV-2006 15:57:48 AIPS end;sources=lsampcal;go;clrtemp 1 2 15-NOV-2006 15:57:48 AIPS task'CALIB';getset;docalib=2;refant=lsrant;aparm=3,0,0,0,0,0,4,0,0;calcode'' 1 2 15-NOV-2006 15:57:48 AIPS solint=lsparm(2);calsour=lspntcal;snver=numtab('SN')+1;solmode'P' 1 2 15-NOV-2006 15:57:48 AIPS soltype'L1R';baddisk=lsbadd;vput;kj=0;userid=0;clrtemp 1 2 15-NOV-2006 15:57:48 AIPS while (kj<9) 1 2 15-NOV-2006 15:57:48 AIPS kj=kj+1;keyvalue=0;keystrng'';keyword='CTYPE'!!char(kj);gethead;clrtemp 1 2 15-NOV-2006 15:57:48 AIPS if(substr(keystrng,1,4)='FREQ')then;keyword='CRVAL'!!char(kj);gethead 1 2 15-NOV-2006 15:57:48 AIPS kj=10;end;end;vget;if((keyvalue(1))>17e9&(solint>0.5))then;solint=1/3 1 2 15-NOV-2006 15:57:48 AIPS aparm(7)=3.5;vput;type' AUTOMATIC RESET: SOLINT=20SEC (HIGH FREQ)';end 1 2 15-NOV-2006 15:57:48 AIPS if(star>0)then;calsour'';calcode'*';end;go 1 2 15-NOV-2006 15:57:48 AIPS if (lsmodl>0) then $ use models for ones that exist 1 2 15-NOV-2006 15:57:48 AIPS loadmodl;vget calib;calsour='';in2seq=0;in2disk=lsdisk;in2class'MODEL' 1 2 15-NOV-2006 15:57:48 AIPS for j=1:(l-1) 1 2 15-NOV-2006 15:57:48 AIPS inext'SU';pixxy=lsload(j),2,0;tabget;calsour(1)=keystrng;clrtemp 1 2 15-NOV-2006 15:57:48 AIPS pixxy=lsload(j),4,0;tabget;calcode=substr(keystrng,1,4);clrtemp 1 2 15-NOV-2006 15:57:48 AIPS object=lsampcal(j);chkobjct;in2name=object!!'_'!!band 1 2 15-NOV-2006 15:57:48 AIPS vput calib;inname=in2name;inclass=in2class;inseq=in2seq;indisk=in2disk 1 2 15-NOV-2006 15:57:48 AIPS $ if no model, use point with full uvrange 1 2 15-NOV-2006 15:57:48 AIPS chkname;vget calib;if (error>0)then;clr2name;end;go 1 2 15-NOV-2006 15:57:48 AIPS end;clrtemp 1 2 15-NOV-2006 15:57:48 AIPS else;uvrange=lsparm(3),lsparm(4);calsour=lsampcal;go;end 1 2 15-NOV-2006 15:57:48 AIPS vget snplt;inext'SN';optype'PHAS';goplt0;clrtemp 1 2 15-NOV-2006 15:57:48 AIPS task'CLCAL';getset;freqid=1;refant=lsrant;gainuse=numtab('CL')+1 1 2 15-NOV-2006 15:57:48 AIPS snver=numtab('SN');gainver=numtab('CL');sources'';soucode''; 1 2 15-NOV-2006 15:57:48 AIPS calsour=lsphacal;calcode'';vput;if(star>0)then;calsour'';calcode'*';end;go 1 2 15-NOV-2006 15:57:48 AIPS calsour=lsallcal;sources=calsour;interpol'SELF' 1 2 15-NOV-2006 15:57:48 AIPS if(star>0)then;calsour'';calcode'*';soucode'*';end;go 1 2 15-NOV-2006 15:57:48 AIPS vget snplt;inext'CL';optype'PHAS';goplt1;clrtemp 1 2 15-NOV-2006 15:57:48 AIPS vget calib;solmode'A&P';calsour=lspntcal;calcode'';snver=numtab('SN')+1 1 2 15-NOV-2006 15:57:48 AIPS solint=lsparm(13)*lsparm(2);clr2name;vput 1 2 15-NOV-2006 15:57:48 AIPS if(star>0)then;calsour'';calcode'*';end;go 1 2 15-NOV-2006 15:57:48 AIPS if (lsmodl>0) then 1 2 15-NOV-2006 15:57:48 AIPS loadmodl;vget calib;calsour='';in2seq=0;in2disk=lsdisk;in2class'MODEL' 1 2 15-NOV-2006 15:57:48 AIPS for j=1:(l-1) 1 2 15-NOV-2006 15:57:48 AIPS inext'SU';pixxy=lsload(j),2,0;tabget;calsour(1)=keystrng;clrtemp 1 2 15-NOV-2006 15:57:48 AIPS pixxy=lsload(j),4,0;tabget;calcode=substr(keystrng,1,4);clrtemp 1 2 15-NOV-2006 15:57:48 AIPS object=lsampcal(j);chkobjct;in2name=object!!'_'!!band;calcode'' 1 2 15-NOV-2006 15:57:48 AIPS vput calib;inname=in2name;inclass=in2class;inseq=in2seq;indisk=in2disk 1 2 15-NOV-2006 15:57:48 AIPS $ if no model, use point with full uvrange 1 2 15-NOV-2006 15:57:48 AIPS chkname;vget calib;if (error>0)then;clr2name;end;go 1 2 15-NOV-2006 15:57:48 AIPS end;inseq=0;indisk=lsdisk;inclass'MODEL';intype'MA' 1 2 15-NOV-2006 15:57:48 AIPS for j=1:(l-1) 1 2 15-NOV-2006 15:57:48 AIPS object=lsampcal(j);chkobjct;inname=object!!'_'!!band;chkname 1 2 15-NOV-2006 15:57:48 AIPS if (error<1) then;zap;end;end 1 2 15-NOV-2006 15:57:48 AIPS else;uvrange=lsparm(3),lsparm(4);calsour=lsampcal;go;end 1 2 15-NOV-2006 15:57:48 AIPS vget snplt;inext'SN';optype'AMP';goplt0;optype'PHAS';pixrange=-20,20;goplt0 1 2 15-NOV-2006 15:57:48 AIPS task'GETJY';getset;calsour=lsampcal;snver=numtab('SN'); 1 2 15-NOV-2006 15:57:48 AIPS if (star>0) then; 1 2 15-NOV-2006 15:57:48 AIPS $ for j=1:lsparm(14);sources(j)='-'!!lsampcal(j);end;k=lsparm(14)+1 1 2 15-NOV-2006 15:57:48 AIPS $ if (length(lscal)>0) then;sources(k)='-'!!lscal;k=k+1;end 1 2 15-NOV-2006 15:57:48 AIPS $ for j=k:(25-k+2);sources(j)=lspntcal(j-k+2);end; 1 2 15-NOV-2006 15:57:48 AIPS soucode='*' 1 2 15-NOV-2006 15:57:48 AIPS else 1 2 15-NOV-2006 15:57:48 AIPS sources=lspntcal;if (length(lscal)>0) then;sources(11)='-'!!lscal;end 1 2 15-NOV-2006 15:57:48 AIPS end;go 1 2 15-NOV-2006 15:57:48 AIPS if (lscont<1) then 1 2 15-NOV-2006 15:57:48 AIPS type '********************************************************' 1 2 15-NOV-2006 15:57:48 AIPS type '** WRITE DOWN THE FLUX DENSITIES FOR YOUR CALIBRATORS **' 1 2 15-NOV-2006 15:57:48 AIPS type '** (AND DO NOT FORGET THE ERRORS EITHER!) **' 1 2 15-NOV-2006 15:57:48 AIPS type '********************************************************';read 1 2 15-NOV-2006 15:57:48 AIPS end 1 2 15-NOV-2006 15:57:48 AIPS vget clcal;gainver=numtab('CL');gainuse=numtab('CL')+1;snver=numtab('SN') 1 2 15-NOV-2006 15:57:48 AIPS if(star>0)then;calsour'';calcode'*';end;go;calsour=lsallcal;sources=calsour 1 2 15-NOV-2006 15:57:48 AIPS interpol'SELF';if(star>0)then;calsour'';calcode'*';soucode'*';end;go 1 2 15-NOV-2006 15:57:48 AIPS vget snplt;inext'CL';optype'AMP';goplt1;optype'PHAS';goplt1;clrtemp 1 2 15-NOV-2006 15:57:48 AIPS if (inclass='CH 0') then 1 2 15-NOV-2006 15:57:48 AIPS task'TACOP';getset 1 2 15-NOV-2006 15:57:48 AIPS outdisk=indisk;outname=inname;outclass'LINE';outseq=inseq;ncount=1 1 2 15-NOV-2006 15:57:48 AIPS keystrng'';inext'FG';invers=numtab('FG');if (invers>0) then;go;end 1 2 15-NOV-2006 15:57:48 AIPS inext'CL';invers=numtab('CL');keyvalue 0;outseq=inseq;vput;go;clrtemp 1 2 15-NOV-2006 15:57:48 AIPS task'BPASS';getset;inclass'LINE';calsour=lsbndcal,lsampcal;docal=2 1 2 15-NOV-2006 15:57:48 AIPS solint=-1;bpassprm(5)=-1;bpassprm(9)=1;baddisk=lsbadd;go;clrtemp 1 2 15-NOV-2006 15:57:48 AIPS task'POSSM';getset;inclass'LINE';bpver 0;aparm=0,1,.4,1.2,-30,30,0,2,3,0 1 2 15-NOV-2006 15:57:48 AIPS nplots=6;goplt2;sources=lsbndcal;docalib 2;doband 1;aparm=1 0;aparm(9)=3 1 2 15-NOV-2006 15:57:48 AIPS antennas=lsrant,0;goplt2;nplots=0;vput;goplt2;stokes'I';antennas=0;goplt2 1 2 15-NOV-2006 15:57:48 AIPS sources=lsampcal;goplt3 1 2 15-NOV-2006 15:57:48 AIPS vget tacop;inclass'LINE';outclass'CH 0';invers=numtab('BP');inext'BP';go 1 2 15-NOV-2006 15:57:48 AIPS end;task'TASAV';getset;outdisk=indisk;go;dowait=false;vnum=0;clrtemp 1 2 15-NOV-2006 15:57:48 AIPS finish 1 2 15-NOV-2006 15:57:48 AIPS 1 2 15-NOV-2006 15:57:48 AIPS procedure calcrms 1 2 15-NOV-2006 15:57:48 AIPS scalar nbas,nvis,tbw,rms,minhrs 1 2 15-NOV-2006 15:57:48 AIPS keyword'GCOUNT';gethead;nvis=keyvalue(1);nbas=numbasel;j=1 1 2 15-NOV-2006 15:57:48 AIPS minhrs=nvis*tint/(nbas*3600) $ underesimate of obs hours (overestimate rms) 1 2 15-NOV-2006 15:57:48 AIPS while (j<9) $ bandwidth in a channel, continuum or spectral line 1 2 15-NOV-2006 15:57:48 AIPS keyword='CTYPE'!!char(j);gethead;keyword='CDELT'!!char(j);clrtemp 1 2 15-NOV-2006 15:57:48 AIPS if (keystrng='FREQ') then;gethead;j=9;else;j=j+1;end;end;tbw=keyvalue(1) 1 2 15-NOV-2006 15:57:48 AIPS if (lsidc <> 'CH 0') then;j=1 $ continuum, multiple IFs averaged 1 2 15-NOV-2006 15:57:48 AIPS while (j<9) 1 2 15-NOV-2006 15:57:48 AIPS keyword='CTYPE'!!char(j);gethead;keyword='NAXIS'!!char(j);clrtemp 1 2 15-NOV-2006 15:57:48 AIPS if(keystrng='IF')then;gethead;j=9;else;j=j+1;end;end;tbw=tbw*keyvalue(1) 1 2 15-NOV-2006 15:57:48 AIPS end;checkbnd;if((band='P')!(band='4'))then;tbw=tbw/3.2;else;tbw=tbw/50;end 1 2 15-NOV-2006 15:57:48 AIPS tbw=sqrt(tbw*minhrs/24e6);rms=-1 1 2 15-NOV-2006 15:57:48 AIPS if (band='Q')then;rms=3.0e-5/tbw;end;if (band='K')then;rms=2.5e-5/tbw;end 1 2 15-NOV-2006 15:57:48 AIPS if (band='U')then;rms=2.0e-5/tbw;end;if (band='X')then;rms=5.3e-6/tbw;end 1 2 15-NOV-2006 15:57:48 AIPS if (band='C')then;rms=6.4e-6/tbw;end;if (band='L')then;rms=6.6e-6/tbw;end 1 2 15-NOV-2006 15:57:48 AIPS if (band='P')then;rms=1.7e-4/tbw;end;if (band='4')then;rms=1.5e-2/tbw;end 1 2 15-NOV-2006 15:57:48 AIPS if (rms<0) then;type 'CANNOT CALCULATE RMS FROM OBSERVING BAND ..';end 1 2 15-NOV-2006 15:57:48 AIPS typ 'ESTIMATED RMS:' char(rms*1000)!!' MILLI JANSKY' 1 2 15-NOV-2006 15:57:48 AIPS return rms 1 2 15-NOV-2006 15:57:48 AIPS finish 1 2 15-NOV-2006 15:57:48 AIPS 1 2 15-NOV-2006 15:57:48 AIPS procedure setboxfle 1 2 15-NOV-2006 15:57:48 AIPS scalar ci,bi 1 2 15-NOV-2006 15:57:48 AIPS string*12 srcnme 1 2 15-NOV-2006 15:57:48 AIPS string*48 fbox 1 2 15-NOV-2006 15:57:48 AIPS srcnme=inname;ci=0;bi=length(srcnme) 1 2 15-NOV-2006 15:57:48 AIPS while(ci& /dev/null 1 2 15-NOV-2006 15:57:48 AIPS if(substr(boxfile,1,1)<>' ')then;system;end;clrtemp 1 2 15-NOV-2006 15:57:48 AIPS finish 1 2 15-NOV-2006 15:57:48 AIPS 1 2 15-NOV-2006 15:57:48 AIPS procedure catboxfile 1 2 15-NOV-2006 15:57:48 AIPS string*20 expnm 1 2 15-NOV-2006 15:57:48 AIPS string*75 expmsg 1 2 15-NOV-2006 15:57:48 AIPS sys2com'';sysout=expmsg;syscom 'echo 1 2 15-NOV-2006 15:57:48 AIPS sys2com(1) ' "SETFC FILE FOR SOURCEX'!!inname!!' BELOW IS:"'; 1 2 15-NOV-2006 15:57:48 AIPS substr(sys2com(1),24,24)='';clrtemp;system;syscom 'cat 1 2 15-NOV-2006 15:57:48 AIPS sys2com(1) 'X'!!boxfile;substr(sys2com(1),1,1)='';clrtemp 1 2 15-NOV-2006 15:57:48 AIPS system 1 2 15-NOV-2006 15:57:48 AIPS finish 1 2 15-NOV-2006 15:57:48 AIPS 1 2 15-NOV-2006 15:57:48 AIPS procedure setimsize 1 2 15-NOV-2006 15:57:48 AIPS scalar szf, kk 1 2 15-NOV-2006 15:57:48 AIPS string*48 bxf 1 2 15-NOV-2006 15:57:48 AIPS array szc(2), szi(2), orgc(2), orgi(2) 1 2 15-NOV-2006 15:57:48 AIPS vput imagr;task'SETFC';sources'';bcount=1;bxf=setboxfle;boxfile=bxf 1 2 15-NOV-2006 15:57:48 AIPS bparm=0;infile='';shift=0;flux=0;pbparm=0.25,0;delboxfle 1 2 15-NOV-2006 15:57:48 AIPS orgc=cellsize;cellsize=0;orgi=lsparm(6);imsize=0;kk=1 1 2 15-NOV-2006 15:57:48 AIPS while (kk<9) 1 2 15-NOV-2006 15:57:48 AIPS keyword='CTYPE'!!char(kk);gethead;keyword='CRVAL'!!char(kk);clrtemp 1 2 15-NOV-2006 15:57:48 AIPS if (keystrng='FREQ') then;gethead;kk=9;else;kk=kk+1;end;end 1 2 15-NOV-2006 15:57:48 AIPS keyvalue(1)=keyvalue(1)/1e9;bparm(1)=0.375/keyvalue(1);bparm(2)=30 1 2 15-NOV-2006 15:57:48 AIPS bparm(3)=1;bparm(4)=0;bparm(5)=0.031;bparm(6)=256;bparm(7)=256;bparm(8)=100 1 2 15-NOV-2006 15:57:48 AIPS gx;bparm(4)=3*bparm(1);bparm(1)=-0.7*bparm(1);bcount=nfield+1 1 2 15-NOV-2006 15:57:48 AIPS type'SEARCHING FOR NVSS SOURCES';gx;szf=nfield;szc=cellsize;szi=imsize 1 2 15-NOV-2006 15:57:48 AIPS vget imagr;if(lsparm(5)<0)then;cellsize=szc;else;cellsize=orgc;end 1 2 15-NOV-2006 15:57:48 AIPS if(lsparm(6)<0)then;imsize=256;nfield=szf;boxfile=bxf;else;imsize=orgi;end 1 2 15-NOV-2006 15:57:48 AIPS vput imagr 1 2 15-NOV-2006 15:57:48 AIPS finish 1 2 15-NOV-2006 15:57:48 AIPS 1 2 15-NOV-2006 15:57:48 AIPS procedure imapipe(k,lsdisk,lsname) 1 2 15-NOV-2006 15:57:48 AIPS vnum=33;dowait=true 1 2 15-NOV-2006 15:57:48 AIPS if (k=1) then 1 2 15-NOV-2006 15:57:48 AIPS task'SPLIT';getset;outdisk=indisk;outclass=inclass;docalib=2 1 2 15-NOV-2006 15:57:48 AIPS baddisk=lsbadd;douvcomp=-1;go 1 2 15-NOV-2006 15:57:48 AIPS if (inclass='CH 0') then;inclass'LINE';outclass=inclass;doband=1;bpver=0 1 2 15-NOV-2006 15:57:48 AIPS go;end;end;clrtemp 1 2 15-NOV-2006 15:57:48 AIPS task'TABGET';getset;inext'SU';invers=0;keyvalue=0;keystrng'';vput;clrtemp 1 2 15-NOV-2006 15:57:48 AIPS task'IMAGR';getset;outdisk=indisk;flux=lsparm(8);baddisk=lsbadd;j=1 1 2 15-NOV-2006 15:57:48 AIPS while (j<9) 1 2 15-NOV-2006 15:57:48 AIPS keyword='CTYPE'!!char(j);gethead;keyword='CRVAL'!!char(j);clrtemp 1 2 15-NOV-2006 15:57:48 AIPS if (keystrng='FREQ') then;gethead;j=9;else;j=j+1;end;end 1 2 15-NOV-2006 15:57:48 AIPS cellsize=1.75e10/(keyvalue(1)*abs(lsparm(5)));do3dimag=1;overlap=2;vput 1 2 15-NOV-2006 15:57:48 AIPS keyword'NUM ROW';inext'SU';invers=0;keystrng'';getthead;clrtemp 1 2 15-NOV-2006 15:57:48 AIPS for i=1:keyvalue(1) $ check if source is in index and uvfile exists 1 2 15-NOV-2006 15:57:48 AIPS vget tabget;pixxy=i,2,0;tabget;vget imagr;inname=keystrng;j=1;intype'UV' 1 2 15-NOV-2006 15:57:48 AIPS inseq=0;chkname;type ' ';niter=lsparm(7);lstarg=1;clrtemp;vput 1 2 15-NOV-2006 15:57:48 AIPS if (error < 1) then $ source file exists, but same source number ? 1 2 15-NOV-2006 15:57:48 AIPS vget tabget;pixxy=i,1,0;tabget;error=1;k=1 1 2 15-NOV-2006 15:57:48 AIPS while ((lssid(k)>0) & (k<1001)) 1 2 15-NOV-2006 15:57:48 AIPS if (lssid(k)=keyvalue(1))then error=0;end 1 2 15-NOV-2006 15:57:48 AIPS k=k+1;end;keyword'GCOUNT';gethead 1 2 15-NOV-2006 15:57:48 AIPS if(keyvalue(1)<10)then;type'NO DATA';error=1;end;end;vget imagr 1 2 15-NOV-2006 15:57:48 AIPS if (error < 1) then 1 2 15-NOV-2006 15:57:48 AIPS if ((lsparm(7)=7e4)&(lsparm(8)<0))then;flux=6*calcrms;end 1 2 15-NOV-2006 15:57:48 AIPS if ((lsparm(6)<0)!(lsparm(5)<0))then;setimsize;else;imsize=lsparm(6);end 1 2 15-NOV-2006 15:57:48 AIPS while (j<30) 1 2 15-NOV-2006 15:57:48 AIPS k=length(inname) 1 2 15-NOV-2006 15:57:48 AIPS if (substr(lsallcal(j),1,k)=substr(inname,1,k)) then $ calibrator 1 2 15-NOV-2006 15:57:48 AIPS lstarg=0;j=30 1 2 15-NOV-2006 15:57:48 AIPS if(lsparm(6)>=-0.99)then;niter=min(500,lsparm(7)) 1 2 15-NOV-2006 15:57:48 AIPS nfield=1;boxfile'';imsize=min(256,lsparm(6)) 1 2 15-NOV-2006 15:57:48 AIPS if(imsize(1)<0)then;imsize=256;end;end 1 2 15-NOV-2006 15:57:48 AIPS else;j=j+1;end $ check next source, if not found -> target 1 2 15-NOV-2006 15:57:48 AIPS end;if(substr(boxfile,1,1)<>' ')then;catboxfile;end 1 2 15-NOV-2006 15:57:48 AIPS 1 2 15-NOV-2006 15:57:48 AIPS j=1 1 2 15-NOV-2006 15:57:48 AIPS $calibrator lstarg=0 1 2 15-NOV-2006 15:57:48 AIPS $target if lstarg=1 1 2 15-NOV-2006 15:57:48 AIPS 1 2 15-NOV-2006 15:57:48 AIPS 1 2 15-NOV-2006 15:57:48 AIPS while (j<9) 1 2 15-NOV-2006 15:57:48 AIPS keyword='CTYPE'!!char(j);gethead;keyword='NAXIS'!!char(j);clrtemp 1 2 15-NOV-2006 15:57:48 AIPS if (keystrng='IF') then;gethead;j=9;else;j=j+1;end;end 1 2 15-NOV-2006 15:57:48 AIPS type ' NOW STARTING WITH SOURCE :'!!char(i)!!' ='!!inname;type ' ' 1 2 15-NOV-2006 15:57:48 AIPS if (inclass='CH 0') then 1 2 15-NOV-2006 15:57:48 AIPS for k=1:keyvalue(1);bif=k;eif=k 1 2 15-NOV-2006 15:57:48 AIPS if ((lstarg>0)!(lsparm(9)>0)) then;go;end 1 2 15-NOV-2006 15:57:48 AIPS end;clrtemp;k=keyvalue(1) 1 2 15-NOV-2006 15:57:48 AIPS inclass'LINE';keyvalue=0;keystrng'';j=1;chkname 1 2 15-NOV-2006 15:57:48 AIPS if (error < 1) then 1 2 15-NOV-2006 15:57:48 AIPS while (j<9) 1 2 15-NOV-2006 15:57:48 AIPS keyword='CTYPE'!!char(j);gethead;clrtemp 1 2 15-NOV-2006 15:57:48 AIPS if (keystrng='FREQ') then 1 2 15-NOV-2006 15:57:48 AIPS keyword='NAXIS'!!char(j);gethead;echan=keyvalue(1);j=9 1 2 15-NOV-2006 15:57:48 AIPS else;j=j+1;end 1 2 15-NOV-2006 15:57:48 AIPS end;bchan=floor(echan/10);echan=ceil(echan*9/10) 1 2 15-NOV-2006 15:57:48 AIPS if (bchan=1) then;bchan=2;end;j=k 1 2 15-NOV-2006 15:57:48 AIPS for k=1:j;bif=k;eif=k;if ((lstarg>0)!(lsparm(9)>1)) then;go;end 1 2 15-NOV-2006 15:57:48 AIPS end;end;clrtemp 1 2 15-NOV-2006 15:57:48 AIPS else 1 2 15-NOV-2006 15:57:48 AIPS bif=1;eif=keyvalue(1);vput;out2disk=indisk 1 2 15-NOV-2006 15:57:48 AIPS if ( (lsparm(10)=0) ! ((lsparm(9)<1)&(lstarg<1)) )then;go;clrtemp 1 2 15-NOV-2006 15:57:48 AIPS else 1 2 15-NOV-2006 15:57:48 AIPS solint=lsparm(2);dotv=1;nmaps=lsparm(10);refant=lsrant;aparm=4,0 1 2 15-NOV-2006 15:57:48 AIPS if (lsparm(10)<0) then;dotv=-1;nmaps=-1*nmaps;end;go scimg;clrtemp 1 2 15-NOV-2006 15:57:48 AIPS end;end;boxfile=setboxfle;delboxfle;vput imagr 1 2 15-NOV-2006 15:57:48 AIPS $ make uv and visibility plot 1 2 15-NOV-2006 15:57:48 AIPS task'UVPLT';ltype=-3;bparm 6,7;dotv -1;goplt;bparm 0;goplt;vget imagr 1 2 15-NOV-2006 15:57:48 AIPS inclass'IMAGR';inseq=0;intype'UV';indisk=lsdisk;allzap 1 2 15-NOV-2006 15:57:48 AIPS $ inclass'SCIMG';allzap 1 2 15-NOV-2006 15:57:48 AIPS inclass'IBM*';intype'MA';allzap 1 2 15-NOV-2006 15:57:48 AIPS inclass'RBM*';allzap;inclass'LBM*';allzap;recat;clrtemp 1 2 15-NOV-2006 15:57:48 AIPS else;type ' NO UV-FILE, SKIPPING SOURCE :'!!inname!!' =#'!!char(i) 1 2 15-NOV-2006 15:57:48 AIPS end;end;dowait=false;vnum=0 1 2 15-NOV-2006 15:57:48 AIPS finish 1 2 15-NOV-2006 15:57:48 AIPS 1 2 15-NOV-2006 15:57:48 AIPS procedure avlapipe 1 2 15-NOV-2006 15:57:48 AIPS tput avlapipe;vnum=33;vput avlapipe;pipeinpt;clrtemp 1 2 15-NOV-2006 15:57:48 AIPS if (lserr <> 0) then; type '*** ERROR - ARE ALL INPUTS SET PROPERLY ? ***' 1 2 15-NOV-2006 15:57:48 AIPS else;lsclrcal;tint=guesintt;clrtemp 1 2 15-NOV-2006 15:57:48 AIPS if (tint > 0) then;calpipe(lsdisk,lsname,lsrant);clrtemp 1 2 15-NOV-2006 15:57:48 AIPS if (lsparm(1)>0) then;imapipe(1,lsdisk,lsname) 1 2 15-NOV-2006 15:57:48 AIPS else;type'CALIBRATION DONE - SKIPPING SPLIT AND IMAGING' 1 2 15-NOV-2006 15:57:48 AIPS type'-----------------------------------------------------------' 1 2 15-NOV-2006 15:57:48 AIPS end;type ' ' 1 2 15-NOV-2006 15:57:48 AIPS if (lsplot>0) then;type 'VIEW CAL-PLOTS WITH GETSET;ALLPLOT';end;type ' ' 1 2 15-NOV-2006 15:57:48 AIPS else;type '* * *';type 'SINGLE DISH VLBI EXPERIMENT?';type '* * *';end 1 2 15-NOV-2006 15:57:48 AIPS end;tget avlapipe;vnum=0;type'* APPEARS TO HAVE ENDED SUCCESSFULLY *';clrtemp 1 2 15-NOV-2006 15:57:48 AIPS finish 1 0 15-NOV-2006 15:57:48 AIPS run nvasdefs 1 2 15-NOV-2006 15:57:48 AIPS Found in Version=ABIN 1 2 15-NOV-2006 15:57:48 AIPS default'AVLAPIPE' 1 2 15-NOV-2006 15:57:48 AIPS Found in Version=ABIN 1 2 15-NOV-2006 15:57:48 AIPS indisk 1; doalign -1; flagver 2; domodel 1 1 2 15-NOV-2006 15:57:48 AIPS docal 1; sources '*''' 1 2 15-NOV-2006 15:57:48 AIPS $ to be set by itself later 1 2 15-NOV-2006 15:57:48 AIPS solint 1; factor 5; doarray -1; imsize -1 1 2 15-NOV-2006 15:57:48 AIPS $imsize 512;$niter -1;cutoff -1;plver 0 1 2 15-NOV-2006 15:57:48 AIPS niter -1; cutoff -1 1 2 15-NOV-2006 15:57:48 AIPS $ for now debugging 1 2 15-NOV-2006 15:57:48 AIPS docont 1; plver 0; doall 1; doresid 0 1 2 15-NOV-2006 15:57:48 AIPS 1 2 15-NOV-2006 15:57:48 AIPS $ defaults 1 2 15-NOV-2006 15:57:48 AIPS $ BADDISK 0$ INDISK 0$ DOCAT 1$ INNAME ' '$ INCLASS ' '$ INSEQ 0 1 2 15-NOV-2006 15:57:48 AIPS $ DOALIGN 1$ FLAgver 0$ SOLINT 0$ FACTOR 0$ REFANT 0$ DOMODEL -1 1 2 15-NOV-2006 15:57:48 AIPS $ KEYSTRNG ' '$ FLUX 0$ UVRANGE 0, 0$ SOURCES ' '$ CALSOUR ' ' 1 2 15-NOV-2006 15:57:48 AIPS $ dopol 0$ bpa 0$ DOCONT 1$ PLVER 0$ DOALL -1$ DOARRAY -1 1 2 15-NOV-2006 15:57:48 AIPS $ IMSIZE 0, 0$ NITER 0$ CUTOFF 0$ DOCAL 0$ DORESID -1 1 0 15-NOV-2006 15:57:48 AIPS compress 1 0 15-NOV-2006 15:57:48 AIPS default prtmsg;outprint'ARUN:BG086C_2000MAY17_1.0.log 1 0 15-NOV-2006 15:57:48 AIPS docrt=-3;prnumber=-1;tput prtmsg;docrt 1 1 0 15-NOV-2006 15:57:48 AIPS procedure expid 1 0 15-NOV-2006 15:57:48 AIPS string*20 expnm 1 0 15-NOV-2006 15:57:48 AIPS string*75 expmsg 1 0 15-NOV-2006 15:57:48 AIPS expnm='BG086C_2000MAY17_1' 1 0 15-NOV-2006 15:57:48 AIPS expmsg='ARUN:BG086C_2000MAY17_1.0.log 1 0 15-NOV-2006 15:57:48 AIPS return expnm 1 0 15-NOV-2006 15:57:48 AIPS finish 1 0 15-NOV-2006 15:57:48 AIPS type expid 1 5 15-NOV-2006 15:57:48 AIPS 'BG086C_2000MAY17_1' 1 0 15-NOV-2006 15:57:48 AIPS 1 0 15-NOV-2006 15:57:48 AIPS docrt=1;type expid 1 5 15-NOV-2006 15:57:48 AIPS 'BG086C_2000MAY17_1' 1 0 15-NOV-2006 15:57:48 AIPS run avlapost 1 2 15-NOV-2006 15:57:48 AIPS Found in Version=ABIN 1 2 15-NOV-2006 15:57:48 AIPS $ Lorant Sjouwerman, versions 1.. 2005, for NRAO 1 2 15-NOV-2006 15:57:48 AIPS 1 2 15-NOV-2006 15:57:48 AIPS $$ General catalog looks like 1 2 15-NOV-2006 15:57:48 AIPS $$ Multi-source UV data file 1 2 15-NOV-2006 15:57:48 AIPS $$ Multi-source TASAV file 1 2 15-NOV-2006 15:57:48 AIPS $$ Single-source calibrated data - auvf 1 2 15-NOV-2006 15:57:48 AIPS $$ Single-source calibrated images- aimg 1 2 15-NOV-2006 15:57:48 AIPS 1 2 15-NOV-2006 15:57:48 AIPS $May need to redefine after a restore 0: 1 2 15-NOV-2006 15:57:48 AIPS $allzap 1 2 15-NOV-2006 15:57:48 AIPS $calcintt 1 2 15-NOV-2006 15:57:48 AIPS $guesintt 1 2 15-NOV-2006 15:57:48 AIPS $lsparm(5);tint;lsdisk 1 2 15-NOV-2006 15:57:48 AIPS 1 2 15-NOV-2006 15:57:48 AIPS procedure flatfov 1 2 15-NOV-2006 15:57:48 AIPS $LOS - compile flatn-ed radius blank-ed images out to where pbcorr=2.5 (=xpb) 1 2 15-NOV-2006 15:57:48 AIPS scalar uvi,mai,fov,frq,kk,tbw,tint,xpb,xcst,nif,fbw,fta;xpb=2.5 1 2 15-NOV-2006 15:57:48 AIPS clrname;indisk=lsdisk;intype'UV';chkname;uvi=1-error 1 2 15-NOV-2006 15:57:48 AIPS if(uvi<3)then;type'ERROR: NO FILES PROCESSED !';else 1 2 15-NOV-2006 15:57:48 AIPS if(uvi<4)then;type'WARNING: ONLY ONE UV-FILE - MAYBE CHECK?';end 1 2 15-NOV-2006 15:57:48 AIPS egetname 1;tint=guesintt;xcst=sqrt((3/ln(2))*(xpb-1)/xpb);kk=1 1 2 15-NOV-2006 15:57:48 AIPS while (kk<7) 1 2 15-NOV-2006 15:57:48 AIPS keyvalue=0;keystrng'';keyword='CTYPE'!!char(kk);gethead 1 2 15-NOV-2006 15:57:48 AIPS if(substr(keystrng,1,2)='IF')then;keyword='NAXIS'!!char(kk) 1 2 15-NOV-2006 15:57:48 AIPS keystrng'';gethead;nif=keyvalue(1);kk=10;else;kk=kk+1;end;end;kk=1 1 2 15-NOV-2006 15:57:48 AIPS while (kk<7) 1 2 15-NOV-2006 15:57:48 AIPS keyvalue=0;keystrng'';keyword='CTYPE'!!char(kk);gethead 1 2 15-NOV-2006 15:57:48 AIPS if(substr(keystrng,1,4)='FREQ')then;keyword='CRVAL'!!char(kk) 1 2 15-NOV-2006 15:57:48 AIPS keystrng'';gethead;frq=keyvalue(1);kk=10;else;kk=kk+1;end;end 1 2 15-NOV-2006 15:57:48 AIPS for i=3:uvi;egetname i 1 2 15-NOV-2006 15:57:48 AIPS task'TABGET';inext'FQ';invers 1;keyword'NUM ROW';keystrng'';getthead 1 2 15-NOV-2006 15:57:48 AIPS kk=keyvalue(1);for j=1:kk;pixxy=j,4,1;tabget;tbw=keyvalue(1) 1 2 15-NOV-2006 15:57:48 AIPS if(nif=2)then;pixxy=j,4,2;tabget;tbw=max(tbw,keyvalue(1));end 1 2 15-NOV-2006 15:57:48 AIPS end;intype'MA';inseq=0;inclass'*001';chkname;mai=1-error 1 2 15-NOV-2006 15:57:48 AIPS if(mai>1)then;type'WARNING: MULTIPLE IMAGES - CHECK?';end;inclass'NVAS06' 1 2 15-NOV-2006 15:57:48 AIPS chkname;if(error<1)then;type inname!!' : FLATFOV ALREADY DONE';mai=0;end 1 2 15-NOV-2006 15:57:48 AIPS if (mai=1) then;inclass'*001' 1 2 15-NOV-2006 15:57:48 AIPS for j=1:mai $ assume inseq starts at 1.. 1 2 15-NOV-2006 15:57:48 AIPS inseq=j;kk=1;cellsize=0;userid=0 1 2 15-NOV-2006 15:57:48 AIPS while (kk<5) 1 2 15-NOV-2006 15:57:48 AIPS keyvalue=0;keystrng'';keyword='CTYPE'!!char(kk);gethead 1 2 15-NOV-2006 15:57:48 AIPS keyword='CDELT'!!char(kk);clrtemp 1 2 15-NOV-2006 15:57:48 AIPS if(substr(keystrng,1,3)='RA-')then;gethead;cellsize(1)=keyvalue(1);end 1 2 15-NOV-2006 15:57:48 AIPS if(substr(keystrng,1,4)='DEC-')then;gethead;cellsize(2)=keyvalue(1);end 1 2 15-NOV-2006 15:57:48 AIPS if(substr(keystrng,1,4)='FREQ')then;keyword='CRVAL'!!char(kk) 1 2 15-NOV-2006 15:57:48 AIPS keystrng'';gethead;fov=keyvalue(1)/1e9;fov=1350/fov;end;kk=kk+1 1 2 15-NOV-2006 15:57:48 AIPS end;cellsize(1)=-1*cellsize(1)*3600;cellsize(2)=cellsize(2)*3600 1 2 15-NOV-2006 15:57:48 AIPS fta=min(1.75e10/(frq*abs(lsparm(5))),(min(cellsize(1),cellsize(2)))) 1 2 15-NOV-2006 15:57:48 AIPS fbw=xcst*3*fta*frq/tbw $ radius field/view due bandwidth 1 2 15-NOV-2006 15:57:48 AIPS fta=xcst*3*fta/(tint*7.2722e-5) $ radius field/view due averaging 1 2 15-NOV-2006 15:57:48 AIPS fov=min(fov,fbw);fov=min(fov,fta) $ min field/view radius, arcsec 1 2 15-NOV-2006 15:57:48 AIPS imsize(1)=ceil(2*fov/cellsize(1));imsize(2)=ceil(2*fov/cellsize(2)) 1 2 15-NOV-2006 15:57:48 AIPS task'FLATN';inclass'?CL*';chkname;nfield=1-error;nmaps=1;clroname 1 2 15-NOV-2006 15:57:48 AIPS outname=inname;coordina=0;reweight=0;doweight=0;edgskp=15;aparm=0 1 2 15-NOV-2006 15:57:48 AIPS pbparm=1/xpb,0;type'MINIMUM FOV :'!!char(fov)!!' ARCSEC RADIUS' 1 2 15-NOV-2006 15:57:48 AIPS inclass'?CL001';gx 1 2 15-NOV-2006 15:57:48 AIPS $inclass'?CL*';allzap;recat 1 2 15-NOV-2006 15:57:48 AIPS ;inclass'FLATN' 1 2 15-NOV-2006 15:57:48 AIPS tput;default blank;tget flatn;task'BLANK';opcode'RADI';dparm fov,0 1 2 15-NOV-2006 15:57:48 AIPS gx;allzap;recat 1 2 15-NOV-2006 15:57:48 AIPS end;end;end;end 1 2 15-NOV-2006 15:57:48 AIPS finish 1 2 15-NOV-2006 15:57:48 AIPS 1 2 15-NOV-2006 15:57:48 AIPS procedure nvasimage 1 2 15-NOV-2006 15:57:48 AIPS $LOS - Determine noise, do primary beam correction, include copyright 1 2 15-NOV-2006 15:57:48 AIPS scalar numfle,ll,mm 1 2 15-NOV-2006 15:57:48 AIPS clrname;indisk=lsdisk;recat;chkname;numfle=1-error;mai=0 1 2 15-NOV-2006 15:57:48 AIPS while((mai'BLANK')) 1 2 15-NOV-2006 15:57:48 AIPS mai=mai+1;egetname mai;end;if(inclass<>'BLANK')then;mai=numfle+1;end 1 2 15-NOV-2006 15:57:48 AIPS for j=mai:numfle;default imean;docat=1;intype'SC';egetname j;chkname 1 2 15-NOV-2006 15:57:48 AIPS if(error=0)then;keyvalue=0;keystrng'';keyword='CRPIX1';gethead 1 2 15-NOV-2006 15:57:48 AIPS ll=keyvalue(1);keyword='CRPIX2';gethead;mm=keyvalue(1);doinvers=1 1 2 15-NOV-2006 15:57:48 AIPS blc(1)=ll-29;blc(2)=mm-30;trc(1)=ll+30;trc(2)=mm+29;imstat;doinv=-1 1 2 15-NOV-2006 15:57:48 AIPS blc=0;trc=0;rms=pixstd;go;wa;if(pixstd=rms)then;keyword'ACTNOISE' 1 2 15-NOV-2006 15:57:48 AIPS keytype'R';keyvalue=rms,0;puthead;end;end;end 1 2 15-NOV-2006 15:57:48 AIPS default'PBCOR';indisk=lsdisk;inclass'BLANK';chkname;pbparm=1/xpb,0 1 2 15-NOV-2006 15:57:48 AIPS for j=mai:numfle 1 2 15-NOV-2006 15:57:48 AIPS intype'SC';egetname mai;chkname;if(error=0)then;getoname mai 1 2 15-NOV-2006 15:57:48 AIPS outclass'RADCOR';outseq=0;inclass'BLANK';outdisk=indisk;gx;zap;recat;end 1 2 15-NOV-2006 15:57:48 AIPS end;default'CPYRT';indisk=lsdisk;recat;infile='AVLA:Arch_Cprt 1 2 15-NOV-2006 15:57:48 AIPS for j=mai:numfle $ can only do on MA files 1 2 15-NOV-2006 15:57:48 AIPS intype'SC';egetname mai;chkname;getoname mai;outclass'NVAS06'; 1 2 15-NOV-2006 15:57:48 AIPS if(inclass='RADCOR')then;gx;inclass'RADCOR';zap;recat;end;end 1 2 15-NOV-2006 15:57:48 AIPS finish 1 2 15-NOV-2006 15:57:48 AIPS 1 2 15-NOV-2006 15:57:48 AIPS procedure mkarr 1 2 15-NOV-2006 15:57:48 AIPS string*1 sx,lx,az 1 2 15-NOV-2006 15:57:48 AIPS string*4 nnsl 1 2 15-NOV-2006 15:57:48 AIPS scalar aw, ae, an, ai 1 2 15-NOV-2006 15:57:48 AIPS numbant=0;aw=0;ae=0;an=0 1 2 15-NOV-2006 15:57:48 AIPS keyword'NUM ROW';inext'AN';invers=0;getthead;k=keyvalue(1) 1 2 15-NOV-2006 15:57:48 AIPS for j=1:k 1 2 15-NOV-2006 15:57:48 AIPS pixxy=j,1,0;tabget;i=1;clrtemp 1 2 15-NOV-2006 15:57:48 AIPS while((substr(keystrng,i,i)<>':')&(i<9));i=i+1;end;clrtemp 1 2 15-NOV-2006 15:57:48 AIPS if (substr(keystrng,i+1,i+1)<>' ')then;lsvla=substr(keystrng,i+1,i+3) 1 2 15-NOV-2006 15:57:48 AIPS else;lsvla=substr(keystrng,i+2,i+4);end;az=substr(lsvla,1,1) 1 2 15-NOV-2006 15:57:48 AIPS if ((lsvla<>'OUT')&(lsvla<>'MPD'))then;numbant=numbant+1 1 2 15-NOV-2006 15:57:48 AIPS if (lsvla='VPT')then;ai=75;lx='P';else;ai=value(substr(lsvla,2,3)) 1 2 15-NOV-2006 15:57:48 AIPS if(az='W')then;aw=max(aw,ai);else;if(az='E')then;ae=max(ae,ai);else 1 2 15-NOV-2006 15:57:48 AIPS if(az='N')then;an=max(an,ai);else;if(lx<>'P')then; 1 2 15-NOV-2006 15:57:48 AIPS type lsvla!!' - ERROR: ANTENNA NOT KNOWN';end;end;end;end 1 2 15-NOV-2006 15:57:48 AIPS clrtemp;end;end;end 1 2 15-NOV-2006 15:57:48 AIPS if (lx<>'P')then;ai=max(aw,ae);ai=max(ai,an);lx='D';if(ai>36)then;lx='A' 1 2 15-NOV-2006 15:57:48 AIPS else;if(ai>18)then;lx='B';else;if(ai>9)then;lx='C';end;end;end;end 1 2 15-NOV-2006 15:57:48 AIPS ai=min(aw,ae);ai=min(ai,an);sx='A';if(ai<10)then;sx='D';else;if(ai<19)then 1 2 15-NOV-2006 15:57:48 AIPS sx='C';else;if(ai<37)then;sx='B';end;end;end;clrtemp 1 2 15-NOV-2006 15:57:48 AIPS if(numbant<10)then 1 2 15-NOV-2006 15:57:48 AIPS nnsl='0'!!char(numbant)!!sx!!lx;else;nnsl=char(numbant)!!sx!!lx;end 1 2 15-NOV-2006 15:57:48 AIPS return nnsl 1 2 15-NOV-2006 15:57:48 AIPS finish 1 2 15-NOV-2006 15:57:48 AIPS 1 2 15-NOV-2006 15:57:48 AIPS procedure nvasname 1 2 15-NOV-2006 15:57:48 AIPS $LOS - makes the RA/Dec directory and returns the archive file name 1 2 15-NOV-2006 15:57:48 AIPS scalar ki,ra1,ra2,dc1,dc2,rh,rm,rs,dd,dm,ds,rmsv,sbmv 1 2 15-NOV-2006 15:57:48 AIPS scalar ifx,nif,nu,nu1,nu2,bw,nst,stv,msuv1,msuv2,msuv 1 2 15-NOV-2006 15:57:48 AIPS string*1 pm,rmsc,stc,ik,rdi 1 2 15-NOV-2006 15:57:48 AIPS string*2 zz 1 2 15-NOV-2006 15:57:48 AIPS string*3 mmm 1 2 15-NOV-2006 15:57:48 AIPS string*4 rmss,sbms,fras,frqs,nnsl,rads 1 2 15-NOV-2006 15:57:48 AIPS string*30 dir 1 2 15-NOV-2006 15:57:48 AIPS string*20 expnm 1 2 15-NOV-2006 15:57:48 AIPS expnm = '' 1 2 15-NOV-2006 15:57:48 AIPS if(expnm='')then 1 2 15-NOV-2006 15:57:48 AIPS keyword'OBSERVER';gethead;expnm=keystrng;keyword'DATE-OBS';gethead 1 2 15-NOV-2006 15:57:48 AIPS mmm=substr(keystrng,5,6) 1 2 15-NOV-2006 15:57:48 AIPS if(mmm='01')then;mmm='JAN';end;if(mmm='02')then;mmm='FEB';end 1 2 15-NOV-2006 15:57:48 AIPS if(mmm='03')then;mmm='MAR';end;if(mmm='04')then;mmm='APR';end 1 2 15-NOV-2006 15:57:48 AIPS if(mmm='05')then;mmm='MAY';end;if(mmm='06')then;mmm='JUN';end 1 2 15-NOV-2006 15:57:48 AIPS if(mmm='07')then;mmm='JUL';end;if(mmm='08')then;mmm='AUG';end 1 2 15-NOV-2006 15:57:48 AIPS if(mmm='09')then;mmm='SEP';end;if(mmm='10')then;mmm='OCT';end 1 2 15-NOV-2006 15:57:48 AIPS if(mmm='11')then;mmm='NOV';end;if(mmm='12')then;mmm='DEC';end 1 2 15-NOV-2006 15:57:48 AIPS expnm=expnm!!'_'!!substr(keystrng,1,4)!!mmm!!substr(keystrng,7,8)!!'_1' 1 2 15-NOV-2006 15:57:48 AIPS end;ki=1;userid=0 1 2 15-NOV-2006 15:57:48 AIPS while (ki<9) 1 2 15-NOV-2006 15:57:48 AIPS ik=char(ki);keyvalue=0;keystrng'';keyword='CTYPE'!!ik;gethead;clrtemp 1 2 15-NOV-2006 15:57:48 AIPS if(substr(keystrng,1,2)='RA')then 1 2 15-NOV-2006 15:57:48 AIPS keyword='CRVAL'!!ik;gethead;ra1=keyvalue(1);ra2=keyvalue(2);msuv1=ra1+ra2 1 2 15-NOV-2006 15:57:48 AIPS keyword='CDELT'!!ik;gethead;cellsize(1)=-1*keyvalue(1)*3600;ra1=ra1/15 1 2 15-NOV-2006 15:57:48 AIPS ra2=ra2/15;rh=floor(ra1);ra1=(ra1-rh)*60;rm=floor(ra1);ra1=(ra1-rm)*60 1 2 15-NOV-2006 15:57:48 AIPS rs=((floor((ra1+(3600*ra2))*1000)+0.005)/1000);clrtemp 1 2 15-NOV-2006 15:57:48 AIPS if(abs(rs-floor(rs))<0.1)then;zz='.0';else;zz='';end;clrtemp 1 2 15-NOV-2006 15:57:48 AIPS keyword='NAXIS'!!ik;gethead;ra1=0.5*keyvalue(1)*cellsize(1);end 1 2 15-NOV-2006 15:57:48 AIPS if(substr(keystrng,1,3)='DEC')then 1 2 15-NOV-2006 15:57:48 AIPS keyword='CRVAL'!!ik;gethead;dc1=keyvalue(1);dc2=keyvalue(2);msuv1=dc1+dc2 1 2 15-NOV-2006 15:57:48 AIPS keyword='CDELT'!!ik;gethead;cellsize(2)=keyvalue(1)*3600 1 2 15-NOV-2006 15:57:48 AIPS if(dc1<0)then;pm='-';dc1=-1*dc1;dc2=-1*dc2;else;pm='+';end 1 2 15-NOV-2006 15:57:48 AIPS dd=floor(dc1);dc1=(dc1-dd)*60;dm=floor(dc1);dc1=(dc1-dm)*60 1 2 15-NOV-2006 15:57:48 AIPS ds=floor(dc1+(3600*dc2)+0.0005);clrtemp;keyword='NAXIS'!!ik 1 2 15-NOV-2006 15:57:48 AIPS gethead;dc1=0.5*(keyvalue(1)-10)*cellsize(2);end $ie correct for (c)-top 1 2 15-NOV-2006 15:57:48 AIPS if(substr(keystrng,1,2)='IF')then 1 2 15-NOV-2006 15:57:48 AIPS keyword='NAXIS'!!ik;gethead;nif=keyvalue(1);clrtemp;end 1 2 15-NOV-2006 15:57:48 AIPS if(substr(keystrng,1,4)='FREQ')then 1 2 15-NOV-2006 15:57:48 AIPS keyword='CRVAL'!!ik;gethead;nu1=keyvalue(1)/1e6;nu2=keyvalue(2)/1e6 1 2 15-NOV-2006 15:57:48 AIPS keyword='CDELT'!!ik;gethead;bw=keyvalue(1)/1e6;end;nu=(nu1+nu2);clrtemp 1 2 15-NOV-2006 15:57:48 AIPS if(substr(keystrng,1,6)='STOKES')then 1 2 15-NOV-2006 15:57:48 AIPS keyword='CRVAL'!!ik;gethead;stv=keyvalue(1) 1 2 15-NOV-2006 15:57:48 AIPS keyword='NAXIS'!!ik;gethead;nst=keyvalue(1);clrtemp 1 2 15-NOV-2006 15:57:48 AIPS if(nst=4)then;stc='F';else;if(nst=2)then;stc='H';else;if(stv=-1)then 1 2 15-NOV-2006 15:57:48 AIPS stc='R';else;if(stv=-2)then;stc='L';else;if(stv=-5)then;stc='X' 1 2 15-NOV-2006 15:57:48 AIPS else;if(stv=-6)then;stc='Y';else;if(stv >0)then;stc='I';else 1 2 15-NOV-2006 15:57:48 AIPS stc='U';end;end;end;end;end;end;end;end 1 2 15-NOV-2006 15:57:48 AIPS if(substr(keystrng,1,1)='')then;ki=10;else;ki=ki+1;end 1 2 15-NOV-2006 15:57:48 AIPS end;clrtemp $ build the output file name here 1 2 15-NOV-2006 15:57:48 AIPS if(intype='UV')then;nu1=0;nu2=0;clrtemp;inext'FQ';for ifx=1:nif 1 2 15-NOV-2006 15:57:48 AIPS pixxy=1,2,ifx;tabget;nu1=nu1+((keyvalue(1)+keyvalue(2))/1e6) 1 2 15-NOV-2006 15:57:48 AIPS pixxy=1,3,ifx;tabget;nu2=nu2+((keyvalue(1)+keyvalue(2))/1e6);end 1 2 15-NOV-2006 15:57:48 AIPS nu=nu+0.5*(nu1+(0.5*nu2));clrtemp;else;if(intype='MA')then; 1 2 15-NOV-2006 15:57:48 AIPS fras=substr(char(0.5*(ra1+dc1)),1,4);nu=nu+(bw/(2*nif));else 1 2 15-NOV-2006 15:57:48 AIPS type 'ERROR: FILE TYPE UNKNOWN (HOW DID THIS HAPPEN?)';end;end 1 2 15-NOV-2006 15:57:48 AIPS frqs=substr(char((nu+5)/1000),1,4);clrtemp;sys2com(1)=' $aimg/ 1 2 15-NOV-2006 15:57:48 AIPS if (intype='MA')then; $read conv size,rms from header, use imsi*cell/2 for R 1 2 15-NOV-2006 15:57:48 AIPS rdi='S';ra2=0.5*(ra1+dc1-9);if(ra2>60)then;rdi='M';ra2=ra2/60;end $ R-fov 1 2 15-NOV-2006 15:57:48 AIPS if(ra2>60)then;rdi='D';ra2=ra2/60;end;rads=substr(char(ra2),1,4) 1 2 15-NOV-2006 15:57:48 AIPS keyword='BMAJ';gethead;sbmv=keyvalue(1);keyword='BMIN';gethead 1 2 15-NOV-2006 15:57:48 AIPS sbmv=1800*(sbmv+keyvalue(1));sbms=substr(char(sbmv),1,4) 1 2 15-NOV-2006 15:57:48 AIPS 1 2 15-NOV-2006 15:57:48 AIPS keyvalue=0;keystrng'';keyword='ACTNOISE';gethead;rmsv=keyvalue(1) $ RMS<1e4 1 2 15-NOV-2006 15:57:48 AIPS if(rmsv>1)then;rmsc='J';rmss=substr(char(rmsv),1,4);else;rmsv=rmsv*1000 1 2 15-NOV-2006 15:57:48 AIPS if(rmsv>1)then;rmsc='M';rmss=substr(char(rmsv),1,4);else;rmsv=rmsv*1000 1 2 15-NOV-2006 15:57:48 AIPS if(rmsv>1)then;rmsc='U';rmss=substr(char(rmsv),1,4);else 1 2 15-NOV-2006 15:57:48 AIPS rmsv=rmsv*1000;rmsc='N';rmss=substr(char(rmsv),1,4) 1 2 15-NOV-2006 15:57:48 AIPS end;end;end;clrtemp;fras='';while(length(frqs)<4);frqs=frqs!!'0';end 1 2 15-NOV-2006 15:57:48 AIPS while(length(rads)<4);rads=rads!!'0';end;while(length(rmss)<4) 1 2 15-NOV-2006 15:57:48 AIPS rmss=rmss!!'0';end;while(length(sbms)<4);sbms=sbms!!'0';end 1 2 15-NOV-2006 15:57:48 AIPS outfile=frqs!!stc!!sbms!!'_'!!expnm!!'_'!!rmss!!rmsc!!fras!!rads!!rdi 1 2 15-NOV-2006 15:57:48 AIPS else;outprint=frqs!!stc!!nnsl!!'_'!!expnm;outfile=outprint!!'.uvfits 1 2 15-NOV-2006 15:57:48 AIPS end 1 2 15-NOV-2006 15:57:48 AIPS msuv=(sqrt((msuv1*msuv1)+(msuv2*msuv2)))*3600 1 2 15-NOV-2006 15:57:48 AIPS if(msuv>5)then $ not multisource UV, make a source dir 1 2 15-NOV-2006 15:57:48 AIPS dir='';sysout'';syscom'mkdir 1 2 15-NOV-2006 15:57:48 AIPS if(rh<10)then;sys2com(2)='J0'!!char(rh);else;sys2com(2)='J'!! char(rh);end 1 2 15-NOV-2006 15:57:48 AIPS if(rm<10)then;sys2com(3)='0'!!char(rm);else;sys2com(3)=char(rm);end 1 2 15-NOV-2006 15:57:48 AIPS if(rs<10)then;sys2com(4)='0'!!char(rs)!!zz;else;sys2com(4)=char(rs)!!zz;end 1 2 15-NOV-2006 15:57:48 AIPS sys2com(4)=substr(sys2com(4),1,4);clrtemp 1 2 15-NOV-2006 15:57:48 AIPS if(dd<10)then;sys2com(5)=pm!!'0'!!char(dd);else;sys2com(5)=pm!!char(dd);end 1 2 15-NOV-2006 15:57:48 AIPS if(dm<10)then;sys2com(6)='0'!!char(dm);else;sys2com(6)=char(dm);end 1 2 15-NOV-2006 15:57:48 AIPS if(ds<10)then;sys2com(7)='0'!!char(ds);else;sys2com(7)=char(ds);end 1 2 15-NOV-2006 15:57:48 AIPS sys2com(7)=substr(sys2com(7),1,2);clrtemp 1 2 15-NOV-2006 15:57:48 AIPS sys2com(8) ' >& /dev/null 1 2 15-NOV-2006 15:57:48 AIPS system;clrtemp;for i=1:7;dir=dir!!sys2com(i);end;ki=length(dir) $must be 23 1 2 15-NOV-2006 15:57:48 AIPS dir=substr(dir,8,ki);if(ki<>23)then;type'OOPS: WRONG DIRECTORY NAME ?';end 1 2 15-NOV-2006 15:57:48 AIPS end;syscom'';sys2com'';clrtemp 1 2 15-NOV-2006 15:57:48 AIPS return 1 2 15-NOV-2006 15:57:48 AIPS finish 1 2 15-NOV-2006 15:57:48 AIPS 1 2 15-NOV-2006 15:57:48 AIPS procedure nvasarch 1 2 15-NOV-2006 15:57:48 AIPS $LOS - archives the files to disk - define $EXP (and $AVLA/$ADAT/$AIMG/$AUVF) 1 2 15-NOV-2006 15:57:48 AIPS string*4 nnsl 1 2 15-NOV-2006 15:57:48 AIPS string*20 expnm 1 2 15-NOV-2006 15:57:48 AIPS string*64 expfile 1 2 15-NOV-2006 15:57:48 AIPS scalar nn,mai,uvi,xe,nif 1 2 15-NOV-2006 15:57:48 AIPS clrname;indisk=lsdisk;chkname;numfle=1-error;intype'UV';chkname;uvi=1-error 1 2 15-NOV-2006 15:57:48 AIPS default fitab;indisk=lsdisk;recat;douvcomp=-1;nif=2;type expid 1 2 15-NOV-2006 15:57:48 AIPS $2IF IM, or reset in uv#1 1 2 15-NOV-2006 15:57:48 AIPS if(numfle>3)then $ at least 1UVF, 1TSV, 1SS, 1MA 1 2 15-NOV-2006 15:57:48 AIPS egetname 1;nnsl=mkarr;nvasname;i=1;clrtemp;syscom'mkdir 1 2 15-NOV-2006 15:57:48 AIPS while((substr(expnm,i,i)<>'_')&(i<21));i=i+1;end;dir=substr(expnm,1,i-1) 1 2 15-NOV-2006 15:57:48 AIPS outfile='ADAT:'!!expnm!!'_'!!frqs!!stc!!nnsl!!'.uvfits 1 2 15-NOV-2006 15:57:48 AIPS sysout'';sys2com'';sys2com(2) ' >& /dev/null 1 2 15-NOV-2006 15:57:48 AIPS sys2com(1)' $ADAT/'!!dir;system;gx;clrtemp;egetname 2;clrtemp;syscom'\mv -f 1 2 15-NOV-2006 15:57:48 AIPS outfile='ADAT:'!!expnm!!'_'!!frqs!!stc!!nnsl!!'.clfits 1 2 15-NOV-2006 15:57:48 AIPS gx;sys2com(1)' $ADAT/'!!expnm!!'_* $ADAT/'!!dir;system 1 2 15-NOV-2006 15:57:48 AIPS sys2com(1)' $ADAT/'!!expnm!!'.* $ADAT/'!!dir;system 1 2 15-NOV-2006 15:57:48 AIPS sys2com(1)' $ARUN/'!!expnm!!'.* $ADAT/'!!dir;system;j=2;mai=0 1 2 15-NOV-2006 15:57:48 AIPS while(j& /dev/null 1 2 15-NOV-2006 15:57:48 AIPS outfile='AIMG:'!!outfile;if(xe=1)then;gx; 1 2 15-NOV-2006 15:57:48 AIPS if(numtab('PL')<1)then;type'NO UV PLOTS';else;if (numtab('PL')<2) then; 1 2 15-NOV-2006 15:57:48 AIPS type'SINGLE PLOT, ASSUMING UV COVERAGE'; 1 2 15-NOV-2006 15:57:48 AIPS else;plver=2;outfile='AIMG:'!!outprint!!'.vis.ps 1 2 15-NOV-2006 15:57:48 AIPS go lwpla;syscom'convert $aimg/ 1 2 15-NOV-2006 15:57:48 AIPS sys2com(1)=outprint!!'.vis.ps $aimg/ 1 2 15-NOV-2006 15:57:48 AIPS sys2com(2)=outprint!!'.vis.gif 1 2 15-NOV-2006 15:57:48 AIPS system;end;plver=1;outfile='AIMG:'!!outprint!!'.uv.ps 1 2 15-NOV-2006 15:57:48 AIPS go lwpla;sys2com(1)=outprint!!'.uv.ps $aimg/ 1 2 15-NOV-2006 15:57:48 AIPS sys2com(2)=outprint!!'.uv.gif 1 2 15-NOV-2006 15:57:48 AIPS system;end;end;clrtemp;syscom'\mv -f $aimg/ 1 2 15-NOV-2006 15:57:48 AIPS $ sys2com(1)=substr(outfile,6,length(outfile))!!' $aimg/ 1 2 15-NOV-2006 15:57:48 AIPS sys2com(1)=outprint!!'.* $aimg/ 1 2 15-NOV-2006 15:57:48 AIPS sys2com(2)=dir;system;clrtemp;end;for nn=(uvi+1):numfle $ archive MAps 1 2 15-NOV-2006 15:57:48 AIPS egetname nn;chkname;xe=1-error;if((intype='MA')&(inclass='NVAS06'))then 1 2 15-NOV-2006 15:57:48 AIPS nvasname;sysout'';sys2com'';sys2com(8)' >& /dev/null 1 2 15-NOV-2006 15:57:48 AIPS expfile=outfile;outfile='AIMG:'!!outfile 1 2 15-NOV-2006 15:57:48 AIPS if(xe=1)then;gx;syscom'\mv -f $aimg/ 1 2 15-NOV-2006 15:57:48 AIPS sys2com(1)=expfile!!' $aimg/ 1 2 15-NOV-2006 15:57:48 AIPS sys2com(2)=expfile!!'.imfits 1 2 15-NOV-2006 15:57:48 AIPS system;clrtemp;syscom'fits2jpeg -nonLinear -fits $aimg/ 1 2 15-NOV-2006 15:57:48 AIPS sys2com(1)=expfile!!'.imfits -jpeg $aimg/ 1 2 15-NOV-2006 15:57:48 AIPS sys2com(2)=expfile!!'.jpg 1 2 15-NOV-2006 15:57:48 AIPS sys2com(3)=' ; convert -size 150x150 $aimg/ 1 2 15-NOV-2006 15:57:48 AIPS sys2com(4)=expfile!!'.jpg 1 2 15-NOV-2006 15:57:48 AIPS sys2com(5)=' -resize 150x150 -gamma 1.5 -depth 32 $aimg/ 1 2 15-NOV-2006 15:57:48 AIPS sys2com(6)=expfile!!'.JPG'!!' ; \mv -f $aimg/ 1 2 15-NOV-2006 15:57:48 AIPS sys2com(7)=expfile!!'* $aimg/ 1 2 15-NOV-2006 15:57:48 AIPS sys2com(8) dir!!sys2com(8);system;clrtemp;end;end;end;end 1 2 15-NOV-2006 15:57:48 AIPS finish 1 2 15-NOV-2006 15:57:48 AIPS 1 2 15-NOV-2006 15:57:48 AIPS procedure nvas 1 2 15-NOV-2006 15:57:48 AIPS $ typ expid;flatfov;if(uvi>3)then;nvasimage;nvasarch;end 1 2 15-NOV-2006 15:57:48 AIPS typ expid;flatfov;if(uvi>3)then;nvasimage;end 1 2 15-NOV-2006 15:57:48 AIPS finish 1 0 15-NOV-2006 15:57:48 AIPS avlapipe 1 2 15-NOV-2006 15:57:48 AIPS Found in Version=ABIN 1 2 15-NOV-2006 15:57:48 AIPS Found in Version=ABIN 1 2 15-NOV-2006 15:57:48 AIPS Got(1) disk= 1 user=**** type=UV 20000517.U BAND.1 1 5 15-NOV-2006 15:57:48 AIPS 'AIPS WILL CHOOSE THE REFERENCE ANTENNA' 1 2 15-NOV-2006 15:57:48 AIPS Got(1) disk= 1 user=**** type=UV 20000517.U BAND.1 1 5 15-NOV-2006 15:57:48 AIPS 'SETFC WILL DETERMINE THE CELL SIZE' 1 5 15-NOV-2006 15:57:48 AIPS '10 SECOND INTEGRATIONS (GUESS)' 1 5 15-NOV-2006 15:57:49 AIPS 'DONE CLEANUP OF OLD TABLE EXTENTION FILES (CL,SN,FG,BP,PL,XX)' 1 5 15-NOV-2006 15:57:49 QUACK Task QUACK (release of 31DEC06) begins 1 4 15-NOV-2006 15:57:49 QUACK Flagged 2.67 min. of data in 8 scans 1 3 15-NOV-2006 15:57:49 QUACK Appears to have ended successfully 1 5 15-NOV-2006 15:57:49 QUACK hamal 31DEC06 TST: Cpu= 0.0 Real= 0 1 2 15-NOV-2006 15:57:49 AIPS Resumes 1 5 15-NOV-2006 15:57:49 FLAGR Task FLAGR (release of 31DEC06) begins 1 3 15-NOV-2006 15:57:49 FLAGR Copied FG file from vol/cno/vers 1 1 1 to 1 1 2 1 4 15-NOV-2006 15:57:50 FLAGR Overall average amp= 5.225E-01 +- 4.500E-02 source= 0530+135 1 4 15-NOV-2006 15:57:50 FLAGR Overall average rms= 7.928E-03 +- 2.013E-03 source= 0530+135 1 4 15-NOV-2006 15:57:50 FLAGR Overall average amp= 1.820E-01 +- 1.529E-02 source= 0521+166 1 4 15-NOV-2006 15:57:50 FLAGR Overall average rms= 6.051E-03 +- 1.615E-03 source= 0521+166 1 4 15-NOV-2006 15:57:50 FLAGR Overall average amp= 3.937E-01 +- 4.065E-02 source= 1331+305 1 4 15-NOV-2006 15:57:50 FLAGR Overall average rms= 7.450E-03 +- 2.483E-03 source= 1331+305 1 4 15-NOV-2006 15:57:50 FLAGR Overall average amp= 1.205E-01 +- 1.036E-02 source= 0738+177 1 4 15-NOV-2006 15:57:50 FLAGR Overall average rms= 5.390E-03 +- 1.385E-03 source= 0738+177 1 4 15-NOV-2006 15:57:50 FLAGR Overall average amp= 1.710E-01 +- 1.482E-02 source= 0854+201 1 4 15-NOV-2006 15:57:50 FLAGR Overall average rms= 5.734E-03 +- 1.635E-03 source= 0854+201 1 4 15-NOV-2006 15:57:50 FLAGR Overall average amp= 2.402E-01 +- 1.779E-02 source= 0841+708 1 4 15-NOV-2006 15:57:50 FLAGR Overall average rms= 5.526E-03 +- 1.210E-03 source= 0841+708 1 5 15-NOV-2006 15:57:50 FLAGR Found 2 bad times, 15 total flags 1 5 15-NOV-2006 15:57:50 FLAGR Wrote 0 antenna & IF independent flags 1 5 15-NOV-2006 15:57:50 FLAGR Wrote 2 antenna independent, IF dependent flags 1 5 15-NOV-2006 15:57:50 FLAGR Wrote 13 antenna & IF dependent flags 1 5 15-NOV-2006 15:57:50 FLAGR Wrote 0 antenna & IF dependent, all-times flags 1 3 15-NOV-2006 15:57:50 FLAGR Appears to have ended successfully 1 5 15-NOV-2006 15:57:51 FLAGR hamal 31DEC06 TST: Cpu= 0.7 Real= 2 1 2 15-NOV-2006 15:57:51 AIPS Resumes 1 5 15-NOV-2006 15:57:51 SETJY Task SETJY (release of 31DEC06) begins 1 2 15-NOV-2006 15:57:51 SETJY / Resetting flux information to zero 1 2 15-NOV-2006 15:57:51 SETJY BIF = 1 EIF = 2 /Range of IFs 1 2 15-NOV-2006 15:57:51 SETJY SOURCES = '' /All sources selected 1 3 15-NOV-2006 15:57:51 SETJY Appears to have ended successfully 1 5 15-NOV-2006 15:57:51 SETJY hamal 31DEC06 TST: Cpu= 0.0 Real= 0 1 2 15-NOV-2006 15:57:51 AIPS Resumes 1 5 15-NOV-2006 15:57:51 SETJY Task SETJY (release of 31DEC06) begins 1 5 15-NOV-2006 15:57:51 SETJY A source model for this calibrator is available 1 5 15-NOV-2006 15:57:51 SETJY Consult the help file for CALRD for assistance 1 5 15-NOV-2006 15:57:51 SETJY A source model for this calibrator is available 1 5 15-NOV-2006 15:57:51 SETJY Consult the help file for CALRD for assistance 1 5 15-NOV-2006 15:57:51 SETJY A source model for this calibrator is available 1 5 15-NOV-2006 15:57:51 SETJY Consult the help file for CALRD for assistance 1 5 15-NOV-2006 15:57:51 SETJY A source model for this calibrator is available 1 5 15-NOV-2006 15:57:51 SETJY Consult the help file for CALRD for assistance 1 2 15-NOV-2006 15:57:51 SETJY / Flux calculated using known spectrum 1 2 15-NOV-2006 15:57:51 SETJY BIF = 1 EIF = 2 /Range of IFs 1 2 15-NOV-2006 15:57:51 SETJY '0521+166 ' IF = 1 FLUX = 1.5014 (Jy calcd) 1 2 15-NOV-2006 15:57:51 SETJY '0521+166 ' IF = 2 FLUX = 1.5058 (Jy calcd) 1 2 15-NOV-2006 15:57:51 SETJY '1331+305 ' IF = 1 FLUX = 3.4516 (Jy calcd) 1 2 15-NOV-2006 15:57:51 SETJY '1331+305 ' IF = 2 FLUX = 3.4603 (Jy calcd) 1 2 15-NOV-2006 15:57:51 SETJY / Using (1999.2) VLA or Reynolds (1934-638) coefficients 1 3 15-NOV-2006 15:57:51 SETJY Appears to have ended successfully 1 5 15-NOV-2006 15:57:51 SETJY hamal 31DEC06 TST: Cpu= 0.0 Real= 0 1 2 15-NOV-2006 15:57:51 AIPS Resumes 1 5 15-NOV-2006 15:57:51 CALIB Task CALIB (release of 31DEC06) begins 1 3 15-NOV-2006 15:57:51 CALIB CALIB USING 20000517 . U BAND . 1 DISK= 1 USID=**** 1 3 15-NOV-2006 15:57:51 CALIB L1 Solution type 1 2 15-NOV-2006 15:57:51 CALIB Selecting, editing and calibrating the data 1 3 15-NOV-2006 15:57:51 CALIB Doing cal transfer mode with point model for each source 1 3 15-NOV-2006 15:57:51 CALIB This is not self-calibration 1 2 15-NOV-2006 15:57:51 CALIB Dividing data by source flux densities 1 2 15-NOV-2006 15:57:51 CALIB Determining solutions 1 3 15-NOV-2006 15:57:51 CALIB Writing SN table 1 1 5 15-NOV-2006 15:57:51 CALIB Found 926 good solutions 1 5 15-NOV-2006 15:57:51 CALIB Failed on 2 solutions 1 4 15-NOV-2006 15:57:51 CALIB Average closure rms = 0.0099 +- 0.0045 1 4 15-NOV-2006 15:57:51 CALIB Fraction of times having data > 2.5 rms from solution 1 4 15-NOV-2006 15:57:51 CALIB 0.25676 of the times had 2 - 4 percent outside 2.5 times rms 1 4 15-NOV-2006 15:57:51 CALIB 0.12162 of the times had 6 - 8 percent outside 2.5 times rms 1 4 15-NOV-2006 15:57:51 CALIB 0.04730 of the times had 10 - 12 percent outside 2.5 times rms 1 4 15-NOV-2006 15:57:51 CALIB 0.04730 of the times had 14 - 16 percent outside 2.5 times rms 1 4 15-NOV-2006 15:57:51 CALIB 0.02027 of the times had 16 - 18 percent outside 2.5 times rms 1 4 15-NOV-2006 15:57:51 CALIB 0.01351 of the times had 20 - 22 percent outside 2.5 times rms 1 4 15-NOV-2006 15:57:51 CALIB 0.00676 of the times had 22 - 24 percent outside 2.5 times rms 1 4 15-NOV-2006 15:57:51 CALIB 0.04054 of the times had 24 - 26 percent outside 2.5 times rms 1 4 15-NOV-2006 15:57:51 CALIB 0.01351 of the times had 28 - 30 percent outside 2.5 times rms 1 2 15-NOV-2006 15:57:51 CALIB Adjusting solutions to a common reference antenna 1 3 15-NOV-2006 15:57:52 CALIB Appears to have ended successfully 1 5 15-NOV-2006 15:57:52 CALIB hamal 31DEC06 TST: Cpu= 0.2 Real= 1 1 2 15-NOV-2006 15:57:52 AIPS Resumes 1 5 15-NOV-2006 15:57:52 AIPS '0521+166 MODEL =' '3C138_U' 1 3 15-NOV-2006 15:57:52 AIPS SYSTEM command to be executed is: 1 3 15-NOV-2006 15:57:52 AIPS ls -1 $AIPSTARS/3C138_U.MODEL >& /dev/null 1 5 15-NOV-2006 15:57:52 CALRD Task CALRD (release of 31DEC06) begins 1 2 15-NOV-2006 15:57:52 CALRD Reading disk file AIPSTARS:3C138_U.MODEL 1 2 15-NOV-2006 15:57:52 CALRD Create 3C138_U .MODEL . 1 (MA) on disk 1 cno 2 1 3 15-NOV-2006 15:57:52 CALRD Appears to have ended successfully 1 5 15-NOV-2006 15:57:52 CALRD hamal 31DEC06 TST: Cpu= 0.0 Real= 0 1 2 15-NOV-2006 15:57:52 AIPS Resumes 1 5 15-NOV-2006 15:57:52 AIPS '1331+305 MODEL =' '3C286_U' 1 3 15-NOV-2006 15:57:52 AIPS SYSTEM command to be executed is: 1 3 15-NOV-2006 15:57:52 AIPS ls -1 $AIPSTARS/3C286_U.MODEL >& /dev/null 1 5 15-NOV-2006 15:57:52 CALRD Task CALRD (release of 31DEC06) begins 1 2 15-NOV-2006 15:57:52 CALRD Reading disk file AIPSTARS:3C286_U.MODEL 1 2 15-NOV-2006 15:57:52 CALRD Create 3C286_U .MODEL . 1 (MA) on disk 1 cno 3 1 3 15-NOV-2006 15:57:52 CALRD Appears to have ended successfully 1 5 15-NOV-2006 15:57:52 CALRD hamal 31DEC06 TST: Cpu= 0.0 Real= 0 1 2 15-NOV-2006 15:57:52 AIPS Resumes 1 5 15-NOV-2006 15:57:52 CALIB Task CALIB (release of 31DEC06) begins 1 3 15-NOV-2006 15:57:52 CALIB CALIB USING 20000517 . U BAND . 1 DISK= 1 USID=**** 1 3 15-NOV-2006 15:57:52 CALIB L1 Solution type 1 2 15-NOV-2006 15:57:52 CALIB Selecting, editing and calibrating the data 1 3 15-NOV-2006 15:57:52 CALIB Doing self-cal mode with CC model 1 4 15-NOV-2006 15:57:52 CALIB SETGDS: imaging done with reprojected tangent point(s) 1 3 15-NOV-2006 15:57:52 CALIB FACSET: source model will be scaled to 1.501 Jy 1 3 15-NOV-2006 15:57:52 CALIB FACSET: 1.504356 Jy found from 81 components 1 4 15-NOV-2006 15:57:52 CALIB FACSET: scaling factor set to 9.98046E-01 1 2 15-NOV-2006 15:57:52 CALIB VISDFT: Begin DFT component division 1 2 15-NOV-2006 15:57:52 CALIB VISDFT: Model components of type Point 1 3 15-NOV-2006 15:57:52 CALIB I Polarization model processed 1 2 15-NOV-2006 15:57:52 CALIB Model computation is 100 percent complete 1 3 15-NOV-2006 15:57:52 CALIB FACSET: source model will be scaled to 1.506 Jy 1 3 15-NOV-2006 15:57:52 CALIB FACSET: 1.504356 Jy found from 81 components 1 4 15-NOV-2006 15:57:52 CALIB FACSET: scaling factor set to 1.00098E+00 1 2 15-NOV-2006 15:57:52 CALIB VISDFT: Begin DFT component division 1 3 15-NOV-2006 15:57:52 CALIB I Polarization model processed 1 3 15-NOV-2006 15:57:52 CALIB Field 1 used 81 CCs 1 2 15-NOV-2006 15:57:52 CALIB Determining solutions 1 6 15-NOV-2006 15:57:52 CALIB Deleted 48 records from SN table no. 1 1 3 15-NOV-2006 15:57:52 CALIB Writing SN table 1 1 5 15-NOV-2006 15:57:52 CALIB Found 192 good solutions 1 4 15-NOV-2006 15:57:52 CALIB Average closure rms = 0.0135 +- 0.0041 1 4 15-NOV-2006 15:57:52 CALIB Fraction of times having data > 2.5 rms from solution 1 4 15-NOV-2006 15:57:52 CALIB 0.28571 of the times had 2 - 4 percent outside 2.5 times rms 1 4 15-NOV-2006 15:57:52 CALIB 0.17857 of the times had 6 - 8 percent outside 2.5 times rms 1 4 15-NOV-2006 15:57:52 CALIB 0.07143 of the times had 10 - 12 percent outside 2.5 times rms 1 4 15-NOV-2006 15:57:52 CALIB 0.14286 of the times had 14 - 16 percent outside 2.5 times rms 1 4 15-NOV-2006 15:57:52 CALIB 0.03571 of the times had 20 - 22 percent outside 2.5 times rms 1 2 15-NOV-2006 15:57:52 CALIB Adjusting solutions to a common reference antenna 1 3 15-NOV-2006 15:57:52 CALIB Appears to have ended successfully 1 5 15-NOV-2006 15:57:52 CALIB hamal 31DEC06 TST: Cpu= 0.2 Real= 0 1 2 15-NOV-2006 15:57:52 AIPS Resumes 1 5 15-NOV-2006 15:57:52 CALIB Task CALIB (release of 31DEC06) begins 1 3 15-NOV-2006 15:57:52 CALIB CALIB USING 20000517 . U BAND . 1 DISK= 1 USID=**** 1 3 15-NOV-2006 15:57:52 CALIB L1 Solution type 1 2 15-NOV-2006 15:57:52 CALIB Selecting, editing and calibrating the data 1 3 15-NOV-2006 15:57:52 CALIB Doing self-cal mode with CC model 1 4 15-NOV-2006 15:57:52 CALIB SETGDS: imaging done with reprojected tangent point(s) 1 3 15-NOV-2006 15:57:52 CALIB FACSET: source model will be scaled to 3.452 Jy 1 3 15-NOV-2006 15:57:52 CALIB FACSET: 3.468967 Jy found from 65 components 1 4 15-NOV-2006 15:57:52 CALIB FACSET: scaling factor set to 9.94997E-01 1 2 15-NOV-2006 15:57:52 CALIB VISDFT: Begin DFT component division 1 2 15-NOV-2006 15:57:52 CALIB VISDFT: Model components of type Point 1 3 15-NOV-2006 15:57:52 CALIB I Polarization model processed 1 2 15-NOV-2006 15:57:52 CALIB Model computation is 100 percent complete 1 3 15-NOV-2006 15:57:52 CALIB FACSET: source model will be scaled to 3.460 Jy 1 3 15-NOV-2006 15:57:52 CALIB FACSET: 3.468967 Jy found from 65 components 1 4 15-NOV-2006 15:57:52 CALIB FACSET: scaling factor set to 9.97506E-01 1 2 15-NOV-2006 15:57:52 CALIB VISDFT: Begin DFT component division 1 3 15-NOV-2006 15:57:52 CALIB I Polarization model processed 1 3 15-NOV-2006 15:57:53 CALIB Field 1 used 65 CCs 1 2 15-NOV-2006 15:57:53 CALIB Determining solutions 1 6 15-NOV-2006 15:57:53 CALIB Deleted 56 records from SN table no. 1 1 3 15-NOV-2006 15:57:53 CALIB Writing SN table 1 1 5 15-NOV-2006 15:57:53 CALIB Found 223 good solutions 1 5 15-NOV-2006 15:57:53 CALIB Failed on 1 solutions 1 4 15-NOV-2006 15:57:53 CALIB Average closure rms = 0.0058 +- 0.0018 1 4 15-NOV-2006 15:57:53 CALIB Fraction of times having data > 2.5 rms from solution 1 4 15-NOV-2006 15:57:53 CALIB 0.17143 of the times had 2 - 4 percent outside 2.5 times rms 1 4 15-NOV-2006 15:57:53 CALIB 0.05714 of the times had 6 - 8 percent outside 2.5 times rms 1 4 15-NOV-2006 15:57:53 CALIB 0.11429 of the times had 14 - 16 percent outside 2.5 times rms 1 4 15-NOV-2006 15:57:53 CALIB 0.08571 of the times had 16 - 18 percent outside 2.5 times rms 1 4 15-NOV-2006 15:57:53 CALIB 0.05714 of the times had 20 - 22 percent outside 2.5 times rms 1 4 15-NOV-2006 15:57:53 CALIB 0.02857 of the times had 22 - 24 percent outside 2.5 times rms 1 4 15-NOV-2006 15:57:53 CALIB 0.08571 of the times had 24 - 26 percent outside 2.5 times rms 1 2 15-NOV-2006 15:57:53 CALIB Adjusting solutions to a common reference antenna 1 3 15-NOV-2006 15:57:53 CALIB Appears to have ended successfully 1 5 15-NOV-2006 15:57:53 CALIB hamal 31DEC06 TST: Cpu= 0.2 Real= 1 1 2 15-NOV-2006 15:57:53 AIPS Resumes 1 5 15-NOV-2006 15:57:53 CLCAL Task CLCAL (release of 31DEC06) begins 1 4 15-NOV-2006 15:57:53 CLCAL Using interpolation mode 2PT 1 3 15-NOV-2006 15:57:53 CLCAL Processing SN table 1 1 5 15-NOV-2006 15:57:53 CLCAL SNMRG: Merging SN table 1 5 15-NOV-2006 15:57:53 CLCAL SNMRG: Write 232 merged records from 232 input records 1 4 15-NOV-2006 15:57:53 CLCAL SN2CL: Applying SN tables to CL table 1, writing CL table 2 1 3 15-NOV-2006 15:57:53 CLCAL Appears to have ended successfully 1 5 15-NOV-2006 15:57:54 CLCAL hamal 31DEC06 TST: Cpu= 0.1 Real= 1 1 2 15-NOV-2006 15:57:54 AIPS Resumes 1 5 15-NOV-2006 15:57:54 CLCAL Task CLCAL (release of 31DEC06) begins 1 4 15-NOV-2006 15:57:54 CLCAL Using interpolation mode SELF 1 6 15-NOV-2006 15:57:54 CLCAL Deleted 632 records from CL table no. 2 1 3 15-NOV-2006 15:57:54 CLCAL Processing SN table 1 1 6 15-NOV-2006 15:57:54 CLCAL WARNING: SN table 1 has already been applied 1 5 15-NOV-2006 15:57:54 CLCAL SNMRG: Merging SN table 1 5 15-NOV-2006 15:57:54 CLCAL SNMRG: Write 232 merged records from 232 input records 1 4 15-NOV-2006 15:57:54 CLCAL SN2CL: Applying SN tables to CL table 1, writing CL table 2 1 3 15-NOV-2006 15:57:54 CLCAL Appears to have ended successfully 1 5 15-NOV-2006 15:57:54 CLCAL hamal 31DEC06 TST: Cpu= 0.2 Real= 0 1 2 15-NOV-2006 15:57:54 AIPS Resumes 1 5 15-NOV-2006 15:57:55 CALIB Task CALIB (release of 31DEC06) begins 1 3 15-NOV-2006 15:57:55 CALIB CALIB USING 20000517 . U BAND . 1 DISK= 1 USID=**** 1 3 15-NOV-2006 15:57:55 CALIB L1 Solution type 1 2 15-NOV-2006 15:57:55 CALIB Selecting, editing and calibrating the data 1 3 15-NOV-2006 15:57:55 CALIB Doing cal transfer mode with point model for each source 1 3 15-NOV-2006 15:57:55 CALIB This is not self-calibration 1 2 15-NOV-2006 15:57:55 CALIB Dividing data by source flux densities 1 2 15-NOV-2006 15:57:55 CALIB Determining solutions 1 3 15-NOV-2006 15:57:55 CALIB Writing SN table 2 1 5 15-NOV-2006 15:57:55 CALIB RPOL, IF= 1 The average gain over these antennas is 2.652E+00 1 5 15-NOV-2006 15:57:55 CALIB RPOL, IF= 2 The average gain over these antennas is 2.644E+00 1 5 15-NOV-2006 15:57:55 CALIB LPOL, IF= 1 The average gain over these antennas is 2.548E+00 1 5 15-NOV-2006 15:57:55 CALIB LPOL, IF= 2 The average gain over these antennas is 2.528E+00 1 5 15-NOV-2006 15:57:55 CALIB Found 256 good solutions 1 4 15-NOV-2006 15:57:55 CALIB Average closure rms = 0.0026 +- 0.0018 1 4 15-NOV-2006 15:57:55 CALIB Fraction of times having data > 2.5 rms from solution 1 4 15-NOV-2006 15:57:55 CALIB 0.34884 of the times had 2 - 4 percent outside 2.5 times rms 1 4 15-NOV-2006 15:57:55 CALIB 0.11628 of the times had 6 - 8 percent outside 2.5 times rms 1 4 15-NOV-2006 15:57:55 CALIB 0.02326 of the times had 10 - 12 percent outside 2.5 times rms 1 2 15-NOV-2006 15:57:55 CALIB Adjusting solutions to a common reference antenna 1 3 15-NOV-2006 15:57:55 CALIB Appears to have ended successfully 1 5 15-NOV-2006 15:57:56 CALIB hamal 31DEC06 TST: Cpu= 0.1 Real= 1 1 2 15-NOV-2006 15:57:56 AIPS Resumes 1 5 15-NOV-2006 15:57:56 CALIB Task CALIB (release of 31DEC06) begins 1 3 15-NOV-2006 15:57:56 CALIB CALIB USING 20000517 . U BAND . 1 DISK= 1 USID=**** 1 3 15-NOV-2006 15:57:56 CALIB L1 Solution type 1 2 15-NOV-2006 15:57:56 CALIB Selecting, editing and calibrating the data 1 3 15-NOV-2006 15:57:56 CALIB Doing self-cal mode with CC model 1 4 15-NOV-2006 15:57:56 CALIB SETGDS: imaging done with reprojected tangent point(s) 1 3 15-NOV-2006 15:57:56 CALIB FACSET: source model will be scaled to 1.501 Jy 1 3 15-NOV-2006 15:57:56 CALIB FACSET: 1.504356 Jy found from 81 components 1 4 15-NOV-2006 15:57:56 CALIB FACSET: scaling factor set to 9.98046E-01 1 2 15-NOV-2006 15:57:56 CALIB VISDFT: Begin DFT component division 1 2 15-NOV-2006 15:57:56 CALIB VISDFT: Model components of type Point 1 3 15-NOV-2006 15:57:56 CALIB I Polarization model processed 1 2 15-NOV-2006 15:57:56 CALIB Model computation is 100 percent complete 1 3 15-NOV-2006 15:57:56 CALIB FACSET: source model will be scaled to 1.506 Jy 1 3 15-NOV-2006 15:57:56 CALIB FACSET: 1.504356 Jy found from 81 components 1 4 15-NOV-2006 15:57:56 CALIB FACSET: scaling factor set to 1.00098E+00 1 2 15-NOV-2006 15:57:56 CALIB VISDFT: Begin DFT component division 1 3 15-NOV-2006 15:57:56 CALIB I Polarization model processed 1 3 15-NOV-2006 15:57:56 CALIB Field 1 used 81 CCs 1 2 15-NOV-2006 15:57:56 CALIB Determining solutions 1 6 15-NOV-2006 15:57:56 CALIB Deleted 16 records from SN table no. 2 1 3 15-NOV-2006 15:57:56 CALIB Writing SN table 2 1 5 15-NOV-2006 15:57:56 CALIB RPOL, IF= 1 The average gain over these antennas is 2.969E+00 1 5 15-NOV-2006 15:57:56 CALIB RPOL, IF= 2 The average gain over these antennas is 2.959E+00 1 5 15-NOV-2006 15:57:56 CALIB LPOL, IF= 1 The average gain over these antennas is 2.851E+00 1 5 15-NOV-2006 15:57:56 CALIB LPOL, IF= 2 The average gain over these antennas is 2.834E+00 1 5 15-NOV-2006 15:57:56 CALIB Found 64 good solutions 1 4 15-NOV-2006 15:57:56 CALIB Average closure rms = 0.0019 +- 0.0004 1 4 15-NOV-2006 15:57:56 CALIB Fraction of times having data > 2.5 rms from solution 1 4 15-NOV-2006 15:57:56 CALIB 0.25000 of the times had 2 - 4 percent outside 2.5 times rms 1 4 15-NOV-2006 15:57:56 CALIB 0.08333 of the times had 6 - 8 percent outside 2.5 times rms 1 2 15-NOV-2006 15:57:56 CALIB Adjusting solutions to a common reference antenna 1 3 15-NOV-2006 15:57:56 CALIB Appears to have ended successfully 1 5 15-NOV-2006 15:57:56 CALIB hamal 31DEC06 TST: Cpu= 0.1 Real= 0 1 2 15-NOV-2006 15:57:56 AIPS Resumes 1 5 15-NOV-2006 15:57:56 CALIB Task CALIB (release of 31DEC06) begins 1 3 15-NOV-2006 15:57:56 CALIB CALIB USING 20000517 . U BAND . 1 DISK= 1 USID=**** 1 3 15-NOV-2006 15:57:56 CALIB L1 Solution type 1 2 15-NOV-2006 15:57:56 CALIB Selecting, editing and calibrating the data 1 3 15-NOV-2006 15:57:56 CALIB Doing self-cal mode with CC model 1 4 15-NOV-2006 15:57:56 CALIB SETGDS: imaging done with reprojected tangent point(s) 1 3 15-NOV-2006 15:57:56 CALIB FACSET: source model will be scaled to 3.452 Jy 1 3 15-NOV-2006 15:57:56 CALIB FACSET: 3.468967 Jy found from 65 components 1 4 15-NOV-2006 15:57:56 CALIB FACSET: scaling factor set to 9.94997E-01 1 2 15-NOV-2006 15:57:56 CALIB VISDFT: Begin DFT component division 1 2 15-NOV-2006 15:57:56 CALIB VISDFT: Model components of type Point 1 3 15-NOV-2006 15:57:56 CALIB I Polarization model processed 1 2 15-NOV-2006 15:57:56 CALIB Model computation is 100 percent complete 1 3 15-NOV-2006 15:57:56 CALIB FACSET: source model will be scaled to 3.460 Jy 1 3 15-NOV-2006 15:57:56 CALIB FACSET: 3.468967 Jy found from 65 components 1 4 15-NOV-2006 15:57:56 CALIB FACSET: scaling factor set to 9.97506E-01 1 2 15-NOV-2006 15:57:56 CALIB VISDFT: Begin DFT component division 1 3 15-NOV-2006 15:57:56 CALIB I Polarization model processed 1 3 15-NOV-2006 15:57:56 CALIB Field 1 used 65 CCs 1 2 15-NOV-2006 15:57:56 CALIB Determining solutions 1 6 15-NOV-2006 15:57:56 CALIB Deleted 16 records from SN table no. 2 1 3 15-NOV-2006 15:57:56 CALIB Writing SN table 2 1 5 15-NOV-2006 15:57:56 CALIB RPOL, IF= 1 The average gain over these antennas is 3.142E+00 1 5 15-NOV-2006 15:57:56 CALIB RPOL, IF= 2 The average gain over these antennas is 3.136E+00 1 5 15-NOV-2006 15:57:56 CALIB LPOL, IF= 1 The average gain over these antennas is 3.017E+00 1 5 15-NOV-2006 15:57:56 CALIB LPOL, IF= 2 The average gain over these antennas is 2.987E+00 1 5 15-NOV-2006 15:57:56 CALIB Found 64 good solutions 1 4 15-NOV-2006 15:57:56 CALIB Average closure rms = 0.0017 +- 0.0006 1 4 15-NOV-2006 15:57:56 CALIB Fraction of times having data > 2.5 rms from solution 1 4 15-NOV-2006 15:57:56 CALIB 0.25000 of the times had 2 - 4 percent outside 2.5 times rms 1 4 15-NOV-2006 15:57:56 CALIB 0.75000 of the times had 6 - 8 percent outside 2.5 times rms 1 2 15-NOV-2006 15:57:56 CALIB Adjusting solutions to a common reference antenna 1 3 15-NOV-2006 15:57:56 CALIB Appears to have ended successfully 1 5 15-NOV-2006 15:57:56 CALIB hamal 31DEC06 TST: Cpu= 0.1 Real= 0 1 2 15-NOV-2006 15:57:56 AIPS Resumes 1 4 15-NOV-2006 15:57:56 AIPS Destroyed 1 extension files of type CC 1 4 15-NOV-2006 15:57:56 AIPS Destroyed 1 extension files of type HI 1 4 15-NOV-2006 15:57:56 AIPS Destroyed MA image file: catno= 2 disk= 1 1 4 15-NOV-2006 15:57:56 AIPS Destroyed 1 extension files of type CC 1 4 15-NOV-2006 15:57:56 AIPS Destroyed 1 extension files of type HI 1 4 15-NOV-2006 15:57:56 AIPS Destroyed MA image file: catno= 3 disk= 1 1 5 15-NOV-2006 15:57:56 GETJY Task GETJY (release of 31DEC06) begins 1 6 15-NOV-2006 15:57:56 GETJY Source:Qual CALCODE IF Flux (Jy) 1 6 15-NOV-2006 15:57:56 GETJY 0530+135 : 0 A 1 4.48504 +/- 0.08421 1 6 15-NOV-2006 15:57:56 GETJY 2 4.49438 +/- 0.08038 1 6 15-NOV-2006 15:57:56 GETJY 0738+177 : 0 A 1 1.05028 +/- 0.01359 1 6 15-NOV-2006 15:57:56 GETJY 2 1.05430 +/- 0.01464 1 6 15-NOV-2006 15:57:56 GETJY 0854+201 : 0 A 1 1.50315 +/- 0.02052 1 6 15-NOV-2006 15:57:56 GETJY 2 1.50088 +/- 0.02067 1 6 15-NOV-2006 15:57:56 GETJY 0841+708 : 0 A 1 2.12134 +/- 0.03692 1 6 15-NOV-2006 15:57:56 GETJY 2 2.12384 +/- 0.03896 1 3 15-NOV-2006 15:57:56 GETJY Appears to have ended successfully 1 5 15-NOV-2006 15:57:56 GETJY hamal 31DEC06 TST: Cpu= 0.0 Real= 0 1 2 15-NOV-2006 15:57:57 AIPS Resumes 1 5 15-NOV-2006 15:57:57 CLCAL Task CLCAL (release of 31DEC06) begins 1 4 15-NOV-2006 15:57:57 CLCAL Using interpolation mode 2PT 1 3 15-NOV-2006 15:57:57 CLCAL Processing SN table 2 1 5 15-NOV-2006 15:57:57 CLCAL SNMRG: Merging SN table 1 5 15-NOV-2006 15:57:57 CLCAL SNMRG: Write 64 merged records from 64 input records 1 4 15-NOV-2006 15:57:57 CLCAL SN2CL: Applying SN tables to CL table 2, writing CL table 3 1 3 15-NOV-2006 15:57:57 CLCAL Appears to have ended successfully 1 5 15-NOV-2006 15:57:57 CLCAL hamal 31DEC06 TST: Cpu= 0.1 Real= 0 1 2 15-NOV-2006 15:57:57 AIPS Resumes 1 5 15-NOV-2006 15:57:57 CLCAL Task CLCAL (release of 31DEC06) begins 1 4 15-NOV-2006 15:57:57 CLCAL Using interpolation mode SELF 1 6 15-NOV-2006 15:57:57 CLCAL Deleted 632 records from CL table no. 3 1 3 15-NOV-2006 15:57:57 CLCAL Processing SN table 2 1 6 15-NOV-2006 15:57:57 CLCAL WARNING: SN table 2 has already been applied 1 5 15-NOV-2006 15:57:57 CLCAL SNMRG: Merging SN table 1 5 15-NOV-2006 15:57:57 CLCAL SNMRG: Write 64 merged records from 64 input records 1 4 15-NOV-2006 15:57:57 CLCAL SN2CL: Applying SN tables to CL table 2, writing CL table 3 1 3 15-NOV-2006 15:57:57 CLCAL Appears to have ended successfully 1 5 15-NOV-2006 15:57:57 CLCAL hamal 31DEC06 TST: Cpu= 0.1 Real= 0 1 2 15-NOV-2006 15:57:57 AIPS Resumes 1 5 15-NOV-2006 15:57:57 TASAV Task TASAV (release of 31DEC06) begins 1 2 15-NOV-2006 15:57:57 TASAV Create 20000517 .TASAV . 1 (UV) on disk 1 cno 2 1 3 15-NOV-2006 15:57:57 TASAV Copied AN file from vol/cno/vers 1 1 1 to 1 2 1 1 3 15-NOV-2006 15:57:57 TASAV Copied NX file from vol/cno/vers 1 1 1 to 1 2 1 1 3 15-NOV-2006 15:57:57 TASAV Copied SU file from vol/cno/vers 1 1 1 to 1 2 1 1 3 15-NOV-2006 15:57:57 TASAV Copied FQ file from vol/cno/vers 1 1 1 to 1 2 1 1 3 15-NOV-2006 15:57:57 TASAV Copied CL file from vol/cno/vers 1 1 1 to 1 2 1 1 3 15-NOV-2006 15:57:57 TASAV Copied CL file from vol/cno/vers 1 1 2 to 1 2 2 1 3 15-NOV-2006 15:57:57 TASAV Copied CL file from vol/cno/vers 1 1 3 to 1 2 3 1 3 15-NOV-2006 15:57:57 TASAV Copied TY file from vol/cno/vers 1 1 1 to 1 2 1 1 3 15-NOV-2006 15:57:57 TASAV Copied WX file from vol/cno/vers 1 1 1 to 1 2 1 1 3 15-NOV-2006 15:57:57 TASAV Copied OF file from vol/cno/vers 1 1 1 to 1 2 1 1 3 15-NOV-2006 15:57:57 TASAV Copied FG file from vol/cno/vers 1 1 1 to 1 2 1 1 3 15-NOV-2006 15:57:57 TASAV Copied FG file from vol/cno/vers 1 1 2 to 1 2 2 1 3 15-NOV-2006 15:57:57 TASAV Copied XX file from vol/cno/vers 1 1 1 to 1 2 1 1 3 15-NOV-2006 15:57:57 TASAV Copied SN file from vol/cno/vers 1 1 1 to 1 2 1 1 3 15-NOV-2006 15:57:57 TASAV Copied SN file from vol/cno/vers 1 1 2 to 1 2 2 1 3 15-NOV-2006 15:57:57 TASAV Appears to have ended successfully 1 5 15-NOV-2006 15:57:57 TASAV hamal 31DEC06 TST: Cpu= 0.1 Real= 0 1 2 15-NOV-2006 15:57:57 AIPS Resumes 1 5 15-NOV-2006 15:57:57 SPLIT Task SPLIT (release of 31DEC06) begins 1 2 15-NOV-2006 15:57:57 SPLIT You are using a non-standard program 1 2 15-NOV-2006 15:57:58 SPLIT Doing subarray 1 1 2 15-NOV-2006 15:57:58 SPLIT Create 0530+135 .U BAND. 1 (UV) on disk 1 cno 3 1 3 15-NOV-2006 15:57:58 SPLIT Applying CL Table version 3 1 6 15-NOV-2006 15:57:58 SPLIT Previously flagged flagged by gain kept 1 6 15-NOV-2006 15:57:58 SPLIT Partially 21 0 21 1 6 15-NOV-2006 15:57:58 SPLIT Fully 0 0 616 1 3 15-NOV-2006 15:57:58 SPLIT Copied AN file from vol/cno/vers 1 1 1 to 1 3 1 1 3 15-NOV-2006 15:57:58 SPLIT Copied WX file from vol/cno/vers 1 1 1 to 1 3 1 1 3 15-NOV-2006 15:57:58 SPLIT Copied OF file from vol/cno/vers 1 1 1 to 1 3 1 1 3 15-NOV-2006 15:57:58 SPLIT Copied XX file from vol/cno/vers 1 1 1 to 1 3 1 1 2 15-NOV-2006 15:57:58 SPLIT Create 0521+166 .U BAND. 1 (UV) on disk 1 cno 4 1 6 15-NOV-2006 15:57:58 SPLIT Previously flagged flagged by gain kept 1 6 15-NOV-2006 15:57:58 SPLIT Partially 97 0 97 1 6 15-NOV-2006 15:57:58 SPLIT Fully 0 0 771 1 3 15-NOV-2006 15:57:58 SPLIT Copied AN file from vol/cno/vers 1 1 1 to 1 4 1 1 3 15-NOV-2006 15:57:58 SPLIT Copied WX file from vol/cno/vers 1 1 1 to 1 4 1 1 3 15-NOV-2006 15:57:58 SPLIT Copied OF file from vol/cno/vers 1 1 1 to 1 4 1 1 3 15-NOV-2006 15:57:58 SPLIT Copied XX file from vol/cno/vers 1 1 1 to 1 4 1 1 2 15-NOV-2006 15:57:58 SPLIT Create 1331+305 .U BAND. 1 (UV) on disk 1 cno 5 1 6 15-NOV-2006 15:57:58 SPLIT Previously flagged flagged by gain kept 1 6 15-NOV-2006 15:57:58 SPLIT Partially 19 6 19 1 6 15-NOV-2006 15:57:58 SPLIT Fully 0 0 996 1 3 15-NOV-2006 15:57:58 SPLIT Copied AN file from vol/cno/vers 1 1 1 to 1 5 1 1 3 15-NOV-2006 15:57:58 SPLIT Copied WX file from vol/cno/vers 1 1 1 to 1 5 1 1 3 15-NOV-2006 15:57:58 SPLIT Copied OF file from vol/cno/vers 1 1 1 to 1 5 1 1 3 15-NOV-2006 15:57:58 SPLIT Copied XX file from vol/cno/vers 1 1 1 to 1 5 1 1 2 15-NOV-2006 15:57:58 SPLIT Create 0738+177 .U BAND. 1 (UV) on disk 1 cno 6 1 6 15-NOV-2006 15:57:58 SPLIT Previously flagged flagged by gain kept 1 6 15-NOV-2006 15:57:58 SPLIT Partially 0 0 0 1 6 15-NOV-2006 15:57:58 SPLIT Fully 0 0 616 1 3 15-NOV-2006 15:57:58 SPLIT Copied AN file from vol/cno/vers 1 1 1 to 1 6 1 1 3 15-NOV-2006 15:57:58 SPLIT Copied WX file from vol/cno/vers 1 1 1 to 1 6 1 1 3 15-NOV-2006 15:57:58 SPLIT Copied OF file from vol/cno/vers 1 1 1 to 1 6 1 1 3 15-NOV-2006 15:57:58 SPLIT Copied XX file from vol/cno/vers 1 1 1 to 1 6 1 1 2 15-NOV-2006 15:57:58 SPLIT Create 0854+201 .U BAND. 1 (UV) on disk 1 cno 7 1 6 15-NOV-2006 15:57:58 SPLIT Previously flagged flagged by gain kept 1 6 15-NOV-2006 15:57:58 SPLIT Partially 26 0 26 1 6 15-NOV-2006 15:57:58 SPLIT Fully 0 0 618 1 3 15-NOV-2006 15:57:58 SPLIT Copied AN file from vol/cno/vers 1 1 1 to 1 7 1 1 3 15-NOV-2006 15:57:58 SPLIT Copied WX file from vol/cno/vers 1 1 1 to 1 7 1 1 3 15-NOV-2006 15:57:58 SPLIT Copied OF file from vol/cno/vers 1 1 1 to 1 7 1 1 3 15-NOV-2006 15:57:58 SPLIT Copied XX file from vol/cno/vers 1 1 1 to 1 7 1 1 2 15-NOV-2006 15:57:58 SPLIT Create 0841+708 .U BAND. 1 (UV) on disk 1 cno 8 1 6 15-NOV-2006 15:57:58 SPLIT Previously flagged flagged by gain kept 1 6 15-NOV-2006 15:57:58 SPLIT Partially 98 0 98 1 6 15-NOV-2006 15:57:58 SPLIT Fully 0 0 546 1 3 15-NOV-2006 15:57:58 SPLIT Copied AN file from vol/cno/vers 1 1 1 to 1 8 1 1 3 15-NOV-2006 15:57:58 SPLIT Copied WX file from vol/cno/vers 1 1 1 to 1 8 1 1 3 15-NOV-2006 15:57:58 SPLIT Copied OF file from vol/cno/vers 1 1 1 to 1 8 1 1 3 15-NOV-2006 15:57:58 SPLIT Copied XX file from vol/cno/vers 1 1 1 to 1 8 1 1 3 15-NOV-2006 15:57:58 SPLIT Appears to have ended successfully 1 5 15-NOV-2006 15:57:58 SPLIT hamal 31DEC06 TST: Cpu= 0.3 Real= 1 1 2 15-NOV-2006 15:57:58 AIPS Resumes 1 5 15-NOV-2006 15:57:58 AIPS ' ' 1 5 15-NOV-2006 15:57:58 AIPS 'ESTIMATED RMS:' '0.2756 MILLI JANSKY' 1 3 15-NOV-2006 15:57:58 AIPS SYSTEM command to be executed is: 1 3 15-NOV-2006 15:57:58 AIPS rm -f /tmp/SETFC@0530+135_U,BAND.0-1 >& /dev/null 1 2 15-NOV-2006 15:57:58 AIPS Waiting for returned adverbs 1 5 15-NOV-2006 15:57:58 SETFC Task SETFC (release of 31DEC06) begins 1 3 15-NOV-2006 15:57:58 SETFC Found 0530+135 U BAND Seq 1 Disk: 1 in slot 3 1 4 15-NOV-2006 15:57:58 SETFC SETCEL: recommends IMSIZE 217 CELLSIZE 0.83231 1 4 15-NOV-2006 15:57:58 SETFC SETCEL: returns IMSIZE 256 CELLSIZE 0.83231 1 2 15-NOV-2006 15:57:58 SETFC ZTXOP2: using translated file name = 1 2 15-NOV-2006 15:57:58 SETFC ZTXOP2: /tmp/SETFC@0530+135_U,BAND.0-1 1 4 15-NOV-2006 15:57:58 SETFC FLYEYE added 1 fields to BOXFILE to 0.000 deg 1 7 15-NOV-2006 15:57:58 SETFC WARNING: THIS MAY NOT COVER THE DESIRED AREA 1 4 15-NOV-2006 15:57:58 SETFC First field number written was 1 1 4 15-NOV-2006 15:57:58 SETFC Highest field number written was 1 1 2 15-NOV-2006 15:57:58 SETFC returns adverbs to AIPS 1 3 15-NOV-2006 15:57:58 SETFC Appears to have ended successfully 1 5 15-NOV-2006 15:57:58 SETFC hamal 31DEC06 TST: Cpu= 0.1 Real= 0 1 2 15-NOV-2006 15:57:58 AIPS Resumes 1 3 15-NOV-2006 15:57:58 AIPS SETFC was not found to be running 1 5 15-NOV-2006 15:57:58 AIPS 'SEARCHING FOR NVSS SOURCES' 1 2 15-NOV-2006 15:57:58 AIPS Waiting for returned adverbs 1 5 15-NOV-2006 15:57:58 SETFC Task SETFC (release of 31DEC06) begins 1 3 15-NOV-2006 15:57:58 SETFC Found 0530+135 U BAND Seq 1 Disk: 1 in slot 3 1 2 15-NOV-2006 15:57:58 SETFC ZTXOP2: using translated file name = 1 2 15-NOV-2006 15:57:58 SETFC ZTXOP2: /tmp/SETFC@0530+135_U,BAND.0-1 1 3 15-NOV-2006 15:57:58 SETFC Searching catalog between 0.02 and 0.08 degrees radius 1 2 15-NOV-2006 15:57:58 SETFC ZTXOP2: using translated file name = 1 2 15-NOV-2006 15:57:58 SETFC ZTXOP2: /home/auto/aips/TEXT/STARS/NV00.0030 1 3 15-NOV-2006 15:57:59 SETFC No NVSS sources selected for BOXFILE 1 3 15-NOV-2006 15:57:59 SETFC The Sun is 28.0 deg away - ignoring 1 4 15-NOV-2006 15:57:59 SETFC First field number written was 2 1 4 15-NOV-2006 15:57:59 SETFC Highest field number written was 1 1 2 15-NOV-2006 15:57:59 SETFC returns adverbs to AIPS 1 3 15-NOV-2006 15:57:59 SETFC Appears to have ended successfully 1 5 15-NOV-2006 15:57:59 SETFC hamal 31DEC06 TST: Cpu= 0.8 Real= 1 1 2 15-NOV-2006 15:57:59 AIPS Resumes 1 3 15-NOV-2006 15:57:59 AIPS SETFC was not found to be running 1 3 15-NOV-2006 15:57:59 AIPS SYSTEM command to be executed is: 1 3 15-NOV-2006 15:57:59 AIPS echo "SETFC FILE FOR SOURCE 0530+135 BELOW IS:" >> ARUN:BG086C_2 1 3 15-NOV-2006 15:57:59 AIPS 000MAY17_1.0.log 1 3 15-NOV-2006 15:57:59 AIPS SYSTEM command to be executed is: 1 3 15-NOV-2006 15:57:59 AIPS cat /tmp/SETFC@0530+135_U,BAND.0-1 >> ARUN:BG086C_2000MAY17_1.0. 1 3 15-NOV-2006 15:57:59 AIPS log 1 5 15-NOV-2006 15:57:59 AIPS ' NOW STARTING WITH SOURCE :1 =0530+135' 1 5 15-NOV-2006 15:57:59 AIPS ' ' 1 5 15-NOV-2006 15:57:59 IMAGR Task IMAGR (release of 31DEC06) begins 1 2 15-NOV-2006 15:57:59 IMAGR ZTXOP2: using translated file name = 1 2 15-NOV-2006 15:57:59 IMAGR ZTXOP2: /tmp/SETFC@0530+135_U,BAND.0-1 1 3 15-NOV-2006 15:57:59 IMAGR FIELDF: Final field parameters and # read are: 1 3 15-NOV-2006 15:57:59 IMAGR Field 1 244 244 4.8126E-02 -4.9000E-02 0 1 2 15-NOV-2006 15:57:59 IMAGR ZTXOP2: using translated file name = 1 2 15-NOV-2006 15:57:59 IMAGR ZTXOP2: /tmp/SETFC@0530+135_U,BAND.0-1 1 7 15-NOV-2006 15:57:59 IMAGR WINDF: Number of clean boxes/field read as follows: 1 3 15-NOV-2006 15:57:59 IMAGR Field 01: 1 1 2 15-NOV-2006 15:57:59 IMAGR Create 0530+135 .IMAGR . 1 (UV) on disk 1 cno 9 1 4 15-NOV-2006 15:57:59 IMAGR Beginning channel 1 through 1 with 2 IFs 1 3 15-NOV-2006 15:57:59 IMAGR IMACPY: Copied 637 visibilities to be imaged 1 2 15-NOV-2006 15:57:59 IMAGR UVWAIT: begin finding uniform weights 1 2 15-NOV-2006 15:57:59 IMAGR UVWAIT: Average grid weight 1.070E+04 1 2 15-NOV-2006 15:57:59 IMAGR UVWAIT: Adding temperance S 2.140E+03 1 2 15-NOV-2006 15:57:59 IMAGR UVWAIT: begin applying uniform or other weights 1 4 15-NOV-2006 15:57:59 IMAGR UVWAIT: Sum of weights in 3.891E+05 and out 4.365E+05 1 4 15-NOV-2006 15:57:59 IMAGR UVWAIT: Noise is increased by a factor 1.118 due to weighting 1 4 15-NOV-2006 15:57:59 IMAGR UVWAIT: Average summed weight 1.070E+04 over 1274 vis 1 2 15-NOV-2006 15:57:59 IMAGR Create 0530+135 .IBM001. 1 (MA) on disk 1 cno 10 1 2 15-NOV-2006 15:57:59 IMAGR Create 0530+135 .ICL001. 1 (MA) on disk 1 cno 11 1 2 15-NOV-2006 15:58:00 IMAGR GRDFLT: X and Y convolution type = SPHEROIDAL 1 2 15-NOV-2006 15:58:00 IMAGR GRDFLT: X and Y parms = 3.0000 1.0000 1 2 15-NOV-2006 15:58:00 IMAGR GRDFLT: convolution function sampled every 1/100 of a cell 1 2 15-NOV-2006 15:58:00 IMAGR GRDMEM: Ave 2 Channels; 1.496490E+10 to 1.491490E+10 Hz 1 4 15-NOV-2006 15:58:00 IMAGR Field 1 Sum of gridding weights = 4.63418E+06 1 4 15-NOV-2006 15:58:00 IMAGR Field 1 Beam min = -415.3 MilliJy, max = 1.0 Jy 1 4 15-NOV-2006 15:58:00 IMAGR Field 1 fit FWHM = 3.922 x 2.184 arcsec, PA= 30.9 1 4 15-NOV-2006 15:58:00 IMAGR CLBHIS: minimum component 0.500 of current peak 1 4 15-NOV-2006 15:58:00 IMAGR Field 1 min = -1.4 Jy,max = 4.5 Jy 1 2 15-NOV-2006 15:58:00 IMAGR BGC Clean: using 507 cell beam + residuals > 4.12 Jy 1 2 15-NOV-2006 15:58:00 IMAGR 1 Residual map points loaded 1 4 15-NOV-2006 15:58:00 IMAGR Field 1 min algorithm flux= 4.042 Jy iter= 2 1 3 15-NOV-2006 15:58:00 IMAGR Total Cleaned flux density = 853.259 MilliJy 2 comps 1 4 15-NOV-2006 15:58:00 IMAGR SETDO3: imaging done with multiple tangent planes 1 2 15-NOV-2006 15:58:00 IMAGR VISDFT: Begin DFT component subtraction 1 2 15-NOV-2006 15:58:00 IMAGR VISDFT: Model components of type Point 1 3 15-NOV-2006 15:58:00 IMAGR I Polarization model processed 1 4 15-NOV-2006 15:58:00 IMAGR Field 1 min = -1.1 Jy,max = 3.6 Jy 1 2 15-NOV-2006 15:58:00 IMAGR BGC Clean: using 507 cell beam + residuals > 3.64 Jy 1 2 15-NOV-2006 15:58:00 IMAGR 0 Residual map points loaded 1 8 15-NOV-2006 15:58:00 IMAGR CLMPAC: NO RESIDUAL POINTS LOADED INTO AP, I QUIT 1 8 15-NOV-2006 15:58:00 IMAGR CLMPAC: ERROR LOADING RESIDUALS FOR CLEAN field number 0001 1 8 15-NOV-2006 15:58:00 IMAGR CLNCYC: ERROR CLEANING CLEAN process object 1 8 15-NOV-2006 15:58:00 IMAGR CLNUV2 : ERROR CLEANING CLEAN process object 1 8 15-NOV-2006 15:58:00 IMAGR CLNUV : ERROR CLEANING CLEAN process object 1 6 15-NOV-2006 15:58:00 IMAGR Deleting UV work file: 1 4 15-NOV-2006 15:58:00 IMAGR Destroyed 1 extension files of type AN 1 4 15-NOV-2006 15:58:00 IMAGR Destroyed 1 extension files of type FQ 1 4 15-NOV-2006 15:58:00 IMAGR Destroyed UV image file: catno= 9 disk= 1 1 3 15-NOV-2006 15:58:00 IMAGR Purports to die of UNNATURAL causes 1 5 15-NOV-2006 15:58:00 IMAGR hamal 31DEC06 TST: Cpu= 0.4 Real= 1 1 2 15-NOV-2006 15:58:00 AIPS Resumes 1 9 15-NOV-2006 15:58:00 AIPS RETURN CODE 1 RECEIVED: STOPPING 1 0 15-NOV-2006 15:58:00 AIPS 1 0 15-NOV-2006 15:58:00 AIPS type'EMPTY CATALOG ?' checkcat 1 2 15-NOV-2006 15:58:00 AIPS Disk 1 in-CNO 10 renumbered as CNO 9 1 2 15-NOV-2006 15:58:00 AIPS Disk 1 in-CNO 11 renumbered as CNO 10 1 5 15-NOV-2006 15:58:00 AIPS 'EMPTY CATALOG ?' 10 1 0 15-NOV-2006 15:58:00 AIPS flatfov;nvasimage 1 2 15-NOV-2006 15:58:00 AIPS Got(1) disk= 1 user=**** type=UV 20000517.U BAND.1 1 5 15-NOV-2006 15:58:00 AIPS '10 SECOND INTEGRATIONS (GUESS)' 1 2 15-NOV-2006 15:58:00 AIPS Got(1) disk= 1 user=**** type=UV 0530+135.U BAND.1 1 5 15-NOV-2006 15:58:00 AIPS 'WARNING: MULTIPLE IMAGES - CHECK?' 1 2 15-NOV-2006 15:58:00 AIPS Got(1) disk= 1 user=**** type=UV 0521+166.U BAND.1 1 2 15-NOV-2006 15:58:00 AIPS Got(1) disk= 1 user=**** type=UV 1331+305.U BAND.1 1 2 15-NOV-2006 15:58:00 AIPS Got(1) disk= 1 user=**** type=UV 0738+177.U BAND.1 1 2 15-NOV-2006 15:58:00 AIPS Got(1) disk= 1 user=**** type=UV 0854+201.U BAND.1 1 2 15-NOV-2006 15:58:00 AIPS Got(1) disk= 1 user=**** type=UV 0841+708.U BAND.1 1 2 15-NOV-2006 15:58:00 AIPS Disk 1 No files needed renumbering 1 2 15-NOV-2006 15:58:00 AIPS Got(1) disk= 1 user=**** type=UV 20000517.U BAND.1 1 2 15-NOV-2006 15:58:00 AIPS Got(1) disk= 1 user=**** type=UV 20000517.TASAV.1 1 2 15-NOV-2006 15:58:00 AIPS Got(1) disk= 1 user=**** type=UV 0530+135.U BAND.1 1 2 15-NOV-2006 15:58:00 AIPS Got(1) disk= 1 user=**** type=UV 0521+166.U BAND.1 1 2 15-NOV-2006 15:58:00 AIPS Got(1) disk= 1 user=**** type=UV 1331+305.U BAND.1 1 2 15-NOV-2006 15:58:00 AIPS Got(1) disk= 1 user=**** type=UV 0738+177.U BAND.1 1 2 15-NOV-2006 15:58:00 AIPS Got(1) disk= 1 user=**** type=UV 0854+201.U BAND.1 1 2 15-NOV-2006 15:58:00 AIPS Got(1) disk= 1 user=**** type=UV 0841+708.U BAND.1 1 2 15-NOV-2006 15:58:00 AIPS Got(1) disk= 1 user=**** type=MA 0530+135.IBM001.1 1 2 15-NOV-2006 15:58:00 AIPS Got(1) disk= 1 user=**** type=MA 0530+135.ICL001.1 1 6 15-NOV-2006 15:58:00 AIPS CATALOG SLOT # 11 DOES NOT CONTAIN AN ENTRY 1 6 15-NOV-2006 15:58:00 AIPS CATALOG SLOT # 11 DOES NOT CONTAIN AN ENTRY 1 2 15-NOV-2006 15:58:00 AIPS Disk 1 No files needed renumbering 1 6 15-NOV-2006 15:58:00 AIPS CATALOG SLOT # 11 DOES NOT CONTAIN AN ENTRY 1 6 15-NOV-2006 15:58:00 AIPS CATALOG SLOT # 11 DOES NOT CONTAIN AN ENTRY 1 0 15-NOV-2006 15:58:00 AIPS tget prtmsg;prtmsg;docrt 1 /home/hamal/vlbacald/run/BG086C_2000MAY17_1.0.run finished on Wed Nov 15 15:58:00 MST 2006