! Started logfile: 1219+044_S.log on Fri Apr 18 07:16:51 2008
observe 1219+044_S.edt
! Reading UV FITS file: 1219+044_S.edt
! AN table 1: 23 integrations on 136 of 136 possible baselines.
! AN table 2: 6 integrations on 136 of 136 possible baselines.
! AN table 3: 9 integrations on 136 of 136 possible baselines.
! AN table 4: 6 integrations on 136 of 136 possible baselines.
! AN table 5: 14 integrations on 136 of 136 possible baselines.
! Apparent sampling: 0.084432 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 1219+044
! 
! 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 1141 lines of history.
! 
! Reading 2664 visibilities.
![@gonzo7-0.4 1219+044_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.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.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 299 telescope corrections were flagged in sub-array 1.
!  A total of 77 telescope corrections were flagged in sub-array 2.
!  A total of 137 telescope corrections were flagged in sub-array 3.
!  A total of 82 telescope corrections were flagged in sub-array 4.
!  A total of 152 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 2.
!  A total of 300 telescope corrections were flagged in sub-array 1.
!  A total of 77 telescope corrections were flagged in sub-array 2.
!  A total of 137 telescope corrections were flagged in sub-array 3.
!  A total of 82 telescope corrections were flagged in sub-array 4.
!  A total of 152 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 3.
!  A total of 299 telescope corrections were flagged in sub-array 1.
!  A total of 77 telescope corrections were flagged in sub-array 2.
!  A total of 137 telescope corrections were flagged in sub-array 3.
!  A total of 82 telescope corrections were flagged in sub-array 4.
!  A total of 152 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 4.
!  A total of 306 telescope corrections were flagged in sub-array 1.
!  A total of 77 telescope corrections were flagged in sub-array 2.
!  A total of 144 telescope corrections were flagged in sub-array 3.
!  A total of 82 telescope corrections were flagged in sub-array 4.
!  A total of 167 telescope corrections were flagged in sub-array 5.
! 
! Fit before self-cal, rms=0.472042Jy  sigma=0.004957
! Fit after  self-cal, rms=0.466786Jy  sigma=0.004960
! 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=3.879 mas, bmaj=8.283 mas, bpa=-11.84 degrees
! Estimated noise=1935.78 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 = 0.447136 Jy
! Total flux subtracted in 50 components = 0.447136 Jy
! Clean residual min=-0.033461 max=0.124703 Jy/beam
! Clean residual mean=0.000150 rms=0.010690 Jy/beam
! Combined flux in latest and established models = 0.447136 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 1 model components to the UV plane model.
! The established model now contains 1 components and 0.447136 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.225898Jy  sigma=0.002040
! Fit after  self-cal, rms=0.225898Jy  sigma=0.002040
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0980747 Jy
! Total flux subtracted in 50 components = 0.0980747 Jy
! Clean residual min=-0.030404 max=0.044167 Jy/beam
! Clean residual mean=0.000000 rms=0.007930 Jy/beam
! Combined flux in latest and established models = 0.54521 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 0.54521 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.189702Jy  sigma=0.001645
! Fit after  self-cal, rms=0.189689Jy  sigma=0.001645
! 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=4.478 mas, bmaj=9.677 mas, bpa=-10.33 degrees
! Estimated noise=1445.93 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.0102173 Jy
! Component: 100  -  total flux cleaned = 0.00816963 Jy
! Total flux subtracted in 100 components = 0.00816963 Jy
! Clean residual min=-0.026839 max=0.031245 Jy/beam
! Clean residual mean=0.001576 rms=0.006837 Jy/beam
! Combined flux in latest and established models = 0.55338 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 16 components and 0.55338 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.186014Jy  sigma=0.001615
! Fit after  self-cal, rms=0.186006Jy  sigma=0.001615
! 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 12 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.86     FD        0.93     HN        0.96     KB        1.00*    
!   KK        1.00*    KP        1.17     LA        0.93     MK        0.74     
!   NL        0.88     NY        1.00*    OV        0.90     PT        0.88     
!   SC        1.06     TS        1.00*    WF        0.94     WZ        1.00*    
!   ZC        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.25     FD        1.00*    HN        1.00*    KB        1.00*    
!   KK        0.98     KP        0.94     LA        1.00*    MK        0.82     
!   NL        1.00*    NY        1.00*    OV        0.82     PT        1.00*    
!   SC        1.00*    TS        1.00*    WF        1.00*    WZ        1.00*    
!   ZC        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        0.95     HN        1.00*    KB        1.00*    
!   KK        1.00*    KP        0.98     LA        1.00*    MK        1.00*    
!   NL        1.00*    NY        1.00*    OV        0.86     PT        0.88     
!   SC        1.00*    TS        1.00*    WF        1.00*    WZ        1.00*    
!   ZC        1.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    HN        1.00*    KB        0.97     
!   KK        1.00*    KP        1.00*    LA        1.00*    MK        1.00*    
!   NL        1.00*    NY        1.33     OV        1.00*    PT        1.00*    
!   SC        1.00*    TS        0.77     WF        1.00*    WZ        1.00*    
!   ZC        1.07     
! 
!  A total of 3 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.15     FD        1.02     HN        1.06     KB        1.00*    
!   KK        1.00*    KP        0.99     LA        1.00     MK        1.00*    
!   NL        1.02     NY        1.00*    OV        1.25     PT        1.08     
!   SC        1.00*    TS        1.00*    WF        1.06     WZ        1.00*    
!   ZC        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 15 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.84     FD        0.89     HN        0.95     KB        1.00*    
!   KK        1.00*    KP        0.87     LA        0.90     MK        0.60     
!   NL        0.89     NY        1.00*    OV        0.92     PT        0.88     
!   SC        1.07     TS        1.00*    WF        0.89     WZ        1.00*    
!   ZC        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.19     FD        1.00*    HN        1.00*    KB        1.00*    
!   KK        0.94     KP        1.17     LA        1.00*    MK        0.89     
!   NL        1.00*    NY        1.00*    OV        0.82     PT        1.00*    
!   SC        1.00*    TS        1.00*    WF        1.00*    WZ        1.00*    
!   ZC        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.03     HN        1.00*    KB        1.00*    
!   KK        1.00*    KP        0.94     LA        1.00*    MK        1.00*    
!   NL        1.00*    NY        1.00*    OV        0.87     PT        0.98     
!   SC        1.00*    TS        1.00*    WF        1.00*    WZ        1.00*    
!   ZC        1.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    HN        1.00*    KB        0.90     
!   KK        1.00*    KP        1.00*    LA        1.00*    MK        1.00*    
!   NL        1.00*    NY        1.48     OV        1.00*    PT        1.00*    
!   SC        1.00*    TS        0.90     WF        1.00*    WZ        1.00*    
!   ZC        1.00     
! 
!  A total of 3 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.15     FD        0.99     HN        1.05     KB        1.00*    
!   KK        1.00*    KP        1.14     LA        0.99     MK        1.00*    
!   NL        0.99     NY        1.00*    OV        1.20     PT        1.04     
!   SC        1.00*    TS        1.00*    WF        1.02     WZ        1.00*    
!   ZC        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 12 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.94     FD        0.92     HN        0.96     KB        1.00*    
!   KK        1.00*    KP        0.86     LA        0.91     MK        1.07     
!   NL        0.92     NY        1.00*    OV        0.87     PT        0.90     
!   SC        0.97     TS        1.00*    WF        0.92     WZ        1.00*    
!   ZC        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.16     FD        1.00*    HN        1.00*    KB        1.00*    
!   KK        0.99     KP        0.99     LA        1.00*    MK        0.92     
!   NL        1.00*    NY        1.00*    OV        0.78     PT        1.00*    
!   SC        1.00*    TS        1.00*    WF        1.00*    WZ        1.00*    
!   ZC        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        0.86     HN        1.00*    KB        1.00*    
!   KK        1.00*    KP        0.96     LA        1.00*    MK        1.00*    
!   NL        1.00*    NY        1.00*    OV        0.80     PT        0.98     
!   SC        1.00*    TS        1.00*    WF        1.00*    WZ        1.00*    
!   ZC        1.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    HN        1.00*    KB        0.97     
!   KK        1.00*    KP        1.00*    LA        1.00*    MK        1.00*    
!   NL        1.00*    NY        1.29     OV        1.00*    PT        1.00*    
!   SC        1.00*    TS        0.83     WF        1.00*    WZ        1.00*    
!   ZC        1.09     
! 
!  A total of 3 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.21     FD        1.01     HN        1.06     KB        1.00*    
!   KK        1.00*    KP        1.13     LA        0.99     MK        1.00*    
!   NL        1.01     NY        1.00*    OV        1.14     PT        1.07     
!   SC        1.00*    TS        1.00*    WF        1.08     WZ        1.00*    
!   ZC        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 18 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.93     FD        1.00*    HN        0.94     KB        1.00*    
!   KK        1.00*    KP        0.86     LA        0.89     MK        1.11     
!   NL        0.93     NY        1.00*    OV        0.91     PT        0.88     
!   SC        1.06     TS        1.00*    WF        1.10     WZ        1.00*    
!   ZC        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.18     FD        1.00*    HN        1.00*    KB        1.00*    
!   KK        1.00     KP        1.02     LA        1.00*    MK        0.89     
!   NL        1.00*    NY        1.00*    OV        0.83     PT        1.00*    
!   SC        1.00*    TS        1.00*    WF        1.00*    WZ        1.00*    
!   ZC        1.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   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*    TS        0.00*    WF        0.00*    WZ        0.00*    
!   ZC        0.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    HN        1.00*    KB        1.53     
!   KK        1.00*    KP        1.00*    LA        1.00*    MK        1.00*    
!   NL        1.00*    NY        1.27     OV        1.00*    PT        1.00*    
!   SC        1.00*    TS        0.73     WF        1.00*    WZ        1.00*    
!   ZC        1.11     
! 
!  A total of 3 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.24     FD        1.00*    HN        1.04     KB        1.00*    
!   KK        1.00*    KP        1.09     LA        1.05     MK        1.00*    
!   NL        1.00     NY        1.00*    OV        1.26     PT        1.00     
!   SC        1.00*    TS        1.00*    WF        1.00*    WZ        1.00*    
!   ZC        1.00*    
! 
! 
! Fit before self-cal, rms=0.186006Jy  sigma=0.001615
! Fit after  self-cal, rms=0.149632Jy  sigma=0.001153
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=4.341 mas, bmaj=9.972 mas, bpa=-10.43 degrees
! Estimated noise=1429.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.00154976 Jy
! Component: 100  -  total flux cleaned = 0.00111066 Jy
! Total flux subtracted in 100 components = 0.00111066 Jy
! Clean residual min=-0.010029 max=0.012008 Jy/beam
! Clean residual mean=0.000435 rms=0.002906 Jy/beam
! Combined flux in latest and established models = 0.554491 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 24 components and 0.554491 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.149369Jy  sigma=0.001151
! Fit after  self-cal, rms=0.149423Jy  sigma=0.001151
! 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 = 0.000107601 Jy
! Component: 100  -  total flux cleaned = -0.000342226 Jy
! Total flux subtracted in 100 components = -0.000342226 Jy
! Clean residual min=-0.010015 max=0.012174 Jy/beam
! Clean residual mean=0.000445 rms=0.002887 Jy/beam
! Combined flux in latest and established models = 0.554149 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 6 model components to the UV plane model.
! The established model now contains 26 components and 0.554149 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.149276Jy  sigma=0.001150
! Fit after  self-cal, rms=0.140888Jy  sigma=0.001053
! Inverting map and beam 
! Estimated beam: bmin=4.331 mas, bmaj=9.971 mas, bpa=-10.46 degrees
! Estimated noise=1428.43 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.00162713 Jy
! Component: 100  -  total flux cleaned = 0.00211678 Jy
! Total flux subtracted in 100 components = 0.00211678 Jy
! Clean residual min=-0.005061 max=0.005890 Jy/beam
! Clean residual mean=0.000344 rms=0.001455 Jy/beam
! Combined flux in latest and established models = 0.556265 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 11 model components to the UV plane model.
! The established model now contains 34 components and 0.556265 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.140782Jy  sigma=0.001052
! Fit after  self-cal, rms=0.140788Jy  sigma=0.001052
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 1219+044_S
! Writing UV FITS file: 1219+044_S.uvf
! Writing 34 model components to file: 1219+044_S.mod
! wwins: Wrote 1 windows to 1219+044_S.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 4.331 x 9.971 at -10.46 degrees (North through East)
! Clean map  min=-0.0050218  max=0.56194 Jy/beam
! Writing clean map to FITS file: 1219+044_S.fits
! Writing difmap environment to: 1219+044_S.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
![@gonzo_plot 1219+044_S]
device 1219+044_Suv.ps/vps,1,2
! Attempting to open device: '1219+044_Suv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 1219+044_Sim.ps/vps
! Attempting to open device: '1219+044_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=4.331 mas, bmaj=9.971 mas, bpa=-10.46 degrees
! Estimated noise=1428.43 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 4.331 x 9.971 at -10.46 degrees (North through East)
! Clean map  min=-0.0050218  max=0.56194 Jy/beam
![Exited script file: gonzo_plot]
![Exited script file: gonzo7-0.4]
quit
! Quitting program
! Log file 1219+044_S.log closed on Fri Apr 18 07:17:06 2008