! Started logfile: 0537-441_X.log on Fri Mar 30 09:03:44 2007
observe 0537-441_X.edt
! Reading UV FITS file: 0537-441_X.edt
! AN table 1: 33 integrations on 105 of 105 possible baselines.
! Apparent sampling: 0.0842713 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 0537-441
! 
! 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 1241 lines of history.
! 
! Reading 1168 visibilities.
![@gonzo5-0.1 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 = 5.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 400 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 400 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 400 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 400 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.721252Jy  sigma=0.009214
! Fit after  self-cal, rms=0.704869Jy  sigma=0.009575
! 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.6228 mas, bmaj=0.9083 mas, bpa=31.88 degrees
! Estimated noise=4102.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.810103 Jy
! Total flux subtracted in 50 components = 0.810103 Jy
! Clean residual min=-0.144168 max=0.281000 Jy/beam
! Clean residual mean=0.011130 rms=0.079105 Jy/beam
! Combined flux in latest and established models = 0.810103 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 12 model components to the UV plane model.
! The established model now contains 12 components and 0.810103 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.794503Jy  sigma=0.011422
! Fit after  self-cal, rms=0.794441Jy  sigma=0.011422
! 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.9455 mas, bmaj=1.314 mas, bpa=34.05 degrees
! Estimated noise=2025.54 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.606533 Jy
! Component: 100  -  total flux cleaned = 0.826565 Jy
! Total flux subtracted in 100 components = 0.826565 Jy
! Clean residual min=-0.107655 max=0.133253 Jy/beam
! Clean residual mean=0.014465 rms=0.057444 Jy/beam
! Combined flux in latest and established models = 1.63667 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 40 model components to the UV plane model.
! The established model now contains 48 components and 1.63667 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.326966Jy  sigma=0.004465
! Fit after  self-cal, rms=0.326540Jy  sigma=0.004461
! 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 12 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.05     HN        1.00*    KB        1.00*    
!   KP        1.42     LA        0.84     MK        1.03     NL        1.00*    
!   NY        1.00*    OV        1.00*    PT        0.84     SV        1.00*    
!   WF        1.00*    WZ        1.00*    TC        0.99     
! 
! 
! Correcting IF 2.
!  A total of 12 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.05     HN        1.00*    KB        1.00*    
!   KP        1.04     LA        0.84     MK        1.05     NL        1.00*    
!   NY        1.00*    OV        1.00*    PT        0.85     SV        1.00*    
!   WF        1.00*    WZ        1.00*    TC        1.04     
! 
! 
! Correcting IF 3.
!  A total of 12 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.07     HN        1.00*    KB        1.00*    
!   KP        1.16     LA        0.83     MK        1.02     NL        1.00*    
!   NY        1.00*    OV        1.00*    PT        0.84     SV        1.00*    
!   WF        1.00*    WZ        1.00*    TC        1.01     
! 
! 
! Correcting IF 4.
!  A total of 12 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.06     HN        1.00*    KB        1.00*    
!   KP        1.06     LA        0.81     MK        1.03     NL        1.00*    
!   NY        1.00*    OV        1.00*    PT        0.86     SV        1.00*    
!   WF        1.00*    WZ        1.00*    TC        1.08     
! 
! 
! Fit before self-cal, rms=0.326540Jy  sigma=0.004461
! Fit after  self-cal, rms=0.164780Jy  sigma=0.001197
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=0.9601 mas, bmaj=1.311 mas, bpa=33.57 degrees
! Estimated noise=1991.02 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.000873916 Jy
! Component: 100  -  total flux cleaned = 0.00104581 Jy
! Total flux subtracted in 100 components = 0.00104581 Jy
! Clean residual min=-0.008073 max=0.009130 Jy/beam
! Clean residual mean=-0.000297 rms=0.002590 Jy/beam
! Combined flux in latest and established models = 1.63771 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 52 components and 1.63771 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.164679Jy  sigma=0.001196
! Fit after  self-cal, rms=0.164670Jy  sigma=0.001195
! 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 (8.9, 13.2).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00386364 Jy
! Component: 100  -  total flux cleaned = 0.00345082 Jy
! Total flux subtracted in 100 components = 0.00345082 Jy
! Clean residual min=-0.007758 max=0.007177 Jy/beam
! Clean residual mean=-0.000325 rms=0.002186 Jy/beam
! Combined flux in latest and established models = 1.64116 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 8 model components to the UV plane model.
! The established model now contains 60 components and 1.64116 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.164208Jy  sigma=0.001185
! Fit after  self-cal, rms=0.161091Jy  sigma=0.001068
! Inverting map and beam 
! Estimated beam: bmin=0.9592 mas, bmaj=1.31 mas, bpa=33.29 degrees
! Estimated noise=1989.59 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.00119785 Jy
! Component: 100  -  total flux cleaned = 0.000824534 Jy
! Total flux subtracted in 100 components = 0.000824534 Jy
! Clean residual min=-0.007118 max=0.007079 Jy/beam
! Clean residual mean=-0.000275 rms=0.001947 Jy/beam
! Combined flux in latest and established models = 1.64199 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 63 components and 1.64199 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.160928Jy  sigma=0.001065
! Fit after  self-cal, rms=0.160903Jy  sigma=0.001065
! 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 63 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.9592 x 1.31 at 33.29 degrees (North through East)
! Clean map  min=-0.0069409  max=1.1981 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.9592 mas, bmaj=1.31 mas, bpa=33.29 degrees
! Estimated noise=1989.59 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.9592 x 1.31 at 33.29 degrees (North through East)
! Clean map  min=-0.0069409  max=1.1981 Jy/beam
![Exited script file: gonzo_plot]
![Exited script file: gonzo5-0.1]
quit
! Quitting program
! Log file 0537-441_X.log closed on Fri Mar 30 09:03:58 2007