! Started logfile: 0400+258_X.log on Wed Sep 20 12:45:54 2006
observe 0400+258_X.edt
! Reading UV FITS file: 0400+258_X.edt
! AN table 1: 48 integrations on 105 of 105 possible baselines.
! AN table 2: 15 integrations on 105 of 105 possible baselines.
! AN table 3: 6 integrations on 105 of 105 possible baselines.
! AN table 4: 21 integrations on 105 of 105 possible baselines.
! Apparent sampling: 0.0485714 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 0400+258
! 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  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 1641 lines of history.
! 
! Reading 1836 visibilities.
![@gonzo6-0.1 0400+258_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 = 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.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 599 telescope corrections were flagged in sub-array 1.
!  A total of 207 telescope corrections were flagged in sub-array 2.
!  A total of 81 telescope corrections were flagged in sub-array 3.
!  A total of 267 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 599 telescope corrections were flagged in sub-array 1.
!  A total of 207 telescope corrections were flagged in sub-array 2.
!  A total of 81 telescope corrections were flagged in sub-array 3.
!  A total of 267 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 599 telescope corrections were flagged in sub-array 1.
!  A total of 207 telescope corrections were flagged in sub-array 2.
!  A total of 81 telescope corrections were flagged in sub-array 3.
!  A total of 267 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 602 telescope corrections were flagged in sub-array 1.
!  A total of 207 telescope corrections were flagged in sub-array 2.
!  A total of 81 telescope corrections were flagged in sub-array 3.
!  A total of 267 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.396644Jy  sigma=0.005497
! Fit after  self-cal, rms=0.302960Jy  sigma=0.004765
! 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.6782 mas, bmaj=1.42 mas, bpa=-18.89 degrees
! Estimated noise=1571.1 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.612498 Jy
! Total flux subtracted in 50 components = 0.612498 Jy
! Clean residual min=-0.060618 max=0.171548 Jy/beam
! Clean residual mean=-0.000745 rms=0.015062 Jy/beam
! Combined flux in latest and established models = 0.612498 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 2 model components to the UV plane model.
! The established model now contains 2 components and 0.612498 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.339692Jy  sigma=0.004047
! Fit after  self-cal, rms=0.339733Jy  sigma=0.004046
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.157254 Jy
! Total flux subtracted in 50 components = 0.157254 Jy
! Clean residual min=-0.037627 max=0.059416 Jy/beam
! Clean residual mean=-0.000464 rms=0.009964 Jy/beam
! Combined flux in latest and established models = 0.769752 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 6 components and 0.769752 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.258900Jy  sigma=0.002898
! Fit after  self-cal, rms=0.258838Jy  sigma=0.002897
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0563496 Jy
! Total flux subtracted in 50 components = 0.0563496 Jy
! Clean residual min=-0.039005 max=0.037647 Jy/beam
! Clean residual mean=-0.000365 rms=0.009360 Jy/beam
! Combined flux in latest and established models = 0.826102 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 10 components and 0.826102 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.242858Jy  sigma=0.002857
! Fit after  self-cal, rms=0.242813Jy  sigma=0.002855
! 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=0.868 mas, bmaj=1.667 mas, bpa=-22.1 degrees
! Estimated noise=1131.36 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.0137479 Jy
! Component: 100  -  total flux cleaned = 0.016197 Jy
! Total flux subtracted in 100 components = 0.016197 Jy
! Clean residual min=-0.037445 max=0.035917 Jy/beam
! Clean residual mean=-0.000442 rms=0.009171 Jy/beam
! Combined flux in latest and established models = 0.842299 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 15 components and 0.842299 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.240903Jy  sigma=0.002847
! Fit after  self-cal, rms=0.240868Jy  sigma=0.002846
! 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 27 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   AP        1.13     BR        0.81     FD        0.97     HN        1.09     
!   KP        1.20     LA        0.97     MC        0.96     MK        0.90     
!   NL        1.00     HO        1.00*    NY        1.00*    OV        1.06     
!   PT        0.98     SC        1.07     WZ        0.89     
! 
!  A total of 18 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*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 3.
!  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 48 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   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*    
! 
! 
! Correcting IF 2.
!  A total of 27 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   AP        1.15     BR        1.04     FD        0.98     HN        1.10     
!   KP        1.08     LA        1.00     MC        0.91     MK        1.05     
!   NL        0.99     HO        1.00*    NY        1.00*    OV        1.07     
!   PT        0.99     SC        1.08     WZ        0.91     
! 
!  A total of 18 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*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 3.
!  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 48 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   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*    
! 
! 
! Correcting IF 3.
!  A total of 27 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   AP        1.16     BR        0.99     FD        0.97     HN        0.70     
!   KP        1.07     LA        0.97     MC        1.03     MK        0.99     
!   NL        0.97     HO        1.00*    NY        1.00*    OV        1.04     
!   PT        0.97     SC        1.18     WZ        0.95     
! 
!  A total of 18 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*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 3.
!  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 48 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   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*    
! 
! 
! Correcting IF 4.
!  A total of 24 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   AP        1.19     BR        0.93     FD        0.95     HN        0.76     
!   KP        1.08     LA        0.99     MC        0.96     MK        0.93     
!   NL        0.96     HO        1.00*    NY        1.00*    OV        1.05     
!   PT        1.02     SC        1.25     WZ        1.00     
! 
!  A total of 18 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*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 3.
!  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 48 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   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*    
! 
! 
! Fit before self-cal, rms=0.240868Jy  sigma=0.002846
! Fit after  self-cal, rms=0.171599Jy  sigma=0.002074
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.7974 mas, bmaj=1.86 mas, bpa=-19.49 degrees
! Estimated noise=1251.8 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.00109162 Jy
! Component: 100  -  total flux cleaned = 0.00115605 Jy
! Total flux subtracted in 100 components = 0.00115605 Jy
! Clean residual min=-0.024397 max=0.027367 Jy/beam
! Clean residual mean=-0.000245 rms=0.006300 Jy/beam
! Combined flux in latest and established models = 0.843455 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 21 components and 0.843455 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.167991Jy  sigma=0.002035
! Fit after  self-cal, rms=0.167871Jy  sigma=0.002032
! 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 (3.7, 4.7).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0286179 Jy
! Component: 100  -  total flux cleaned = 0.0469839 Jy
! Total flux subtracted in 100 components = 0.0469839 Jy
! Clean residual min=-0.021903 max=0.018554 Jy/beam
! Clean residual mean=-0.000241 rms=0.005412 Jy/beam
! Combined flux in latest and established models = 0.890439 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 20 model components to the UV plane model.
! The established model now contains 40 components and 0.890439 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.162635Jy  sigma=0.001924
! Fit after  self-cal, rms=0.106608Jy  sigma=0.001465
! Inverting map and beam 
! Estimated beam: bmin=0.8171 mas, bmaj=1.85 mas, bpa=-19.64 degrees
! Estimated noise=1251.45 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.0134791 Jy
! Component: 100  -  total flux cleaned = 0.0221406 Jy
! Total flux subtracted in 100 components = 0.0221406 Jy
! Clean residual min=-0.015245 max=0.014574 Jy/beam
! Clean residual mean=-0.000137 rms=0.003519 Jy/beam
! Combined flux in latest and established models = 0.91258 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 18 model components to the UV plane model.
! The established model now contains 58 components and 0.912579 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.104717Jy  sigma=0.001432
! Fit after  self-cal, rms=0.104679Jy  sigma=0.001431
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 0400+258_X
! Writing UV FITS file: 0400+258_X.uvf
! Writing 58 model components to file: 0400+258_X.mod
! wwins: Wrote 2 windows to 0400+258_X.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.8171 x 1.85 at -19.64 degrees (North through East)
! Clean map  min=-0.014744  max=0.78843 Jy/beam
! Writing clean map to FITS file: 0400+258_X.fits
! Writing difmap environment to: 0400+258_X.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
![@gonzo_plot 0400+258_X]
device 0400+258_Xuv.ps/vps,1,2
! Attempting to open device: '0400+258_Xuv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 0400+258_Xim.ps/vps
! Attempting to open device: '0400+258_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=0.8171 mas, bmaj=1.85 mas, bpa=-19.64 degrees
! Estimated noise=1251.45 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.8171 x 1.85 at -19.64 degrees (North through East)
! Clean map  min=-0.014744  max=0.78843 Jy/beam
![Exited script file: gonzo_plot]
![Exited script file: gonzo6-0.1]
quit
! Quitting program
! Log file 0400+258_X.log closed on Wed Sep 20 12:46:12 2006