! Started logfile: 1954-388_S.log on Thu Jul 20 14:07:36 2006
observe 1954-388_S.edt
! Reading UV FITS file: 1954-388_S.edt
! AN table 1: 4 integrations on 190 of 190 possible baselines.
! AN table 2: 26 integrations on 190 of 190 possible baselines.
! AN table 3: 7 integrations on 190 of 190 possible baselines.
! AN table 4: 144 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.0720268 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 1954-388
! 
! 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.22497e+09        8e+06          1        8e+06
!  02        2  2.24497e+09        8e+06          1        8e+06
!  03        3  2.33497e+09        8e+06          1        8e+06
!  04        4  2.36497e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 1588 lines of history.
! 
! Reading 9908 visibilities.
![@gonzo7-0.4 1954-388_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 80 telescope corrections were flagged in sub-array 1.
!  A total of 513 telescope corrections were flagged in sub-array 2.
!  A total of 125 telescope corrections were flagged in sub-array 3.
!  A total of 1978 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 80 telescope corrections were flagged in sub-array 1.
!  A total of 512 telescope corrections were flagged in sub-array 2.
!  A total of 125 telescope corrections were flagged in sub-array 3.
!  A total of 1978 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 80 telescope corrections were flagged in sub-array 1.
!  A total of 520 telescope corrections were flagged in sub-array 2.
!  A total of 125 telescope corrections were flagged in sub-array 3.
!  A total of 2001 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 80 telescope corrections were flagged in sub-array 1.
!  A total of 512 telescope corrections were flagged in sub-array 2.
!  A total of 125 telescope corrections were flagged in sub-array 3.
!  A total of 1978 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.230993Jy  sigma=0.003055
! Fit after  self-cal, rms=0.223127Jy  sigma=0.002965
! 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.105 mas, bmaj=4.69 mas, bpa=-4.707 degrees
! Estimated noise=1899.12 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.599821 Jy
! Total flux subtracted in 50 components = 0.599821 Jy
! Clean residual min=-0.042847 max=0.167319 Jy/beam
! Clean residual mean=-0.000878 rms=0.016885 Jy/beam
! Combined flux in latest and established models = 0.599821 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.599821 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.291293Jy  sigma=0.003921
! Fit after  self-cal, rms=0.291294Jy  sigma=0.003921
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.144045 Jy
! Total flux subtracted in 50 components = 0.144045 Jy
! Clean residual min=-0.028634 max=0.057138 Jy/beam
! Clean residual mean=-0.000443 rms=0.008239 Jy/beam
! Combined flux in latest and established models = 0.743867 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 10 components and 0.743867 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.188298Jy  sigma=0.002500
! Fit after  self-cal, rms=0.188300Jy  sigma=0.002500
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0641315 Jy
! Total flux subtracted in 50 components = 0.0641315 Jy
! Clean residual min=-0.021308 max=0.030819 Jy/beam
! Clean residual mean=-0.000250 rms=0.005450 Jy/beam
! Combined flux in latest and established models = 0.807998 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 13 components and 0.807998 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.158702Jy  sigma=0.002088
! Fit after  self-cal, rms=0.158705Jy  sigma=0.002087
! 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.806 mas, bmaj=11.42 mas, bpa=-13.62 degrees
! Estimated noise=549.483 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.0503666 Jy
! Component: 100  -  total flux cleaned = 0.0670902 Jy
! Total flux subtracted in 100 components = 0.0670902 Jy
! Clean residual min=-0.015844 max=0.016117 Jy/beam
! Clean residual mean=-0.000155 rms=0.004595 Jy/beam
! Combined flux in latest and established models = 0.875088 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 17 model components to the UV plane model.
! The established model now contains 28 components and 0.875088 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.145103Jy  sigma=0.001900
! Fit after  self-cal, rms=0.145104Jy  sigma=0.001900
! 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        0.00*    FD        0.00*    GC        0.00*    HN        0.00*    
!   LA        0.00*    NL        0.00*    OV        0.00*    SC        0.00*    
!   WF        0.00*    GG        0.00*    HH        0.00*    KK        0.00*    
!   KP        0.00*    MA        0.00*    MC        0.00*    MK        0.00*    
!   NY        0.00*    TS        0.00*    WZ        0.00*    PT        0.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.04     GC        1.00*    HN        1.00*    
!   LA        1.00*    NL        1.00*    OV        1.00*    SC        0.95     
!   WF        1.11     GG        1.00*    HH        1.16     KK        1.00*    
!   KP        1.00*    MA        1.00*    MC        1.00*    MK        1.00*    
!   NY        1.00*    TS        1.00*    WZ        1.00*    PT        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*    HN        0.00*    
!   LA        0.00*    NL        0.00*    OV        0.00*    SC        0.00*    
!   WF        0.00*    GG        0.00*    HH        0.00*    KK        0.00*    
!   KP        0.00*    MA        0.00*    MC        0.00*    MK        0.00*    
!   NY        0.00*    TS        0.00*    WZ        0.00*    PT        0.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        0.99     GC        1.00*    HN        1.00*    
!   LA        0.97     NL        1.03     OV        1.02     SC        1.00     
!   WF        1.00*    GG        1.00*    HH        1.00*    KK        1.00*    
!   KP        0.96     MA        1.00*    MC        1.00*    MK        0.99     
!   NY        1.00*    TS        1.00*    WZ        1.00*    PT        0.92     
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GC        0.00*    HN        0.00*    
!   LA        0.00*    NL        0.00*    OV        0.00*    SC        0.00*    
!   WF        0.00*    GG        0.00*    HH        0.00*    KK        0.00*    
!   KP        0.00*    MA        0.00*    MC        0.00*    MK        0.00*    
!   NY        0.00*    TS        0.00*    WZ        0.00*    PT        0.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        0.86     GC        1.00*    HN        1.00*    
!   LA        1.00*    NL        1.00*    OV        1.00*    SC        1.10     
!   WF        1.07     GG        1.00*    HH        0.98     KK        1.00*    
!   KP        1.00*    MA        1.00*    MC        1.00*    MK        1.00*    
!   NY        1.00*    TS        1.00*    WZ        1.00*    PT        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*    HN        0.00*    
!   LA        0.00*    NL        0.00*    OV        0.00*    SC        0.00*    
!   WF        0.00*    GG        0.00*    HH        0.00*    KK        0.00*    
!   KP        0.00*    MA        0.00*    MC        0.00*    MK        0.00*    
!   NY        0.00*    TS        0.00*    WZ        0.00*    PT        0.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.02     GC        1.00*    HN        1.00*    
!   LA        0.98     NL        0.98     OV        1.02     SC        0.99     
!   WF        1.00*    GG        1.00*    HH        1.00*    KK        1.00*    
!   KP        1.09     MA        1.00*    MC        1.00*    MK        0.99     
!   NY        1.00*    TS        1.00*    WZ        1.00*    PT        0.92     
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GC        0.00*    HN        0.00*    
!   LA        0.00*    NL        0.00*    OV        0.00*    SC        0.00*    
!   WF        0.00*    GG        0.00*    HH        0.00*    KK        0.00*    
!   KP        0.00*    MA        0.00*    MC        0.00*    MK        0.00*    
!   NY        0.00*    TS        0.00*    WZ        0.00*    PT        0.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GC        0.00*    HN        0.00*    
!   LA        0.00*    NL        0.00*    OV        0.00*    SC        0.00*    
!   WF        0.00*    GG        0.00*    HH        0.00*    KK        0.00*    
!   KP        0.00*    MA        0.00*    MC        0.00*    MK        0.00*    
!   NY        0.00*    TS        0.00*    WZ        0.00*    PT        0.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*    HN        0.00*    
!   LA        0.00*    NL        0.00*    OV        0.00*    SC        0.00*    
!   WF        0.00*    GG        0.00*    HH        0.00*    KK        0.00*    
!   KP        0.00*    MA        0.00*    MC        0.00*    MK        0.00*    
!   NY        0.00*    TS        0.00*    WZ        0.00*    PT        0.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.01     GC        1.00*    HN        1.00*    
!   LA        0.96     NL        0.95     OV        0.98     SC        1.05     
!   WF        1.00*    GG        1.00*    HH        1.00*    KK        1.00*    
!   KP        1.00     MA        1.00*    MC        1.00*    MK        1.02     
!   NY        1.00*    TS        1.00*    WZ        1.00*    PT        0.96     
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GC        0.00*    HN        0.00*    
!   LA        0.00*    NL        0.00*    OV        0.00*    SC        0.00*    
!   WF        0.00*    GG        0.00*    HH        0.00*    KK        0.00*    
!   KP        0.00*    MA        0.00*    MC        0.00*    MK        0.00*    
!   NY        0.00*    TS        0.00*    WZ        0.00*    PT        0.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        0.98     GC        1.00*    HN        1.00*    
!   LA        1.00*    NL        1.00*    OV        1.00*    SC        0.93     
!   WF        0.86     GG        1.00*    HH        1.11     KK        1.00*    
!   KP        1.00*    MA        1.00*    MC        1.00*    MK        1.00*    
!   NY        1.00*    TS        1.00*    WZ        1.00*    PT        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*    HN        0.00*    
!   LA        0.00*    NL        0.00*    OV        0.00*    SC        0.00*    
!   WF        0.00*    GG        0.00*    HH        0.00*    KK        0.00*    
!   KP        0.00*    MA        0.00*    MC        0.00*    MK        0.00*    
!   NY        0.00*    TS        0.00*    WZ        0.00*    PT        0.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.01     GC        1.00*    HN        1.00*    
!   LA        0.98     NL        1.06     OV        1.02     SC        1.01     
!   WF        1.00*    GG        1.00*    HH        1.00*    KK        1.00*    
!   KP        1.08     MA        1.00*    MC        1.00*    MK        1.00     
!   NY        1.00*    TS        1.00*    WZ        1.00*    PT        0.93     
! 
! 
! Fit before self-cal, rms=0.145104Jy  sigma=0.001900
! Fit after  self-cal, rms=0.132771Jy  sigma=0.001790
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.865 mas, bmaj=11.66 mas, bpa=-14.34 degrees
! Estimated noise=549.294 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.000320276 Jy
! Component: 100  -  total flux cleaned = -0.000362484 Jy
! Total flux subtracted in 100 components = -0.000362484 Jy
! Clean residual min=-0.005010 max=0.008150 Jy/beam
! Clean residual mean=-0.000060 rms=0.002092 Jy/beam
! Combined flux in latest and established models = 0.874726 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 4 model components to the UV plane model.
! The established model now contains 30 components and 0.874726 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.132758Jy  sigma=0.001789
! Fit after  self-cal, rms=0.132753Jy  sigma=0.001789
! 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.37041e-05 Jy
! Component: 100  -  total flux cleaned = 1.43169e-05 Jy
! Total flux subtracted in 100 components = 1.43169e-05 Jy
! Clean residual min=-0.004971 max=0.008043 Jy/beam
! Clean residual mean=-0.000060 rms=0.002089 Jy/beam
! Combined flux in latest and established models = 0.87474 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 32 components and 0.87474 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.132743Jy  sigma=0.001789
! Fit after  self-cal, rms=0.129785Jy  sigma=0.001741
! Inverting map and beam 
! Estimated beam: bmin=3.866 mas, bmaj=11.65 mas, bpa=-14.32 degrees
! Estimated noise=549.478 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.00027954 Jy
! Component: 100  -  total flux cleaned = 0.000276139 Jy
! Total flux subtracted in 100 components = 0.000276139 Jy
! Clean residual min=-0.005048 max=0.007924 Jy/beam
! Clean residual mean=-0.000053 rms=0.002033 Jy/beam
! Combined flux in latest and established models = 0.875017 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 36 components and 0.875017 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.129775Jy  sigma=0.001741
! Fit after  self-cal, rms=0.129775Jy  sigma=0.001741
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 1954-388_S
! Writing UV FITS file: 1954-388_S.uvf
! Writing 36 model components to file: 1954-388_S.mod
! wwins: Wrote 1 windows to 1954-388_S.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.866 x 11.65 at -14.32 degrees (North through East)
! Clean map  min=-0.0049571  max=0.83311 Jy/beam
! Writing clean map to FITS file: 1954-388_S.fits
! Writing difmap environment to: 1954-388_S.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
![@gonzo_plot 1954-388_S]
device 1954-388_Suv.ps/vps,1,2
! Attempting to open device: '1954-388_Suv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 1954-388_Sim.ps/vps
! Attempting to open device: '1954-388_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.866 mas, bmaj=11.65 mas, bpa=-14.32 degrees
! Estimated noise=549.478 mJy/beam.
xyrange 0, 0, 0, 0
! The mapplot display area will be limited to:
!  Relative  RA: (The whole available range)
!  Relative DEC: (The whole available range)
mapcolor grey
! Mapplot colormap: grey, contrast: 1 brightness: 0.5.
docont=true
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.866 x 11.65 at -14.32 degrees (North through East)
! Clean map  min=-0.0049571  max=0.83311 Jy/beam
![Exited script file: gonzo_plot]
![Exited script file: gonzo7-0.4]
quit
! Quitting program
! Log file 1954-388_S.log closed on Thu Jul 20 14:08:05 2006