! Started logfile: J0825+0309_S_1999_05_10_pus_uvs.log on Mon Jan 21 17:32:41 2008
obs J0825+0309_S_1999_05_10_pus_uva.fits
! Reading UV FITS file: J0825+0309_S_1999_05_10_pus_uva.fits
! AN table 1: 94 integrations on 153 of 153 possible baselines.
! AN table 2: 51 integrations on 153 of 153 possible baselines.
! AN table 3: 114 integrations on 153 of 153 possible baselines.
! AN table 4: 101 integrations on 153 of 153 possible baselines.
! AN table 5: 27 integrations on 153 of 153 possible baselines.
! AN table 6: 32 integrations on 153 of 153 possible baselines.
! Apparent sampling: 0.147644 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0825+0309
! 
! 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 1998 lines of history.
! 
! Reading 37860 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 J0825+0309_S_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 = 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 1087 telescope corrections were flagged in sub-array 1.
!  A total of 734 telescope corrections were flagged in sub-array 2.
!  A total of 1414 telescope corrections were flagged in sub-array 3.
!  A total of 1267 telescope corrections were flagged in sub-array 4.
!  A total of 420 telescope corrections were flagged in sub-array 5.
!  A total of 262 telescope corrections were flagged in sub-array 6.
! 
! Correcting IF 2.
!  A total of 1087 telescope corrections were flagged in sub-array 1.
!  A total of 734 telescope corrections were flagged in sub-array 2.
!  A total of 1414 telescope corrections were flagged in sub-array 3.
!  A total of 1267 telescope corrections were flagged in sub-array 4.
!  A total of 420 telescope corrections were flagged in sub-array 5.
!  A total of 262 telescope corrections were flagged in sub-array 6.
! 
! Correcting IF 3.
!  A total of 1087 telescope corrections were flagged in sub-array 1.
!  A total of 734 telescope corrections were flagged in sub-array 2.
!  A total of 1414 telescope corrections were flagged in sub-array 3.
!  A total of 1267 telescope corrections were flagged in sub-array 4.
!  A total of 420 telescope corrections were flagged in sub-array 5.
!  A total of 262 telescope corrections were flagged in sub-array 6.
! 
! Correcting IF 4.
!  A total of 1087 telescope corrections were flagged in sub-array 1.
!  A total of 831 telescope corrections were flagged in sub-array 2.
!  A total of 1414 telescope corrections were flagged in sub-array 3.
!  A total of 1365 telescope corrections were flagged in sub-array 4.
!  A total of 420 telescope corrections were flagged in sub-array 5.
!  A total of 262 telescope corrections were flagged in sub-array 6.
! 
! Fit before self-cal, rms=0.796629Jy  sigma=0.005041
! Fit after  self-cal, rms=0.367591Jy  sigma=0.002236
! 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.969 mas, bmaj=3.66 mas, bpa=8.191 degrees
! Estimated noise=863.688 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.714853 Jy
! Component: 100  -  total flux cleaned = 0.941062 Jy
! Total flux subtracted in 100 components = 0.941063 Jy
! Clean residual min=-0.026663 max=0.100988 Jy/beam
! Clean residual mean=0.000527 rms=0.008037 Jy/beam
! Combined flux in latest and established models = 0.941063 Jy
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 10 components and 0.941063 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.332236Jy  sigma=0.002229
! Fit after  self-cal, rms=0.330830Jy  sigma=0.002223
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.115944 Jy
! Component: 100  -  total flux cleaned = 0.180358 Jy
! Total flux subtracted in 100 components = 0.180358 Jy
! Clean residual min=-0.015442 max=0.036230 Jy/beam
! Clean residual mean=0.000245 rms=0.004523 Jy/beam
! Combined flux in latest and established models = 1.12142 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 19 components and 1.12142 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.282310Jy  sigma=0.001612
! Fit after  self-cal, rms=0.281820Jy  sigma=0.001611
! Inverting map 
! Added new window around map position (-1.5, 4.5).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0430398 Jy
! Component: 100  -  total flux cleaned = 0.0717672 Jy
! Total flux subtracted in 100 components = 0.0717672 Jy
! Clean residual min=-0.014412 max=0.022789 Jy/beam
! Clean residual mean=0.000136 rms=0.003778 Jy/beam
! Combined flux in latest and established models = 1.19319 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 25 components and 1.19319 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.274664Jy  sigma=0.001493
! Fit after  self-cal, rms=0.274421Jy  sigma=0.001492
! 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.668 mas, bmaj=5.071 mas, bpa=-1.801 degrees
! Estimated noise=522.278 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.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0290606 Jy
! Component: 100  -  total flux cleaned = 0.0467874 Jy
! Component: 150  -  total flux cleaned = 0.0570671 Jy
! Component: 200  -  total flux cleaned = 0.0591243 Jy
! Total flux subtracted in 200 components = 0.0591243 Jy
! Clean residual min=-0.012299 max=0.013571 Jy/beam
! Clean residual mean=0.000038 rms=0.003147 Jy/beam
! Combined flux in latest and established models = 1.25231 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 43 components and 1.25231 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.272283Jy  sigma=0.001446
! Fit after  self-cal, rms=0.271967Jy  sigma=0.001443
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GC        1.00*    HH        1.08     
!   HN        1.02     KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        0.96     MK        1.00*    NL        1.11     NY        0.96     
!   ON        0.97     OV        1.00*    PT        1.00*    SC        1.02     
!   WF        1.00     WZ        1.00*    
! 
!  A total of 75 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GC        1.00*    HH        0.87     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.20     MK        1.00*    NL        1.00*    NY        0.97     
!   ON        0.94     OV        1.00*    PT        1.00*    SC        1.00*    
!   WF        1.00*    WZ        1.01     
! 
!  A total of 21 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        0.98     GC        1.05     HH        1.00*    
!   HN        1.00     KK        1.05     KP        0.97     LA        0.99     
!   MC        1.00*    MK        0.93     NL        0.99     NY        1.00*    
!   ON        1.00*    OV        1.02     PT        1.02     SC        1.00     
!   WF        0.99     WZ        1.00*    
! 
!  A total of 102 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.01     FD        0.99     GC        1.00*    HH        1.07     
!   HN        0.98     KK        1.00*    KP        0.98     LA        1.01     
!   MC        0.99     MK        1.00*    NL        0.98     NY        1.00     
!   ON        0.99     OV        1.04     PT        1.00     SC        1.01     
!   WF        1.05     WZ        0.97     
! 
!  A total of 66 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.00*    FD        0.00*    GC        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MC        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  Telescope amplitude corrections in sub-array 6:
!   BR        0.96     FD        0.97     GC        0.99     HH        1.00*    
!   HN        1.04     KK        0.94     KP        0.99     LA        0.99     
!   MC        1.00*    MK        1.00*    NL        1.01     NY        1.00*    
!   ON        1.00*    OV        1.03     PT        1.00     SC        1.03     
!   WF        1.05     WZ        1.00*    
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GC        1.00*    HH        1.02     
!   HN        1.00     KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        0.98     MK        1.00*    NL        1.12     NY        0.97     
!   ON        1.00     OV        1.00*    PT        1.00*    SC        1.03     
!   WF        1.03     WZ        1.00*    
! 
!  A total of 75 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GC        1.00*    HH        0.88     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        0.93     MK        1.00*    NL        1.00*    NY        1.01     
!   ON        0.95     OV        1.00*    PT        1.00*    SC        1.00*    
!   WF        1.00*    WZ        1.01     
! 
!  A total of 21 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.96     FD        1.02     GC        1.04     HH        1.00*    
!   HN        0.99     KK        1.04     KP        1.01     LA        0.96     
!   MC        1.00*    MK        1.05     NL        1.00     NY        1.00*    
!   ON        1.00*    OV        0.97     PT        0.98     SC        1.01     
!   WF        0.97     WZ        1.00*    
! 
!  A total of 102 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.99     FD        1.03     GC        1.00*    HH        1.12     
!   HN        0.97     KK        1.00*    KP        1.00     LA        0.97     
!   MC        0.96     MK        1.00*    NL        0.96     NY        0.97     
!   ON        1.02     OV        1.02     PT        0.99     SC        1.01     
!   WF        1.03     WZ        0.97     
! 
!  A total of 66 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.00*    FD        0.00*    GC        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MC        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  Telescope amplitude corrections in sub-array 6:
!   BR        0.97     FD        1.02     GC        0.96     HH        1.00*    
!   HN        1.04     KK        0.93     KP        1.01     LA        0.97     
!   MC        1.00*    MK        1.00*    NL        1.00     NY        1.00*    
!   ON        1.00*    OV        0.98     PT        0.98     SC        1.12     
!   WF        1.03     WZ        1.00*    
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GC        1.00*    HH        1.01     
!   HN        0.99     KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.25     MK        1.00*    NL        1.17     NY        1.01     
!   ON        1.03     OV        1.00*    PT        1.00*    SC        1.03     
!   WF        1.03     WZ        1.00*    
! 
!  A total of 75 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GC        1.00*    HH        1.41     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        0.46     MK        1.00*    NL        1.00*    NY        1.66     
!   ON        1.50     OV        1.00*    PT        1.00*    SC        1.00*    
!   WF        1.00*    WZ        1.80     
! 
!  A total of 21 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.97     FD        0.99     GC        1.05     HH        1.00*    
!   HN        0.99     KK        1.04     KP        1.00     LA        0.98     
!   MC        1.00*    MK        1.00     NL        1.01     NY        1.00*    
!   ON        1.00*    OV        0.96     PT        0.95     SC        1.00     
!   WF        1.00     WZ        1.00*    
! 
!  A total of 102 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        1.00     FD        1.01     GC        1.00*    HH        0.98     
!   HN        0.99     KK        1.00*    KP        1.01     LA        1.01     
!   MC        1.37     MK        1.00*    NL        0.98     NY        1.03     
!   ON        1.06     OV        1.01     PT        0.96     SC        1.01     
!   WF        1.01     WZ        0.92     
! 
!  A total of 66 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.00*    FD        0.00*    GC        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MC        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  Telescope amplitude corrections in sub-array 6:
!   BR        0.98     FD        1.00     GC        0.99     HH        1.00*    
!   HN        1.04     KK        0.92     KP        1.00     LA        0.99     
!   MC        1.00*    MK        1.00*    NL        1.03     NY        1.00*    
!   ON        1.00*    OV        0.98     PT        0.93     SC        1.12     
!   WF        1.05     WZ        1.00*    
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00*    FD        1.00*    GC        1.00*    HH        0.97     
!   HN        0.99     KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.41     MK        1.00*    NL        1.19     NY        1.05     
!   ON        1.01     OV        1.00*    PT        1.00*    SC        1.00     
!   WF        0.96     WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.00*    FD        1.00*    GC        1.00*    HH        0.84     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.08     MK        1.00*    NL        1.00*    NY        1.11     
!   ON        1.02     OV        1.00*    PT        1.00*    SC        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 21 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.94     FD        0.97     GC        1.05     HH        1.00*    
!   HN        0.98     KK        1.04     KP        0.99     LA        0.98     
!   MC        1.00*    MK        1.01     NL        1.02     NY        1.00*    
!   ON        1.00*    OV        0.93     PT        0.95     SC        1.01     
!   WF        1.00     WZ        1.00*    
! 
!  A total of 48 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.97     FD        0.99     GC        1.00*    HH        1.05     
!   HN        0.99     KK        1.00*    KP        1.01     LA        0.99     
!   MC        1.53     MK        1.00*    NL        0.99     NY        1.03     
!   ON        0.94     OV        0.97     PT        1.00     SC        1.00     
!   WF        1.02     WZ        1.00*    
! 
!  A total of 66 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   BR        0.00*    FD        0.00*    GC        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MC        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  Telescope amplitude corrections in sub-array 6:
!   BR        0.93     FD        0.98     GC        0.99     HH        1.00*    
!   HN        1.04     KK        0.92     KP        1.01     LA        0.99     
!   MC        1.00*    MK        1.00*    NL        1.03     NY        1.00*    
!   ON        1.00*    OV        0.95     PT        1.13     SC        1.11     
!   WF        1.05     WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.271967Jy  sigma=0.001443
! Fit after  self-cal, rms=0.285653Jy  sigma=0.001348
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.705 mas, bmaj=5.185 mas, bpa=-1.882 degrees
! Estimated noise=526.937 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.00152934 Jy
! Component: 100  -  total flux cleaned = -0.00154675 Jy
! Component: 150  -  total flux cleaned = -0.00114435 Jy
! Component: 200  -  total flux cleaned = -0.000804132 Jy
! Total flux subtracted in 200 components = -0.000804132 Jy
! Clean residual min=-0.004739 max=0.005023 Jy/beam
! Clean residual mean=0.000092 rms=0.001089 Jy/beam
! Combined flux in latest and established models = 1.25151 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 58 components and 1.25151 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.285180Jy  sigma=0.001344
! Fit after  self-cal, rms=0.286987Jy  sigma=0.001343
! 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.286987Jy  sigma=0.001343
! Fit after  self-cal, rms=0.297021Jy  sigma=0.001338
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.71 mas, bmaj=5.193 mas, bpa=-1.884 degrees
! Estimated noise=527.285 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00301647 Jy
! Component: 100  -  total flux cleaned = -0.00265098 Jy
! Component: 150  -  total flux cleaned = -0.00249708 Jy
! Component: 200  -  total flux cleaned = -0.00221931 Jy
! Total flux subtracted in 200 components = -0.00221931 Jy
! Clean residual min=-0.003544 max=0.004429 Jy/beam
! Clean residual mean=0.000064 rms=0.000950 Jy/beam
! Combined flux in latest and established models = 1.24929 Jy
selfcal
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 63 components and 1.24929 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.296747Jy  sigma=0.001337
! Fit after  self-cal, rms=0.297107Jy  sigma=0.001337
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 (6, 7).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00206473 Jy
! Component: 100  -  total flux cleaned = 0.00303486 Jy
! Component: 150  -  total flux cleaned = 0.00349791 Jy
! Component: 200  -  total flux cleaned = 0.00380959 Jy
! Total flux subtracted in 200 components = 0.00380959 Jy
! Clean residual min=-0.003482 max=0.003571 Jy/beam
! Clean residual mean=0.000009 rms=0.000911 Jy/beam
! Combined flux in latest and established models = 1.2531 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 72 components and 1.2531 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.296978Jy  sigma=0.001335
! Fit after  self-cal, rms=0.296974Jy  sigma=0.001335
! 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.296974Jy  sigma=0.001335
! Fit after  self-cal, rms=0.300134Jy  sigma=0.001332
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.714 mas, bmaj=5.194 mas, bpa=-1.848 degrees
! Estimated noise=527.39 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00201127 Jy
! Component: 100  -  total flux cleaned = -0.00175955 Jy
! Component: 150  -  total flux cleaned = -0.00165138 Jy
! Component: 200  -  total flux cleaned = -0.00146421 Jy
! Total flux subtracted in 200 components = -0.00146421 Jy
! Clean residual min=-0.003062 max=0.003396 Jy/beam
! Clean residual mean=0.000035 rms=0.000820 Jy/beam
! Combined flux in latest and established models = 1.25163 Jy
selfcal
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 75 components and 1.25163 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.300012Jy  sigma=0.001331
! Fit after  self-cal, rms=0.300076Jy  sigma=0.001331
flux_cutoff = imstat(rms) * dynam
! Inverting map 
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 5.89543e-05 Jy
! Component: 100  -  total flux cleaned = 0.00040416 Jy
! Component: 150  -  total flux cleaned = 0.000484223 Jy
! Component: 200  -  total flux cleaned = 0.000630127 Jy
! Total flux subtracted in 200 components = 0.000630127 Jy
! Clean residual min=-0.003024 max=0.003266 Jy/beam
! Clean residual mean=0.000026 rms=0.000806 Jy/beam
! Combined flux in latest and established models = 1.25226 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 80 components and 1.25226 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.300008Jy  sigma=0.001330
! Fit after  self-cal, rms=0.300001Jy  sigma=0.001330
! 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.300001Jy  sigma=0.001330
! Fit after  self-cal, rms=0.300614Jy  sigma=0.001330
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.615 mas, bmaj=9.953 mas, bpa=1.316 degrees
! Estimated noise=666.112 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000773145 Jy
! Component: 100  -  total flux cleaned = -0.000467374 Jy
! Component: 150  -  total flux cleaned = -0.000310447 Jy
! Component: 200  -  total flux cleaned = -0.000253638 Jy
! Total flux subtracted in 200 components = -0.000253638 Jy
! Clean residual min=-0.003183 max=0.002768 Jy/beam
! Clean residual mean=0.000095 rms=0.000930 Jy/beam
! Combined flux in latest and established models = 1.25201 Jy
selfcal
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 95 components and 1.25201 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.300608Jy  sigma=0.001330
! Fit after  self-cal, rms=0.300601Jy  sigma=0.001330
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 = -4.78846e-05 Jy
! Component: 100  -  total flux cleaned = 0.000138881 Jy
! Component: 150  -  total flux cleaned = 0.000256461 Jy
! Component: 200  -  total flux cleaned = 0.000281166 Jy
! Total flux subtracted in 200 components = 0.000281166 Jy
! Clean residual min=-0.003140 max=0.002750 Jy/beam
! Clean residual mean=0.000086 rms=0.000934 Jy/beam
! Combined flux in latest and established models = 1.25229 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 102 components and 1.25229 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.300594Jy  sigma=0.001330
! Fit after  self-cal, rms=0.300586Jy  sigma=0.001330
! 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.717 mas, bmaj=5.194 mas, bpa=-1.829 degrees
! Estimated noise=527.542 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.717 x 5.194 at -1.829 degrees (North through East)
! Clean map  min=-0.0029002  max=0.97197 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.300586Jy  sigma=0.001330
! Fit after  self-cal, rms=0.599032Jy  sigma=0.001187
! Inverting map and beam 
! Estimated beam: bmin=2.718 mas, bmaj=5.192 mas, bpa=-1.767 degrees
! Estimated noise=527.103 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00137776 Jy
! Component: 100  -  total flux cleaned = -0.00153245 Jy
! Component: 150  -  total flux cleaned = -0.00153181 Jy
! Component: 200  -  total flux cleaned = -0.00159418 Jy
! Total flux subtracted in 200 components = -0.00159418 Jy
! Clean residual min=-0.003056 max=0.002782 Jy/beam
! Clean residual mean=0.000029 rms=0.000742 Jy/beam
! Combined flux in latest and established models = 1.2507 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 115 components and 1.2507 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.599020Jy  sigma=0.001187
! Fit after  self-cal, rms=0.599020Jy  sigma=0.001187
! Inverting map 
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 3.98616e-05 Jy
! Component: 100  -  total flux cleaned = -2.03328e-05 Jy
! Component: 150  -  total flux cleaned = -2.12677e-05 Jy
! Component: 200  -  total flux cleaned = -1.91661e-05 Jy
! Total flux subtracted in 200 components = -1.91661e-05 Jy
! Clean residual min=-0.003020 max=0.002767 Jy/beam
! Clean residual mean=0.000029 rms=0.000737 Jy/beam
! Combined flux in latest and established models = 1.25068 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 117 components and 1.25068 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.599011Jy  sigma=0.001186
! Fit after  self-cal, rms=0.599009Jy  sigma=0.001186
! Inverting map 
! Performing amp+phase self-cal
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.599009Jy  sigma=0.001186
! Fit after  self-cal, rms=0.756479Jy  sigma=0.001186
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.999 mas, bmaj=3.701 mas, bpa=8.335 degrees
! Estimated noise=883.222 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.726941 Jy
! Component: 100  -  total flux cleaned = 0.957818 Jy
! Component: 150  -  total flux cleaned = 1.06358 Jy
! Component: 200  -  total flux cleaned = 1.1196 Jy
! Total flux subtracted in 200 components = 1.1196 Jy
! Clean residual min=-0.010218 max=0.027743 Jy/beam
! Clean residual mean=0.000215 rms=0.002788 Jy/beam
! Combined flux in latest and established models = 1.1196 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 17 model components to the UV plane model.
! The established model now contains 17 components and 1.1196 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.719 mas, bmaj=5.193 mas, bpa=-1.757 degrees
! Estimated noise=527.162 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.0484297 Jy
! Component: 100  -  total flux cleaned = 0.0762412 Jy
! Component: 150  -  total flux cleaned = 0.0941378 Jy
! Component: 200  -  total flux cleaned = 0.106145 Jy
! Total flux subtracted in 200 components = 0.106145 Jy
! Clean residual min=-0.003406 max=0.006569 Jy/beam
! Clean residual mean=0.000390 rms=0.001063 Jy/beam
! Combined flux in latest and established models = 1.22575 Jy
! Adding 36 model components to the UV plane model.
! The established model now contains 45 components and 1.22575 Jy
! Inverting map 
! Added new window around map position (0.5, -3.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00827893 Jy
! Component: 100  -  total flux cleaned = 0.0142 Jy
! Component: 150  -  total flux cleaned = 0.0185257 Jy
! Component: 200  -  total flux cleaned = 0.0199265 Jy
! Total flux subtracted in 200 components = 0.0199265 Jy
! Clean residual min=-0.002958 max=0.003253 Jy/beam
! Clean residual mean=0.000096 rms=0.000780 Jy/beam
! Combined flux in latest and established models = 1.24568 Jy
! Adding 29 model components to the UV plane model.
! The established model now contains 63 components and 1.24568 Jy
! Inverting map 
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 20 mega-wavelengths.
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.617 mas, bmaj=9.961 mas, bpa=1.321 degrees
! Estimated noise=664.648 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00157989 Jy
! Component: 100  -  total flux cleaned = 0.00220328 Jy
! Component: 150  -  total flux cleaned = 0.00263096 Jy
! Component: 200  -  total flux cleaned = 0.00286518 Jy
! Total flux subtracted in 200 components = 0.00286518 Jy
! Clean residual min=-0.002440 max=0.002691 Jy/beam
! Clean residual mean=0.000137 rms=0.000826 Jy/beam
! Combined flux in latest and established models = 1.24854 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.000115248 Jy
! Component: 100  -  total flux cleaned = 0.000114588 Jy
! Component: 150  -  total flux cleaned = 0.000136847 Jy
! Component: 200  -  total flux cleaned = 0.000136415 Jy
! Total flux subtracted in 200 components = 0.000136415 Jy
! Clean residual min=-0.002465 max=0.002712 Jy/beam
! Clean residual mean=0.000132 rms=0.000824 Jy/beam
! Combined flux in latest and established models = 1.24868 Jy
! Adding 52 model components to the UV plane model.
! The established model now contains 108 components and 1.24868 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.719 mas, bmaj=5.193 mas, bpa=-1.757 degrees
! Estimated noise=527.162 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000609223 Jy
! Component: 100  -  total flux cleaned = -0.000510877 Jy
! Component: 150  -  total flux cleaned = -0.000512644 Jy
! Component: 200  -  total flux cleaned = -0.000424857 Jy
! Total flux subtracted in 200 components = -0.000424857 Jy
! Clean residual min=-0.002845 max=0.002919 Jy/beam
! Clean residual mean=0.000059 rms=0.000745 Jy/beam
! Combined flux in latest and established models = 1.24825 Jy
selfcal
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 119 components and 1.24825 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.756376Jy  sigma=0.001187
! Fit after  self-cal, rms=0.756372Jy  sigma=0.001186
wmodel J0825+0309_S_1999_05_10_pus_map.mod
! Writing 119 model components to file: J0825+0309_S_1999_05_10_pus_map.mod
wobs J0825+0309_S_1999_05_10_pus_uvs.fits
! Writing UV FITS file: J0825+0309_S_1999_05_10_pus_uvs.fits
wwins J0825+0309_S_1999_05_10_pus_map.win
! wwins: Wrote 5 windows to J0825+0309_S_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 
! clean: niter=2048  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.00071157 Jy
! Component: 100  -  total flux cleaned = 0.0011087 Jy
! Component: 150  -  total flux cleaned = 0.00120437 Jy
! Component: 200  -  total flux cleaned = 0.00125199 Jy
! Component: 250  -  total flux cleaned = 0.00120685 Jy
! Component: 300  -  total flux cleaned = 0.00134057 Jy
! Component: 350  -  total flux cleaned = 0.00151508 Jy
! Component: 400  -  total flux cleaned = 0.00164384 Jy
! Component: 450  -  total flux cleaned = 0.0017287 Jy
! Component: 500  -  total flux cleaned = 0.00181246 Jy
! Component: 550  -  total flux cleaned = 0.00193659 Jy
! Component: 600  -  total flux cleaned = 0.00209961 Jy
! Component: 650  -  total flux cleaned = 0.00218017 Jy
! Component: 700  -  total flux cleaned = 0.00237968 Jy
! Component: 750  -  total flux cleaned = 0.00249768 Jy
! Component: 800  -  total flux cleaned = 0.00257546 Jy
! Component: 850  -  total flux cleaned = 0.00272986 Jy
! Component: 900  -  total flux cleaned = 0.00276816 Jy
! Component: 950  -  total flux cleaned = 0.0028441 Jy
! Component: 1000  -  total flux cleaned = 0.00288192 Jy
! Component: 1050  -  total flux cleaned = 0.00299401 Jy
! Component: 1100  -  total flux cleaned = 0.00306776 Jy
! Component: 1150  -  total flux cleaned = 0.00314089 Jy
! Component: 1200  -  total flux cleaned = 0.00317714 Jy
! Component: 1250  -  total flux cleaned = 0.00324931 Jy
! Component: 1300  -  total flux cleaned = 0.00332088 Jy
! Component: 1350  -  total flux cleaned = 0.0033562 Jy
! Component: 1400  -  total flux cleaned = 0.00342685 Jy
! Component: 1450  -  total flux cleaned = 0.00342678 Jy
! Component: 1500  -  total flux cleaned = 0.00346182 Jy
! Component: 1550  -  total flux cleaned = 0.00353117 Jy
! Component: 1600  -  total flux cleaned = 0.00359971 Jy
! Component: 1650  -  total flux cleaned = 0.00359977 Jy
! Component: 1700  -  total flux cleaned = 0.00363372 Jy
! Component: 1750  -  total flux cleaned = 0.0036337 Jy
! Component: 1800  -  total flux cleaned = 0.00370062 Jy
! Component: 1850  -  total flux cleaned = 0.00370056 Jy
! Component: 1900  -  total flux cleaned = 0.00370065 Jy
! Component: 1950  -  total flux cleaned = 0.00379914 Jy
! Component: 2000  -  total flux cleaned = 0.00376653 Jy
! Total flux subtracted in 2048 components = 0.00379895 Jy
! Clean residual min=-0.001883 max=0.001958 Jy/beam
! Clean residual mean=0.000010 rms=0.000595 Jy/beam
! Combined flux in latest and established models = 1.25205 Jy
keep
! Adding 134 model components to the UV plane model.
! The established model now contains 251 components and 1.25205 Jy
![Exited script file: muppet]
wmap "J0825+0309_S_1999_05_10_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.719 x 5.193 at -1.757 degrees (North through East)
! Clean map  min=-0.0024683  max=0.97412 Jy/beam
! Writing clean map to FITS file: J0825+0309_S_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 0.974121 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000594275 
device "J0825+0309_S_1999_05_10_pus\_map.eps/VPS"
! Attempting to open device: 'J0825+0309_S_1999_05_10_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.183019 0.183019 0.366037 0.732075 1.46415 2.9283 5.8566 11.7132 23.4264 46.8528 93.7056
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0017 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.974 
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.719 x 5.193 at -1.757 degrees (North through East)
! Clean map  min=-0.0024683  max=0.97412 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0825+0309_S_1999_05_10_pus\_map.gif/vgif"
! Attempting to open device: 'J0825+0309_S_1999_05_10_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0825+0309_S_1999_05_10_pus_uvs.log closed on Mon Jan 21 17:32:58 2008