! Started logfile: 1334-127_S.log on Thu Jun  6 10:29:23 2002
observe 1334-127_S.edt
! Reading UV FITS file: 1334-127_S.edt
! AN table 1: 30 integrations on 171 of 171 possible baselines.
! AN table 2: 56 integrations on 171 of 171 possible baselines.
! AN table 3: 15 integrations on 171 of 171 possible baselines.
! Apparent sampling: 0.0748654 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 1334-127
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (3).
!          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.22997e+09        8e+06          1        8e+06
!  02        2  2.25997e+09        8e+06          1        8e+06
!  03        3  2.34997e+09        8e+06          1        8e+06
!  04        4  2.36997e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 1191 lines of history.
! 
! Reading 5172 visibilities.
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 501 telescope corrections were flagged in sub-array 1.
!  A total of 960 telescope corrections were flagged in sub-array 2.
!  A total of 256 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 501 telescope corrections were flagged in sub-array 1.
!  A total of 960 telescope corrections were flagged in sub-array 2.
!  A total of 256 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 501 telescope corrections were flagged in sub-array 1.
!  A total of 960 telescope corrections were flagged in sub-array 2.
!  A total of 256 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 513 telescope corrections were flagged in sub-array 1.
!  A total of 960 telescope corrections were flagged in sub-array 2.
!  A total of 261 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=1.238143Jy  sigma=8.573097
! Fit after  self-cal, rms=1.239002Jy  sigma=8.579000
! 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.042 mas, bmaj=6.074 mas, bpa=-5.489 degrees
! Estimated noise=2.75899 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.70444 Jy
! Total flux subtracted in 50 components = 1.70444 Jy
! Clean residual min=-0.092183 max=0.475357 Jy/beam
! Clean residual mean=0.001295 rms=0.029817 Jy/beam
! Combined flux in latest and established models = 1.70444 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 1.70444 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.578615Jy  sigma=4.010534
! Fit after  self-cal, rms=0.578615Jy  sigma=4.010534
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.395979 Jy
! Total flux subtracted in 50 components = 0.395979 Jy
! Clean residual min=-0.057744 max=0.146515 Jy/beam
! Clean residual mean=0.000473 rms=0.013947 Jy/beam
! Combined flux in latest and established models = 2.10042 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 2.10042 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.294533Jy  sigma=2.031797
! Fit after  self-cal, rms=0.294510Jy  sigma=2.031648
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.149932 Jy
! Total flux subtracted in 50 components = 0.149932 Jy
! Clean residual min=-0.050808 max=0.065493 Jy/beam
! Clean residual mean=0.000159 rms=0.010218 Jy/beam
! Combined flux in latest and established models = 2.25035 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 12 components and 2.25035 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.227953Jy  sigma=1.565289
! Fit after  self-cal, rms=0.227818Jy  sigma=1.564402
! 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=2.373 mas, bmaj=6.338 mas, bpa=-2.486 degrees
! Estimated noise=2.18953 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.0823942 Jy
! Component: 100  -  total flux cleaned = 0.124612 Jy
! Total flux subtracted in 100 components = 0.124612 Jy
! Clean residual min=-0.030700 max=0.036293 Jy/beam
! Clean residual mean=-0.000263 rms=0.007289 Jy/beam
! Combined flux in latest and established models = 2.37496 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 29 components and 2.37496 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.200943Jy  sigma=1.371824
! Fit after  self-cal, rms=0.200823Jy  sigma=1.370994
! 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 15 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        0.97     GC        1.00*    GG        1.00*    
!   HN        1.05     KP        0.98     LA        0.96     MC        1.00*    
!   MK        0.96     NL        0.98     NY        1.00*    ON        1.00*    
!   OV        0.88     PT        0.98     SC        0.98     TS        1.00*    
!   WF        0.98     KK        0.96     WZ        1.00*    
! 
!  A total of 48 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        0.99     GC        1.10     GG        1.00*    
!   HN        1.00*    KP        1.00     LA        0.99     MC        1.00*    
!   MK        0.92     NL        1.00*    NY        1.00*    ON        1.00*    
!   OV        1.03     PT        1.00     SC        0.97     TS        1.05     
!   WF        1.00*    KK        0.98     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HN        1.00*    KP        1.00*    LA        1.00*    MC        1.00     
!   MK        1.00*    NL        1.00*    NY        1.00*    ON        1.07     
!   OV        1.00*    PT        1.00*    SC        1.01     TS        1.00*    
!   WF        1.04     KK        1.00*    WZ        1.06     
! 
! 
! Correcting IF 2.
!  A total of 15 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        0.98     GC        1.00*    GG        1.00*    
!   HN        1.07     KP        1.00     LA        0.97     MC        1.00*    
!   MK        0.98     NL        0.99     NY        1.00*    ON        1.00*    
!   OV        1.00     PT        0.98     SC        0.97     TS        1.00*    
!   WF        0.98     KK        0.94     WZ        1.00*    
! 
!  A total of 48 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        0.98     GC        1.09     GG        1.00*    
!   HN        1.00*    KP        1.00     LA        0.99     MC        1.00*    
!   MK        0.94     NL        1.00*    NY        1.00*    ON        1.00*    
!   OV        1.00     PT        1.01     SC        0.98     TS        1.07     
!   WF        1.00*    KK        0.99     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HN        1.00*    KP        1.00*    LA        1.00*    MC        0.97     
!   MK        1.00*    NL        1.00*    NY        1.00*    ON        1.08     
!   OV        1.00*    PT        1.00*    SC        0.98     TS        1.00*    
!   WF        1.09     KK        1.00*    WZ        1.05     
! 
! 
! Correcting IF 3.
!  A total of 15 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        0.99     GC        1.00*    GG        1.00*    
!   HN        1.08     KP        1.00     LA        0.96     MC        1.00*    
!   MK        0.96     NL        1.00     NY        1.00*    ON        1.00*    
!   OV        1.03     PT        0.97     SC        0.99     TS        1.00*    
!   WF        1.00     KK        0.97     WZ        1.00*    
! 
!  A total of 48 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        1.00     GC        1.06     GG        1.00*    
!   HN        1.00*    KP        0.96     LA        1.00     MC        1.00*    
!   MK        0.94     NL        1.00*    NY        1.00*    ON        1.00*    
!   OV        1.01     PT        1.00     SC        0.98     TS        1.16     
!   WF        1.00*    KK        0.98     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HN        1.00*    KP        1.00*    LA        1.00*    MC        1.15     
!   MK        1.00*    NL        1.00*    NY        1.00*    ON        1.07     
!   OV        1.00*    PT        1.00*    SC        1.02     TS        1.00*    
!   WF        1.20     KK        1.00*    WZ        1.06     
! 
! 
! Correcting IF 4.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        0.99     GC        1.00*    GG        1.00*    
!   HN        1.07     KP        0.99     LA        0.97     MC        1.00*    
!   MK        0.97     NL        1.00     NY        1.00*    ON        1.00*    
!   OV        1.00     PT        0.96     SC        0.98     TS        1.00*    
!   WF        0.98     KK        0.95     WZ        1.00*    
! 
!  A total of 48 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00     FD        1.00     GC        1.08     GG        1.00*    
!   HN        1.00*    KP        1.02     LA        1.01     MC        1.00*    
!   MK        0.94     NL        1.00*    NY        1.00*    ON        1.00*    
!   OV        0.99     PT        0.95     SC        0.98     TS        1.08     
!   WF        1.00*    KK        0.98     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GC        1.00*    GG        1.00*    
!   HN        1.00*    KP        1.00*    LA        1.00*    MC        1.00*    
!   MK        1.00*    NL        1.00*    NY        1.00*    ON        1.06     
!   OV        1.00*    PT        1.00*    SC        1.01     TS        1.00*    
!   WF        1.07     KK        1.00*    WZ        1.06     
! 
! 
! Fit before self-cal, rms=0.200823Jy  sigma=1.370994
! Fit after  self-cal, rms=0.137384Jy  sigma=0.916916
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.341 mas, bmaj=6.879 mas, bpa=-5.367 degrees
! Estimated noise=2.31132 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.0023801 Jy
! Component: 100  -  total flux cleaned = 0.00353128 Jy
! Total flux subtracted in 100 components = 0.00353128 Jy
! Clean residual min=-0.008731 max=0.013535 Jy/beam
! Clean residual mean=0.000333 rms=0.002432 Jy/beam
! Combined flux in latest and established models = 2.37849 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 32 components and 2.37849 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.136849Jy  sigma=0.912641
! Fit after  self-cal, rms=0.136825Jy  sigma=0.912399
! 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)
! Added new window around map position (6, -11.6).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0134863 Jy
! Component: 100  -  total flux cleaned = 0.0216792 Jy
! Total flux subtracted in 100 components = 0.0216792 Jy
! Clean residual min=-0.008474 max=0.010017 Jy/beam
! Clean residual mean=0.000143 rms=0.002145 Jy/beam
! Combined flux in latest and established models = 2.40017 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 26 model components to the UV plane model.
! The established model now contains 58 components and 2.40017 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.135619Jy  sigma=0.903134
! Fit after  self-cal, rms=0.133700Jy  sigma=0.890103
! Inverting map and beam 
! Estimated beam: bmin=2.34 mas, bmaj=6.875 mas, bpa=-5.428 degrees
! Estimated noise=2.30848 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 (-36.8, 82.8).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00875927 Jy
! Component: 100  -  total flux cleaned = 0.0136467 Jy
! Total flux subtracted in 100 components = 0.0136467 Jy
! Clean residual min=-0.007300 max=0.008392 Jy/beam
! Clean residual mean=0.000057 rms=0.001969 Jy/beam
! Combined flux in latest and established models = 2.41382 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 70 components and 2.41382 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.132926Jy  sigma=0.884712
! Fit after  self-cal, rms=0.132906Jy  sigma=0.884533
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 1334-127_S
! Writing UV FITS file: 1334-127_S.uvf
! Writing 70 model components to file: 1334-127_S.mod
! wwins: Wrote 3 windows to 1334-127_S.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.34 x 6.875 at -5.428 degrees (North through East)
! Clean map  min=-0.0070822  max=2.1823 Jy/beam
! Writing clean map to FITS file: 1334-127_S.fits
! Writing difmap environment to: 1334-127_S.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
device 1334-127_Suv.ps/vps,1,2
! Attempting to open device: '1334-127_Suv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 1334-127_Sim.ps/vps
! Attempting to open device: '1334-127_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=2.34 mas, bmaj=6.875 mas, bpa=-5.428 degrees
! Estimated noise=2.30848 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.34 x 6.875 at -5.428 degrees (North through East)
! Clean map  min=-0.0070822  max=2.1823 Jy/beam
quit
! Quitting program
! Log file 1334-127_S.log closed on Thu Jun  6 10:29:47 2002