! Started logfile: 0537-441_X.log on Fri Nov  3 09:38:19 2006
observe 0537-441_X.edt
! Reading UV FITS file: 0537-441_X.edt
! AN table 1: 78 integrations on 136 of 136 possible baselines.
! AN table 2: 72 integrations on 136 of 136 possible baselines.
! AN table 3: 33 integrations on 136 of 136 possible baselines.
! AN table 4: 23 integrations on 136 of 136 possible baselines.
! Apparent sampling: 0.0614292 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 0537-441
! 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 6884 visibilities.
![@gonzo9-0.1_0537 0537-441_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 = 9.0
float win_mult
win_mult = 0.7
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 1108 telescope corrections were flagged in sub-array 1.
!  A total of 1030 telescope corrections were flagged in sub-array 2.
!  A total of 423 telescope corrections were flagged in sub-array 3.
!  A total of 322 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 1139 telescope corrections were flagged in sub-array 1.
!  A total of 1064 telescope corrections were flagged in sub-array 2.
!  A total of 422 telescope corrections were flagged in sub-array 3.
!  A total of 322 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 1109 telescope corrections were flagged in sub-array 1.
!  A total of 1032 telescope corrections were flagged in sub-array 2.
!  A total of 422 telescope corrections were flagged in sub-array 3.
!  A total of 325 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 1109 telescope corrections were flagged in sub-array 1.
!  A total of 1031 telescope corrections were flagged in sub-array 2.
!  A total of 421 telescope corrections were flagged in sub-array 3.
!  A total of 322 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.622730Jy  sigma=0.007712
! Fit after  self-cal, rms=0.614661Jy  sigma=0.007831
! 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.3312 mas, bmaj=0.6965 mas, bpa=-57.43 degrees
! Estimated noise=1885.52 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.582237 Jy
! Total flux subtracted in 50 components = 0.582237 Jy
! Clean residual min=-0.094938 max=0.164782 Jy/beam
! Clean residual mean=0.001458 rms=0.027184 Jy/beam
! Combined flux in latest and established models = 0.582237 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 3 model components to the UV plane model.
! The established model now contains 3 components and 0.582237 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.733692Jy  sigma=0.010034
! Fit after  self-cal, rms=0.734077Jy  sigma=0.010034
! 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.4467 mas, bmaj=0.7799 mas, bpa=-50.87 degrees
! Estimated noise=940.164 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.462259 Jy
! Component: 100  -  total flux cleaned = 0.661017 Jy
! Total flux subtracted in 100 components = 0.661017 Jy
! Clean residual min=-0.127378 max=0.295201 Jy/beam
! Clean residual mean=0.004469 rms=0.067014 Jy/beam
! Combined flux in latest and established models = 1.24325 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 9 components and 1.24325 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.541532Jy  sigma=0.006519
! Fit after  self-cal, rms=0.541689Jy  sigma=0.006509
! 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        1.00*    FD        0.71     HN        1.00*    HO        1.07     
!   KP        1.00*    LA        0.85     MK        1.63     NL        1.00*    
!   NY        1.00*    OV        2.72     PT        0.80     MC        1.00*    
!   SC        1.47     SV        1.00*    TC        1.93     WF        1.00*    
!   WZ        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        0.79     HN        1.00*    HO        1.61     
!   KP        1.00*    LA        0.77     MK        1.73     NL        1.00*    
!   NY        1.00*    OV        3.36     PT        0.82     MC        1.00*    
!   SC        1.25     SV        1.00*    TC        1.62     WF        1.00*    
!   WZ        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        0.78     HN        1.00*    HO        1.28     
!   KP        1.00*    LA        0.74     MK        1.37     NL        1.00*    
!   NY        1.00*    OV        3.42     PT        0.73     MC        1.00*    
!   SC        1.00*    SV        1.00*    TC        1.49     WF        1.00*    
!   WZ        1.00*    
! 
!  A total of 69 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   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*    
! 
! 
! Correcting IF 2.
!  A total of 15 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        0.68     HN        1.00*    HO        1.12     
!   KP        1.00*    LA        0.83     MK        0.48     NL        1.00*    
!   NY        1.00*    OV        2.79     PT        0.79     MC        1.00*    
!   SC        1.58     SV        1.00*    TC        1.86     WF        1.00*    
!   WZ        1.00*    
! 
!  A total of 15 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        0.81     HN        1.00*    HO        1.25     
!   KP        1.00*    LA        0.50     MK        1.63     NL        1.00*    
!   NY        1.00*    OV        4.20     PT        0.84     MC        1.00*    
!   SC        1.24     SV        1.00*    TC        1.36     WF        1.00*    
!   WZ        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        0.77     HN        1.00*    HO        1.22     
!   KP        1.00*    LA        0.74     MK        1.37     NL        1.00*    
!   NY        1.00*    OV        3.26     PT        0.73     MC        1.00*    
!   SC        1.00*    SV        1.00*    TC        1.63     WF        1.00*    
!   WZ        1.00*    
! 
!  A total of 69 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   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*    
! 
! 
! 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.70     HN        1.00*    HO        0.97     
!   KP        1.00*    LA        0.83     MK        1.72     NL        1.00*    
!   NY        1.00*    OV        3.26     PT        0.81     MC        1.00*    
!   SC        1.53     SV        1.00*    TC        1.82     WF        1.00*    
!   WZ        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        0.86     HN        1.00*    HO        1.54     
!   KP        1.00*    LA        0.78     MK        1.67     NL        1.00*    
!   NY        1.00*    OV        1.00*    PT        0.82     MC        1.00*    
!   SC        1.34     SV        1.00*    TC        1.59     WF        1.00*    
!   WZ        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        0.79     HN        1.00*    HO        1.21     
!   KP        1.00*    LA        0.76     MK        1.39     NL        1.00*    
!   NY        1.00*    OV        2.89     PT        0.76     MC        1.00*    
!   SC        1.00*    SV        1.00*    TC        1.66     WF        1.00*    
!   WZ        1.00*    
! 
!  A total of 66 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   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*    
! 
! 
! Correcting IF 4.
!  A total of 15 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        0.68     HN        1.00*    HO        0.89     
!   KP        1.00*    LA        0.83     MK        1.71     NL        1.00*    
!   NY        1.00*    OV        3.28     PT        0.83     MC        1.00*    
!   SC        1.62     SV        1.00*    TC        1.79     WF        1.00*    
!   WZ        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        0.86     HN        1.00*    HO        1.45     
!   KP        1.00*    LA        0.77     MK        1.62     NL        1.00*    
!   NY        1.00*    OV        4.71     PT        0.81     MC        1.00*    
!   SC        1.49     SV        1.00*    TC        1.55     WF        1.00*    
!   WZ        1.00*    
! 
!  A total of 6 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        0.79     HN        1.00*    HO        1.11     
!   KP        1.00*    LA        0.75     MK        1.28     NL        1.00*    
!   NY        1.00*    OV        3.16     PT        0.76     MC        1.00*    
!   SC        1.00*    SV        1.00*    TC        1.67     WF        1.00*    
!   WZ        1.00*    
! 
!  A total of 69 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   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*    
! 
! 
! Fit before self-cal, rms=0.541689Jy  sigma=0.006509
! Fit after  self-cal, rms=0.616561Jy  sigma=0.002630
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.4863 mas, bmaj=0.972 mas, bpa=-51.46 degrees
! Estimated noise=949.669 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.7, 0).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0346991 Jy
! Component: 100  -  total flux cleaned = 0.0320248 Jy
! Total flux subtracted in 100 components = 0.0320248 Jy
! Clean residual min=-0.049308 max=0.039249 Jy/beam
! Clean residual mean=-0.000250 rms=0.008436 Jy/beam
! Combined flux in latest and established models = 1.27528 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 1.27528 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.583073Jy  sigma=0.002311
! Fit after  self-cal, rms=0.580842Jy  sigma=0.002275
! 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.00545361 Jy
! Component: 100  -  total flux cleaned = -0.00181666 Jy
! Total flux subtracted in 100 components = -0.00181666 Jy
! Clean residual min=-0.043741 max=0.035683 Jy/beam
! Clean residual mean=-0.000239 rms=0.007745 Jy/beam
! Combined flux in latest and established models = 1.27346 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 7 model components to the UV plane model.
! The established model now contains 17 components and 1.27346 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.565703Jy  sigma=0.002170
! Fit after  self-cal, rms=0.489983Jy  sigma=0.001829
! Inverting map and beam 
! Estimated beam: bmin=0.4756 mas, bmaj=0.9518 mas, bpa=-51.48 degrees
! Estimated noise=929.094 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.0220182 Jy
! Component: 100  -  total flux cleaned = 0.0169487 Jy
! Total flux subtracted in 100 components = 0.0169487 Jy
! Clean residual min=-0.029251 max=0.029149 Jy/beam
! Clean residual mean=-0.000210 rms=0.005570 Jy/beam
! Combined flux in latest and established models = 1.29041 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 22 components and 1.29041 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.479949Jy  sigma=0.001718
! Fit after  self-cal, rms=0.476526Jy  sigma=0.001703
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 0537-441_X
! Writing UV FITS file: 0537-441_X.uvf
! Writing 22 model components to file: 0537-441_X.mod
! wwins: Wrote 2 windows to 0537-441_X.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.4756 x 0.9518 at -51.48 degrees (North through East)
! Clean map  min=-0.099767  max=1.0645 Jy/beam
! Writing clean map to FITS file: 0537-441_X.fits
! Writing difmap environment to: 0537-441_X.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
![@gonzo_plot 0537-441_X]
device 0537-441_Xuv.ps/vps,1,2
! Attempting to open device: '0537-441_Xuv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 0537-441_Xim.ps/vps
! Attempting to open device: '0537-441_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.4756 mas, bmaj=0.9518 mas, bpa=-51.48 degrees
! Estimated noise=929.094 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.4756 x 0.9518 at -51.48 degrees (North through East)
! Clean map  min=-0.099767  max=1.0645 Jy/beam
![Exited script file: gonzo_plot]
![Exited script file: gonzo9-0.1_0537]
quit
! Quitting program
! Log file 0537-441_X.log closed on Fri Nov  3 09:38:40 2006