! Started logfile: 0229+131_X.log on Thu Jul 14 13:34:58 2005
observe 0229+131_X.edt
! Reading UV FITS file: 0229+131_X.edt
! AN table 1: 16 integrations on 171 of 171 possible baselines.
! AN table 2: 47 integrations on 171 of 171 possible baselines.
! AN table 3: 19 integrations on 171 of 171 possible baselines.
! AN table 4: 5 integrations on 171 of 171 possible baselines.
! Apparent sampling: 0.0682933 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 0229+131
! 
! 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 1818 lines of history.
! 
! Reading 4064 visibilities.
![@gonzo8-0.1 0229+131_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 = 8.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 256 telescope corrections were flagged in sub-array 1.
!  A total of 723 telescope corrections were flagged in sub-array 2.
!  A total of 346 telescope corrections were flagged in sub-array 3.
!  A total of 55 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 257 telescope corrections were flagged in sub-array 1.
!  A total of 723 telescope corrections were flagged in sub-array 2.
!  A total of 346 telescope corrections were flagged in sub-array 3.
!  A total of 55 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 258 telescope corrections were flagged in sub-array 1.
!  A total of 724 telescope corrections were flagged in sub-array 2.
!  A total of 346 telescope corrections were flagged in sub-array 3.
!  A total of 55 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 258 telescope corrections were flagged in sub-array 1.
!  A total of 724 telescope corrections were flagged in sub-array 2.
!  A total of 346 telescope corrections were flagged in sub-array 3.
!  A total of 55 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.216648Jy  sigma=0.003466
! Fit after  self-cal, rms=0.216648Jy  sigma=0.003480
! 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.7993 mas, bmaj=1.294 mas, bpa=-9.588 degrees
! Estimated noise=1159.57 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.619491 Jy
! Total flux subtracted in 50 components = 0.619491 Jy
! Clean residual min=-0.058361 max=0.182032 Jy/beam
! Clean residual mean=-0.000491 rms=0.017031 Jy/beam
! Combined flux in latest and established models = 0.619491 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.619491 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.291465Jy  sigma=0.005234
! Fit after  self-cal, rms=0.291475Jy  sigma=0.005233
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.181436 Jy
! Total flux subtracted in 50 components = 0.181436 Jy
! Clean residual min=-0.031909 max=0.077114 Jy/beam
! Clean residual mean=-0.000276 rms=0.008979 Jy/beam
! Combined flux in latest and established models = 0.800927 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 14 components and 0.800927 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.161055Jy  sigma=0.002799
! Fit after  self-cal, rms=0.160806Jy  sigma=0.002795
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0847487 Jy
! Total flux subtracted in 50 components = 0.0847487 Jy
! Clean residual min=-0.020883 max=0.039397 Jy/beam
! Clean residual mean=-0.000178 rms=0.005831 Jy/beam
! Combined flux in latest and established models = 0.885676 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 22 components and 0.885676 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.117658Jy  sigma=0.001956
! Fit after  self-cal, rms=0.117512Jy  sigma=0.001954
! 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=1.179 mas, bmaj=1.416 mas, bpa=-2.496 degrees
! Estimated noise=747.758 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.052156 Jy
! Component: 100  -  total flux cleaned = 0.0781286 Jy
! Total flux subtracted in 100 components = 0.0781286 Jy
! Clean residual min=-0.011239 max=0.029821 Jy/beam
! Clean residual mean=-0.000098 rms=0.004102 Jy/beam
! Combined flux in latest and established models = 0.963804 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 43 components and 0.963804 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.095890Jy  sigma=0.001528
! Fit after  self-cal, rms=0.095697Jy  sigma=0.001523
! 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.00*    FD        1.00*    GC        1.00*    HH        1.01     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.08     MK        1.00*    NL        1.00*    NY        0.99     
!   ON        0.93     OV        1.00*    PT        1.00*    SC        1.00*    
!   TS        1.00*    WF        1.00*    WZ        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.03     FD        0.98     GC        1.00*    HH        1.00*    
!   HN        0.97     KK        1.00*    KP        1.00     LA        1.02     
!   MC        1.00*    MK        1.01     NL        0.98     NY        1.00*    
!   ON        1.00*    OV        0.95     PT        1.00     SC        0.97     
!   TS        1.00*    WF        1.00*    WZ        1.00*    
! 
!  A total of 15 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    GC        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MC        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.95     FD        0.96     GC        1.00*    HH        1.00*    
!   HN        0.97     KK        1.00*    KP        0.98     LA        0.92     
!   MC        1.00*    MK        1.01     NL        1.07     NY        1.00*    
!   ON        1.00*    OV        0.98     PT        0.91     SC        1.12     
!   TS        1.00*    WF        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GC        1.00*    HH        1.04     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.03     MK        1.00*    NL        1.00*    NY        1.01     
!   ON        0.94     OV        1.00*    PT        1.00*    SC        1.00*    
!   TS        1.00*    WF        1.00*    WZ        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        0.97     GC        1.00*    HH        1.00*    
!   HN        0.98     KK        1.00*    KP        1.00     LA        1.02     
!   MC        1.00*    MK        1.02     NL        0.98     NY        1.00*    
!   ON        1.00*    OV        0.99     PT        1.00     SC        1.01     
!   TS        1.00*    WF        1.00*    WZ        1.00*    
! 
!  A total of 15 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    GC        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MC        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.98     FD        0.98     GC        1.00*    HH        1.00*    
!   HN        0.96     KK        1.00*    KP        0.98     LA        0.94     
!   MC        1.00*    MK        0.99     NL        1.04     NY        1.00*    
!   ON        1.00*    OV        0.98     PT        0.92     SC        1.14     
!   TS        1.00*    WF        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GC        1.00*    HH        1.11     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.06     MK        1.00*    NL        1.00*    NY        0.97     
!   ON        0.94     OV        1.00*    PT        1.00*    SC        1.00*    
!   TS        1.00*    WF        1.00*    WZ        1.00*    
! 
!  A total of 15 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.03     FD        0.96     GC        1.00*    HH        1.00*    
!   HN        0.98     KK        1.00*    KP        1.00     LA        1.02     
!   MC        1.00*    MK        0.99     NL        0.97     NY        1.00*    
!   ON        1.00*    OV        1.00     PT        1.01     SC        1.00     
!   TS        1.00*    WF        1.00*    WZ        1.00*    
! 
!  A total of 15 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    GC        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MC        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.98     FD        0.98     GC        1.00*    HH        1.00*    
!   HN        1.02     KK        1.00*    KP        1.00     LA        0.93     
!   MC        1.00*    MK        1.01     NL        1.05     NY        1.00*    
!   ON        1.00*    OV        0.98     PT        0.97     SC        1.16     
!   TS        1.00*    WF        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GC        1.00*    HH        1.20     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.08     MK        1.00*    NL        1.00*    NY        0.97     
!   ON        0.97     OV        1.00*    PT        1.00*    SC        1.00*    
!   TS        1.00*    WF        1.00*    WZ        1.00*    
! 
!  A total of 15 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.02     FD        0.97     GC        1.00*    HH        1.00*    
!   HN        0.97     KK        1.00*    KP        1.00     LA        1.03     
!   MC        1.00*    MK        1.00     NL        0.97     NY        1.00*    
!   ON        1.00*    OV        0.98     PT        1.00     SC        1.05     
!   TS        1.00*    WF        1.00*    WZ        1.00*    
! 
!  A total of 15 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.00*    FD        0.00*    GC        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MC        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.99     FD        0.99     GC        1.00*    HH        1.00*    
!   HN        1.00     KK        1.00*    KP        0.97     LA        0.96     
!   MC        1.00*    MK        1.04     NL        1.05     NY        1.00*    
!   ON        1.00*    OV        0.96     PT        0.99     SC        1.25     
!   TS        1.00*    WF        1.00*    WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.095697Jy  sigma=0.001523
! Fit after  self-cal, rms=0.087032Jy  sigma=0.001368
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=1.228 mas, bmaj=1.441 mas, bpa=-6.432 degrees
! Estimated noise=759.772 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 (1.3, 1.8).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0202826 Jy
! Component: 100  -  total flux cleaned = 0.0266919 Jy
! Total flux subtracted in 100 components = 0.0266919 Jy
! Clean residual min=-0.006249 max=0.011283 Jy/beam
! Clean residual mean=0.000014 rms=0.001945 Jy/beam
! Combined flux in latest and established models = 0.990496 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 22 model components to the UV plane model.
! The established model now contains 65 components and 0.990496 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.082775Jy  sigma=0.001290
! Fit after  self-cal, rms=0.082418Jy  sigma=0.001285
! 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.00318307 Jy
! Component: 100  -  total flux cleaned = 0.00260638 Jy
! Total flux subtracted in 100 components = 0.00260638 Jy
! Clean residual min=-0.007405 max=0.009356 Jy/beam
! Clean residual mean=0.000019 rms=0.001773 Jy/beam
! Combined flux in latest and established models = 0.993103 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 24 model components to the UV plane model.
! The established model now contains 82 components and 0.993103 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.082041Jy  sigma=0.001280
! Fit after  self-cal, rms=0.078759Jy  sigma=0.001221
! Inverting map and beam 
! Estimated beam: bmin=1.226 mas, bmaj=1.442 mas, bpa=-6.559 degrees
! Estimated noise=759.151 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.00650228 Jy
! Component: 100  -  total flux cleaned = 0.00935828 Jy
! Total flux subtracted in 100 components = 0.00935828 Jy
! Clean residual min=-0.004414 max=0.006423 Jy/beam
! Clean residual mean=0.000006 rms=0.001169 Jy/beam
! Combined flux in latest and established models = 1.00246 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 89 components and 1.00246 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.078250Jy  sigma=0.001212
! Fit after  self-cal, rms=0.078201Jy  sigma=0.001211
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 0229+131_X
! Writing UV FITS file: 0229+131_X.uvf
! Writing 89 model components to file: 0229+131_X.mod
! wwins: Wrote 2 windows to 0229+131_X.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 1.226 x 1.442 at -6.559 degrees (North through East)
! Clean map  min=-0.0043512  max=0.84539 Jy/beam
! Writing clean map to FITS file: 0229+131_X.fits
! Writing difmap environment to: 0229+131_X.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
![@gonzo_plot 0229+131_X]
device 0229+131_Xuv.ps/vps,1,2
! Attempting to open device: '0229+131_Xuv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 0229+131_Xim.ps/vps
! Attempting to open device: '0229+131_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=1.226 mas, bmaj=1.442 mas, bpa=-6.559 degrees
! Estimated noise=759.151 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 1.226 x 1.442 at -6.559 degrees (North through East)
! Clean map  min=-0.0043512  max=0.84539 Jy/beam
![Exited script file: gonzo_plot]
![Exited script file: gonzo8-0.1]
quit
! Quitting program
! Log file 0229+131_X.log closed on Thu Jul 14 13:35:40 2005