! Started logfile: 1240+381_S.log on Wed Oct 20 00:15:37 2004
observe 1240+381_S.edt
! Reading UV FITS file: 1240+381_S.edt
! AN table 1: 13 integrations on 153 of 153 possible baselines.
! AN table 2: 23 integrations on 153 of 153 possible baselines.
! AN table 3: 48 integrations on 153 of 153 possible baselines.
! Apparent sampling: 0.196779 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 1240+381
! 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.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 1075 lines of history.
! 
! Reading 10116 visibilities.
![@gonzo6-0.4 1240+381_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 = 6.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 166 telescope corrections were flagged in sub-array 1.
!  A total of 320 telescope corrections were flagged in sub-array 2.
!  A total of 518 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 166 telescope corrections were flagged in sub-array 1.
!  A total of 320 telescope corrections were flagged in sub-array 2.
!  A total of 518 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 166 telescope corrections were flagged in sub-array 1.
!  A total of 320 telescope corrections were flagged in sub-array 2.
!  A total of 518 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 166 telescope corrections were flagged in sub-array 1.
!  A total of 320 telescope corrections were flagged in sub-array 2.
!  A total of 518 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=0.422493Jy  sigma=3.014804
! Fit after  self-cal, rms=0.422322Jy  sigma=3.014515
! 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.93 mas, bmaj=5.632 mas, bpa=-20.02 degrees
! Estimated noise=1.9663 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.445186 Jy
! Total flux subtracted in 50 components = 0.445186 Jy
! Clean residual min=-0.023386 max=0.124181 Jy/beam
! Clean residual mean=0.000307 rms=0.007691 Jy/beam
! Combined flux in latest and established models = 0.445186 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.445186 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.188494Jy  sigma=1.340218
! Fit after  self-cal, rms=0.188494Jy  sigma=1.340218
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0989318 Jy
! Total flux subtracted in 50 components = 0.0989318 Jy
! Clean residual min=-0.015396 max=0.033167 Jy/beam
! Clean residual mean=0.000182 rms=0.004248 Jy/beam
! Combined flux in latest and established models = 0.544118 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 7 components and 0.544118 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.126349Jy  sigma=0.893154
! Fit after  self-cal, rms=0.126336Jy  sigma=0.893046
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0346657 Jy
! Total flux subtracted in 50 components = 0.0346657 Jy
! Clean residual min=-0.013829 max=0.019190 Jy/beam
! Clean residual mean=0.000138 rms=0.003646 Jy/beam
! Combined flux in latest and established models = 0.578784 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 15 components and 0.578784 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.115546Jy  sigma=0.815328
! Fit after  self-cal, rms=0.115532Jy  sigma=0.815237
! 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.482 mas, bmaj=7.44 mas, bpa=-22.49 degrees
! Estimated noise=1.13388 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.0294005 Jy
! Component: 100  -  total flux cleaned = 0.0467488 Jy
! Total flux subtracted in 100 components = 0.0467488 Jy
! Clean residual min=-0.010029 max=0.018362 Jy/beam
! Clean residual mean=0.000364 rms=0.003177 Jy/beam
! Combined flux in latest and established models = 0.625533 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 32 model components to the UV plane model.
! The established model now contains 47 components and 0.625533 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.108426Jy  sigma=0.763981
! Fit after  self-cal, rms=0.108409Jy  sigma=0.763863
! Inverting map 
! Added new window around map position (5.6, 0.8).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0160878 Jy
! Component: 100  -  total flux cleaned = 0.02497 Jy
! Total flux subtracted in 100 components = 0.02497 Jy
! Clean residual min=-0.009332 max=0.012795 Jy/beam
! Clean residual mean=0.000195 rms=0.002757 Jy/beam
! Combined flux in latest and established models = 0.650503 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 63 components and 0.650503 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.106154Jy  sigma=0.747758
! Fit after  self-cal, rms=0.105964Jy  sigma=0.746402
! 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.03     FD        1.04     GC        1.00*    GG        1.00*    
!   HN        1.03     KK        1.00*    KP        1.03     LA        1.14     
!   MC        1.00*    MK        1.00*    NL        1.00     ON        1.00*    
!   OV        0.95     PT        1.02     SC        0.87     TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.93     FD        1.08     GC        1.00*    GG        1.00*    
!   HN        1.08     KK        1.00*    KP        0.98     LA        1.11     
!   MC        1.00*    MK        0.89     NL        0.98     ON        1.00*    
!   OV        0.96     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 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.93     FD        1.10     GC        1.00*    GG        1.00*    
!   HN        1.03     KK        1.00*    KP        0.96     LA        1.10     
!   MC        1.00*    MK        0.96     NL        0.95     ON        1.00*    
!   OV        0.98     PT        1.01     SC        0.93     TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.06     FD        1.05     GC        1.00*    GG        1.00*    
!   HN        1.15     KK        1.00*    KP        1.05     LA        1.08     
!   MC        1.00*    MK        1.00*    NL        1.02     ON        1.00*    
!   OV        1.01     PT        0.98     SC        0.95     TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.02     FD        1.08     GC        1.00*    GG        1.00*    
!   HN        1.18     KK        1.00*    KP        1.04     LA        1.06     
!   MC        1.00*    MK        0.99     NL        1.01     ON        1.00*    
!   OV        1.02     PT        0.96     SC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.03     FD        1.07     GC        1.00*    GG        1.00*    
!   HN        1.14     KK        1.00*    KP        1.01     LA        1.03     
!   MC        1.00*    MK        1.03     NL        0.99     ON        1.00*    
!   OV        1.03     PT        0.96     SC        0.99     TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.31     FD        0.96     GC        1.00*    GG        1.00*    
!   HN        1.19     KK        1.00*    KP        1.04     LA        0.93     
!   MC        1.00*    MK        1.00*    NL        1.06     ON        1.00*    
!   OV        0.99     PT        1.04     SC        1.02     TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.08     FD        0.97     GC        1.00*    GG        1.00*    
!   HN        1.16     KK        1.00*    KP        1.02     LA        0.93     
!   MC        1.00*    MK        0.96     NL        1.04     ON        1.00*    
!   OV        0.99     PT        1.04     SC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.03     FD        0.97     GC        1.00*    GG        1.00*    
!   HN        1.12     KK        1.00*    KP        1.02     LA        0.94     
!   MC        1.00*    MK        1.01     NL        1.03     ON        1.00*    
!   OV        1.01     PT        1.01     SC        1.12     TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.02     FD        1.00     GC        1.00*    GG        1.00*    
!   HN        1.11     KK        1.00*    KP        0.93     LA        0.80     
!   MC        1.00*    MK        1.00*    NL        0.99     ON        1.00*    
!   OV        0.84     PT        0.97     SC        1.07     TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.10     FD        0.99     GC        1.00*    GG        1.00*    
!   HN        1.08     KK        1.00*    KP        0.93     LA        0.79     
!   MC        1.00*    MK        0.93     NL        0.96     ON        1.00*    
!   OV        0.86     PT        0.99     SC        1.00*    TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 12 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.97     FD        1.01     GC        1.00*    GG        1.00*    
!   HN        1.04     KK        1.00*    KP        0.92     LA        0.79     
!   MC        1.00*    MK        0.98     NL        0.95     ON        1.00*    
!   OV        0.86     PT        0.96     SC        1.12     TS        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.105964Jy  sigma=0.746402
! Fit after  self-cal, rms=0.078972Jy  sigma=0.558092
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.508 mas, bmaj=7.48 mas, bpa=-22.32 degrees
! Estimated noise=1.13194 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 (16, 1.2).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00173378 Jy
! Component: 100  -  total flux cleaned = 0.0022911 Jy
! Total flux subtracted in 100 components = 0.0022911 Jy
! Clean residual min=-0.004011 max=0.003507 Jy/beam
! Clean residual mean=-0.000087 rms=0.000978 Jy/beam
! Combined flux in latest and established models = 0.652794 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 14 model components to the UV plane model.
! The established model now contains 77 components and 0.652794 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.078431Jy  sigma=0.554273
! Fit after  self-cal, rms=0.078437Jy  sigma=0.554105
! 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.00113961 Jy
! Component: 100  -  total flux cleaned = 0.00153186 Jy
! Total flux subtracted in 100 components = 0.00153186 Jy
! Clean residual min=-0.003962 max=0.003346 Jy/beam
! Clean residual mean=-0.000095 rms=0.000909 Jy/beam
! Combined flux in latest and established models = 0.654326 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 28 model components to the UV plane model.
! The established model now contains 98 components and 0.654326 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.078219Jy  sigma=0.552609
! Fit after  self-cal, rms=0.076739Jy  sigma=0.540075
! Inverting map and beam 
! Estimated beam: bmin=3.51 mas, bmaj=7.484 mas, bpa=-22.3 degrees
! Estimated noise=1.13124 mJy/beam.
! Added new window around map position (27.6, -1.2).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00275208 Jy
! Component: 100  -  total flux cleaned = 0.00367056 Jy
! Total flux subtracted in 100 components = 0.00367056 Jy
! Clean residual min=-0.003259 max=0.002893 Jy/beam
! Clean residual mean=0.000018 rms=0.000777 Jy/beam
! Combined flux in latest and established models = 0.657997 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 27 model components to the UV plane model.
! The established model now contains 121 components and 0.657996 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.076494Jy  sigma=0.538341
! Fit after  self-cal, rms=0.076211Jy  sigma=0.536551
! Inverting map and beam 
! Estimated beam: bmin=3.511 mas, bmaj=7.483 mas, bpa=-22.3 degrees
! Estimated noise=1.13034 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.000623694 Jy
! Component: 100  -  total flux cleaned = 0.00150206 Jy
! Total flux subtracted in 100 components = 0.00150206 Jy
! Clean residual min=-0.003072 max=0.002678 Jy/beam
! Clean residual mean=0.000016 rms=0.000718 Jy/beam
! Combined flux in latest and established models = 0.659499 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 25 model components to the UV plane model.
! The established model now contains 129 components and 0.659499 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.076053Jy  sigma=0.535442
! Fit after  self-cal, rms=0.076053Jy  sigma=0.535408
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 1240+381_S
! Writing UV FITS file: 1240+381_S.uvf
! Writing 129 model components to file: 1240+381_S.mod
! wwins: Wrote 4 windows to 1240+381_S.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.511 x 7.483 at -22.3 degrees (North through East)
! Clean map  min=-0.0030509  max=0.58247 Jy/beam
! Writing clean map to FITS file: 1240+381_S.fits
! Writing difmap environment to: 1240+381_S.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
![@gonzo_plot 1240+381_S]
device 1240+381_Suv.ps/vps,1,2
! Attempting to open device: '1240+381_Suv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 1240+381_Sim.ps/vps
! Attempting to open device: '1240+381_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.511 mas, bmaj=7.483 mas, bpa=-22.3 degrees
! Estimated noise=1.13034 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.511 x 7.483 at -22.3 degrees (North through East)
! Clean map  min=-0.0030509  max=0.58247 Jy/beam
![Exited script file: gonzo_plot]
![Exited script file: gonzo6-0.4]
quit
! Quitting program
! Log file 1240+381_S.log closed on Wed Oct 20 00:16:00 2004