! Started logfile: J1613+3412_X_1999_05_10_pus_uvs.log on Tue Jan 15 16:17:09 2008
obs J1613+3412_X_1999_05_10_pus_uva.fits
! Reading UV FITS file: J1613+3412_X_1999_05_10_pus_uva.fits
! AN table 1: 285 integrations on 153 of 153 possible baselines.
! AN table 2: 48 integrations on 153 of 153 possible baselines.
! AN table 3: 83 integrations on 153 of 153 possible baselines.
! AN table 4: 26 integrations on 153 of 153 possible baselines.
! AN table 5: 48 integrations on 153 of 153 possible baselines.
! Apparent sampling: 0.213125 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1613+3412
! 
! 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 1771 lines of history.
! 
! Reading 63912 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 = 256 
print "field_cell =",field_cell
! field_cell = 0.2 
print "taper_size =",taper_size
! taper_size = 70 
![@muppet J1613+3412_X_1999_05_10_pus]
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 = 256x256 pixels with 0.200x0.200 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 3121 telescope corrections were flagged in sub-array 1.
!  A total of 514 telescope corrections were flagged in sub-array 2.
!  A total of 1244 telescope corrections were flagged in sub-array 3.
!  A total of 358 telescope corrections were flagged in sub-array 4.
!  A total of 355 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 2.
!  A total of 3107 telescope corrections were flagged in sub-array 1.
!  A total of 493 telescope corrections were flagged in sub-array 2.
!  A total of 1244 telescope corrections were flagged in sub-array 3.
!  A total of 358 telescope corrections were flagged in sub-array 4.
!  A total of 355 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 3.
!  A total of 3107 telescope corrections were flagged in sub-array 1.
!  A total of 493 telescope corrections were flagged in sub-array 2.
!  A total of 1244 telescope corrections were flagged in sub-array 3.
!  A total of 358 telescope corrections were flagged in sub-array 4.
!  A total of 355 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 4.
!  A total of 3206 telescope corrections were flagged in sub-array 1.
!  A total of 493 telescope corrections were flagged in sub-array 2.
!  A total of 1374 telescope corrections were flagged in sub-array 3.
!  A total of 358 telescope corrections were flagged in sub-array 4.
!  A total of 397 telescope corrections were flagged in sub-array 5.
! 
! Fit before self-cal, rms=1.417999Jy  sigma=0.014463
! Fit after  self-cal, rms=1.411210Jy  sigma=0.014307
! 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 
! Your choice of large map pixels excluded 2.33% of the data.
!  The x-axis pixel size should ideally be below 0.1636 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1496 milli-arcsec
! Estimated beam: bmin=0.5683 mas, bmaj=0.8008 mas, bpa=-11.73 degrees
! Estimated noise=740.92 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 = 1.60592 Jy
! Component: 100  -  total flux cleaned = 1.99511 Jy
! Total flux subtracted in 100 components = 1.99511 Jy
! Clean residual min=-0.054984 max=0.277646 Jy/beam
! Clean residual mean=0.001731 rms=0.017886 Jy/beam
! Combined flux in latest and established models = 1.99511 Jy
! Performing phase self-cal
! Adding 5 model components to the UV plane model.
! The established model now contains 5 components and 1.99511 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.773774Jy  sigma=0.008100
! Fit after  self-cal, rms=0.774107Jy  sigma=0.008099
! Inverting map 
! Your choice of large map pixels excluded 2.33% of the data.
!  The x-axis pixel size should ideally be below 0.1636 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1496 milli-arcsec
! Added new window around map position (0.2, -2.8).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.258562 Jy
! Component: 100  -  total flux cleaned = 0.422599 Jy
! Total flux subtracted in 100 components = 0.422599 Jy
! Clean residual min=-0.038412 max=0.110335 Jy/beam
! Clean residual mean=0.001354 rms=0.013045 Jy/beam
! Combined flux in latest and established models = 2.41771 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 15 components and 2.41771 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.609657Jy  sigma=0.006203
! Fit after  self-cal, rms=0.596619Jy  sigma=0.006150
! Inverting map 
! Your choice of large map pixels excluded 2.33% of the data.
!  The x-axis pixel size should ideally be below 0.1636 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1496 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.135228 Jy
! Component: 100  -  total flux cleaned = 0.241942 Jy
! Total flux subtracted in 100 components = 0.241942 Jy
! Clean residual min=-0.029088 max=0.095771 Jy/beam
! Clean residual mean=0.001143 rms=0.010399 Jy/beam
! Combined flux in latest and established models = 2.65965 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 21 components and 2.65965 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.518624Jy  sigma=0.005158
! Fit after  self-cal, rms=0.514236Jy  sigma=0.005145
! Inverting map 
! Your choice of large map pixels excluded 2.33% of the data.
!  The x-axis pixel size should ideally be below 0.1636 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1496 milli-arcsec
! Added new window around map position (1, -3.4).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.106552 Jy
! Component: 100  -  total flux cleaned = 0.190836 Jy
! Total flux subtracted in 100 components = 0.190836 Jy
! Clean residual min=-0.024163 max=0.063758 Jy/beam
! Clean residual mean=0.000980 rms=0.008604 Jy/beam
! Combined flux in latest and established models = 2.85049 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 32 components and 2.85049 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.457116Jy  sigma=0.004398
! Fit after  self-cal, rms=0.452756Jy  sigma=0.004382
! Inverting map 
! Your choice of large map pixels excluded 2.33% of the data.
!  The x-axis pixel size should ideally be below 0.1636 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1496 milli-arcsec
! Added new window around map position (0.4, -1).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0782762 Jy
! Component: 100  -  total flux cleaned = 0.144013 Jy
! Total flux subtracted in 100 components = 0.144013 Jy
! Clean residual min=-0.020514 max=0.051902 Jy/beam
! Clean residual mean=0.000859 rms=0.007320 Jy/beam
! Combined flux in latest and established models = 2.9945 Jy
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 44 components and 2.9945 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.412937Jy  sigma=0.003834
! Fit after  self-cal, rms=0.410367Jy  sigma=0.003826
! Inverting map 
! Your choice of large map pixels excluded 2.33% of the data.
!  The x-axis pixel size should ideally be below 0.1636 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1496 milli-arcsec
! Added new window around map position (0.2, -3.8).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0626238 Jy
! Component: 100  -  total flux cleaned = 0.115378 Jy
! Total flux subtracted in 100 components = 0.115378 Jy
! Clean residual min=-0.018842 max=0.047566 Jy/beam
! Clean residual mean=0.000761 rms=0.006401 Jy/beam
! Combined flux in latest and established models = 3.10988 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 51 components and 3.10988 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.380870Jy  sigma=0.003403
! Fit after  self-cal, rms=0.378741Jy  sigma=0.003396
! Inverting map 
! Your choice of large map pixels excluded 2.33% of the data.
!  The x-axis pixel size should ideally be below 0.1636 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1496 milli-arcsec
! Added new window around map position (-0.6, -3.2).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0521286 Jy
! Component: 100  -  total flux cleaned = 0.0965756 Jy
! Total flux subtracted in 100 components = 0.0965756 Jy
! Clean residual min=-0.017318 max=0.043783 Jy/beam
! Clean residual mean=0.000679 rms=0.005658 Jy/beam
! Combined flux in latest and established models = 3.20646 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 57 components and 3.20646 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.355849Jy  sigma=0.003054
! Fit after  self-cal, rms=0.354130Jy  sigma=0.003048
! Inverting map 
! Your choice of large map pixels excluded 2.33% of the data.
!  The x-axis pixel size should ideally be below 0.1636 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1496 milli-arcsec
! Added new window around map position (1.8, -3.4).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0457491 Jy
! Component: 100  -  total flux cleaned = 0.0841378 Jy
! Total flux subtracted in 100 components = 0.0841378 Jy
! Clean residual min=-0.015762 max=0.032434 Jy/beam
! Clean residual mean=0.000608 rms=0.005011 Jy/beam
! Combined flux in latest and established models = 3.29059 Jy
! Performing phase self-cal
! Adding 32 model components to the UV plane model.
! The established model now contains 69 components and 3.29059 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.335599Jy  sigma=0.002759
! Fit after  self-cal, rms=0.334140Jy  sigma=0.002754
! Inverting map 
! Your choice of large map pixels excluded 2.33% of the data.
!  The x-axis pixel size should ideally be below 0.1636 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1496 milli-arcsec
! Added new window around map position (2.6, -3.2).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0377094 Jy
! Component: 100  -  total flux cleaned = 0.0711476 Jy
! Total flux subtracted in 100 components = 0.0711476 Jy
! Clean residual min=-0.013892 max=0.023761 Jy/beam
! Clean residual mean=0.000549 rms=0.004458 Jy/beam
! Combined flux in latest and established models = 3.36174 Jy
! Performing phase self-cal
! Adding 33 model components to the UV plane model.
! The established model now contains 78 components and 3.36174 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.319860Jy  sigma=0.002523
! Fit after  self-cal, rms=0.318856Jy  sigma=0.002520
! Inverting map 
! Your choice of large map pixels excluded 2.33% of the data.
!  The x-axis pixel size should ideally be below 0.1636 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1496 milli-arcsec
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 
! Your choice of large map pixels excluded 2.33% of the data.
!  The x-axis pixel size should ideally be below 0.1636 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1496 milli-arcsec
! Estimated beam: bmin=0.6881 mas, bmaj=1.064 mas, bpa=-10.59 degrees
! Estimated noise=351.893 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.4, -2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.113393 Jy
! Component: 100  -  total flux cleaned = 0.195757 Jy
! Component: 150  -  total flux cleaned = 0.259255 Jy
! Component: 200  -  total flux cleaned = 0.308744 Jy
! Total flux subtracted in 200 components = 0.308744 Jy
! Clean residual min=-0.009013 max=0.040249 Jy/beam
! Clean residual mean=0.005127 rms=0.007927 Jy/beam
! Combined flux in latest and established models = 3.67049 Jy
! Performing phase self-cal
! Adding 91 model components to the UV plane model.
! The established model now contains 138 components and 3.67049 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.276503Jy  sigma=0.001707
! Fit after  self-cal, rms=0.271335Jy  sigma=0.001642
! Inverting map 
! Your choice of large map pixels excluded 2.33% of the data.
!  The x-axis pixel size should ideally be below 0.1636 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1496 milli-arcsec
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 3 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        0.99     GC        1.01     HH        1.02     
!   HN        1.01     KK        0.99     KP        0.97     LA        0.97     
!   MC        1.01     MK        0.99     NL        1.01     NY        1.01     
!   ON        1.02     OV        1.01     PT        0.97     SC        1.02     
!   WF        1.01     WZ        1.00     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        0.98     GC        1.02     HH        1.00*    
!   HN        1.02     KK        1.01     KP        0.97     LA        0.98     
!   MC        1.00*    MK        1.01     NL        1.01     NY        1.02     
!   ON        1.00     OV        0.99     PT        0.97     SC        1.01     
!   WF        1.14     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GC        1.04     HH        1.03     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        0.98     MK        1.00*    NL        1.00*    NY        1.03     
!   ON        1.02     OV        1.00*    PT        1.00*    SC        1.00*    
!   WF        1.00*    WZ        0.97     
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.98     FD        1.00*    GC        1.00     HH        1.00*    
!   HN        1.00*    KK        1.00     KP        1.00*    LA        1.00*    
!   MC        0.99     MK        1.00*    NL        1.00*    NY        1.01     
!   ON        1.00     OV        1.00*    PT        1.00*    SC        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.01     FD        0.99     GC        1.03     HH        1.10     
!   HN        1.01     KK        1.00*    KP        0.97     LA        0.97     
!   MC        1.01     MK        1.00*    NL        0.99     NY        1.01     
!   ON        1.03     OV        1.00*    PT        0.97     SC        1.01     
!   WF        1.02     WZ        0.99     
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        0.99     GC        1.01     HH        1.03     
!   HN        1.00     KK        0.99     KP        0.97     LA        0.97     
!   MC        1.01     MK        1.00     NL        1.01     NY        1.01     
!   ON        1.01     OV        1.01     PT        0.97     SC        1.02     
!   WF        0.98     WZ        1.00     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        0.98     GC        1.02     HH        1.00*    
!   HN        1.01     KK        1.01     KP        0.98     LA        0.98     
!   MC        1.00*    MK        1.01     NL        1.01     NY        1.02     
!   ON        1.01     OV        0.99     PT        0.97     SC        1.01     
!   WF        1.00     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GC        1.04     HH        1.03     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        0.98     MK        1.00*    NL        1.00*    NY        1.03     
!   ON        1.03     OV        1.00*    PT        1.00*    SC        1.00*    
!   WF        1.00*    WZ        0.97     
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.98     FD        1.00*    GC        1.00     HH        1.00*    
!   HN        1.00*    KK        1.00     KP        1.00*    LA        1.00*    
!   MC        0.99     MK        1.00*    NL        1.00*    NY        1.01     
!   ON        1.00     OV        1.00*    PT        1.00*    SC        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.01     FD        0.99     GC        1.03     HH        1.09     
!   HN        1.01     KK        1.00*    KP        0.97     LA        0.97     
!   MC        1.01     MK        1.00*    NL        0.99     NY        1.01     
!   ON        1.03     OV        1.00*    PT        0.97     SC        1.01     
!   WF        0.99     WZ        0.99     
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        0.99     GC        1.01     HH        1.02     
!   HN        1.00     KK        0.99     KP        0.98     LA        0.97     
!   MC        1.02     MK        1.00     NL        1.01     NY        1.01     
!   ON        1.01     OV        1.01     PT        0.97     SC        1.02     
!   WF        0.98     WZ        1.00     
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        0.98     GC        1.02     HH        1.00*    
!   HN        1.02     KK        1.01     KP        0.98     LA        0.98     
!   MC        1.00*    MK        1.01     NL        1.01     NY        1.03     
!   ON        1.01     OV        0.99     PT        0.97     SC        1.01     
!   WF        1.01     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GC        1.03     HH        1.04     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        0.98     MK        1.00*    NL        1.00*    NY        1.03     
!   ON        1.02     OV        1.00*    PT        1.00*    SC        1.00*    
!   WF        1.00*    WZ        0.97     
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.98     FD        1.00*    GC        1.00     HH        1.00*    
!   HN        1.00*    KK        1.02     KP        1.00*    LA        1.00*    
!   MC        1.00     MK        1.00*    NL        1.00*    NY        1.01     
!   ON        1.00     OV        1.00*    PT        1.00*    SC        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.01     FD        0.99     GC        1.03     HH        1.07     
!   HN        1.01     KK        1.00*    KP        0.97     LA        0.97     
!   MC        1.01     MK        1.00*    NL        0.99     NY        1.01     
!   ON        1.03     OV        1.00*    PT        0.97     SC        1.01     
!   WF        0.99     WZ        1.00     
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        0.99     GC        1.01     HH        1.01     
!   HN        1.00     KK        0.99     KP        0.98     LA        0.97     
!   MC        1.02     MK        1.00     NL        1.01     NY        1.01     
!   ON        1.02     OV        1.01     PT        0.97     SC        1.02     
!   WF        0.98     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.01     FD        0.98     GC        1.02     HH        1.00*    
!   HN        1.02     KK        1.01     KP        0.98     LA        0.98     
!   MC        1.00*    MK        1.01     NL        1.01     NY        1.03     
!   ON        1.02     OV        1.00     PT        0.97     SC        1.01     
!   WF        1.01     WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        1.00*    GC        1.02     HH        1.02     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.01     MK        1.00*    NL        1.00*    NY        0.99     
!   ON        1.00     OV        1.00*    PT        1.00*    SC        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.98     FD        1.00*    GC        1.00     HH        1.00*    
!   HN        1.00*    KK        1.02     KP        1.00*    LA        1.00*    
!   MC        1.00     MK        1.00*    NL        1.00*    NY        1.01     
!   ON        1.01     OV        1.00*    PT        1.00*    SC        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  Telescope amplitude corrections in sub-array 5:
!   BR        1.01     FD        0.99     GC        1.03     HH        1.07     
!   HN        1.01     KK        1.00*    KP        0.97     LA        0.97     
!   MC        1.01     MK        1.00*    NL        0.99     NY        1.01     
!   ON        1.03     OV        1.00*    PT        0.97     SC        1.01     
!   WF        0.99     WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.271335Jy  sigma=0.001642
! Fit after  self-cal, rms=0.269793Jy  sigma=0.001453
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 2.33% of the data.
!  The x-axis pixel size should ideally be below 0.1636 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1496 milli-arcsec
! Estimated beam: bmin=0.6911 mas, bmaj=1.072 mas, bpa=-10.6 degrees
! Estimated noise=348.618 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 (-1.4, -4.2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0299877 Jy
! Component: 100  -  total flux cleaned = 0.0507561 Jy
! Component: 150  -  total flux cleaned = 0.0607832 Jy
! Component: 200  -  total flux cleaned = 0.066246 Jy
! Total flux subtracted in 200 components = 0.066246 Jy
! Clean residual min=-0.007582 max=0.009880 Jy/beam
! Clean residual mean=0.000862 rms=0.002212 Jy/beam
! Combined flux in latest and established models = 3.73673 Jy
! Performing phase self-cal
! Adding 40 model components to the UV plane model.
! The established model now contains 163 components and 3.73673 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.266109Jy  sigma=0.001380
! Fit after  self-cal, rms=0.265300Jy  sigma=0.001370
! Inverting map 
! Your choice of large map pixels excluded 2.33% of the data.
!  The x-axis pixel size should ideally be below 0.1636 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1496 milli-arcsec
! Added new window around map position (1.2, -4.2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00856455 Jy
! Component: 100  -  total flux cleaned = 0.013289 Jy
! Component: 150  -  total flux cleaned = 0.0172386 Jy
! Component: 200  -  total flux cleaned = 0.0199354 Jy
! Total flux subtracted in 200 components = 0.0199354 Jy
! Clean residual min=-0.006943 max=0.007508 Jy/beam
! Clean residual mean=0.000527 rms=0.001838 Jy/beam
! Combined flux in latest and established models = 3.75667 Jy
! Performing phase self-cal
! Adding 47 model components to the UV plane model.
! The established model now contains 182 components and 3.75667 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.264110Jy  sigma=0.001347
! Fit after  self-cal, rms=0.263732Jy  sigma=0.001343
! Inverting map 
! Your choice of large map pixels excluded 2.33% of the data.
!  The x-axis pixel size should ideally be below 0.1636 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1496 milli-arcsec
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.263732Jy  sigma=0.001343
! Fit after  self-cal, rms=0.261811Jy  sigma=0.001324
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 2.33% of the data.
!  The x-axis pixel size should ideally be below 0.1636 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1496 milli-arcsec
! Estimated beam: bmin=0.6909 mas, bmaj=1.071 mas, bpa=-10.6 degrees
! Estimated noise=348.585 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0131646 Jy
! Component: 100  -  total flux cleaned = 0.019807 Jy
! Component: 150  -  total flux cleaned = 0.0232751 Jy
! Component: 200  -  total flux cleaned = 0.0261958 Jy
! Total flux subtracted in 200 components = 0.0261958 Jy
! Clean residual min=-0.005577 max=0.006904 Jy/beam
! Clean residual mean=0.000733 rms=0.001428 Jy/beam
! Combined flux in latest and established models = 3.78286 Jy
selfcal
! Performing phase self-cal
! Adding 52 model components to the UV plane model.
! The established model now contains 199 components and 3.78286 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.260942Jy  sigma=0.001307
! Fit after  self-cal, rms=0.260704Jy  sigma=0.001304
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 2.33% of the data.
!  The x-axis pixel size should ideally be below 0.1636 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1496 milli-arcsec
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 (2.2, -1.8).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00388959 Jy
! Component: 100  -  total flux cleaned = 0.0070669 Jy
! Component: 150  -  total flux cleaned = 0.00907335 Jy
! Component: 200  -  total flux cleaned = 0.0104412 Jy
! Total flux subtracted in 200 components = 0.0104412 Jy
! Clean residual min=-0.005660 max=0.005818 Jy/beam
! Clean residual mean=0.000556 rms=0.001300 Jy/beam
! Combined flux in latest and established models = 3.7933 Jy
! Performing phase self-cal
! Adding 46 model components to the UV plane model.
! The established model now contains 215 components and 3.79331 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.260226Jy  sigma=0.001297
! Fit after  self-cal, rms=0.260097Jy  sigma=0.001296
! Inverting map 
! Your choice of large map pixels excluded 2.33% of the data.
!  The x-axis pixel size should ideally be below 0.1636 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1496 milli-arcsec
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.260097Jy  sigma=0.001296
! Fit after  self-cal, rms=0.259483Jy  sigma=0.001292
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 2.33% of the data.
!  The x-axis pixel size should ideally be below 0.1636 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1496 milli-arcsec
! Estimated beam: bmin=0.6909 mas, bmaj=1.071 mas, bpa=-10.61 degrees
! Estimated noise=348.558 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0084577 Jy
! Component: 100  -  total flux cleaned = 0.0119861 Jy
! Component: 150  -  total flux cleaned = 0.0147131 Jy
! Component: 200  -  total flux cleaned = 0.0170367 Jy
! Total flux subtracted in 200 components = 0.0170367 Jy
! Clean residual min=-0.004352 max=0.005120 Jy/beam
! Clean residual mean=0.000618 rms=0.001078 Jy/beam
! Combined flux in latest and established models = 3.81034 Jy
selfcal
! Performing phase self-cal
! Adding 52 model components to the UV plane model.
! The established model now contains 227 components and 3.81034 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.259069Jy  sigma=0.001285
! Fit after  self-cal, rms=0.258954Jy  sigma=0.001284
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 2.33% of the data.
!  The x-axis pixel size should ideally be below 0.1636 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1496 milli-arcsec
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.00145234 Jy
! Component: 100  -  total flux cleaned = 0.00355518 Jy
! Component: 150  -  total flux cleaned = 0.0049275 Jy
! Component: 200  -  total flux cleaned = 0.00614617 Jy
! Total flux subtracted in 200 components = 0.00614617 Jy
! Clean residual min=-0.004308 max=0.004691 Jy/beam
! Clean residual mean=0.000515 rms=0.001011 Jy/beam
! Combined flux in latest and established models = 3.81649 Jy
! Performing phase self-cal
! Adding 45 model components to the UV plane model.
! The established model now contains 231 components and 3.81649 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.258725Jy  sigma=0.001280
! Fit after  self-cal, rms=0.258659Jy  sigma=0.001280
! Inverting map 
! Your choice of large map pixels excluded 2.33% of the data.
!  The x-axis pixel size should ideally be below 0.1636 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1496 milli-arcsec
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 70 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.258659Jy  sigma=0.001280
! Fit after  self-cal, rms=0.258346Jy  sigma=0.001278
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 2.33% of the data.
!  The x-axis pixel size should ideally be below 0.1636 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1496 milli-arcsec
! Estimated beam: bmin=2.505 mas, bmaj=2.656 mas, bpa=21.9 degrees
! Estimated noise=461.557 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0117274 Jy
! Component: 100  -  total flux cleaned = 0.0151964 Jy
! Component: 150  -  total flux cleaned = 0.0166029 Jy
! Component: 200  -  total flux cleaned = 0.0174949 Jy
! Total flux subtracted in 200 components = 0.0174949 Jy
! Clean residual min=-0.003279 max=0.005940 Jy/beam
! Clean residual mean=0.001352 rms=0.001424 Jy/beam
! Combined flux in latest and established models = 3.83398 Jy
selfcal
! Performing phase self-cal
! Adding 56 model components to the UV plane model.
! The established model now contains 256 components and 3.83398 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.258166Jy  sigma=0.001275
! Fit after  self-cal, rms=0.258070Jy  sigma=0.001274
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 2.33% of the data.
!  The x-axis pixel size should ideally be below 0.1636 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1496 milli-arcsec
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.00168958 Jy
! Component: 100  -  total flux cleaned = 0.00273478 Jy
! Component: 150  -  total flux cleaned = 0.00348674 Jy
! Component: 200  -  total flux cleaned = 0.00382485 Jy
! Total flux subtracted in 200 components = 0.00382485 Jy
! Clean residual min=-0.002917 max=0.005217 Jy/beam
! Clean residual mean=0.001161 rms=0.001340 Jy/beam
! Combined flux in latest and established models = 3.83781 Jy
! Performing phase self-cal
! Adding 33 model components to the UV plane model.
! The established model now contains 265 components and 3.83781 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.258016Jy  sigma=0.001273
! Fit after  self-cal, rms=0.257950Jy  sigma=0.001273
! Inverting map 
! Your choice of large map pixels excluded 2.33% of the data.
!  The x-axis pixel size should ideally be below 0.1636 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1496 milli-arcsec
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 
! Your choice of large map pixels excluded 2.33% of the data.
!  The x-axis pixel size should ideally be below 0.1636 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1496 milli-arcsec
! Estimated beam: bmin=0.6909 mas, bmaj=1.071 mas, bpa=-10.61 degrees
! Estimated noise=348.62 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6909 x 1.071 at -10.61 degrees (North through East)
! Clean map  min=-0.0024319  max=2.1514 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.257950Jy  sigma=0.001273
! Fit after  self-cal, rms=0.269159Jy  sigma=0.001267
! Inverting map and beam 
! Your choice of large map pixels excluded 2.33% of the data.
!  The x-axis pixel size should ideally be below 0.1636 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1496 milli-arcsec
! Estimated beam: bmin=0.6909 mas, bmaj=1.072 mas, bpa=-10.64 degrees
! Estimated noise=348.518 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00406578 Jy
! Component: 100  -  total flux cleaned = 0.00538167 Jy
! Component: 150  -  total flux cleaned = 0.00594907 Jy
! Component: 200  -  total flux cleaned = 0.00646441 Jy
! Total flux subtracted in 200 components = 0.00646441 Jy
! Clean residual min=-0.003323 max=0.003777 Jy/beam
! Clean residual mean=0.000409 rms=0.000773 Jy/beam
! Combined flux in latest and established models = 3.84427 Jy
! Performing phase self-cal
! Adding 28 model components to the UV plane model.
! The established model now contains 276 components and 3.84427 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.269035Jy  sigma=0.001266
! Fit after  self-cal, rms=0.269014Jy  sigma=0.001266
! Inverting map 
! Your choice of large map pixels excluded 2.33% of the data.
!  The x-axis pixel size should ideally be below 0.1636 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1496 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000528356 Jy
! Component: 100  -  total flux cleaned = 0.00112909 Jy
! Component: 150  -  total flux cleaned = 0.00158404 Jy
! Component: 200  -  total flux cleaned = 0.00192288 Jy
! Total flux subtracted in 200 components = 0.00192288 Jy
! Clean residual min=-0.003245 max=0.003601 Jy/beam
! Clean residual mean=0.000376 rms=0.000750 Jy/beam
! Combined flux in latest and established models = 3.8462 Jy
! Performing phase self-cal
! Adding 39 model components to the UV plane model.
! The established model now contains 281 components and 3.8462 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.268934Jy  sigma=0.001265
! Fit after  self-cal, rms=0.268915Jy  sigma=0.001265
! Inverting map 
! Your choice of large map pixels excluded 2.33% of the data.
!  The x-axis pixel size should ideally be below 0.1636 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1496 milli-arcsec
! Performing amp+phase self-cal
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.268915Jy  sigma=0.001265
! Fit after  self-cal, rms=0.268858Jy  sigma=0.001264
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 
! Your choice of large map pixels excluded 2.33% of the data.
!  The x-axis pixel size should ideally be below 0.1636 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1496 milli-arcsec
! Estimated beam: bmin=0.5693 mas, bmaj=0.8073 mas, bpa=-11.89 degrees
! Estimated noise=740.309 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 1.60846 Jy
! Component: 100  -  total flux cleaned = 2.02957 Jy
! Component: 150  -  total flux cleaned = 2.26943 Jy
! Component: 200  -  total flux cleaned = 2.44202 Jy
! Total flux subtracted in 200 components = 2.44202 Jy
! Clean residual min=-0.029750 max=0.101847 Jy/beam
! Clean residual mean=0.001257 rms=0.011489 Jy/beam
! Combined flux in latest and established models = 2.44202 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 2.44202 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 2.33% of the data.
!  The x-axis pixel size should ideally be below 0.1636 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1496 milli-arcsec
! Estimated beam: bmin=0.6909 mas, bmaj=1.072 mas, bpa=-10.62 degrees
! Estimated noise=348.564 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.365156 Jy
! Component: 100  -  total flux cleaned = 0.611871 Jy
! Component: 150  -  total flux cleaned = 0.791383 Jy
! Component: 200  -  total flux cleaned = 0.925223 Jy
! Total flux subtracted in 200 components = 0.925223 Jy
! Clean residual min=-0.012804 max=0.077309 Jy/beam
! Clean residual mean=0.008669 rms=0.015656 Jy/beam
! Combined flux in latest and established models = 3.36724 Jy
! Adding 86 model components to the UV plane model.
! The established model now contains 91 components and 3.36724 Jy
! Inverting map 
! Your choice of large map pixels excluded 2.33% of the data.
!  The x-axis pixel size should ideally be below 0.1636 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1496 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.101892 Jy
! Component: 100  -  total flux cleaned = 0.180468 Jy
! Component: 150  -  total flux cleaned = 0.241726 Jy
! Component: 200  -  total flux cleaned = 0.289832 Jy
! Total flux subtracted in 200 components = 0.289832 Jy
! Clean residual min=-0.005933 max=0.028575 Jy/beam
! Clean residual mean=0.003697 rms=0.006162 Jy/beam
! Combined flux in latest and established models = 3.65707 Jy
! Adding 75 model components to the UV plane model.
! The established model now contains 141 components and 3.65707 Jy
! Inverting map 
! Your choice of large map pixels excluded 2.33% of the data.
!  The x-axis pixel size should ideally be below 0.1636 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1496 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0381997 Jy
! Component: 100  -  total flux cleaned = 0.0686653 Jy
! Component: 150  -  total flux cleaned = 0.0930566 Jy
! Component: 200  -  total flux cleaned = 0.112672 Jy
! Total flux subtracted in 200 components = 0.112672 Jy
! Clean residual min=-0.003507 max=0.012795 Jy/beam
! Clean residual mean=0.001767 rms=0.002665 Jy/beam
! Combined flux in latest and established models = 3.76975 Jy
! Adding 68 model components to the UV plane model.
! The established model now contains 177 components and 3.76975 Jy
! Inverting map 
! Your choice of large map pixels excluded 2.33% of the data.
!  The x-axis pixel size should ideally be below 0.1636 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1496 milli-arcsec
! Added new window around map position (-1.8, -2.2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0161966 Jy
! Component: 100  -  total flux cleaned = 0.0292918 Jy
! Component: 150  -  total flux cleaned = 0.040002 Jy
! Component: 200  -  total flux cleaned = 0.0487703 Jy
! Total flux subtracted in 200 components = 0.0487703 Jy
! Clean residual min=-0.002333 max=0.005987 Jy/beam
! Clean residual mean=0.000933 rms=0.001298 Jy/beam
! Combined flux in latest and established models = 3.81852 Jy
! Adding 56 model components to the UV plane model.
! The established model now contains 198 components and 3.81852 Jy
! Inverting map 
! Your choice of large map pixels excluded 2.33% of the data.
!  The x-axis pixel size should ideally be below 0.1636 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1496 milli-arcsec
! Added new window around map position (2.6, -4.2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00729475 Jy
! Component: 100  -  total flux cleaned = 0.0132502 Jy
! Component: 150  -  total flux cleaned = 0.0181901 Jy
! Component: 200  -  total flux cleaned = 0.021401 Jy
! Total flux subtracted in 200 components = 0.021401 Jy
! Clean residual min=-0.002619 max=0.004135 Jy/beam
! Clean residual mean=0.000568 rms=0.000857 Jy/beam
! Combined flux in latest and established models = 3.83992 Jy
! Adding 61 model components to the UV plane model.
! The established model now contains 217 components and 3.83992 Jy
! Inverting map 
! Your choice of large map pixels excluded 2.33% of the data.
!  The x-axis pixel size should ideally be below 0.1636 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1496 milli-arcsec
! Added new window around map position (-1.4, 0.4).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00300087 Jy
! Component: 100  -  total flux cleaned = 0.0045389 Jy
! Component: 150  -  total flux cleaned = 0.00595879 Jy
! Component: 200  -  total flux cleaned = 0.00716673 Jy
! Total flux subtracted in 200 components = 0.00716673 Jy
! Clean residual min=-0.002054 max=0.003477 Jy/beam
! Clean residual mean=0.000445 rms=0.000767 Jy/beam
! Combined flux in latest and established models = 3.84708 Jy
! Adding 45 model components to the UV plane model.
! The established model now contains 226 components and 3.84708 Jy
! Inverting map 
! Your choice of large map pixels excluded 2.33% of the data.
!  The x-axis pixel size should ideally be below 0.1636 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1496 milli-arcsec
! Added new window around map position (1.6, 6.4).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00312448 Jy
! Component: 100  -  total flux cleaned = 0.00412107 Jy
! Component: 150  -  total flux cleaned = 0.00515946 Jy
! Component: 200  -  total flux cleaned = 0.00585194 Jy
! Total flux subtracted in 200 components = 0.00585194 Jy
! Clean residual min=-0.001969 max=0.002803 Jy/beam
! Clean residual mean=0.000343 rms=0.000707 Jy/beam
! Combined flux in latest and established models = 3.85294 Jy
! Adding 40 model components to the UV plane model.
! The established model now contains 241 components and 3.85294 Jy
! Inverting map 
! Your choice of large map pixels excluded 2.33% of the data.
!  The x-axis pixel size should ideally be below 0.1636 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1496 milli-arcsec
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 70 mega-wavelengths.
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 2.33% of the data.
!  The x-axis pixel size should ideally be below 0.1636 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1496 milli-arcsec
! Estimated beam: bmin=2.502 mas, bmaj=2.653 mas, bpa=21.93 degrees
! Estimated noise=461.857 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00399979 Jy
! Component: 100  -  total flux cleaned = 0.00653682 Jy
! Component: 150  -  total flux cleaned = 0.00790851 Jy
! Component: 200  -  total flux cleaned = 0.008472 Jy
! Total flux subtracted in 200 components = 0.008472 Jy
! Clean residual min=-0.001994 max=0.003773 Jy/beam
! Clean residual mean=0.000610 rms=0.000948 Jy/beam
! Combined flux in latest and established models = 3.86141 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.000290161 Jy
! Component: 100  -  total flux cleaned = 0.000503094 Jy
! Component: 150  -  total flux cleaned = 0.000656812 Jy
! Component: 200  -  total flux cleaned = 0.00076146 Jy
! Total flux subtracted in 200 components = 0.00076146 Jy
! Clean residual min=-0.001847 max=0.003739 Jy/beam
! Clean residual mean=0.000573 rms=0.000926 Jy/beam
! Combined flux in latest and established models = 3.86217 Jy
! Adding 63 model components to the UV plane model.
! The established model now contains 288 components and 3.86217 Jy
! Inverting map 
! Your choice of large map pixels excluded 2.33% of the data.
!  The x-axis pixel size should ideally be below 0.1636 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1496 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 2.33% of the data.
!  The x-axis pixel size should ideally be below 0.1636 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1496 milli-arcsec
! Estimated beam: bmin=0.6909 mas, bmaj=1.072 mas, bpa=-10.62 degrees
! Estimated noise=348.564 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00168964 Jy
! Component: 100  -  total flux cleaned = -0.00187257 Jy
! Component: 150  -  total flux cleaned = -0.00195611 Jy
! Component: 200  -  total flux cleaned = -0.00187211 Jy
! Total flux subtracted in 200 components = -0.00187211 Jy
! Clean residual min=-0.001957 max=0.002557 Jy/beam
! Clean residual mean=0.000222 rms=0.000653 Jy/beam
! Combined flux in latest and established models = 3.8603 Jy
selfcal
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 296 components and 3.8603 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.269944Jy  sigma=0.001265
! Fit after  self-cal, rms=0.269924Jy  sigma=0.001264
wmodel J1613+3412_X_1999_05_10_pus_map.mod
! Writing 296 model components to file: J1613+3412_X_1999_05_10_pus_map.mod
wobs J1613+3412_X_1999_05_10_pus_uvs.fits
! Writing UV FITS file: J1613+3412_X_1999_05_10_pus_uvs.fits
wwins J1613+3412_X_1999_05_10_pus_map.win
! wwins: Wrote 16 windows to J1613+3412_X_1999_05_10_pus_map.win
x = (field_size-8) * field_cell / 4
addwin -x,x,-x,x
clean (field_size*4),0.01
! Inverting map 
! Your choice of large map pixels excluded 2.33% of the data.
!  The x-axis pixel size should ideally be below 0.1636 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1496 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.00117906 Jy
! Component: 100  -  total flux cleaned = 0.00209738 Jy
! Component: 150  -  total flux cleaned = 0.00292848 Jy
! Component: 200  -  total flux cleaned = 0.0035661 Jy
! Component: 250  -  total flux cleaned = 0.00422085 Jy
! Component: 300  -  total flux cleaned = 0.00474615 Jy
! Component: 350  -  total flux cleaned = 0.00514963 Jy
! Component: 400  -  total flux cleaned = 0.00550946 Jy
! Component: 450  -  total flux cleaned = 0.00586266 Jy
! Component: 500  -  total flux cleaned = 0.00607116 Jy
! Component: 550  -  total flux cleaned = 0.00634486 Jy
! Component: 600  -  total flux cleaned = 0.00658096 Jy
! Component: 650  -  total flux cleaned = 0.00681363 Jy
! Component: 700  -  total flux cleaned = 0.00697745 Jy
! Component: 750  -  total flux cleaned = 0.00707493 Jy
! Component: 800  -  total flux cleaned = 0.00729994 Jy
! Component: 850  -  total flux cleaned = 0.00745897 Jy
! Component: 900  -  total flux cleaned = 0.00761632 Jy
! Component: 950  -  total flux cleaned = 0.00777225 Jy
! Component: 1000  -  total flux cleaned = 0.00789587 Jy
! Total flux subtracted in 1024 components = 0.00795722 Jy
! Clean residual min=-0.001548 max=0.001537 Jy/beam
! Clean residual mean=0.000110 rms=0.000584 Jy/beam
! Combined flux in latest and established models = 3.86825 Jy
keep
! Adding 77 model components to the UV plane model.
! The established model now contains 367 components and 3.86825 Jy
![Exited script file: muppet]
wmap "J1613+3412_X_1999_05_10_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 2.33% of the data.
!  The x-axis pixel size should ideally be below 0.1636 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1496 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6909 x 1.072 at -10.62 degrees (North through East)
! Clean map  min=-0.0017131  max=2.1513 Jy/beam
! Writing clean map to FITS file: J1613+3412_X_1999_05_10_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 2.15133 
invert
! Inverting map 
! Your choice of large map pixels excluded 2.33% of the data.
!  The x-axis pixel size should ideally be below 0.1636 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1496 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000583421 
device "J1613+3412_X_1999_05_10_pus\_map.eps/VPS"
! Attempting to open device: 'J1613+3412_X_1999_05_10_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.0813571 0.0813571 0.162714 0.325428 0.650857 1.30171 2.60343 5.20685 10.4137 20.8274 41.6548 83.3097
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0017 
print "peak=",int(1000*peak_flux)/1000
! peak= 2.151 
mapcolor none
! Mapplot colormap: none, contrast: 1 brightness: 0.5.
mapplot cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6909 x 1.072 at -10.62 degrees (North through East)
! Clean map  min=-0.0017131  max=2.1513 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1613+3412_X_1999_05_10_pus\_map.gif/vgif"
! Attempting to open device: 'J1613+3412_X_1999_05_10_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1613+3412_X_1999_05_10_pus_uvs.log closed on Tue Jan 15 16:17:41 2008