! Started logfile: J0605+4030_S_1999_12_20_pus_uvs.log on Thu Dec 20 17:07:46 2007
obs J0605+4030_S_1999_12_20_pus_uva.fits
! Reading UV FITS file: J0605+4030_S_1999_12_20_pus_uva.fits
! AN table 1: 161 integrations on 190 of 190 possible baselines.
! AN table 2: 105 integrations on 190 of 190 possible baselines.
! AN table 3: 110 integrations on 190 of 190 possible baselines.
! Apparent sampling: 0.158049 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0605+4030
! 
! 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.22497e+09        8e+06          1        8e+06
!  02        2  2.24497e+09        8e+06          1        8e+06
!  03        3  2.33497e+09        8e+06          1        8e+06
!  04        4  2.36497e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 2287 lines of history.
! 
! Reading 45164 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 
![@muppet J0605+4030_S_1999_12_20_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 = 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 2293 telescope corrections were flagged in sub-array 1.
!  A total of 1095 telescope corrections were flagged in sub-array 2.
!  A total of 1477 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 2293 telescope corrections were flagged in sub-array 1.
!  A total of 1095 telescope corrections were flagged in sub-array 2.
!  A total of 1476 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 2330 telescope corrections were flagged in sub-array 1.
!  A total of 1171 telescope corrections were flagged in sub-array 2.
!  A total of 1476 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 2293 telescope corrections were flagged in sub-array 1.
!  A total of 1098 telescope corrections were flagged in sub-array 2.
!  A total of 1476 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=0.898534Jy  sigma=0.005364
! Fit after  self-cal, rms=0.624339Jy  sigma=0.003669
! 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=1.891 mas, bmaj=2.144 mas, bpa=36.24 degrees
! Estimated noise=1164.09 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.324572 Jy
! Component: 100  -  total flux cleaned = 0.403434 Jy
! Total flux subtracted in 100 components = 0.403434 Jy
! Clean residual min=-0.015451 max=0.032713 Jy/beam
! Clean residual mean=0.000206 rms=0.004263 Jy/beam
! Combined flux in latest and established models = 0.403434 Jy
! Performing phase self-cal
! Adding 5 model components to the UV plane model.
! The established model now contains 5 components and 0.403434 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.295448Jy  sigma=0.001479
! Fit after  self-cal, rms=0.295413Jy  sigma=0.001479
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0362192 Jy
! Component: 100  -  total flux cleaned = 0.0584853 Jy
! Total flux subtracted in 100 components = 0.0584853 Jy
! Clean residual min=-0.013778 max=0.029523 Jy/beam
! Clean residual mean=0.000164 rms=0.003755 Jy/beam
! Combined flux in latest and established models = 0.461919 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 13 components and 0.461919 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.287330Jy  sigma=0.001407
! Fit after  self-cal, rms=0.287248Jy  sigma=0.001407
! Inverting map 
! Added new window around map position (0, 6).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.027746 Jy
! Component: 100  -  total flux cleaned = 0.0451417 Jy
! Total flux subtracted in 100 components = 0.0451417 Jy
! Clean residual min=-0.014366 max=0.018442 Jy/beam
! Clean residual mean=0.000143 rms=0.003433 Jy/beam
! Combined flux in latest and established models = 0.507061 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 22 components and 0.507061 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.281719Jy  sigma=0.001362
! Fit after  self-cal, rms=0.281431Jy  sigma=0.001360
! 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.283 mas, bmaj=2.659 mas, bpa=26.94 degrees
! Estimated noise=578.676 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.0347761 Jy
! Component: 100  -  total flux cleaned = 0.0567266 Jy
! Component: 150  -  total flux cleaned = 0.0719079 Jy
! Component: 200  -  total flux cleaned = 0.0828018 Jy
! Total flux subtracted in 200 components = 0.0828018 Jy
! Clean residual min=-0.007766 max=0.015516 Jy/beam
! Clean residual mean=0.000688 rms=0.002315 Jy/beam
! Combined flux in latest and established models = 0.589863 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 33 components and 0.589863 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.276607Jy  sigma=0.001320
! Fit after  self-cal, rms=0.276257Jy  sigma=0.001317
! Inverting map 
! Added new window around map position (-3.5, 5.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0140035 Jy
! Component: 100  -  total flux cleaned = 0.0228549 Jy
! Component: 150  -  total flux cleaned = 0.0290104 Jy
! Component: 200  -  total flux cleaned = 0.0328446 Jy
! Total flux subtracted in 200 components = 0.0328446 Jy
! Clean residual min=-0.009398 max=0.009982 Jy/beam
! Clean residual mean=0.000524 rms=0.001811 Jy/beam
! Combined flux in latest and established models = 0.622707 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 47 components and 0.622707 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.275344Jy  sigma=0.001311
! Fit after  self-cal, rms=0.275221Jy  sigma=0.001310
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 15 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GC        0.99     HH        0.89     
!   HN        1.00*    KK        0.96     KP        1.00*    LA        1.00*    
!   MC        1.16     MK        0.96     NY        0.97     ON        0.95     
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        0.98     
!   WF        1.00*    WZ        0.95     GN        1.00*    NL        1.00*    
! 
!  A total of 36 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.08     FD        1.00*    GC        1.03     HH        0.96     
!   HN        0.93     KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        0.99     MK        1.00*    NY        1.01     ON        0.95     
!   OV        1.00*    PT        1.00*    SC        1.05     TS        1.00*    
!   WF        0.96     WZ        0.92     GN        0.96     NL        0.99     
! 
!  A total of 9 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.95     FD        1.04     GC        1.00     HH        1.00*    
!   HN        1.00*    KK        1.04     KP        1.12     LA        1.03     
!   MC        1.00*    MK        1.02     NY        0.97     ON        1.00*    
!   OV        1.01     PT        1.02     SC        1.00*    TS        1.03     
!   WF        1.00*    WZ        1.21     GN        1.00*    NL        1.01     
! 
! 
! Correcting IF 2.
!  A total of 15 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GC        0.97     HH        0.91     
!   HN        1.00*    KK        0.93     KP        1.00*    LA        1.00*    
!   MC        0.92     MK        0.94     NY        0.96     ON        0.97     
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        1.00     
!   WF        1.00*    WZ        1.02     GN        1.00*    NL        1.00*    
! 
!  A total of 36 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.04     FD        1.00*    GC        1.05     HH        0.98     
!   HN        1.07     KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.25     MK        1.00*    NY        0.96     ON        0.96     
!   OV        1.00*    PT        1.00*    SC        1.06     TS        1.00*    
!   WF        0.99     WZ        0.97     GN        0.97     NL        0.96     
! 
!  A total of 9 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.96     FD        1.08     GC        0.98     HH        1.00*    
!   HN        1.00*    KK        0.98     KP        1.05     LA        1.00     
!   MC        1.00*    MK        0.97     NY        0.95     ON        1.00*    
!   OV        0.98     PT        0.99     SC        1.00*    TS        1.04     
!   WF        1.00*    WZ        1.28     GN        1.00*    NL        1.03     
! 
! 
! Correcting IF 3.
!  A total of 15 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GC        0.95     HH        1.13     
!   HN        1.00*    KK        0.98     KP        1.00*    LA        1.00*    
!   MC        0.54     MK        0.94     NY        0.97     ON        0.96     
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        0.97     
!   WF        1.00*    WZ        1.06     GN        1.00*    NL        1.00*    
! 
!  A total of 33 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.07     FD        1.00*    GC        1.04     HH        0.95     
!   HN        0.94     KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.00*    MK        1.00*    NY        1.01     ON        0.95     
!   OV        1.00*    PT        1.00*    SC        1.09     TS        1.00*    
!   WF        0.93     WZ        0.94     GN        0.96     NL        0.97     
! 
!  A total of 9 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.95     FD        1.04     GC        1.01     HH        1.00*    
!   HN        1.00*    KK        1.02     KP        0.98     LA        1.03     
!   MC        1.00*    MK        1.00     NY        0.95     ON        1.00*    
!   OV        1.01     PT        0.96     SC        1.00*    TS        0.98     
!   WF        1.00*    WZ        1.27     GN        1.00*    NL        1.03     
! 
! 
! Correcting IF 4.
!  A total of 15 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GC        0.96     HH        0.90     
!   HN        1.00*    KK        0.95     KP        1.00*    LA        1.00*    
!   MC        0.77     MK        1.00     NY        0.93     ON        1.02     
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        0.99     
!   WF        1.00*    WZ        1.09     GN        1.00*    NL        1.00*    
! 
!  A total of 33 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.04     FD        1.00*    GC        1.02     HH        0.94     
!   HN        1.00     KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.05     MK        1.00*    NY        1.01     ON        1.02     
!   OV        1.00*    PT        1.00*    SC        1.10     TS        1.00*    
!   WF        0.96     WZ        0.94     GN        0.95     NL        0.97     
! 
!  A total of 9 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.90     FD        1.03     GC        1.04     HH        1.00*    
!   HN        1.00*    KK        1.01     KP        1.04     LA        1.03     
!   MC        1.00*    MK        1.02     NY        0.95     ON        1.00*    
!   OV        0.98     PT        0.91     SC        1.00*    TS        1.01     
!   WF        1.00*    WZ        1.23     GN        1.00*    NL        1.02     
! 
! 
! Fit before self-cal, rms=0.275221Jy  sigma=0.001310
! Fit after  self-cal, rms=0.267047Jy  sigma=0.001285
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.302 mas, bmaj=2.639 mas, bpa=28.08 degrees
! Estimated noise=579.616 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.5, 3).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00397124 Jy
! Component: 100  -  total flux cleaned = 0.00432484 Jy
! Component: 150  -  total flux cleaned = 0.00431992 Jy
! Component: 200  -  total flux cleaned = 0.00432071 Jy
! Total flux subtracted in 200 components = 0.00432071 Jy
! Clean residual min=-0.003917 max=0.004624 Jy/beam
! Clean residual mean=0.000228 rms=0.000929 Jy/beam
! Combined flux in latest and established models = 0.627028 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 62 components and 0.627028 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.266811Jy  sigma=0.001284
! Fit after  self-cal, rms=0.267002Jy  sigma=0.001283
! Inverting map 
! Added new window around map position (12.5, 9.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00423142 Jy
! Component: 100  -  total flux cleaned = 0.00458986 Jy
! Component: 150  -  total flux cleaned = 0.00469625 Jy
! Component: 200  -  total flux cleaned = 0.00460703 Jy
! Total flux subtracted in 200 components = 0.00460703 Jy
! Clean residual min=-0.003896 max=0.003353 Jy/beam
! Clean residual mean=0.000210 rms=0.000877 Jy/beam
! Combined flux in latest and established models = 0.631635 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 77 components and 0.631635 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.266879Jy  sigma=0.001283
! Fit after  self-cal, rms=0.266872Jy  sigma=0.001283
! 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.266872Jy  sigma=0.001283
! Fit after  self-cal, rms=0.267014Jy  sigma=0.001282
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.305 mas, bmaj=2.634 mas, bpa=28.26 degrees
! Estimated noise=579.411 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00192836 Jy
! Component: 100  -  total flux cleaned = 0.00202954 Jy
! Component: 150  -  total flux cleaned = 0.00202877 Jy
! Component: 200  -  total flux cleaned = 0.00194769 Jy
! Total flux subtracted in 200 components = 0.00194769 Jy
! Clean residual min=-0.003505 max=0.003419 Jy/beam
! Clean residual mean=0.000227 rms=0.000820 Jy/beam
! Combined flux in latest and established models = 0.633583 Jy
selfcal
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 85 components and 0.633583 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.266939Jy  sigma=0.001282
! Fit after  self-cal, rms=0.266965Jy  sigma=0.001282
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.00042983 Jy
! Component: 100  -  total flux cleaned = 0.000361613 Jy
! Component: 150  -  total flux cleaned = 0.000295697 Jy
! Component: 200  -  total flux cleaned = 0.000169649 Jy
! Total flux subtracted in 200 components = 0.000169649 Jy
! Clean residual min=-0.003027 max=0.003355 Jy/beam
! Clean residual mean=0.000227 rms=0.000806 Jy/beam
! Combined flux in latest and established models = 0.633753 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 91 components and 0.633752 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.266929Jy  sigma=0.001281
! Fit after  self-cal, rms=0.266928Jy  sigma=0.001281
! 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.266928Jy  sigma=0.001281
! Fit after  self-cal, rms=0.266952Jy  sigma=0.001281
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.308 mas, bmaj=2.632 mas, bpa=28.26 degrees
! Estimated noise=579.425 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000592339 Jy
! Component: 100  -  total flux cleaned = 0.000523207 Jy
! Component: 150  -  total flux cleaned = 0.000463171 Jy
! Component: 200  -  total flux cleaned = 0.000406178 Jy
! Total flux subtracted in 200 components = 0.000406178 Jy
! Clean residual min=-0.002763 max=0.003384 Jy/beam
! Clean residual mean=0.000231 rms=0.000788 Jy/beam
! Combined flux in latest and established models = 0.634159 Jy
selfcal
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 98 components and 0.634159 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.266919Jy  sigma=0.001281
! Fit after  self-cal, rms=0.266920Jy  sigma=0.001281
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 (30.5, -42).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00311495 Jy
! Component: 100  -  total flux cleaned = 0.00445387 Jy
! Component: 150  -  total flux cleaned = 0.00475713 Jy
! Component: 200  -  total flux cleaned = 0.00492391 Jy
! Total flux subtracted in 200 components = 0.00492391 Jy
! Clean residual min=-0.002610 max=0.003139 Jy/beam
! Clean residual mean=0.000186 rms=0.000747 Jy/beam
! Combined flux in latest and established models = 0.639083 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 110 components and 0.639082 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.266874Jy  sigma=0.001281
! Fit after  self-cal, rms=0.266869Jy  sigma=0.001281
! 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.266869Jy  sigma=0.001281
! Fit after  self-cal, rms=0.266703Jy  sigma=0.001281
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=8.002 mas, bmaj=9.527 mas, bpa=-61.51 degrees
! Estimated noise=992.506 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00260613 Jy
! Component: 100  -  total flux cleaned = 0.00305213 Jy
! Component: 150  -  total flux cleaned = 0.00315664 Jy
! Component: 200  -  total flux cleaned = 0.00306715 Jy
! Total flux subtracted in 200 components = 0.00306715 Jy
! Clean residual min=-0.002864 max=0.005129 Jy/beam
! Clean residual mean=0.000631 rms=0.001237 Jy/beam
! Combined flux in latest and established models = 0.64215 Jy
selfcal
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 120 components and 0.64215 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.266709Jy  sigma=0.001281
! Fit after  self-cal, rms=0.266712Jy  sigma=0.001281
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.000405799 Jy
! Component: 100  -  total flux cleaned = 0.000367508 Jy
! Component: 150  -  total flux cleaned = 0.000298256 Jy
! Component: 200  -  total flux cleaned = 0.000234578 Jy
! Total flux subtracted in 200 components = 0.000234578 Jy
! Clean residual min=-0.002983 max=0.004969 Jy/beam
! Clean residual mean=0.000635 rms=0.001226 Jy/beam
! Combined flux in latest and established models = 0.642384 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 132 components and 0.642384 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.266719Jy  sigma=0.001281
! Fit after  self-cal, rms=0.266721Jy  sigma=0.001281
! 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.31 mas, bmaj=2.63 mas, bpa=28.24 degrees
! Estimated noise=579.143 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.31 x 2.63 at 28.24 degrees (North through East)
! Clean map  min=-0.0023513  max=0.42821 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
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=1.917 mas, bmaj=2.106 mas, bpa=38.52 degrees
! Estimated noise=1169.86 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.32436 Jy
! Component: 100  -  total flux cleaned = 0.407198 Jy
! Component: 150  -  total flux cleaned = 0.451154 Jy
! Component: 200  -  total flux cleaned = 0.481115 Jy
! Total flux subtracted in 200 components = 0.481115 Jy
! Clean residual min=-0.009893 max=0.016745 Jy/beam
! Clean residual mean=0.000136 rms=0.002608 Jy/beam
! Combined flux in latest and established models = 0.481115 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 16 model components to the UV plane model.
! The established model now contains 16 components and 0.481115 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.31 mas, bmaj=2.63 mas, bpa=28.24 degrees
! Estimated noise=579.143 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.0441564 Jy
! Component: 100  -  total flux cleaned = 0.0724535 Jy
! Component: 150  -  total flux cleaned = 0.0918819 Jy
! Component: 200  -  total flux cleaned = 0.105738 Jy
! Total flux subtracted in 200 components = 0.105738 Jy
! Clean residual min=-0.003853 max=0.009162 Jy/beam
! Clean residual mean=0.000491 rms=0.001541 Jy/beam
! Combined flux in latest and established models = 0.586853 Jy
! Adding 56 model components to the UV plane model.
! The established model now contains 62 components and 0.586853 Jy
! Inverting map 
! Added new window around map position (1, 9).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0105633 Jy
! Component: 100  -  total flux cleaned = 0.018454 Jy
! Component: 150  -  total flux cleaned = 0.024599 Jy
! Component: 200  -  total flux cleaned = 0.0294815 Jy
! Total flux subtracted in 200 components = 0.0294815 Jy
! Clean residual min=-0.003101 max=0.004153 Jy/beam
! Clean residual mean=0.000323 rms=0.000908 Jy/beam
! Combined flux in latest and established models = 0.616334 Jy
! Adding 40 model components to the UV plane model.
! The established model now contains 88 components and 0.616334 Jy
! Inverting map 
! Added new window around map position (7, 5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00437625 Jy
! Component: 100  -  total flux cleaned = 0.00786243 Jy
! Component: 150  -  total flux cleaned = 0.0108076 Jy
! Component: 200  -  total flux cleaned = 0.0133091 Jy
! Total flux subtracted in 200 components = 0.0133091 Jy
! Clean residual min=-0.002786 max=0.003571 Jy/beam
! Clean residual mean=0.000239 rms=0.000784 Jy/beam
! Combined flux in latest and established models = 0.629643 Jy
! Adding 30 model components to the UV plane model.
! The established model now contains 103 components and 0.629643 Jy
! Inverting map 
! Added new window around map position (38.5, -61.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00321425 Jy
! Component: 100  -  total flux cleaned = 0.00523268 Jy
! Component: 150  -  total flux cleaned = 0.00657436 Jy
! Component: 200  -  total flux cleaned = 0.00766532 Jy
! Total flux subtracted in 200 components = 0.00766532 Jy
! Clean residual min=-0.002739 max=0.002792 Jy/beam
! Clean residual mean=0.000178 rms=0.000738 Jy/beam
! Combined flux in latest and established models = 0.637309 Jy
! Adding 38 model components to the UV plane model.
! The established model now contains 121 components and 0.637309 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=8.002 mas, bmaj=9.527 mas, bpa=-61.51 degrees
! Estimated noise=992.506 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00371619 Jy
! Component: 100  -  total flux cleaned = 0.00618659 Jy
! Component: 150  -  total flux cleaned = 0.00789567 Jy
! Component: 200  -  total flux cleaned = 0.00874347 Jy
! Total flux subtracted in 200 components = 0.00874347 Jy
! Clean residual min=-0.002973 max=0.003951 Jy/beam
! Clean residual mean=0.000487 rms=0.001097 Jy/beam
! Combined flux in latest and established models = 0.646052 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.000505933 Jy
! Component: 100  -  total flux cleaned = 0.000672827 Jy
! Component: 150  -  total flux cleaned = 0.000703681 Jy
! Component: 200  -  total flux cleaned = 0.000732952 Jy
! Total flux subtracted in 200 components = 0.000732952 Jy
! Clean residual min=-0.002969 max=0.003938 Jy/beam
! Clean residual mean=0.000466 rms=0.001087 Jy/beam
! Combined flux in latest and established models = 0.646785 Jy
! Adding 44 model components to the UV plane model.
! The established model now contains 155 components and 0.646785 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.31 mas, bmaj=2.63 mas, bpa=28.24 degrees
! Estimated noise=579.143 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00119586 Jy
! Component: 100  -  total flux cleaned = -0.00145285 Jy
! Component: 150  -  total flux cleaned = -0.00162594 Jy
! Component: 200  -  total flux cleaned = -0.00168034 Jy
! Total flux subtracted in 200 components = -0.00168034 Jy
! Clean residual min=-0.002595 max=0.002903 Jy/beam
! Clean residual mean=0.000129 rms=0.000702 Jy/beam
! Combined flux in latest and established models = 0.645105 Jy
selfcal
! Performing phase self-cal
! Adding 38 model components to the UV plane model.
! The established model now contains 182 components and 0.645105 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.266623Jy  sigma=0.001280
! Fit after  self-cal, rms=0.266585Jy  sigma=0.001280
wmodel J0605+4030_S_1999_12_20_pus_map.mod
! Writing 182 model components to file: J0605+4030_S_1999_12_20_pus_map.mod
wobs J0605+4030_S_1999_12_20_pus_uvs.fits
! Writing UV FITS file: J0605+4030_S_1999_12_20_pus_uvs.fits
wwins J0605+4030_S_1999_12_20_pus_map.win
! wwins: Wrote 9 windows to J0605+4030_S_1999_12_20_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.00125252 Jy
! Component: 100  -  total flux cleaned = 0.00144767 Jy
! Component: 150  -  total flux cleaned = 0.00135653 Jy
! Component: 200  -  total flux cleaned = 0.00126699 Jy
! Component: 250  -  total flux cleaned = 0.00117897 Jy
! Component: 300  -  total flux cleaned = 0.00117939 Jy
! Component: 350  -  total flux cleaned = 0.00122167 Jy
! Component: 400  -  total flux cleaned = 0.00113939 Jy
! Component: 450  -  total flux cleaned = 0.00113946 Jy
! Component: 500  -  total flux cleaned = 0.00121864 Jy
! Component: 550  -  total flux cleaned = 0.00125832 Jy
! Component: 600  -  total flux cleaned = 0.00141322 Jy
! Component: 650  -  total flux cleaned = 0.00152788 Jy
! Component: 700  -  total flux cleaned = 0.00167824 Jy
! Component: 750  -  total flux cleaned = 0.00175259 Jy
! Component: 800  -  total flux cleaned = 0.00189954 Jy
! Component: 850  -  total flux cleaned = 0.00193627 Jy
! Component: 900  -  total flux cleaned = 0.002117 Jy
! Component: 950  -  total flux cleaned = 0.00225955 Jy
! Component: 1000  -  total flux cleaned = 0.00236534 Jy
! Component: 1050  -  total flux cleaned = 0.00247 Jy
! Component: 1100  -  total flux cleaned = 0.00253942 Jy
! Component: 1150  -  total flux cleaned = 0.00267704 Jy
! Component: 1200  -  total flux cleaned = 0.00274483 Jy
! Component: 1250  -  total flux cleaned = 0.00284642 Jy
! Component: 1300  -  total flux cleaned = 0.0029804 Jy
! Component: 1350  -  total flux cleaned = 0.00307991 Jy
! Component: 1400  -  total flux cleaned = 0.00314584 Jy
! Component: 1450  -  total flux cleaned = 0.00327635 Jy
! Component: 1500  -  total flux cleaned = 0.00337367 Jy
! Component: 1550  -  total flux cleaned = 0.00346993 Jy
! Component: 1600  -  total flux cleaned = 0.00353357 Jy
! Component: 1650  -  total flux cleaned = 0.00366015 Jy
! Component: 1700  -  total flux cleaned = 0.00372285 Jy
! Component: 1750  -  total flux cleaned = 0.00384756 Jy
! Component: 1800  -  total flux cleaned = 0.00397173 Jy
! Component: 1850  -  total flux cleaned = 0.00406411 Jy
! Component: 1900  -  total flux cleaned = 0.00415575 Jy
! Component: 1950  -  total flux cleaned = 0.00430775 Jy
! Component: 2000  -  total flux cleaned = 0.00436833 Jy
! Total flux subtracted in 2048 components = 0.00454855 Jy
! Clean residual min=-0.001919 max=0.001825 Jy/beam
! Clean residual mean=0.000083 rms=0.000548 Jy/beam
! Combined flux in latest and established models = 0.649653 Jy
keep
! Adding 159 model components to the UV plane model.
! The established model now contains 341 components and 0.649653 Jy
![Exited script file: muppet]
wmap "J0605+4030_S_1999_12_20_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.31 x 2.63 at 28.24 degrees (North through East)
! Clean map  min=-0.0021872  max=0.42839 Jy/beam
! Writing clean map to FITS file: J0605+4030_S_1999_12_20_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.428393 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000549379 
device "J0605+4030_S_1999_12_20_pus\_map.eps/VPS"
! Attempting to open device: 'J0605+4030_S_1999_12_20_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.384726 0.384726 0.769452 1.5389 3.07781 6.15561 12.3112 24.6224 49.2449 98.4898
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0016 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.428 
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.31 x 2.63 at 28.24 degrees (North through East)
! Clean map  min=-0.0021872  max=0.42839 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0605+4030_S_1999_12_20_pus\_map.gif/vgif"
! Attempting to open device: 'J0605+4030_S_1999_12_20_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0605+4030_S_1999_12_20_pus_uvs.log closed on Thu Dec 20 17:08:12 2007