! Started logfile: 1908-201_S.log on Mon Oct 30 08:38:31 2006
observe 1908-201_S.edt
! Reading UV FITS file: 1908-201_S.edt
! AN table 1: 188 integrations on 136 of 136 possible baselines.
! Apparent sampling: 0.108378 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: 1908-201
! 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 11084 visibilities.
![@gonzo7-0.4 1908-201_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 2374 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 2.
!  A total of 2374 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 3.
!  A total of 2374 telescope corrections were flagged in sub-array 1.
! 
! Correcting IF 4.
!  A total of 2374 telescope corrections were flagged in sub-array 1.
! 
! Fit before self-cal, rms=0.646974Jy  sigma=0.008428
! Fit after  self-cal, rms=0.652451Jy  sigma=0.008501
! 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=2.51 mas, bmaj=3.854 mas, bpa=5.737 degrees
! Estimated noise=1229.57 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 = 1.01327 Jy
! Total flux subtracted in 50 components = 1.01327 Jy
! Clean residual min=-0.118255 max=0.292297 Jy/beam
! Clean residual mean=0.001020 rms=0.034204 Jy/beam
! Combined flux in latest and established models = 1.01327 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 1.01327 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.644172Jy  sigma=0.008399
! Fit after  self-cal, rms=0.644270Jy  sigma=0.008398
! Inverting map 
! clean: niter=50  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.295103 Jy
! Total flux subtracted in 50 components = 0.295103 Jy
! Clean residual min=-0.091848 max=0.163916 Jy/beam
! Clean residual mean=0.000715 rms=0.026673 Jy/beam
! Combined flux in latest and established models = 1.30838 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 16 model components to the UV plane model.
! The established model now contains 19 components and 1.30838 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.510608Jy  sigma=0.006458
! Fit after  self-cal, rms=0.510564Jy  sigma=0.006457
! 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=3.224 mas, bmaj=4.558 mas, bpa=8.742 degrees
! Estimated noise=597.097 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.220114 Jy
! Component: 100  -  total flux cleaned = 0.330202 Jy
! Total flux subtracted in 100 components = 0.330202 Jy
! Clean residual min=-0.083331 max=0.214120 Jy/beam
! Clean residual mean=0.001318 rms=0.041094 Jy/beam
! Combined flux in latest and established models = 1.63858 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 37 components and 1.63858 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.438608Jy  sigma=0.005312
! Fit after  self-cal, rms=0.438266Jy  sigma=0.005309
! 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 72 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.85     FD        0.89     HN        1.20     HO        1.00*    
!   KP        1.00*    LA        0.89     MK        1.15     NL        0.89     
!   NY        1.00*    OV        0.91     PT        0.89     MC        1.00*    
!   SC        0.88     SV        1.00*    TC        1.10     WF        1.00*    
!   WZ        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 72 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.52     FD        0.90     HN        1.53     HO        1.00*    
!   KP        1.00*    LA        0.90     MK        1.05     NL        0.90     
!   NY        1.00*    OV        0.91     PT        0.88     MC        1.00*    
!   SC        0.90     SV        1.00*    TC        1.04     WF        1.00*    
!   WZ        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 72 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.56     FD        0.90     HN        1.36     HO        1.00*    
!   KP        1.00*    LA        0.90     MK        1.02     NL        0.87     
!   NY        1.00*    OV        0.93     PT        0.89     MC        1.00*    
!   SC        0.88     SV        1.00*    TC        1.05     WF        1.00*    
!   WZ        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 72 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.65     FD        0.91     HN        4.21     HO        1.00*    
!   KP        1.00*    LA        0.90     MK        1.02     NL        0.87     
!   NY        1.00*    OV        0.93     PT        0.90     MC        1.00*    
!   SC        0.89     SV        1.00*    TC        1.04     WF        1.00*    
!   WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.438266Jy  sigma=0.005309
! Fit after  self-cal, rms=0.355443Jy  sigma=0.002929
dynam = dynam - 0.5
doamp = false
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=3.232 mas, bmaj=4.753 mas, bpa=10.71 degrees
! Estimated noise=595.846 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.00390718 Jy
! Component: 100  -  total flux cleaned = 0.00391224 Jy
! Total flux subtracted in 100 components = 0.00391224 Jy
! Clean residual min=-0.053321 max=0.051664 Jy/beam
! Clean residual mean=0.000002 rms=0.013356 Jy/beam
! Combined flux in latest and established models = 1.64249 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 43 components and 1.64249 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.354642Jy  sigma=0.002921
! Fit after  self-cal, rms=0.354727Jy  sigma=0.002920
! 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.00053204 Jy
! Component: 100  -  total flux cleaned = 0.000816583 Jy
! Total flux subtracted in 100 components = 0.000816583 Jy
! Clean residual min=-0.052943 max=0.051073 Jy/beam
! Clean residual mean=-0.000002 rms=0.013308 Jy/beam
! Combined flux in latest and established models = 1.64331 Jy
! Performing amp+phase self-cal over 1 minute time intervals
! Adding 9 model components to the UV plane model.
! The established model now contains 46 components and 1.64331 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.354329Jy  sigma=0.002917
! Fit after  self-cal, rms=0.235218Jy  sigma=0.001349
! Inverting map and beam 
! Estimated beam: bmin=3.231 mas, bmaj=4.737 mas, bpa=10.68 degrees
! Estimated noise=595.449 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)
! Added new window around map position (9.2, 0).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0273205 Jy
! Component: 100  -  total flux cleaned = 0.0317751 Jy
! Total flux subtracted in 100 components = 0.0317751 Jy
! Clean residual min=-0.017394 max=0.013979 Jy/beam
! Clean residual mean=-0.000054 rms=0.003390 Jy/beam
! Combined flux in latest and established models = 1.67508 Jy
! Performing phase self-cal over 0.6 minute time intervals
! Adding 17 model components to the UV plane model.
! The established model now contains 62 components and 1.67508 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.232512Jy  sigma=0.001273
! Fit after  self-cal, rms=0.232168Jy  sigma=0.001266
! Inverting map 
print "***********************************"
! *********************************** 
print "*** Finished Amplitude Self-Cal ***"
! *** Finished Amplitude Self-Cal *** 
print "***********************************"
! *********************************** 
save 1908-201_S
! Writing UV FITS file: 1908-201_S.uvf
! Writing 62 model components to file: 1908-201_S.mod
! wwins: Wrote 2 windows to 1908-201_S.win
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.231 x 4.737 at 10.68 degrees (North through East)
! Clean map  min=-0.01848  max=1.2647 Jy/beam
! Writing clean map to FITS file: 1908-201_S.fits
! Writing difmap environment to: 1908-201_S.par
print "****************************"
! **************************** 
print "*** Now, make some plots ***"
! *** Now, make some plots *** 
print "****************************"
! **************************** 
![@gonzo_plot 1908-201_S]
device 1908-201_Suv.ps/vps,1,2
! Attempting to open device: '1908-201_Suv.ps/vps'
radplot
! Using default options string "m1"
uvplot
! Using default options string ""
device 1908-201_Sim.ps/vps
! Attempting to open device: '1908-201_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=3.231 mas, bmaj=4.737 mas, bpa=10.68 degrees
! Estimated noise=595.449 mJy/beam.
mappl cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 3.231 x 4.737 at 10.68 degrees (North through East)
! Clean map  min=-0.01848  max=1.2647 Jy/beam
![Exited script file: gonzo_plot]
![Exited script file: gonzo7-0.4]
quit
! Quitting program
! Log file 1908-201_S.log closed on Mon Oct 30 08:38:53 2006