! Started logfile: 3C274_S.log on Thu Nov  8 10:51:34 2007
observe 3C274_S.edt
! Reading UV FITS file: 3C274_S.edt
! AN table 1: 23 integrations on 105 of 105 possible baselines.
! AN table 2: 28 integrations on 105 of 105 possible baselines.
! AN table 3: 34 integrations on 105 of 105 possible baselines.
! Apparent sampling: 0.0369748 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 3C274
! 
! There are 4 IFs, and a total of 4 channels:
! 
!  IF  Channel    Frequency  Freq offset  Number of   Overall IF
!       origin    at origin  per channel   channels    bandwidth
!  ------------------------------------------------------------- (Hz)
!  01        1  2.23697e+09        8e+06          1        8e+06
!  02        2  2.26697e+09        8e+06          1        8e+06
!  03        3  2.35697e+09        8e+06          1        8e+06
!  04        4  2.37697e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 970 lines of history.
! 
! Reading 1320 visibilities.
![@gonzo7-0.4_south 3C274_S]
print "***********************************"
! *********************************** 
print "*** Using gonzo instruction set ***"
! *** Using gonzo instruction set *** 
print "***********************************"
! *********************************** 
float field_size
field_size = 1024
float field_cell
field_cell = 0.4
integer clean_niter
clean_niter = 50
float clean_gain
clean_gain = 0.03
float dynam
dynam = 7.0
float win_mult
win_mult = 1.0
float solint
solint = 3.6/6.0
logical doflt
doflt = true
logical doamp
float new_peak
float flux_cutoff
mapsize field_size,field_cell
! Map grid = 1024x1024 pixels with 0.400x0.400 milli-arcsec cellsize.
select
! Selecting polarization: RR,  channels: 1..4
! Reading IF 1 channels: 1..1
! Reading IF 2 channels: 2..2
! Reading IF 3 channels: 3..3
! Reading IF 4 channels: 4..4
startmod
! Applying default point source starting model.
! Performing phase self-cal
! Adding 1 model components to the UV plane model.
! The established model now contains 1 components and 1 Jy
! 
! Correcting IF 1.
!  A total of 281 telescope corrections were flagged in sub-array 1.
!  A total of 302 telescope corrections were flagged in sub-array 2.
!  A total of 489 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 281 telescope corrections were flagged in sub-array 1.
!  A total of 302 telescope corrections were flagged in sub-array 2.
!  A total of 489 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 327 telescope corrections were flagged in sub-array 1.
!  A total of 302 telescope corrections were flagged in sub-array 2.
!  A total of 489 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 327 telescope corrections were flagged in sub-array 1.
!  A total of 302 telescope corrections were flagged in sub-array 2.
!  A total of 489 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=0.955969Jy  sigma=0.009625
! Fit after  self-cal, rms=0.890750Jy  sigma=0.008570
! clrmod: Cleared the established, tentative and continuum models.
! Redundant starting model cleared.
uvweight 2,-1
! Uniform weighting binwidth: 2 (pixels).
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.42 mas, bmaj=6.252 mas, bpa=0.08572 degrees
! Estimated noise=3571.69 mJy/beam.
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal doamp, doflt, solint
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! Added new window around map position (0, 0).
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 1.14881 Jy
! Total flux subtracted in 50 components = 1.14881 Jy
! Clean residual min=-0.207435 max=0.426579 Jy/beam
! Clean residual mean=0.001081 rms=0.074995 Jy/beam
! Combined flux in latest and established models = 1.14881 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 7 model components to the UV plane model.
! The established model now contains 7 components and 1.14881 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.761416Jy  sigma=0.007148
! Fit after  self-cal, rms=0.761102Jy  sigma=0.007147
! Inverting map 
print "****************************************"
! **************************************** 
print "*** Finished Uniform Weighting CLEAN ***"
! *** Finished Uniform Weighting CLEAN *** 
print "****************************************"
! **************************************** 
uvweight 0,-1
! Uniform weighting is not currently selected.
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
win_mult = win_mult * 1.6
clean_niter = clean_niter * 2
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.496 mas, bmaj=7.378 mas, bpa=3.012 degrees
! Estimated noise=2115.98 mJy/beam.
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal doamp, doflt, solint
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.464258 Jy
! Component: 100  -  total flux cleaned = 0.606263 Jy
! Total flux subtracted in 100 components = 0.606263 Jy
! Clean residual min=-0.179111 max=0.254972 Jy/beam
! Clean residual mean=0.000018 rms=0.065240 Jy/beam
! Combined flux in latest and established models = 1.75508 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 21 model components to the UV plane model.
! The established model now contains 22 components and 1.75508 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.438578Jy  sigma=0.004195
! Fit after  self-cal, rms=0.438228Jy  sigma=0.004193
! Inverting map 
print "****************************************"
! **************************************** 
print "*** Finished Natural Weighting CLEAN ***"
! *** Finished Natural Weighting CLEAN *** 
print "****************************************"
! **************************************** 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 48 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        1.00*    HH        1.00*    KB        1.08     KP        1.00*    
!   LA        1.00*    MK        0.92     NL        1.00*    NY        1.00*    
!   OV        1.36     PT        1.00*    SC        1.00*    TC        1.00*    
!   WF        1.00*    WZ        1.00*    BR        1.01     
! 
!  A total of 21 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        1.16     HH        1.00*    KB        1.00*    KP        0.92     
!   LA        1.01     MK        1.00*    NL        0.87     NY        1.00*    
!   OV        0.82     PT        0.95     SC        1.00*    TC        1.00*    
!   WF        1.00*    WZ        1.00*    BR        1.27     
! 
!  A total of 21 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        0.00*    HH        0.00*    KB        0.00*    KP        0.00*    
!   LA        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TC        0.00*    
!   WF        0.00*    WZ        0.00*    BR        0.00*    
! 
! 
! Correcting IF 2.
!  A total of 48 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        1.00*    HH        1.00*    KB        1.05     KP        1.00*    
!   LA        1.00*    MK        0.98     NL        1.00*    NY        1.00*    
!   OV        1.31     PT        1.00*    SC        1.00*    TC        1.00*    
!   WF        1.00*    WZ        1.00*    BR        1.01     
! 
!  A total of 21 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        1.17     HH        1.00*    KB        1.00*    KP        0.96     
!   LA        1.00     MK        1.00*    NL        0.87     NY        1.00*    
!   OV        0.80     PT        0.95     SC        1.00*    TC        1.00*    
!   WF        1.00*    WZ        1.00*    BR        1.25     
! 
!  A total of 21 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        0.00*    HH        0.00*    KB        0.00*    KP        0.00*    
!   LA        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TC        0.00*    
!   WF        0.00*    WZ        0.00*    BR        0.00*    
! 
! 
! Correcting IF 3.
!  A total of 18 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        0.00*    HH        0.00*    KB        0.00*    KP        0.00*    
!   LA        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TC        0.00*    
!   WF        0.00*    WZ        0.00*    BR        0.00*    
! 
!  A total of 21 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        1.11     HH        1.00*    KB        1.00*    KP        0.87     
!   LA        1.01     MK        1.00*    NL        0.81     NY        1.00*    
!   OV        0.84     PT        0.92     SC        1.00*    TC        1.00*    
!   WF        1.00*    WZ        1.00*    BR        1.24     
! 
!  A total of 21 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        0.00*    HH        0.00*    KB        0.00*    KP        0.00*    
!   LA        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TC        0.00*    
!   WF        0.00*    WZ        0.00*    BR        0.00*    
! 
! 
! Correcting IF 4.
!  A total of 18 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        0.00*    HH        0.00*    KB        0.00*    KP        0.00*    
!   LA        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TC        0.00*    
!   WF        0.00*    WZ        0.00*    BR        0.00*    
! 
!  A total of 21 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        1.13     HH        1.00*    KB        1.00*    KP        0.91     
!   LA        1.01     MK        1.00*    NL        0.81     NY        1.00*    
!   OV        0.83     PT        0.95     SC        1.00*    TC        1.00*    
!   WF        1.00*    WZ        1.00*    BR        1.26     
! 
!  A total of 21 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        0.00*    HH        0.00*    KB        0.00*    KP        0.00*    
!   LA        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   OV        0.00*    PT        0.00*    SC        0.00*    TC        0.00*    
!   WF        0.00*    WZ        0.00*    BR        0.00*    
! 
! 
! Fit before self-cal, rms=0.438228Jy  sigma=0.004193
! Fit after  self-cal, rms=0.311575Jy  sigma=0.003024
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=6.221 mas, bmaj=10.57 mas, bpa=7.056 degrees
! Estimated noise=2434.09 mJy/beam.
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal doamp, doflt, solint
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00140042 Jy
! Component: 100  -  total flux cleaned = 0.00141225 Jy
! Total flux subtracted in 100 components = 0.00141225 Jy
! Clean residual min=-0.103030 max=0.181714 Jy/beam
! Clean residual mean=-0.000392 rms=0.045016 Jy/beam
! Combined flux in latest and established models = 1.75649 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 7 model components to the UV plane model.
! The established model now contains 26 components and 1.75649 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.311483Jy  sigma=0.003025
! Fit after  self-cal, rms=0.314280Jy  sigma=0.003008
! Inverting map 
dynam = dynam - 1.0
doamp = true
solint = solint * (6.0/3.6)
flux_cutoff = imstat(rms) * dynam
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal doamp, doflt, solint
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 1.52719e-05 Jy
! Component: 100  -  total flux cleaned = -2.95191e-05 Jy
! Total flux subtracted in 100 components = -2.95191e-05 Jy
! Clean residual min=-0.102696 max=0.180668 Jy/beam
! Clean residual mean=-0.000393 rms=0.044008 Jy/beam
! Combined flux in latest and established models = 1.75646 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 7 model components to the UV plane model.
! The established model now contains 32 components and 1.75646 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.313902Jy  sigma=0.003008
! Fit after  self-cal, rms=0.299504Jy  sigma=0.002892
! Inverting map and beam 
! Estimated beam: bmin=6.214 mas, bmaj=10.57 mas, bpa=6.926 degrees
! Estimated noise=2436.02 mJy/beam.
doamp = false
solint = solint / (6.0/3.6)
flux_cutoff = imstat(rms) * dynam
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal doamp, doflt, solint
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00143401 Jy
! Component: 100  -  total flux cleaned = 0.00114399 Jy
! Total flux subtracted in 100 components = 0.00114399 Jy
! Clean residual min=-0.101335 max=0.174341 Jy/beam
! Clean residual mean=-0.000230 rms=0.042489 Jy/beam
! Combined flux in latest and established models = 1.7576 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 5 model components to the UV plane model.
! The established model now contains 32 components and 1.7576 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.299037Jy  sigma=0.002891
! Fit after  self-cal, rms=0.299442Jy  sigma=0.002891
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 3C274_S
! Writing UV FITS file: 3C274_S.uvf
! Writing 32 model components to file: 3C274_S.mod
! wwins: Wrote 1 windows to 3C274_S.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 6.214 x 10.57 at 6.926 degrees (North through East)
! Clean map  min=-0.10044  max=1.651 Jy/beam
! Writing clean map to FITS file: 3C274_S.fits
! Writing difmap environment to: 3C274_S.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
![@gonzo_plot 3C274_S]
device 3C274_Suv.ps/vps,1,2
! Attempting to open device: '3C274_Suv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 3C274_Sim.ps/vps
! Attempting to open device: '3C274_Sim.ps/vps'
uvweight 0,-1
! Uniform weighting is not currently selected.
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
loglevs -1,2048,2
! The new contour levels are:
!  -1 1 2 4 8 16 32 64 128 256 512 1024 2048
cmul = imstat(rms)*3
! Inverting map and beam 
! Estimated beam: bmin=6.214 mas, bmaj=10.57 mas, bpa=6.926 degrees
! Estimated noise=2436.02 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 6.214 x 10.57 at 6.926 degrees (North through East)
! Clean map  min=-0.10044  max=1.651 Jy/beam
![Exited script file: gonzo_plot]
![Exited script file: gonzo7-0.4_south]
quit
! Quitting program
! Log file 3C274_S.log closed on Thu Nov  8 10:51:50 2007