! Started logfile: J0121+1149_X_1999_05_10_pus_uvs.log on Tue Jan 15 14:47:56 2008
obs J0121+1149_X_1999_05_10_pus_uva.fits
! Reading UV FITS file: J0121+1149_X_1999_05_10_pus_uva.fits
! AN table 1: 261 integrations on 153 of 153 possible baselines.
! AN table 2: 69 integrations on 153 of 153 possible baselines.
! AN table 3: 52 integrations on 153 of 153 possible baselines.
! Apparent sampling: 0.235859 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0121+1149
! 
! 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 1763 lines of history.
! 
! Reading 55140 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 J0121+1149_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 2555 telescope corrections were flagged in sub-array 1.
!  A total of 1056 telescope corrections were flagged in sub-array 2.
!  A total of 777 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 2554 telescope corrections were flagged in sub-array 1.
!  A total of 1056 telescope corrections were flagged in sub-array 2.
!  A total of 777 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 2556 telescope corrections were flagged in sub-array 1.
!  A total of 1059 telescope corrections were flagged in sub-array 2.
!  A total of 777 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 2604 telescope corrections were flagged in sub-array 1.
!  A total of 1179 telescope corrections were flagged in sub-array 2.
!  A total of 777 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=0.605556Jy  sigma=0.005710
! Fit after  self-cal, rms=0.386590Jy  sigma=0.004203
! 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.31% of the data.
!  The x-axis pixel size should ideally be below 0.1612 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1987 milli-arcsec
! Estimated beam: bmin=0.592 mas, bmaj=1.055 mas, bpa=-10.77 degrees
! Estimated noise=785.132 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.903116 Jy
! Component: 100  -  total flux cleaned = 1.14033 Jy
! Total flux subtracted in 100 components = 1.14033 Jy
! Clean residual min=-0.036379 max=0.105929 Jy/beam
! Clean residual mean=0.000961 rms=0.012219 Jy/beam
! Combined flux in latest and established models = 1.14033 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 9 components and 1.14033 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.313867Jy  sigma=0.003305
! Fit after  self-cal, rms=0.313390Jy  sigma=0.003303
! Inverting map 
! Your choice of large map pixels excluded 2.31% of the data.
!  The x-axis pixel size should ideally be below 0.1612 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1987 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.121936 Jy
! Component: 100  -  total flux cleaned = 0.200644 Jy
! Total flux subtracted in 100 components = 0.200644 Jy
! Clean residual min=-0.023860 max=0.067862 Jy/beam
! Clean residual mean=0.000564 rms=0.007999 Jy/beam
! Combined flux in latest and established models = 1.34098 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 19 components and 1.34098 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.242531Jy  sigma=0.002273
! Fit after  self-cal, rms=0.241441Jy  sigma=0.002270
! Inverting map 
! Your choice of large map pixels excluded 2.31% of the data.
!  The x-axis pixel size should ideally be below 0.1612 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1987 milli-arcsec
! Added new window around map position (0.2, 1.4).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0683816 Jy
! Component: 100  -  total flux cleaned = 0.112711 Jy
! Total flux subtracted in 100 components = 0.112711 Jy
! Clean residual min=-0.022813 max=0.031566 Jy/beam
! Clean residual mean=0.000320 rms=0.006098 Jy/beam
! Combined flux in latest and established models = 1.45369 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 25 components and 1.45369 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.215608Jy  sigma=0.001857
! Fit after  self-cal, rms=0.213863Jy  sigma=0.001846
! Inverting map 
! Your choice of large map pixels excluded 2.31% of the data.
!  The x-axis pixel size should ideally be below 0.1612 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1987 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.31% of the data.
!  The x-axis pixel size should ideally be below 0.1612 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1987 milli-arcsec
! Estimated beam: bmin=0.7406 mas, bmaj=1.336 mas, bpa=-9.798 degrees
! Estimated noise=337.522 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.057289 Jy
! Component: 100  -  total flux cleaned = 0.0886878 Jy
! Component: 150  -  total flux cleaned = 0.10808 Jy
! Component: 200  -  total flux cleaned = 0.120426 Jy
! Total flux subtracted in 200 components = 0.120426 Jy
! Clean residual min=-0.011629 max=0.015646 Jy/beam
! Clean residual mean=0.000222 rms=0.003992 Jy/beam
! Combined flux in latest and established models = 1.57411 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 40 components and 1.57411 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.203955Jy  sigma=0.001613
! Fit after  self-cal, rms=0.203223Jy  sigma=0.001608
! Inverting map 
! Your choice of large map pixels excluded 2.31% of the data.
!  The x-axis pixel size should ideally be below 0.1612 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1987 milli-arcsec
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 69 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        0.96     GC        1.07     HH        1.00*    
!   HN        0.97     KK        1.01     KP        1.00     LA        0.96     
!   MC        1.28     MK        0.96     NL        1.03     NY        1.03     
!   ON        0.92     OV        0.98     PT        1.04     SC        1.00     
!   WF        0.97     WZ        1.13     
! 
!  A total of 78 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.02     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.09     MK        1.00*    NL        1.00*    NY        1.00*    
!   ON        1.33     OV        1.00*    PT        1.00*    SC        1.00*    
!   WF        1.00*    WZ        1.05     
! 
!  A total of 63 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.95     FD        1.00*    GC        1.04     HH        1.00*    
!   HN        1.00*    KK        0.84     KP        1.00*    LA        1.00*    
!   MC        1.00*    MK        1.00*    NL        1.00*    NY        1.00*    
!   ON        1.00*    OV        1.03     PT        1.00*    SC        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 66 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        0.95     GC        1.05     HH        1.00*    
!   HN        0.97     KK        1.03     KP        1.01     LA        0.97     
!   MC        1.28     MK        0.95     NL        0.99     NY        1.05     
!   ON        0.90     OV        0.96     PT        0.96     SC        0.99     
!   WF        1.02     WZ        1.13     
! 
!  A total of 78 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.02     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.09     MK        1.00*    NL        1.00*    NY        1.00*    
!   ON        1.33     OV        1.00*    PT        1.00*    SC        1.00*    
!   WF        1.00*    WZ        1.10     
! 
!  A total of 63 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        1.00*    GC        1.01     HH        1.00*    
!   HN        1.00*    KK        0.85     KP        1.00*    LA        1.00*    
!   MC        1.00*    MK        1.00*    NL        1.00*    NY        1.00*    
!   ON        1.00*    OV        0.99     PT        1.00*    SC        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 69 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        0.98     GC        1.03     HH        1.00*    
!   HN        0.99     KK        1.11     KP        1.03     LA        0.96     
!   MC        1.38     MK        0.96     NL        0.99     NY        1.11     
!   ON        0.94     OV        0.98     PT        0.97     SC        1.01     
!   WF        1.03     WZ        1.13     
! 
!  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.14     
!   HN        1.00*    KK        1.00*    KP        1.00*    LA        1.00*    
!   MC        1.14     MK        1.00*    NL        1.00*    NY        1.00*    
!   ON        1.42     OV        1.00*    PT        1.00*    SC        1.00*    
!   WF        1.00*    WZ        1.13     
! 
!  A total of 63 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.01     FD        1.00*    GC        1.01     HH        1.00*    
!   HN        1.00*    KK        0.92     KP        1.00*    LA        1.00*    
!   MC        1.00*    MK        1.00*    NL        1.00*    NY        1.00*    
!   ON        1.00*    OV        1.02     PT        1.00*    SC        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 69 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        0.96     GC        1.04     HH        1.00*    
!   HN        0.99     KK        1.07     KP        1.02     LA        0.98     
!   MC        1.33     MK        0.97     NL        1.01     NY        1.15     
!   ON        0.93     OV        0.98     PT        1.01     SC        0.98     
!   WF        1.03     WZ        1.00*    
! 
!  A total of 63 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   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*    
! 
!  A total of 63 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.97     FD        1.00*    GC        1.03     HH        1.00*    
!   HN        1.00*    KK        0.89     KP        1.00*    LA        1.00*    
!   MC        1.00*    MK        1.00*    NL        1.00*    NY        1.00*    
!   ON        1.00*    OV        1.04     PT        1.00*    SC        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.203223Jy  sigma=0.001608
! Fit after  self-cal, rms=0.179518Jy  sigma=0.001322
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 2.2% of the data.
!  The x-axis pixel size should ideally be below 0.1612 milli-arcsec
! Estimated beam: bmin=0.7506 mas, bmaj=1.358 mas, bpa=-9.26 degrees
! Estimated noise=339.36 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.00637544 Jy
! Component: 100  -  total flux cleaned = -0.00681283 Jy
! Component: 150  -  total flux cleaned = -0.0061501 Jy
! Component: 200  -  total flux cleaned = -0.00642263 Jy
! Total flux subtracted in 200 components = -0.00642263 Jy
! Clean residual min=-0.008023 max=0.007184 Jy/beam
! Clean residual mean=0.000053 rms=0.001804 Jy/beam
! Combined flux in latest and established models = 1.56769 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 43 components and 1.56769 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.177381Jy  sigma=0.001305
! Fit after  self-cal, rms=0.177426Jy  sigma=0.001304
! Inverting map 
! Your choice of large map pixels excluded 2.2% of the data.
!  The x-axis pixel size should ideally be below 0.1612 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.177426Jy  sigma=0.001304
! Fit after  self-cal, rms=0.176051Jy  sigma=0.001286
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 2.2% of the data.
!  The x-axis pixel size should ideally be below 0.1612 milli-arcsec
! Estimated beam: bmin=0.7516 mas, bmaj=1.361 mas, bpa=-9.109 degrees
! Estimated noise=338.807 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00652749 Jy
! Component: 100  -  total flux cleaned = -0.00708311 Jy
! Component: 150  -  total flux cleaned = -0.00706891 Jy
! Component: 200  -  total flux cleaned = -0.00748761 Jy
! Total flux subtracted in 200 components = -0.00748761 Jy
! Clean residual min=-0.006505 max=0.004254 Jy/beam
! Clean residual mean=0.000010 rms=0.001408 Jy/beam
! Combined flux in latest and established models = 1.5602 Jy
selfcal
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 44 components and 1.5602 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.174926Jy  sigma=0.001278
! Fit after  self-cal, rms=0.174879Jy  sigma=0.001278
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 2.2% of the data.
!  The x-axis pixel size should ideally be below 0.1612 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.000474414 Jy
! Component: 100  -  total flux cleaned = 0.000120477 Jy
! Component: 150  -  total flux cleaned = -4.06467e-05 Jy
! Component: 200  -  total flux cleaned = -0.000329335 Jy
! Total flux subtracted in 200 components = -0.000329335 Jy
! Clean residual min=-0.006234 max=0.004028 Jy/beam
! Clean residual mean=0.000010 rms=0.001339 Jy/beam
! Combined flux in latest and established models = 1.55987 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 44 components and 1.55987 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.174484Jy  sigma=0.001275
! Fit after  self-cal, rms=0.174456Jy  sigma=0.001274
! Inverting map 
! Your choice of large map pixels excluded 2.2% of the data.
!  The x-axis pixel size should ideally be below 0.1612 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.174456Jy  sigma=0.001274
! Fit after  self-cal, rms=0.177579Jy  sigma=0.001267
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 2.2% of the data.
!  The x-axis pixel size should ideally be below 0.1612 milli-arcsec
! Estimated beam: bmin=0.7529 mas, bmaj=1.366 mas, bpa=-9.017 degrees
! Estimated noise=338.726 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00672628 Jy
! Component: 100  -  total flux cleaned = -0.00746614 Jy
! Component: 150  -  total flux cleaned = -0.00779338 Jy
! Component: 200  -  total flux cleaned = -0.00808509 Jy
! Total flux subtracted in 200 components = -0.00808509 Jy
! Clean residual min=-0.005728 max=0.003615 Jy/beam
! Clean residual mean=-0.000003 rms=0.001174 Jy/beam
! Combined flux in latest and established models = 1.55179 Jy
selfcal
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 45 components and 1.55179 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.177003Jy  sigma=0.001263
! Fit after  self-cal, rms=0.177032Jy  sigma=0.001263
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 2.2% of the data.
!  The x-axis pixel size should ideally be below 0.1612 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.000160012 Jy
! Component: 100  -  total flux cleaned = -8.99323e-05 Jy
! Component: 150  -  total flux cleaned = -0.000202182 Jy
! Component: 200  -  total flux cleaned = -0.000410258 Jy
! Total flux subtracted in 200 components = -0.000410258 Jy
! Clean residual min=-0.005553 max=0.003611 Jy/beam
! Clean residual mean=-0.000002 rms=0.001137 Jy/beam
! Combined flux in latest and established models = 1.55138 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 47 components and 1.55138 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.176832Jy  sigma=0.001262
! Fit after  self-cal, rms=0.176822Jy  sigma=0.001262
! Inverting map 
! Your choice of large map pixels excluded 2.2% of the data.
!  The x-axis pixel size should ideally be below 0.1612 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.176822Jy  sigma=0.001262
! Fit after  self-cal, rms=0.177444Jy  sigma=0.001260
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 2.2% of the data.
!  The x-axis pixel size should ideally be below 0.1612 milli-arcsec
! Estimated beam: bmin=2.043 mas, bmaj=2.544 mas, bpa=-3.962 degrees
! Estimated noise=445.938 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.0058928 Jy
! Component: 100  -  total flux cleaned = -0.00755543 Jy
! Component: 150  -  total flux cleaned = -0.00769891 Jy
! Component: 200  -  total flux cleaned = -0.00780934 Jy
! Total flux subtracted in 200 components = -0.00780934 Jy
! Clean residual min=-0.006052 max=0.004738 Jy/beam
! Clean residual mean=-0.000003 rms=0.001693 Jy/beam
! Combined flux in latest and established models = 1.54357 Jy
selfcal
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 51 components and 1.54357 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.177298Jy  sigma=0.001259
! Fit after  self-cal, rms=0.177296Jy  sigma=0.001259
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 2.2% of the data.
!  The x-axis pixel size should ideally be below 0.1612 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 = 4.28881e-06 Jy
! Component: 100  -  total flux cleaned = -4.8706e-05 Jy
! Component: 150  -  total flux cleaned = -9.15862e-05 Jy
! Component: 200  -  total flux cleaned = -0.000110854 Jy
! Total flux subtracted in 200 components = -0.000110854 Jy
! Clean residual min=-0.006060 max=0.004811 Jy/beam
! Clean residual mean=-0.000002 rms=0.001697 Jy/beam
! Combined flux in latest and established models = 1.54346 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 54 components and 1.54346 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.177285Jy  sigma=0.001259
! Fit after  self-cal, rms=0.177285Jy  sigma=0.001259
! Inverting map 
! Your choice of large map pixels excluded 2.2% of the data.
!  The x-axis pixel size should ideally be below 0.1612 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.2% of the data.
!  The x-axis pixel size should ideally be below 0.1612 milli-arcsec
! Estimated beam: bmin=0.7543 mas, bmaj=1.37 mas, bpa=-8.974 degrees
! Estimated noise=338.73 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7543 x 1.37 at -8.974 degrees (North through East)
! Clean map  min=-0.0046607  max=1.2409 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.177285Jy  sigma=0.001259
! Fit after  self-cal, rms=0.172996Jy  sigma=0.001186
! Inverting map and beam 
! Your choice of large map pixels excluded 2.2% of the data.
!  The x-axis pixel size should ideally be below 0.1612 milli-arcsec
! Estimated beam: bmin=0.7542 mas, bmaj=1.373 mas, bpa=-9.03 degrees
! Estimated noise=337.733 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00497319 Jy
! Component: 100  -  total flux cleaned = -0.00577934 Jy
! Component: 150  -  total flux cleaned = -0.00649008 Jy
! Component: 200  -  total flux cleaned = -0.00690182 Jy
! Total flux subtracted in 200 components = -0.00690182 Jy
! Clean residual min=-0.004814 max=0.003264 Jy/beam
! Clean residual mean=-0.000008 rms=0.000977 Jy/beam
! Combined flux in latest and established models = 1.53656 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 54 components and 1.53656 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.172666Jy  sigma=0.001184
! Fit after  self-cal, rms=0.172674Jy  sigma=0.001184
! Inverting map 
! Your choice of large map pixels excluded 2.2% of the data.
!  The x-axis pixel size should ideally be below 0.1612 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000286185 Jy
! Component: 100  -  total flux cleaned = -0.00053191 Jy
! Component: 150  -  total flux cleaned = -0.000678358 Jy
! Component: 200  -  total flux cleaned = -0.000818336 Jy
! Total flux subtracted in 200 components = -0.000818336 Jy
! Clean residual min=-0.004738 max=0.003227 Jy/beam
! Clean residual mean=-0.000004 rms=0.000961 Jy/beam
! Combined flux in latest and established models = 1.53574 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 54 components and 1.53574 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.172576Jy  sigma=0.001183
! Fit after  self-cal, rms=0.172575Jy  sigma=0.001183
! Inverting map 
! Your choice of large map pixels excluded 2.2% of the data.
!  The x-axis pixel size should ideally be below 0.1612 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.172575Jy  sigma=0.001183
! Fit after  self-cal, rms=0.173754Jy  sigma=0.001182
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.2% of the data.
!  The x-axis pixel size should ideally be below 0.1612 milli-arcsec
! Estimated beam: bmin=0.6037 mas, bmaj=1.086 mas, bpa=-10.05 degrees
! Estimated noise=814.53 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.930081 Jy
! Component: 100  -  total flux cleaned = 1.16196 Jy
! Component: 150  -  total flux cleaned = 1.27408 Jy
! Component: 200  -  total flux cleaned = 1.34251 Jy
! Total flux subtracted in 200 components = 1.34251 Jy
! Clean residual min=-0.014054 max=0.036864 Jy/beam
! Clean residual mean=0.000441 rms=0.004637 Jy/beam
! Combined flux in latest and established models = 1.34251 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 20 model components to the UV plane model.
! The established model now contains 20 components and 1.34251 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 2.2% of the data.
!  The x-axis pixel size should ideally be below 0.1612 milli-arcsec
! Estimated beam: bmin=0.7554 mas, bmaj=1.376 mas, bpa=-8.994 degrees
! Estimated noise=337.756 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.0719105 Jy
! Component: 100  -  total flux cleaned = 0.11262 Jy
! Component: 150  -  total flux cleaned = 0.137764 Jy
! Component: 200  -  total flux cleaned = 0.154172 Jy
! Total flux subtracted in 200 components = 0.154172 Jy
! Clean residual min=-0.005705 max=0.010607 Jy/beam
! Clean residual mean=0.000174 rms=0.001766 Jy/beam
! Combined flux in latest and established models = 1.49669 Jy
! Adding 37 model components to the UV plane model.
! The established model now contains 46 components and 1.49669 Jy
! Inverting map 
! Your choice of large map pixels excluded 2.2% of the data.
!  The x-axis pixel size should ideally be below 0.1612 milli-arcsec
! Added new window around map position (-0.4, 1.4).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0116255 Jy
! Component: 100  -  total flux cleaned = 0.0192814 Jy
! Component: 150  -  total flux cleaned = 0.024485 Jy
! Component: 200  -  total flux cleaned = 0.0270499 Jy
! Total flux subtracted in 200 components = 0.0270499 Jy
! Clean residual min=-0.004893 max=0.004057 Jy/beam
! Clean residual mean=0.000024 rms=0.000956 Jy/beam
! Combined flux in latest and established models = 1.52374 Jy
! Adding 13 model components to the UV plane model.
! The established model now contains 52 components and 1.52374 Jy
! Inverting map 
! Your choice of large map pixels excluded 2.2% of the data.
!  The x-axis pixel size should ideally be below 0.1612 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.2% of the data.
!  The x-axis pixel size should ideally be below 0.1612 milli-arcsec
! Estimated beam: bmin=2.046 mas, bmaj=2.55 mas, bpa=-4.029 degrees
! Estimated noise=442.496 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00301396 Jy
! Component: 100  -  total flux cleaned = 0.00433385 Jy
! Component: 150  -  total flux cleaned = 0.00456003 Jy
! Component: 200  -  total flux cleaned = 0.00468196 Jy
! Total flux subtracted in 200 components = 0.00468196 Jy
! Clean residual min=-0.005616 max=0.004169 Jy/beam
! Clean residual mean=-0.000002 rms=0.001558 Jy/beam
! Combined flux in latest and established models = 1.52842 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 = 9.60412e-05 Jy
! Component: 100  -  total flux cleaned = 0.000172917 Jy
! Component: 150  -  total flux cleaned = 0.000185878 Jy
! Component: 200  -  total flux cleaned = 0.000209958 Jy
! Total flux subtracted in 200 components = 0.000209958 Jy
! Clean residual min=-0.005586 max=0.004221 Jy/beam
! Clean residual mean=-0.000006 rms=0.001551 Jy/beam
! Combined flux in latest and established models = 1.52863 Jy
! Adding 20 model components to the UV plane model.
! The established model now contains 70 components and 1.52863 Jy
! Inverting map 
! Your choice of large map pixels excluded 2.2% of the data.
!  The x-axis pixel size should ideally be below 0.1612 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 2.2% of the data.
!  The x-axis pixel size should ideally be below 0.1612 milli-arcsec
! Estimated beam: bmin=0.7554 mas, bmaj=1.376 mas, bpa=-8.994 degrees
! Estimated noise=337.756 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00115864 Jy
! Component: 100  -  total flux cleaned = -0.000967313 Jy
! Component: 150  -  total flux cleaned = -0.000610956 Jy
! Component: 200  -  total flux cleaned = -0.000359822 Jy
! Total flux subtracted in 200 components = -0.000359822 Jy
! Clean residual min=-0.004603 max=0.003114 Jy/beam
! Clean residual mean=-0.000002 rms=0.000903 Jy/beam
! Combined flux in latest and established models = 1.52827 Jy
selfcal
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 72 components and 1.52827 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.174210Jy  sigma=0.001185
! Fit after  self-cal, rms=0.174195Jy  sigma=0.001185
wmodel J0121+1149_X_1999_05_10_pus_map.mod
! Writing 72 model components to file: J0121+1149_X_1999_05_10_pus_map.mod
wobs J0121+1149_X_1999_05_10_pus_uvs.fits
! Writing UV FITS file: J0121+1149_X_1999_05_10_pus_uvs.fits
wwins J0121+1149_X_1999_05_10_pus_map.win
! wwins: Wrote 3 windows to J0121+1149_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.2% of the data.
!  The x-axis pixel size should ideally be below 0.1612 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = -0.00167524 Jy
! Component: 100  -  total flux cleaned = -0.00200317 Jy
! Component: 150  -  total flux cleaned = -0.00210675 Jy
! Component: 200  -  total flux cleaned = -0.00220511 Jy
! Component: 250  -  total flux cleaned = -0.00225262 Jy
! Component: 300  -  total flux cleaned = -0.00220709 Jy
! Component: 350  -  total flux cleaned = -0.00216316 Jy
! Component: 400  -  total flux cleaned = -0.00212128 Jy
! Component: 450  -  total flux cleaned = -0.00212111 Jy
! Component: 500  -  total flux cleaned = -0.00208091 Jy
! Component: 550  -  total flux cleaned = -0.00200214 Jy
! Component: 600  -  total flux cleaned = -0.00192478 Jy
! Component: 650  -  total flux cleaned = -0.00192441 Jy
! Component: 700  -  total flux cleaned = -0.00181136 Jy
! Component: 750  -  total flux cleaned = -0.00166363 Jy
! Component: 800  -  total flux cleaned = -0.00162793 Jy
! Component: 850  -  total flux cleaned = -0.00155566 Jy
! Component: 900  -  total flux cleaned = -0.00141332 Jy
! Component: 950  -  total flux cleaned = -0.00120283 Jy
! Component: 1000  -  total flux cleaned = -0.00113281 Jy
! Total flux subtracted in 1024 components = -0.000926243 Jy
! Clean residual min=-0.002251 max=0.001854 Jy/beam
! Clean residual mean=0.000033 rms=0.000695 Jy/beam
! Combined flux in latest and established models = 1.52734 Jy
keep
! Adding 74 model components to the UV plane model.
! The established model now contains 145 components and 1.52734 Jy
![Exited script file: muppet]
wmap "J0121+1149_X_1999_05_10_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 2.2% of the data.
!  The x-axis pixel size should ideally be below 0.1612 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7554 x 1.376 at -8.994 degrees (North through East)
! Clean map  min=-0.0039157  max=1.2424 Jy/beam
! Writing clean map to FITS file: J0121+1149_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 1.24245 
invert
! Inverting map 
! Your choice of large map pixels excluded 2.2% of the data.
!  The x-axis pixel size should ideally be below 0.1612 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000695557 
device "J0121+1149_X_1999_05_10_pus\_map.eps/VPS"
! Attempting to open device: 'J0121+1149_X_1999_05_10_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.167948 0.167948 0.335897 0.671793 1.34359 2.68717 5.37435 10.7487 21.4974 42.9948 85.9895
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.002 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.242 
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.7554 x 1.376 at -8.994 degrees (North through East)
! Clean map  min=-0.0039157  max=1.2424 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0121+1149_X_1999_05_10_pus\_map.gif/vgif"
! Attempting to open device: 'J0121+1149_X_1999_05_10_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0121+1149_X_1999_05_10_pus_uvs.log closed on Tue Jan 15 14:48:15 2008