! Started logfile: J1740+5211_S_2003_09_17_pus_uvs.log on Tue May 22 13:54:05 2007
obs J1740+5211_S_2003_09_17_pus_uva.fits
! Reading UV FITS file: J1740+5211_S_2003_09_17_pus_uva.fits
! AN table 1: 118 integrations on 120 of 120 possible baselines.
! AN table 2: 38 integrations on 120 of 120 possible baselines.
! AN table 3: 200 integrations on 120 of 120 possible baselines.
! Apparent sampling: 0.146044 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1740+5211
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (3).
!          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 1736 lines of history.
! 
! Reading 24956 visibilities.
select I
! Polarization I is unavailable.
! 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
print "field_size =",field_size
! field_size = 512 
print "field_cell =",field_cell
! field_cell = 0.5 
print "taper_size =",taper_size
! taper_size = 20 
integer clean_niter
clean_niter = 100
float clean_gain
clean_gain = 0.03
float dynam
dynam = 6.0
float soltime1
soltime1 = 120
float soltime2
soltime2 = 20
float thresh
thresh = 0.5
float win_mult
win_mult = 1.8
float time_av
time_av = 16
float old_peak
float new_peak
float flux_cutoff
mapsize field_size, field_cell
! Map grid = 512x512 pixels with 0.500x0.500 milli-arcsec cellsize.
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 1260 telescope corrections were flagged in sub-array 1.
!  A total of 422 telescope corrections were flagged in sub-array 2.
!  A total of 2595 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 1260 telescope corrections were flagged in sub-array 1.
!  A total of 422 telescope corrections were flagged in sub-array 2.
!  A total of 2595 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 1260 telescope corrections were flagged in sub-array 1.
!  A total of 422 telescope corrections were flagged in sub-array 2.
!  A total of 2595 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 1260 telescope corrections were flagged in sub-array 1.
!  A total of 422 telescope corrections were flagged in sub-array 2.
!  A total of 2595 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=0.320053Jy  sigma=0.001267
! Fit after  self-cal, rms=0.319915Jy  sigma=0.001263
! clrmod: Cleared the established, tentative and continuum models.
! Redundant starting model cleared.
uvw 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.
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.08 mas, bmaj=2.524 mas, bpa=0.1951 degrees
! Estimated noise=1419.42 mJy/beam.
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! Added new window around map position (0, 0).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.76228 Jy
! Component: 100  -  total flux cleaned = 0.929452 Jy
! Total flux subtracted in 100 components = 0.929452 Jy
! Clean residual min=-0.014149 max=0.052561 Jy/beam
! Clean residual mean=0.000076 rms=0.004571 Jy/beam
! Combined flux in latest and established models = 0.929452 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 7 components and 0.929452 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.328662Jy  sigma=0.001382
! Fit after  self-cal, rms=0.328646Jy  sigma=0.001382
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0601913 Jy
! Component: 100  -  total flux cleaned = 0.0990555 Jy
! Total flux subtracted in 100 components = 0.0990555 Jy
! Clean residual min=-0.009164 max=0.021212 Jy/beam
! Clean residual mean=0.000043 rms=0.002670 Jy/beam
! Combined flux in latest and established models = 1.02851 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 19 components and 1.02851 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.313782Jy  sigma=0.001192
! Fit after  self-cal, rms=0.313573Jy  sigma=0.001191
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0267946 Jy
! Component: 100  -  total flux cleaned = 0.0455099 Jy
! Total flux subtracted in 100 components = 0.0455099 Jy
! Clean residual min=-0.007618 max=0.010444 Jy/beam
! Clean residual mean=0.000028 rms=0.002045 Jy/beam
! Combined flux in latest and established models = 1.07402 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 24 components and 1.07402 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.310410Jy  sigma=0.001145
! Fit after  self-cal, rms=0.310307Jy  sigma=0.001145
! Inverting map 
print "************** FINISHED UNIFORM WEIGHTING CLEAN **************"
! ************** FINISHED UNIFORM WEIGHTING CLEAN ************** 
! 
uvw 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
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.515 mas, bmaj=2.891 mas, bpa=-20.63 degrees
! Estimated noise=809.666 mJy/beam.
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0219735 Jy
! Component: 100  -  total flux cleaned = 0.0346291 Jy
! Component: 150  -  total flux cleaned = 0.042385 Jy
! Component: 200  -  total flux cleaned = 0.0472658 Jy
! Total flux subtracted in 200 components = 0.0472658 Jy
! Clean residual min=-0.005831 max=0.010349 Jy/beam
! Clean residual mean=0.000347 rms=0.001579 Jy/beam
! Combined flux in latest and established models = 1.12128 Jy
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 39 components and 1.12128 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.309118Jy  sigma=0.001124
! Fit after  self-cal, rms=0.309012Jy  sigma=0.001124
! Inverting map 
! Added new window around map position (0.5, -6).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00730791 Jy
! Component: 100  -  total flux cleaned = 0.0084111 Jy
! Component: 150  -  total flux cleaned = 0.00967512 Jy
! Component: 200  -  total flux cleaned = 0.0106957 Jy
! Total flux subtracted in 200 components = 0.0106957 Jy
! Clean residual min=-0.005123 max=0.009933 Jy/beam
! Clean residual mean=0.000248 rms=0.001355 Jy/beam
! Combined flux in latest and established models = 1.13198 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 56 components and 1.13198 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.308712Jy  sigma=0.001121
! Fit after  self-cal, rms=0.308711Jy  sigma=0.001120
! Inverting map 
! Added new window around map position (2, 11).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00905779 Jy
! Component: 100  -  total flux cleaned = 0.014067 Jy
! Component: 150  -  total flux cleaned = 0.0165702 Jy
! Component: 200  -  total flux cleaned = 0.0180297 Jy
! Total flux subtracted in 200 components = 0.0180297 Jy
! Clean residual min=-0.004533 max=0.005279 Jy/beam
! Clean residual mean=0.000093 rms=0.001108 Jy/beam
! Combined flux in latest and established models = 1.15001 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 73 components and 1.15001 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.308431Jy  sigma=0.001117
! Fit after  self-cal, rms=0.308430Jy  sigma=0.001117
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        1.00     GC        1.00     HN        1.00     KP        1.00     
!   LA        1.00     MK        1.00     NL        1.00     NY        1.00     
!   ON        1.00     OV        1.00     PT        1.00     SC        1.01     
!   TS        1.03     KK        1.00     WZ        1.00     WF        1.00     
! 
!  Telescope amplitude corrections in sub-array 2:
!   FD        1.00     GC        1.01     HN        1.00*    KP        1.00     
!   LA        1.00     MK        1.00*    NL        1.00     NY        1.01     
!   ON        1.00     OV        1.00     PT        1.00     SC        1.00     
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   FD        1.00*    GC        1.00     HN        1.00     KP        1.00     
!   LA        1.00*    MK        1.00     NL        1.00     NY        1.00     
!   ON        1.00     OV        1.00     PT        1.00*    SC        1.00     
!   TS        1.00     KK        1.00     WZ        1.00     WF        1.00     
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   FD        1.00     GC        1.00     HN        1.00     KP        1.00     
!   LA        1.00     MK        1.00     NL        1.00     NY        1.00     
!   ON        1.00     OV        1.00     PT        1.00     SC        1.01     
!   TS        1.03     KK        1.00     WZ        1.00     WF        1.00     
! 
!  Telescope amplitude corrections in sub-array 2:
!   FD        1.00     GC        1.01     HN        1.00*    KP        1.00     
!   LA        1.00     MK        1.00*    NL        1.00     NY        1.01     
!   ON        1.00     OV        1.00     PT        1.00     SC        1.00     
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   FD        1.00*    GC        1.00     HN        1.00     KP        1.00     
!   LA        1.00*    MK        1.00     NL        1.00     NY        1.00     
!   ON        1.00     OV        1.00     PT        1.00*    SC        1.00     
!   TS        1.00     KK        1.00     WZ        1.00     WF        1.00     
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   FD        1.00     GC        1.00     HN        1.00     KP        1.00     
!   LA        1.00     MK        1.00     NL        1.00     NY        1.00     
!   ON        1.00     OV        1.00     PT        1.00     SC        1.01     
!   TS        1.03     KK        1.00     WZ        1.00     WF        1.00     
! 
!  Telescope amplitude corrections in sub-array 2:
!   FD        1.00     GC        1.01     HN        1.00*    KP        1.00     
!   LA        1.00     MK        1.00*    NL        1.00     NY        1.01     
!   ON        1.00     OV        1.00     PT        1.00     SC        1.00     
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   FD        1.00*    GC        1.00     HN        1.00     KP        1.00     
!   LA        1.00*    MK        1.00     NL        1.00     NY        1.00     
!   ON        1.00     OV        1.00     PT        1.00*    SC        1.00     
!   TS        1.00     KK        1.00     WZ        1.00     WF        1.00     
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   FD        1.00     GC        1.00     HN        1.00     KP        1.00     
!   LA        1.00     MK        1.00     NL        1.00     NY        1.00     
!   ON        1.00     OV        1.00     PT        1.00     SC        1.01     
!   TS        1.04     KK        1.00     WZ        1.00     WF        1.00     
! 
!  Telescope amplitude corrections in sub-array 2:
!   FD        1.00     GC        1.01     HN        1.00*    KP        1.00     
!   LA        1.00     MK        1.00*    NL        1.00     NY        1.01     
!   ON        1.00     OV        1.00     PT        1.00     SC        1.00     
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   FD        1.00*    GC        1.00     HN        1.00     KP        1.00     
!   LA        1.00*    MK        1.00     NL        1.00     NY        1.00     
!   ON        1.00     OV        1.00     PT        1.00*    SC        1.00     
!   TS        1.01     KK        1.00     WZ        1.00     WF        1.00     
! 
! 
! Fit before self-cal, rms=0.308430Jy  sigma=0.001117
! Fit after  self-cal, rms=0.308678Jy  sigma=0.001115
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.513 mas, bmaj=2.906 mas, bpa=-20.93 degrees
! Estimated noise=811.048 mJy/beam.
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00379736 Jy
! Component: 100  -  total flux cleaned = -0.00383947 Jy
! Component: 150  -  total flux cleaned = -0.00323974 Jy
! Component: 200  -  total flux cleaned = -0.00278375 Jy
! Total flux subtracted in 200 components = -0.00278375 Jy
! Clean residual min=-0.003962 max=0.004427 Jy/beam
! Clean residual mean=0.000127 rms=0.001000 Jy/beam
! Combined flux in latest and established models = 1.14722 Jy
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 90 components and 1.14722 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.308546Jy  sigma=0.001114
! Fit after  self-cal, rms=0.308570Jy  sigma=0.001114
! Inverting map 
selfcal true, true, soltime1
! Performing amp+phase self-cal over 120 minute time intervals
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.308570Jy  sigma=0.001114
! Fit after  self-cal, rms=0.308434Jy  sigma=0.001114
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.513 mas, bmaj=2.911 mas, bpa=-21.21 degrees
! Estimated noise=810.153 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00341132 Jy
! Component: 100  -  total flux cleaned = -0.0031532 Jy
! Component: 150  -  total flux cleaned = -0.00284124 Jy
! Component: 200  -  total flux cleaned = -0.00262189 Jy
! Total flux subtracted in 200 components = -0.00262189 Jy
! Clean residual min=-0.003952 max=0.004230 Jy/beam
! Clean residual mean=0.000130 rms=0.000966 Jy/beam
! Combined flux in latest and established models = 1.1446 Jy
selfcal
! Performing phase self-cal
! Adding 29 model components to the UV plane model.
! The established model now contains 100 components and 1.1446 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.308363Jy  sigma=0.001114
! Fit after  self-cal, rms=0.308378Jy  sigma=0.001114
flux_cutoff = imstat(rms) * dynam
! Inverting map 
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! Added new window around map position (-39.5, 30).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00245146 Jy
! Component: 100  -  total flux cleaned = 0.00257324 Jy
! Component: 150  -  total flux cleaned = 0.00273545 Jy
! Component: 200  -  total flux cleaned = 0.00302692 Jy
! Total flux subtracted in 200 components = 0.00302692 Jy
! Clean residual min=-0.003937 max=0.003800 Jy/beam
! Clean residual mean=0.000106 rms=0.000942 Jy/beam
! Combined flux in latest and established models = 1.14763 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 111 components and 1.14763 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.308275Jy  sigma=0.001113
! Fit after  self-cal, rms=0.308274Jy  sigma=0.001113
! Inverting map 
selfcal true, true, soltime2
! Performing amp+phase self-cal over 20 minute time intervals
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.308274Jy  sigma=0.001113
! Fit after  self-cal, rms=0.307928Jy  sigma=0.001113
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.513 mas, bmaj=2.916 mas, bpa=-21.38 degrees
! Estimated noise=809.556 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00200537 Jy
! Component: 100  -  total flux cleaned = -0.00217213 Jy
! Component: 150  -  total flux cleaned = -0.00202799 Jy
! Component: 200  -  total flux cleaned = -0.00182613 Jy
! Total flux subtracted in 200 components = -0.00182613 Jy
! Clean residual min=-0.003868 max=0.003704 Jy/beam
! Clean residual mean=0.000113 rms=0.000915 Jy/beam
! Combined flux in latest and established models = 1.1458 Jy
selfcal
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 114 components and 1.1458 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.307869Jy  sigma=0.001113
! Fit after  self-cal, rms=0.307866Jy  sigma=0.001113
flux_cutoff = imstat(rms) * dynam
! Inverting map 
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000266984 Jy
! Component: 100  -  total flux cleaned = 0.000388892 Jy
! Component: 150  -  total flux cleaned = 0.000388807 Jy
! Component: 200  -  total flux cleaned = 0.000560283 Jy
! Total flux subtracted in 200 components = 0.000560282 Jy
! Clean residual min=-0.003847 max=0.003643 Jy/beam
! Clean residual mean=0.000108 rms=0.000907 Jy/beam
! Combined flux in latest and established models = 1.14636 Jy
! Performing phase self-cal
! Adding 35 model components to the UV plane model.
! The established model now contains 121 components and 1.14636 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.307839Jy  sigma=0.001112
! Fit after  self-cal, rms=0.307841Jy  sigma=0.001112
! Inverting map 
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 20 mega-wavelengths.
win_mult = win_mult * 1.2
selfcal true, true, soltime2
! Performing amp+phase self-cal over 20 minute time intervals
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.307841Jy  sigma=0.001112
! Fit after  self-cal, rms=0.307493Jy  sigma=0.001112
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.29 mas, bmaj=9.576 mas, bpa=-0.5745 degrees
! Estimated noise=1237.93 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00120171 Jy
! Component: 100  -  total flux cleaned = 0.000942986 Jy
! Component: 150  -  total flux cleaned = 0.000641874 Jy
! Component: 200  -  total flux cleaned = 0.000334408 Jy
! Total flux subtracted in 200 components = 0.000334408 Jy
! Clean residual min=-0.002678 max=0.003705 Jy/beam
! Clean residual mean=0.000347 rms=0.001105 Jy/beam
! Combined flux in latest and established models = 1.1467 Jy
selfcal
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 129 components and 1.1467 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.307500Jy  sigma=0.001112
! Fit after  self-cal, rms=0.307494Jy  sigma=0.001112
flux_cutoff = imstat(rms) * dynam
! Inverting map 
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 5.93252e-05 Jy
! Component: 100  -  total flux cleaned = -0.000249787 Jy
! Component: 150  -  total flux cleaned = -0.000519657 Jy
! Component: 200  -  total flux cleaned = -0.000624606 Jy
! Total flux subtracted in 200 components = -0.000624606 Jy
! Clean residual min=-0.002584 max=0.003724 Jy/beam
! Clean residual mean=0.000363 rms=0.001099 Jy/beam
! Combined flux in latest and established models = 1.14607 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 143 components and 1.14607 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.307501Jy  sigma=0.001112
! Fit after  self-cal, rms=0.307502Jy  sigma=0.001112
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
win_mult = win_mult / 1.2
print "************** FINISHED AMPLITUDE SELF-CAL **************"
! ************** FINISHED AMPLITUDE SELF-CAL ************** 
restore
! Inverting map and beam 
! Estimated beam: bmin=2.514 mas, bmaj=2.92 mas, bpa=-21.52 degrees
! Estimated noise=808.972 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.514 x 2.92 at -21.52 degrees (North through East)
! Clean map  min=-0.0055854  max=0.99818 Jy/beam
if(peak(flux) > thresh)
  selfcal true, true
  clean clean_niter,clean_gain
  selfcal
  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
    new_peak = peak(flux)
    until(new_peak<=flux_cutoff)
  selfcal true, true
  end if
! Performing amp+phase self-cal
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.307502Jy  sigma=0.001112
! Fit after  self-cal, rms=0.308472Jy  sigma=0.001112
! Inverting map and beam 
! Estimated beam: bmin=2.513 mas, bmaj=2.92 mas, bpa=-21.48 degrees
! Estimated noise=808.734 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00241138 Jy
! Component: 100  -  total flux cleaned = -0.00282846 Jy
! Component: 150  -  total flux cleaned = -0.00295332 Jy
! Component: 200  -  total flux cleaned = -0.00283757 Jy
! Total flux subtracted in 200 components = -0.00283757 Jy
! Clean residual min=-0.003599 max=0.003601 Jy/beam
! Clean residual mean=0.000113 rms=0.000890 Jy/beam
! Combined flux in latest and established models = 1.14324 Jy
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 149 components and 1.14324 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.308435Jy  sigma=0.001112
! Fit after  self-cal, rms=0.308442Jy  sigma=0.001112
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000111832 Jy
! Component: 100  -  total flux cleaned = 0.000111813 Jy
! Component: 150  -  total flux cleaned = 0.000259876 Jy
! Component: 200  -  total flux cleaned = 0.000306143 Jy
! Total flux subtracted in 200 components = 0.000306143 Jy
! Clean residual min=-0.003621 max=0.003566 Jy/beam
! Clean residual mean=0.000110 rms=0.000886 Jy/beam
! Combined flux in latest and established models = 1.14354 Jy
! Performing phase self-cal
! Adding 37 model components to the UV plane model.
! The established model now contains 156 components and 1.14354 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.308424Jy  sigma=0.001112
! Fit after  self-cal, rms=0.308426Jy  sigma=0.001112
! Inverting map 
! Performing amp+phase self-cal
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.308426Jy  sigma=0.001112
! Fit after  self-cal, rms=0.309345Jy  sigma=0.001112
print "************** CLEARING MODEL AND STARTING OVER **********"
! ************** CLEARING MODEL AND STARTING OVER ********** 
clrmod true
! clrmod: Cleared the established and tentative models.
uvw 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.
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.081 mas, bmaj=2.546 mas, bpa=-1.475 degrees
! Estimated noise=1425.15 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.765185 Jy
! Component: 100  -  total flux cleaned = 0.93249 Jy
! Component: 150  -  total flux cleaned = 0.988485 Jy
! Component: 200  -  total flux cleaned = 1.0237 Jy
! Total flux subtracted in 200 components = 1.0237 Jy
! Clean residual min=-0.008375 max=0.018902 Jy/beam
! Clean residual mean=0.000047 rms=0.002406 Jy/beam
! Combined flux in latest and established models = 1.0237 Jy
uvw 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.
flux_cutoff = imstat(rms) * dynam
! Adding 19 model components to the UV plane model.
! The established model now contains 19 components and 1.0237 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.514 mas, bmaj=2.923 mas, bpa=-21.58 degrees
! Estimated noise=808.252 mJy/beam.
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  keep
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0361879 Jy
! Component: 100  -  total flux cleaned = 0.0571659 Jy
! Component: 150  -  total flux cleaned = 0.0709981 Jy
! Component: 200  -  total flux cleaned = 0.0811757 Jy
! Total flux subtracted in 200 components = 0.0811757 Jy
! Clean residual min=-0.003855 max=0.008375 Jy/beam
! Clean residual mean=0.000448 rms=0.001343 Jy/beam
! Combined flux in latest and established models = 1.10488 Jy
! Adding 31 model components to the UV plane model.
! The established model now contains 46 components and 1.10488 Jy
! Inverting map 
! Added new window around map position (3.5, 3.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00902391 Jy
! Component: 100  -  total flux cleaned = 0.0156097 Jy
! Component: 150  -  total flux cleaned = 0.0209679 Jy
! Component: 200  -  total flux cleaned = 0.0254315 Jy
! Total flux subtracted in 200 components = 0.0254315 Jy
! Clean residual min=-0.003405 max=0.004597 Jy/beam
! Clean residual mean=0.000215 rms=0.000989 Jy/beam
! Combined flux in latest and established models = 1.13031 Jy
! Adding 35 model components to the UV plane model.
! The established model now contains 74 components and 1.13031 Jy
! Inverting map 
! Added new window around map position (22, -17.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00431002 Jy
! Component: 100  -  total flux cleaned = 0.00671958 Jy
! Component: 150  -  total flux cleaned = 0.00836844 Jy
! Component: 200  -  total flux cleaned = 0.0092982 Jy
! Total flux subtracted in 200 components = 0.0092982 Jy
! Clean residual min=-0.003384 max=0.003602 Jy/beam
! Clean residual mean=0.000134 rms=0.000911 Jy/beam
! Combined flux in latest and established models = 1.13961 Jy
! Adding 38 model components to the UV plane model.
! The established model now contains 94 components and 1.13961 Jy
! Inverting map 
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 20 mega-wavelengths.
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.29 mas, bmaj=9.583 mas, bpa=-0.6477 degrees
! Estimated noise=1235.11 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00532636 Jy
! Component: 100  -  total flux cleaned = 0.00613385 Jy
! Component: 150  -  total flux cleaned = 0.0059685 Jy
! Component: 200  -  total flux cleaned = 0.00610967 Jy
! Total flux subtracted in 200 components = 0.00610967 Jy
! Clean residual min=-0.002675 max=0.003309 Jy/beam
! Clean residual mean=0.000290 rms=0.001015 Jy/beam
! Combined flux in latest and established models = 1.14572 Jy
flux_cutoff = imstat(rms) * dynam
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  keep
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000123055 Jy
! Component: 100  -  total flux cleaned = 0.000180862 Jy
! Component: 150  -  total flux cleaned = 0.000277376 Jy
! Component: 200  -  total flux cleaned = 0.000319692 Jy
! Total flux subtracted in 200 components = 0.000319692 Jy
! Clean residual min=-0.002567 max=0.003466 Jy/beam
! Clean residual mean=0.000273 rms=0.000992 Jy/beam
! Combined flux in latest and established models = 1.14604 Jy
! Adding 44 model components to the UV plane model.
! The established model now contains 135 components and 1.14604 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.514 mas, bmaj=2.923 mas, bpa=-21.58 degrees
! Estimated noise=808.252 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000483373 Jy
! Component: 100  -  total flux cleaned = -0.000853447 Jy
! Component: 150  -  total flux cleaned = -0.00119568 Jy
! Component: 200  -  total flux cleaned = -0.00135485 Jy
! Total flux subtracted in 200 components = -0.00135485 Jy
! Clean residual min=-0.003403 max=0.003410 Jy/beam
! Clean residual mean=0.000082 rms=0.000853 Jy/beam
! Combined flux in latest and established models = 1.14468 Jy
selfcal
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 146 components and 1.14468 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.309285Jy  sigma=0.001111
! Fit after  self-cal, rms=0.309280Jy  sigma=0.001111
wmodel J1740+5211_S_2003_09_17_pus_map.mod
! Writing 146 model components to file: J1740+5211_S_2003_09_17_pus_map.mod
wobs J1740+5211_S_2003_09_17_pus_uvs.fits
! Writing UV FITS file: J1740+5211_S_2003_09_17_pus_uvs.fits
wwins J1740+5211_S_2003_09_17_pus_map.win
! wwins: Wrote 6 windows to J1740+5211_S_2003_09_17_pus_map.win
x = (field_size-8) * field_cell / 4
addwin -x,x,-x,x
clean (field_size*4),0.01
! Inverting map 
! clean: niter=2048  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.000122666 Jy
! Component: 100  -  total flux cleaned = 0.000713588 Jy
! Component: 150  -  total flux cleaned = 0.00145196 Jy
! Component: 200  -  total flux cleaned = 0.00178288 Jy
! Component: 250  -  total flux cleaned = 0.00205183 Jy
! Component: 300  -  total flux cleaned = 0.00231367 Jy
! Component: 350  -  total flux cleaned = 0.00231379 Jy
! Component: 400  -  total flux cleaned = 0.00246623 Jy
! Component: 450  -  total flux cleaned = 0.00266485 Jy
! Component: 500  -  total flux cleaned = 0.00261628 Jy
! Component: 550  -  total flux cleaned = 0.00285786 Jy
! Component: 600  -  total flux cleaned = 0.00295286 Jy
! Component: 650  -  total flux cleaned = 0.0030939 Jy
! Component: 700  -  total flux cleaned = 0.00318704 Jy
! Component: 750  -  total flux cleaned = 0.00332505 Jy
! Component: 800  -  total flux cleaned = 0.00346136 Jy
! Component: 850  -  total flux cleaned = 0.0035963 Jy
! Component: 900  -  total flux cleaned = 0.00377421 Jy
! Component: 950  -  total flux cleaned = 0.00381844 Jy
! Component: 1000  -  total flux cleaned = 0.00390592 Jy
! Component: 1050  -  total flux cleaned = 0.00403567 Jy
! Component: 1100  -  total flux cleaned = 0.00416354 Jy
! Component: 1150  -  total flux cleaned = 0.00420581 Jy
! Component: 1200  -  total flux cleaned = 0.00420611 Jy
! Component: 1250  -  total flux cleaned = 0.00437258 Jy
! Component: 1300  -  total flux cleaned = 0.00441341 Jy
! Component: 1350  -  total flux cleaned = 0.00445451 Jy
! Component: 1400  -  total flux cleaned = 0.0046164 Jy
! Component: 1450  -  total flux cleaned = 0.00473686 Jy
! Component: 1500  -  total flux cleaned = 0.00477644 Jy
! Component: 1550  -  total flux cleaned = 0.00485581 Jy
! Component: 1600  -  total flux cleaned = 0.00497372 Jy
! Component: 1650  -  total flux cleaned = 0.00505174 Jy
! Component: 1700  -  total flux cleaned = 0.00516764 Jy
! Component: 1750  -  total flux cleaned = 0.00516809 Jy
! Component: 1800  -  total flux cleaned = 0.00528259 Jy
! Component: 1850  -  total flux cleaned = 0.00539629 Jy
! Component: 1900  -  total flux cleaned = 0.0055466 Jy
! Component: 1950  -  total flux cleaned = 0.00554637 Jy
! Component: 2000  -  total flux cleaned = 0.00569489 Jy
! Total flux subtracted in 2048 components = 0.00573173 Jy
! Clean residual min=-0.002285 max=0.001997 Jy/beam
! Clean residual mean=0.000033 rms=0.000675 Jy/beam
! Combined flux in latest and established models = 1.15041 Jy
keep
! Adding 150 model components to the UV plane model.
! The established model now contains 296 components and 1.15042 Jy
wmap "J1740+5211_S_2003_09_17_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.514 x 2.923 at -21.58 degrees (North through East)
! Clean map  min=-0.0034665  max=0.99802 Jy/beam
! Writing clean map to FITS file: J1740+5211_S_2003_09_17_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.998019 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000674478 
device "J1740+5211_S_2003_09_17_pus\_map.eps/VPS"
! Attempting to open device: 'J1740+5211_S_2003_09_17_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.202745 0.202745 0.40549 0.81098 1.62196 3.24392 6.48784 12.9757 25.9514 51.9027
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.002 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.998 
mapcolor none
! Mapplot colormap: none, contrast: 1 brightness: 0.5.
mapplot cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.514 x 2.923 at -21.58 degrees (North through East)
! Clean map  min=-0.0034665  max=0.99802 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1740+5211_S_2003_09_17_pus\_map.gif/vgif"
! Attempting to open device: 'J1740+5211_S_2003_09_17_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1740+5211_S_2003_09_17_pus_uvs.log closed on Tue May 22 13:55:55 2007