! Started logfile: 1219+044_S.log on Tue Sep 12 11:04:20 2006
observe 1219+044_S.edt
! Reading UV FITS file: 1219+044_S.edt
! AN table 1: 41 integrations on 105 of 105 possible baselines.
! AN table 2: 12 integrations on 105 of 105 possible baselines.
! AN table 3: 3 integrations on 105 of 105 possible baselines.
! AN table 4: 22 integrations on 105 of 105 possible baselines.
! AN table 5: 14 integrations on 105 of 105 possible baselines.
! Apparent sampling: 0.119048 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 1219+044
! Warning: Unknown AN-table MNTSTA value (4).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (4).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (4).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (4).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (4).
!          Will assume that it is ground-based.
! 
! 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 1654 lines of history.
! 
! Reading 4600 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 405 telescope corrections were flagged in sub-array 1.
!  A total of 171 telescope corrections were flagged in sub-array 2.
!  A total of 45 telescope corrections were flagged in sub-array 3.
!  A total of 262 telescope corrections were flagged in sub-array 4.
!  A total of 89 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 2.
!  A total of 405 telescope corrections were flagged in sub-array 1.
!  A total of 171 telescope corrections were flagged in sub-array 2.
!  A total of 45 telescope corrections were flagged in sub-array 3.
!  A total of 262 telescope corrections were flagged in sub-array 4.
!  A total of 89 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 3.
!  A total of 405 telescope corrections were flagged in sub-array 1.
!  A total of 171 telescope corrections were flagged in sub-array 2.
!  A total of 45 telescope corrections were flagged in sub-array 3.
!  A total of 262 telescope corrections were flagged in sub-array 4.
!  A total of 89 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 4.
!  A total of 405 telescope corrections were flagged in sub-array 1.
!  A total of 171 telescope corrections were flagged in sub-array 2.
!  A total of 45 telescope corrections were flagged in sub-array 3.
!  A total of 262 telescope corrections were flagged in sub-array 4.
!  A total of 90 telescope corrections were flagged in sub-array 5.
! 
! Fit before self-cal, rms=0.520031Jy  sigma=0.006244
! Fit after  self-cal, rms=0.513206Jy  sigma=0.006240
! 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.211 mas, bmaj=4.534 mas, bpa=-30.18 degrees
! Estimated noise=1680.85 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.398012 Jy
! Total flux subtracted in 50 components = 0.398012 Jy
! Clean residual min=-0.030562 max=0.117091 Jy/beam
! Clean residual mean=-0.000152 rms=0.009844 Jy/beam
! Combined flux in latest and established models = 0.398012 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.398012 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.202834Jy  sigma=0.002238
! Fit after  self-cal, rms=0.202828Jy  sigma=0.002238
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.101706 Jy
! Total flux subtracted in 50 components = 0.101706 Jy
! Clean residual min=-0.023761 max=0.034064 Jy/beam
! Clean residual mean=-0.000006 rms=0.006762 Jy/beam
! Combined flux in latest and established models = 0.499718 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 9 components and 0.499718 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.163600Jy  sigma=0.001798
! Fit after  self-cal, rms=0.163565Jy  sigma=0.001797
! 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.676 mas, bmaj=6.309 mas, bpa=-18.49 degrees
! Estimated noise=897.557 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.0145246 Jy
! Component: 100  -  total flux cleaned = 0.0149407 Jy
! Total flux subtracted in 100 components = 0.0149407 Jy
! Clean residual min=-0.029118 max=0.035603 Jy/beam
! Clean residual mean=0.000092 rms=0.007918 Jy/beam
! Combined flux in latest and established models = 0.514658 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 17 components and 0.514658 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.161266Jy  sigma=0.001779
! Fit after  self-cal, rms=0.161217Jy  sigma=0.001779
! 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:
!   AP        1.00*    BR        1.01     FD        0.81     HN        1.00*    
!   KP        0.99     LA        1.04     MC        1.00*    MK        0.92     
!   NL        1.00*    HO        0.94     NY        1.00*    OV        1.14     
!   PT        1.13     SC        1.00*    WZ        1.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   AP        0.00*    BR        0.00*    FD        0.00*    HN        0.00*    
!   KP        0.00*    LA        0.00*    MC        0.00*    MK        0.00*    
!   NL        0.00*    HO        0.00*    NY        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    WZ        0.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   AP        0.00*    BR        0.00*    FD        0.00*    HN        0.00*    
!   KP        0.00*    LA        0.00*    MC        0.00*    MK        0.00*    
!   NL        0.00*    HO        0.00*    NY        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    WZ        0.00*    
! 
!  A total of 39 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   AP        0.95     BR        1.00*    FD        1.00*    HN        1.00     
!   KP        1.00*    LA        1.27     MC        0.88     MK        1.00*    
!   NL        1.07     HO        1.00*    NY        0.93     OV        1.00*    
!   PT        1.00*    SC        1.00*    WZ        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   AP        1.04     BR        0.95     FD        0.69     HN        1.07     
!   KP        0.94     LA        0.95     MC        1.00*    MK        1.08     
!   NL        0.95     HO        1.00*    NY        1.00*    OV        0.83     
!   PT        0.92     SC        1.08     WZ        1.00*    
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   AP        1.00*    BR        1.09     FD        1.11     HN        1.00*    
!   KP        1.05     LA        1.09     MC        1.00*    MK        1.15     
!   NL        1.00*    HO        0.89     NY        1.00*    OV        1.12     
!   PT        1.09     SC        1.00*    WZ        1.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   AP        0.00*    BR        0.00*    FD        0.00*    HN        0.00*    
!   KP        0.00*    LA        0.00*    MC        0.00*    MK        0.00*    
!   NL        0.00*    HO        0.00*    NY        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    WZ        0.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   AP        0.00*    BR        0.00*    FD        0.00*    HN        0.00*    
!   KP        0.00*    LA        0.00*    MC        0.00*    MK        0.00*    
!   NL        0.00*    HO        0.00*    NY        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    WZ        0.00*    
! 
!  A total of 39 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   AP        0.98     BR        1.00*    FD        1.00*    HN        1.01     
!   KP        1.00*    LA        1.04     MC        1.10     MK        1.00*    
!   NL        1.04     HO        1.00*    NY        1.07     OV        1.00*    
!   PT        1.00*    SC        1.00*    WZ        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   AP        1.06     BR        0.98     FD        0.71     HN        1.14     
!   KP        0.84     LA        0.92     MC        1.00*    MK        1.00     
!   NL        0.94     HO        1.00*    NY        1.00*    OV        0.87     
!   PT        0.97     SC        1.08     WZ        1.00*    
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   AP        1.00*    BR        1.03     FD        1.07     HN        1.00*    
!   KP        0.99     LA        1.09     MC        1.00*    MK        1.16     
!   NL        1.00*    HO        0.89     NY        1.00*    OV        1.14     
!   PT        1.17     SC        1.00*    WZ        1.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   AP        0.00*    BR        0.00*    FD        0.00*    HN        0.00*    
!   KP        0.00*    LA        0.00*    MC        0.00*    MK        0.00*    
!   NL        0.00*    HO        0.00*    NY        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    WZ        0.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   AP        0.00*    BR        0.00*    FD        0.00*    HN        0.00*    
!   KP        0.00*    LA        0.00*    MC        0.00*    MK        0.00*    
!   NL        0.00*    HO        0.00*    NY        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    WZ        0.00*    
! 
!  A total of 39 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   AP        0.96     BR        1.00*    FD        1.00*    HN        0.91     
!   KP        1.00*    LA        1.11     MC        0.96     MK        1.00*    
!   NL        1.07     HO        1.00*    NY        1.05     OV        1.00*    
!   PT        1.00*    SC        1.00*    WZ        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   AP        1.09     BR        0.91     FD        0.72     HN        0.95     
!   KP        0.75     LA        0.88     MC        1.00*    MK        0.89     
!   NL        0.96     HO        1.00*    NY        1.00*    OV        0.87     
!   PT        0.97     SC        1.09     WZ        1.00*    
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   AP        1.00*    BR        1.08     FD        1.09     HN        1.00*    
!   KP        0.98     LA        1.07     MC        1.00*    MK        1.18     
!   NL        1.00*    HO        0.87     NY        1.00*    OV        1.13     
!   PT        1.14     SC        1.00*    WZ        1.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   AP        0.00*    BR        0.00*    FD        0.00*    HN        0.00*    
!   KP        0.00*    LA        0.00*    MC        0.00*    MK        0.00*    
!   NL        0.00*    HO        0.00*    NY        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    WZ        0.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   AP        0.00*    BR        0.00*    FD        0.00*    HN        0.00*    
!   KP        0.00*    LA        0.00*    MC        0.00*    MK        0.00*    
!   NL        0.00*    HO        0.00*    NY        0.00*    OV        0.00*    
!   PT        0.00*    SC        0.00*    WZ        0.00*    
! 
!  A total of 39 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   AP        0.91     BR        1.00*    FD        1.00*    HN        0.93     
!   KP        1.00*    LA        1.12     MC        0.97     MK        1.00*    
!   NL        1.06     HO        1.00*    NY        1.06     OV        1.00*    
!   PT        1.00*    SC        1.00*    WZ        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   AP        1.20     BR        0.84     FD        0.70     HN        1.90     
!   KP        0.78     LA        0.89     MC        1.00*    MK        0.84     
!   NL        0.92     HO        1.00*    NY        1.00*    OV        0.84     
!   PT        0.94     SC        1.13     WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.161217Jy  sigma=0.001779
! Fit after  self-cal, rms=0.111193Jy  sigma=0.001180
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.589 mas, bmaj=6.251 mas, bpa=-18.84 degrees
! Estimated noise=898.335 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.00231385 Jy
! Component: 100  -  total flux cleaned = 0.00232163 Jy
! Total flux subtracted in 100 components = 0.00232163 Jy
! Clean residual min=-0.008876 max=0.008052 Jy/beam
! Clean residual mean=0.000016 rms=0.001722 Jy/beam
! Combined flux in latest and established models = 0.51698 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 23 components and 0.51698 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.111035Jy  sigma=0.001178
! Fit after  self-cal, rms=0.111015Jy  sigma=0.001178
! 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.000413685 Jy
! Component: 100  -  total flux cleaned = 0.000406728 Jy
! Total flux subtracted in 100 components = 0.000406728 Jy
! Clean residual min=-0.008814 max=0.007813 Jy/beam
! Clean residual mean=0.000017 rms=0.001701 Jy/beam
! Combined flux in latest and established models = 0.517387 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 5 model components to the UV plane model.
! The established model now contains 23 components and 0.517387 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.110907Jy  sigma=0.001177
! Fit after  self-cal, rms=0.108578Jy  sigma=0.001143
! Inverting map and beam 
! Estimated beam: bmin=3.577 mas, bmaj=6.232 mas, bpa=-19.06 degrees
! Estimated noise=900.189 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.00253448 Jy
! Component: 100  -  total flux cleaned = 0.00253334 Jy
! Total flux subtracted in 100 components = 0.00253334 Jy
! Clean residual min=-0.008683 max=0.007823 Jy/beam
! Clean residual mean=0.000010 rms=0.001686 Jy/beam
! Combined flux in latest and established models = 0.51992 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 23 components and 0.51992 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.108461Jy  sigma=0.001142
! Fit after  self-cal, rms=0.108446Jy  sigma=0.001142
! 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 23 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: 3.577 x 6.232 at -19.06 degrees (North through East)
! Clean map  min=-0.0083225  max=0.50038 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=3.577 mas, bmaj=6.232 mas, bpa=-19.06 degrees
! Estimated noise=900.189 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.577 x 6.232 at -19.06 degrees (North through East)
! Clean map  min=-0.0083225  max=0.50038 Jy/beam
![Exited script file: gonzo_plot]
![Exited script file: gonzo7-0.4]
quit
! Quitting program
! Log file 1219+044_S.log closed on Tue Sep 12 11:04:36 2006