! Started logfile: 1546+027_X.log on Thu Aug 14 12:22:59 2008
observe 1546+027_X.edt
! Reading UV FITS file: 1546+027_X.edt
! AN table 1: 6 integrations on 105 of 105 possible baselines.
! AN table 2: 80 integrations on 105 of 105 possible baselines.
! AN table 3: 11 integrations on 105 of 105 possible baselines.
! AN table 4: 20 integrations on 105 of 105 possible baselines.
! Apparent sampling: 0.110623 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 1546+027
! 
! 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  8.40997e+09        8e+06          1        8e+06
!  02        2  8.47997e+09        8e+06          1        8e+06
!  03        3  8.79497e+09        8e+06          1        8e+06
!  04        4  8.89997e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 898 lines of history.
! 
! Reading 5436 visibilities.
![@gonzo7-0.1 1546+027_X]
print "***********************************"
! *********************************** 
print "*** Using gonzo instruction set ***"
! *** Using gonzo instruction set *** 
print "***********************************"
! *********************************** 
float field_size
field_size = 1024
float field_cell
field_cell = 0.1
integer clean_niter
clean_niter = 50
float clean_gain
clean_gain = 0.03
float dynam
dynam = 7.0
float win_mult
win_mult = 1.8
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.100x0.100 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 39 telescope corrections were flagged in sub-array 1.
!  A total of 921 telescope corrections were flagged in sub-array 2.
!  A total of 78 telescope corrections were flagged in sub-array 3.
!  A total of 273 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 39 telescope corrections were flagged in sub-array 1.
!  A total of 918 telescope corrections were flagged in sub-array 2.
!  A total of 78 telescope corrections were flagged in sub-array 3.
!  A total of 267 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 39 telescope corrections were flagged in sub-array 1.
!  A total of 936 telescope corrections were flagged in sub-array 2.
!  A total of 78 telescope corrections were flagged in sub-array 3.
!  A total of 267 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 39 telescope corrections were flagged in sub-array 1.
!  A total of 918 telescope corrections were flagged in sub-array 2.
!  A total of 78 telescope corrections were flagged in sub-array 3.
!  A total of 267 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.953013Jy  sigma=0.012608
! Fit after  self-cal, rms=0.953970Jy  sigma=0.012634
! 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=0.5408 mas, bmaj=1.74 mas, bpa=-8.661 degrees
! Estimated noise=1277.8 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.29155 Jy
! Total flux subtracted in 50 components = 1.29155 Jy
! Clean residual min=-0.109810 max=0.383043 Jy/beam
! Clean residual mean=-0.000037 rms=0.028596 Jy/beam
! Combined flux in latest and established models = 1.29155 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 6 model components to the UV plane model.
! The established model now contains 6 components and 1.29155 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.740194Jy  sigma=0.009683
! Fit after  self-cal, rms=0.740197Jy  sigma=0.009683
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.392424 Jy
! Total flux subtracted in 50 components = 0.392424 Jy
! Clean residual min=-0.088124 max=0.176358 Jy/beam
! Clean residual mean=-0.000049 rms=0.020121 Jy/beam
! Combined flux in latest and established models = 1.68398 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 13 model components to the UV plane model.
! The established model now contains 17 components and 1.68398 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.530073Jy  sigma=0.006529
! Fit after  self-cal, rms=0.529790Jy  sigma=0.006527
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.210802 Jy
! Total flux subtracted in 50 components = 0.210802 Jy
! Clean residual min=-0.076798 max=0.110812 Jy/beam
! Clean residual mean=-0.000054 rms=0.017009 Jy/beam
! Combined flux in latest and established models = 1.89478 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 16 model components to the UV plane model.
! The established model now contains 30 components and 1.89478 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.454292Jy  sigma=0.005284
! Fit after  self-cal, rms=0.454016Jy  sigma=0.005282
! 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=0.7135 mas, bmaj=1.981 mas, bpa=-10.01 degrees
! Estimated noise=836.257 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.161344 Jy
! Component: 100  -  total flux cleaned = 0.243641 Jy
! Total flux subtracted in 100 components = 0.243641 Jy
! Clean residual min=-0.066445 max=0.076948 Jy/beam
! Clean residual mean=-0.000215 rms=0.017778 Jy/beam
! Combined flux in latest and established models = 2.13842 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 32 model components to the UV plane model.
! The established model now contains 54 components and 2.13842 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.406297Jy  sigma=0.004453
! Fit after  self-cal, rms=0.405908Jy  sigma=0.004449
! Inverting map 
print "****************************************"
! **************************************** 
print "*** Finished Natural Weighting CLEAN ***"
! *** Finished Natural Weighting CLEAN *** 
print "****************************************"
! **************************************** 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.03     FD        0.96     HN        1.03     KB        1.00*    
!   KK        0.68     KP        0.95     LA        1.00*    MK        0.88     
!   NL        0.91     NY        1.00*    OV        0.97     PT        0.99     
!   SC        0.85     WZ        1.00*    ZC        1.00*    
! 
!  A total of 63 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.93     FD        0.97     HN        1.29     KB        1.00*    
!   KK        1.00*    KP        0.96     LA        1.00*    MK        1.00*    
!   NL        0.98     NY        1.21     OV        0.93     PT        1.00     
!   SC        1.00     WZ        0.83     ZC        1.16     
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.95     FD        0.93     HN        1.09     KB        1.00*    
!   KK        1.14     KP        0.91     LA        1.00*    MK        1.00     
!   NL        0.94     NY        1.00*    OV        0.95     PT        0.94     
!   SC        1.08     WZ        1.00*    ZC        1.00*    
! 
!  A total of 27 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    HN        0.00*    KB        0.00*    
!   KK        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*    WZ        0.00*    ZC        0.00*    
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.02     FD        0.94     HN        1.04     KB        1.00*    
!   KK        0.69     KP        0.98     LA        1.00*    MK        0.84     
!   NL        0.90     NY        1.00*    OV        0.98     PT        1.02     
!   SC        0.83     WZ        1.00*    ZC        1.00*    
! 
!  A total of 66 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.95     FD        0.98     HN        1.31     KB        1.00*    
!   KK        1.00*    KP        0.89     LA        1.00*    MK        1.00*    
!   NL        0.97     NY        1.55     OV        0.92     PT        1.04     
!   SC        1.01     WZ        0.91     ZC        1.30     
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.96     FD        0.93     HN        1.09     KB        1.00*    
!   KK        1.13     KP        0.86     LA        1.00*    MK        1.00     
!   NL        0.92     NY        1.00*    OV        0.92     PT        1.00     
!   SC        1.07     WZ        1.00*    ZC        1.00*    
! 
!  A total of 33 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    HN        0.00*    KB        0.00*    
!   KK        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*    WZ        0.00*    ZC        0.00*    
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.05     FD        0.90     HN        1.02     KB        1.00*    
!   KK        0.74     KP        0.96     LA        1.00*    MK        0.82     
!   NL        0.93     NY        1.00*    OV        1.00     PT        1.05     
!   SC        0.85     WZ        1.00*    ZC        1.00*    
! 
!  A total of 48 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.97     FD        0.97     HN        1.28     KB        1.00*    
!   KK        1.00*    KP        0.88     LA        1.00*    MK        1.00*    
!   NL        1.00     NY        1.19     OV        0.95     PT        1.04     
!   SC        1.01     WZ        0.67     ZC        1.20     
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        0.93     HN        1.09     KB        1.00*    
!   KK        1.15     KP        0.79     LA        1.00*    MK        1.03     
!   NL        0.97     NY        1.00*    OV        0.96     PT        1.01     
!   SC        1.13     WZ        1.00*    ZC        1.00*    
! 
!  A total of 33 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    HN        0.00*    KB        0.00*    
!   KK        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*    WZ        0.00*    ZC        0.00*    
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.03     FD        0.99     HN        1.02     KB        1.00*    
!   KK        0.76     KP        0.96     LA        1.00*    MK        0.83     
!   NL        0.94     NY        1.00*    OV        1.02     PT        1.03     
!   SC        0.85     WZ        1.00*    ZC        1.00*    
! 
!  A total of 66 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.95     FD        0.98     HN        1.33     KB        1.00*    
!   KK        1.00*    KP        0.92     LA        1.00*    MK        1.00*    
!   NL        1.00     NY        1.48     OV        0.92     PT        1.04     
!   SC        1.03     WZ        0.79     ZC        1.27     
! 
!  A total of 3 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.96     FD        0.94     HN        1.14     KB        1.00*    
!   KK        1.17     KP        0.84     LA        1.00*    MK        1.04     
!   NL        0.97     NY        1.00*    OV        0.96     PT        1.00     
!   SC        1.14     WZ        1.00*    ZC        1.00*    
! 
!  A total of 33 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    HN        0.00*    KB        0.00*    
!   KK        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*    WZ        0.00*    ZC        0.00*    
! 
! 
! Fit before self-cal, rms=0.405908Jy  sigma=0.004449
! Fit after  self-cal, rms=0.262433Jy  sigma=0.002556
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.7013 mas, bmaj=2.085 mas, bpa=-9.831 degrees
! Estimated noise=844.726 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.0139816 Jy
! Component: 100  -  total flux cleaned = 0.0132894 Jy
! Total flux subtracted in 100 components = 0.0132894 Jy
! Clean residual min=-0.034155 max=0.037417 Jy/beam
! Clean residual mean=-0.000171 rms=0.008716 Jy/beam
! Combined flux in latest and established models = 2.15171 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 8 model components to the UV plane model.
! The established model now contains 62 components and 2.15171 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.259761Jy  sigma=0.002520
! Fit after  self-cal, rms=0.259572Jy  sigma=0.002517
! 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 = 5.20755e-05 Jy
! Component: 100  -  total flux cleaned = -0.00109329 Jy
! Total flux subtracted in 100 components = -0.00109329 Jy
! Clean residual min=-0.033868 max=0.037408 Jy/beam
! Clean residual mean=-0.000171 rms=0.008675 Jy/beam
! Combined flux in latest and established models = 2.15062 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 11 model components to the UV plane model.
! The established model now contains 68 components and 2.15062 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.258169Jy  sigma=0.002499
! Fit after  self-cal, rms=0.143946Jy  sigma=0.001276
! Inverting map and beam 
! Estimated beam: bmin=0.7036 mas, bmaj=2.086 mas, bpa=-9.824 degrees
! Estimated noise=847.174 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)
! Added new window around map position (0.6, -0.6).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0183025 Jy
! Component: 100  -  total flux cleaned = 0.0212294 Jy
! Total flux subtracted in 100 components = 0.0212294 Jy
! Clean residual min=-0.008377 max=0.011817 Jy/beam
! Clean residual mean=-0.000015 rms=0.001938 Jy/beam
! Combined flux in latest and established models = 2.17185 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 10 model components to the UV plane model.
! The established model now contains 76 components and 2.17185 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.141157Jy  sigma=0.001240
! Fit after  self-cal, rms=0.140993Jy  sigma=0.001238
! Inverting map 
! Added new window around map position (0.5, -6).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00738734 Jy
! Component: 100  -  total flux cleaned = 0.00815051 Jy
! Total flux subtracted in 100 components = 0.00815051 Jy
! Clean residual min=-0.007127 max=0.007132 Jy/beam
! Clean residual mean=-0.000017 rms=0.001824 Jy/beam
! Combined flux in latest and established models = 2.18 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 13 model components to the UV plane model.
! The established model now contains 82 components and 2.18 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.139581Jy  sigma=0.001219
! Fit after  self-cal, rms=0.139503Jy  sigma=0.001218
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 1546+027_X
! Writing UV FITS file: 1546+027_X.uvf
! Writing 82 model components to file: 1546+027_X.mod
! wwins: Wrote 3 windows to 1546+027_X.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7036 x 2.086 at -9.824 degrees (North through East)
! Clean map  min=-0.0069631  max=1.7702 Jy/beam
! Writing clean map to FITS file: 1546+027_X.fits
! Writing difmap environment to: 1546+027_X.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
![@gonzo_plot 1546+027_X]
device 1546+027_Xuv.ps/vps,1,2
! Attempting to open device: '1546+027_Xuv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 1546+027_Xim.ps/vps
! Attempting to open device: '1546+027_Xim.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=0.7036 mas, bmaj=2.086 mas, bpa=-9.824 degrees
! Estimated noise=847.174 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7036 x 2.086 at -9.824 degrees (North through East)
! Clean map  min=-0.0069631  max=1.7702 Jy/beam
![Exited script file: gonzo_plot]
![Exited script file: gonzo7-0.1]
quit
! Quitting program
! Log file 1546+027_X.log closed on Thu Aug 14 12:23:21 2008