! Started logfile: 2318+049_X.log on Mon Oct 30 09:45:35 2006
observe 2318+049_X.edt
! Reading UV FITS file: 2318+049_X.edt
! AN table 1: 35 integrations on 136 of 136 possible baselines.
! AN table 2: 8 integrations on 136 of 136 possible baselines.
! AN table 3: 124 integrations on 136 of 136 possible baselines.
! AN table 4: 73 integrations on 136 of 136 possible baselines.
! Apparent sampling: 0.0849877 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 2318+049
! 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 1577 lines of history.
! 
! Reading 11096 visibilities.
![@gonzo7-0.1 2318+049_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 = 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.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 395 telescope corrections were flagged in sub-array 1.
!  A total of 136 telescope corrections were flagged in sub-array 2.
!  A total of 1457 telescope corrections were flagged in sub-array 3.
!  A total of 1051 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 416 telescope corrections were flagged in sub-array 1.
!  A total of 136 telescope corrections were flagged in sub-array 2.
!  A total of 1457 telescope corrections were flagged in sub-array 3.
!  A total of 1051 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 395 telescope corrections were flagged in sub-array 1.
!  A total of 136 telescope corrections were flagged in sub-array 2.
!  A total of 1457 telescope corrections were flagged in sub-array 3.
!  A total of 1057 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 395 telescope corrections were flagged in sub-array 1.
!  A total of 136 telescope corrections were flagged in sub-array 2.
!  A total of 1463 telescope corrections were flagged in sub-array 3.
!  A total of 1051 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.687595Jy  sigma=0.008999
! Fit after  self-cal, rms=0.687378Jy  sigma=0.009000
! 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.3828 mas, bmaj=1.453 mas, bpa=-42.62 degrees
! Estimated noise=896.387 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.242544 Jy
! Total flux subtracted in 50 components = 0.242544 Jy
! Clean residual min=-0.022649 max=0.067754 Jy/beam
! Clean residual mean=0.000253 rms=0.007021 Jy/beam
! Combined flux in latest and established models = 0.242544 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.242544 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.152315Jy  sigma=0.001968
! Fit after  self-cal, rms=0.152313Jy  sigma=0.001968
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0687386 Jy
! Total flux subtracted in 50 components = 0.0687386 Jy
! Clean residual min=-0.014613 max=0.032747 Jy/beam
! Clean residual mean=0.000170 rms=0.004345 Jy/beam
! Combined flux in latest and established models = 0.311282 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 19 model components to the UV plane model.
! The established model now contains 20 components and 0.311282 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.122808Jy  sigma=0.001486
! Fit after  self-cal, rms=0.122743Jy  sigma=0.001486
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0379578 Jy
! Total flux subtracted in 50 components = 0.0379578 Jy
! Clean residual min=-0.011487 max=0.018671 Jy/beam
! Clean residual mean=0.000121 rms=0.003107 Jy/beam
! Combined flux in latest and established models = 0.34924 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 20 components and 0.34924 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.111454Jy  sigma=0.001292
! Fit after  self-cal, rms=0.111382Jy  sigma=0.001291
! 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.4994 mas, bmaj=1.436 mas, bpa=-36.62 degrees
! Estimated noise=540.752 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.0309594 Jy
! Component: 100  -  total flux cleaned = 0.0462243 Jy
! Total flux subtracted in 100 components = 0.0462243 Jy
! Clean residual min=-0.008385 max=0.010132 Jy/beam
! Clean residual mean=0.000558 rms=0.002419 Jy/beam
! Combined flux in latest and established models = 0.395465 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 19 model components to the UV plane model.
! The established model now contains 36 components and 0.395465 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.104245Jy  sigma=0.001165
! Fit after  self-cal, rms=0.104169Jy  sigma=0.001165
! 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 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        0.98     HN        1.00*    HO        0.99     
!   KP        1.00*    LA        1.01     MK        1.08     NL        1.00*    
!   NY        1.00*    OV        0.95     PT        1.00     MC        1.00*    
!   SC        1.00*    SV        1.00*    TC        1.00*    WF        1.00*    
!   WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    HN        0.00*    HO        0.00*    
!   KP        0.00*    LA        0.00*    MK        0.00*    NL        0.00*    
!   NY        0.00*    OV        0.00*    PT        0.00*    MC        0.00*    
!   SC        0.00*    SV        0.00*    TC        0.00*    WF        0.00*    
!   WZ        0.00*    
! 
!  A total of 45 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.85     FD        1.00     HN        0.96     HO        1.09     
!   KP        1.00*    LA        0.98     MK        1.13     NL        1.10     
!   NY        0.94     OV        0.99     PT        0.98     MC        0.94     
!   SC        1.03     SV        0.99     TC        1.00*    WF        1.00     
!   WZ        0.94     
! 
!  A total of 33 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    HN        0.85     HO        0.97     
!   KP        1.00*    LA        1.00*    MK        1.00*    NL        0.98     
!   NY        1.00*    OV        1.00*    PT        1.00*    MC        1.00*    
!   SC        1.23     SV        1.00*    TC        1.00*    WF        1.16     
!   WZ        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 6 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        1.01     HN        1.00*    HO        0.94     
!   KP        1.00*    LA        1.02     MK        1.00*    NL        1.00*    
!   NY        1.00*    OV        0.93     PT        1.01     MC        1.00*    
!   SC        1.00*    SV        1.00*    TC        1.00*    WF        1.00*    
!   WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    HN        0.00*    HO        0.00*    
!   KP        0.00*    LA        0.00*    MK        0.00*    NL        0.00*    
!   NY        0.00*    OV        0.00*    PT        0.00*    MC        0.00*    
!   SC        0.00*    SV        0.00*    TC        0.00*    WF        0.00*    
!   WZ        0.00*    
! 
!  A total of 45 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.91     FD        0.99     HN        1.01     HO        1.10     
!   KP        1.00*    LA        0.97     MK        1.02     NL        1.10     
!   NY        0.94     OV        0.96     PT        0.97     MC        0.93     
!   SC        1.01     SV        0.99     TC        1.00*    WF        1.01     
!   WZ        0.96     
! 
!  A total of 33 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    HN        0.75     HO        1.00     
!   KP        1.00*    LA        1.00*    MK        1.00*    NL        1.01     
!   NY        1.00*    OV        1.00*    PT        1.00*    MC        1.00*    
!   SC        1.27     SV        1.00*    TC        1.00*    WF        1.13     
!   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.02     FD        1.01     HN        1.00*    HO        0.91     
!   KP        1.00*    LA        1.02     MK        1.01     NL        1.00*    
!   NY        1.00*    OV        0.98     PT        1.03     MC        1.00*    
!   SC        1.00*    SV        1.00*    TC        1.00*    WF        1.00*    
!   WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    HN        0.00*    HO        0.00*    
!   KP        0.00*    LA        0.00*    MK        0.00*    NL        0.00*    
!   NY        0.00*    OV        0.00*    PT        0.00*    MC        0.00*    
!   SC        0.00*    SV        0.00*    TC        0.00*    WF        0.00*    
!   WZ        0.00*    
! 
!  A total of 45 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.75     FD        1.01     HN        1.00     HO        1.09     
!   KP        1.00*    LA        0.98     MK        1.02     NL        1.13     
!   NY        0.95     OV        0.98     PT        0.99     MC        0.95     
!   SC        1.02     SV        1.00     TC        1.00*    WF        0.99     
!   WZ        0.94     
! 
!  A total of 27 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    HN        0.92     HO        0.94     
!   KP        1.00*    LA        1.00*    MK        1.00*    NL        1.04     
!   NY        1.00*    OV        1.00*    PT        1.00*    MC        1.00*    
!   SC        1.29     SV        1.00*    TC        1.00*    WF        1.12     
!   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.07     FD        0.99     HN        1.00*    HO        0.95     
!   KP        1.00*    LA        1.00     MK        1.02     NL        1.00*    
!   NY        1.00*    OV        0.98     PT        1.02     MC        1.00*    
!   SC        1.00*    SV        1.00*    TC        1.00*    WF        1.00*    
!   WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    HN        0.00*    HO        0.00*    
!   KP        0.00*    LA        0.00*    MK        0.00*    NL        0.00*    
!   NY        0.00*    OV        0.00*    PT        0.00*    MC        0.00*    
!   SC        0.00*    SV        0.00*    TC        0.00*    WF        0.00*    
!   WZ        0.00*    
! 
!  A total of 39 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.88     FD        0.98     HN        0.74     HO        1.10     
!   KP        1.00*    LA        1.00     MK        1.03     NL        1.11     
!   NY        0.99     OV        0.96     PT        0.96     MC        0.94     
!   SC        1.02     SV        1.00     TC        1.00*    WF        1.06     
!   WZ        0.95     
! 
!  A total of 33 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    HN        1.08     HO        0.98     
!   KP        1.00*    LA        1.00*    MK        1.00*    NL        1.04     
!   NY        1.00*    OV        1.00*    PT        1.00*    MC        1.00*    
!   SC        1.28     SV        1.00*    TC        1.00*    WF        1.04     
!   WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.104169Jy  sigma=0.001165
! Fit after  self-cal, rms=0.098814Jy  sigma=0.001096
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.5101 mas, bmaj=1.439 mas, bpa=-35.55 degrees
! Estimated noise=537.209 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.00461978 Jy
! Component: 100  -  total flux cleaned = 0.00491533 Jy
! Total flux subtracted in 100 components = 0.00491533 Jy
! Clean residual min=-0.003641 max=0.005325 Jy/beam
! Clean residual mean=0.000275 rms=0.001009 Jy/beam
! Combined flux in latest and established models = 0.40038 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 9 model components to the UV plane model.
! The established model now contains 45 components and 0.40038 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.098518Jy  sigma=0.001091
! Fit after  self-cal, rms=0.098502Jy  sigma=0.001091
! 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.3, 4.1).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00416138 Jy
! Component: 100  -  total flux cleaned = 0.00490553 Jy
! Total flux subtracted in 100 components = 0.00490553 Jy
! Clean residual min=-0.003362 max=0.003590 Jy/beam
! Clean residual mean=0.000207 rms=0.000849 Jy/beam
! Combined flux in latest and established models = 0.405285 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 15 model components to the UV plane model.
! The established model now contains 57 components and 0.405285 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.098289Jy  sigma=0.001088
! Fit after  self-cal, rms=0.095858Jy  sigma=0.001057
! Inverting map and beam 
! Estimated beam: bmin=0.5098 mas, bmaj=1.434 mas, bpa=-35.46 degrees
! Estimated noise=537.727 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.00302244 Jy
! Component: 100  -  total flux cleaned = 0.00390495 Jy
! Total flux subtracted in 100 components = 0.00390495 Jy
! Clean residual min=-0.003016 max=0.003169 Jy/beam
! Clean residual mean=0.000149 rms=0.000723 Jy/beam
! Combined flux in latest and established models = 0.40919 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 15 model components to the UV plane model.
! The established model now contains 63 components and 0.40919 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.095759Jy  sigma=0.001056
! Fit after  self-cal, rms=0.095755Jy  sigma=0.001056
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 2318+049_X
! Writing UV FITS file: 2318+049_X.uvf
! Writing 63 model components to file: 2318+049_X.mod
! wwins: Wrote 2 windows to 2318+049_X.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.5098 x 1.434 at -35.46 degrees (North through East)
! Clean map  min=-0.0028084  max=0.32037 Jy/beam
! Writing clean map to FITS file: 2318+049_X.fits
! Writing difmap environment to: 2318+049_X.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
![@gonzo_plot 2318+049_X]
device 2318+049_Xuv.ps/vps,1,2
! Attempting to open device: '2318+049_Xuv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 2318+049_Xim.ps/vps
! Attempting to open device: '2318+049_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.5098 mas, bmaj=1.434 mas, bpa=-35.46 degrees
! Estimated noise=537.727 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.5098 x 1.434 at -35.46 degrees (North through East)
! Clean map  min=-0.0028084  max=0.32037 Jy/beam
![Exited script file: gonzo_plot]
![Exited script file: gonzo7-0.1]
quit
! Quitting program
! Log file 2318+049_X.log closed on Mon Oct 30 09:46:01 2006