! Started logfile: 2318+049_S.log on Mon Oct 30 08:45:05 2006
observe 2318+049_S.edt
! Reading UV FITS file: 2318+049_S.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  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 1577 lines of history.
! 
! Reading 11096 visibilities.
![@gonzo7-0.4 2318+049_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 394 telescope corrections were flagged in sub-array 1.
!  A total of 136 telescope corrections were flagged in sub-array 2.
!  A total of 1460 telescope corrections were flagged in sub-array 3.
!  A total of 1054 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 394 telescope corrections were flagged in sub-array 1.
!  A total of 136 telescope corrections were flagged in sub-array 2.
!  A total of 1460 telescope corrections were flagged in sub-array 3.
!  A total of 1054 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 394 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 1055 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 394 telescope corrections were flagged in sub-array 1.
!  A total of 136 telescope corrections were flagged in sub-array 2.
!  A total of 1460 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.517489Jy  sigma=0.005080
! Fit after  self-cal, rms=0.501799Jy  sigma=0.004997
! 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=1.434 mas, bmaj=5.765 mas, bpa=-44.94 degrees
! Estimated noise=1086.74 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.41676 Jy
! Total flux subtracted in 50 components = 0.41676 Jy
! Clean residual min=-0.030155 max=0.116260 Jy/beam
! Clean residual mean=0.000039 rms=0.008985 Jy/beam
! Combined flux in latest and established models = 0.41676 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.41676 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.193956Jy  sigma=0.001881
! Fit after  self-cal, rms=0.193956Jy  sigma=0.001881
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0911543 Jy
! Total flux subtracted in 50 components = 0.0911543 Jy
! Clean residual min=-0.019365 max=0.028680 Jy/beam
! Clean residual mean=-0.000060 rms=0.004934 Jy/beam
! Combined flux in latest and established models = 0.507915 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 5 model components to the UV plane model.
! The established model now contains 5 components and 0.507915 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.161866Jy  sigma=0.001459
! Fit after  self-cal, rms=0.161851Jy  sigma=0.001459
! 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=1.807 mas, bmaj=5.463 mas, bpa=-38.63 degrees
! Estimated noise=690.131 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.0303845 Jy
! Component: 100  -  total flux cleaned = 0.0414878 Jy
! Total flux subtracted in 100 components = 0.0414878 Jy
! Clean residual min=-0.018036 max=0.017770 Jy/beam
! Clean residual mean=-0.001097 rms=0.004486 Jy/beam
! Combined flux in latest and established models = 0.549403 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 18 components and 0.549403 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.157503Jy  sigma=0.001388
! Fit after  self-cal, rms=0.157393Jy  sigma=0.001387
! 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        1.06     FD        1.04     HN        1.00*    HO        0.90     
!   KP        1.00*    LA        0.98     MK        0.89     NL        1.00*    
!   NY        1.00*    OV        1.05     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 42 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.20     FD        0.84     HN        0.93     HO        1.00     
!   KP        1.00*    LA        0.91     MK        0.90     NL        1.05     
!   NY        1.00     OV        0.93     PT        0.95     MC        0.93     
!   SC        1.06     SV        0.91     TC        1.00*    WF        1.03     
!   WZ        0.91     
! 
!  A total of 30 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    HN        2.30     HO        0.92     
!   KP        1.00*    LA        1.00*    MK        1.00*    NL        1.03     
!   NY        1.00*    OV        1.00*    PT        1.00*    MC        1.00*    
!   SC        0.95     SV        1.00*    TC        1.00*    WF        0.90     
!   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        1.07     FD        1.06     HN        1.00*    HO        0.89     
!   KP        1.00*    LA        1.01     MK        0.98     NL        1.00*    
!   NY        1.00*    OV        1.05     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 42 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.14     FD        0.88     HN        0.99     HO        0.99     
!   KP        1.00*    LA        0.93     MK        0.89     NL        1.05     
!   NY        0.99     OV        0.92     PT        0.95     MC        0.94     
!   SC        1.08     SV        0.92     TC        1.00*    WF        1.03     
!   WZ        0.92     
! 
!  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        2.71     HO        1.04     
!   KP        1.00*    LA        1.00*    MK        1.00*    NL        1.02     
!   NY        1.00*    OV        1.00*    PT        1.00*    MC        1.00*    
!   SC        0.94     SV        1.00*    TC        1.00*    WF        0.91     
!   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.05     FD        1.06     HN        1.00*    HO        0.90     
!   KP        1.00*    LA        1.01     MK        1.00     NL        1.00*    
!   NY        1.00*    OV        1.03     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        1.15     FD        0.87     HN        0.86     HO        0.99     
!   KP        1.00*    LA        0.93     MK        0.90     NL        1.05     
!   NY        1.01     OV        0.93     PT        0.94     MC        1.37     
!   SC        1.06     SV        0.93     TC        1.00*    WF        1.04     
!   WZ        0.93     
! 
!  A total of 30 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00*    FD        1.00*    HN        3.07     HO        1.04     
!   KP        1.00*    LA        1.00*    MK        1.00*    NL        0.99     
!   NY        1.00*    OV        1.00*    PT        1.00*    MC        1.00*    
!   SC        0.90     SV        1.00*    TC        1.00*    WF        0.96     
!   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.08     FD        1.05     HN        1.00*    HO        0.93     
!   KP        1.00*    LA        1.00     MK        1.00     NL        1.00*    
!   NY        1.00*    OV        1.04     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 42 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.16     FD        0.89     HN        1.00     HO        1.00     
!   KP        1.00*    LA        0.93     MK        0.90     NL        1.06     
!   NY        1.02     OV        0.93     PT        0.96     MC        0.94     
!   SC        1.09     SV        0.94     TC        1.00*    WF        1.05     
!   WZ        0.93     
! 
!  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        2.91     HO        1.05     
!   KP        1.00*    LA        1.00*    MK        1.00*    NL        1.00     
!   NY        1.00*    OV        1.00*    PT        1.00*    MC        1.00*    
!   SC        1.00     SV        1.00*    TC        1.00*    WF        1.22     
!   WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.157393Jy  sigma=0.001387
! Fit after  self-cal, rms=0.157170Jy  sigma=0.001124
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=1.846 mas, bmaj=5.484 mas, bpa=-37.72 degrees
! Estimated noise=691.912 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 (-8, 5.2).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00795451 Jy
! Component: 100  -  total flux cleaned = 0.011279 Jy
! Total flux subtracted in 100 components = 0.011279 Jy
! Clean residual min=-0.003341 max=0.004716 Jy/beam
! Clean residual mean=0.000346 rms=0.000968 Jy/beam
! Combined flux in latest and established models = 0.560682 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 28 components and 0.560681 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.156764Jy  sigma=0.001119
! Fit after  self-cal, rms=0.157064Jy  sigma=0.001118
! 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.00101221 Jy
! Component: 100  -  total flux cleaned = 0.00101505 Jy
! Total flux subtracted in 100 components = 0.00101505 Jy
! Clean residual min=-0.003228 max=0.004428 Jy/beam
! Clean residual mean=0.000326 rms=0.000914 Jy/beam
! Combined flux in latest and established models = 0.561697 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 37 components and 0.561696 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.156999Jy  sigma=0.001117
! Fit after  self-cal, rms=0.154099Jy  sigma=0.001068
! Inverting map and beam 
! Estimated beam: bmin=1.842 mas, bmaj=5.475 mas, bpa=-37.77 degrees
! Estimated noise=691.904 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.00309595 Jy
! Component: 100  -  total flux cleaned = 0.00428026 Jy
! Total flux subtracted in 100 components = 0.00428026 Jy
! Clean residual min=-0.003092 max=0.003832 Jy/beam
! Clean residual mean=0.000219 rms=0.000789 Jy/beam
! Combined flux in latest and established models = 0.565977 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 47 components and 0.565977 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.154024Jy  sigma=0.001067
! Fit after  self-cal, rms=0.154102Jy  sigma=0.001067
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 2318+049_S
! Writing UV FITS file: 2318+049_S.uvf
! Writing 47 model components to file: 2318+049_S.mod
! wwins: Wrote 2 windows to 2318+049_S.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 1.842 x 5.475 at -37.77 degrees (North through East)
! Clean map  min=-0.0031334  max=0.51912 Jy/beam
! Writing clean map to FITS file: 2318+049_S.fits
! Writing difmap environment to: 2318+049_S.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
![@gonzo_plot 2318+049_S]
device 2318+049_Suv.ps/vps,1,2
! Attempting to open device: '2318+049_Suv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 2318+049_Sim.ps/vps
! Attempting to open device: '2318+049_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=1.842 mas, bmaj=5.475 mas, bpa=-37.77 degrees
! Estimated noise=691.904 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 1.842 x 5.475 at -37.77 degrees (North through East)
! Clean map  min=-0.0031334  max=0.51912 Jy/beam
![Exited script file: gonzo_plot]
![Exited script file: gonzo7-0.4]
quit
! Quitting program
! Log file 2318+049_S.log closed on Mon Oct 30 08:45:28 2006