! Started logfile: J0530+1331_X_1999_05_10_pus_uvs.log on Mon Jan 14 12:35:12 2008
obs J0530+1331_X_1999_05_10_pus_uva.fits
! Reading UV FITS file: J0530+1331_X_1999_05_10_pus_uva.fits
! AN table 1: 88 integrations on 153 of 153 possible baselines.
! AN table 2: 84 integrations on 153 of 153 possible baselines.
! AN table 3: 164 integrations on 153 of 153 possible baselines.
! Apparent sampling: 0.149413 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0530+1331
! 
! 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 1759 lines of history.
! 
! Reading 30724 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 J0530+1331_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 1075 telescope corrections were flagged in sub-array 1.
!  A total of 1116 telescope corrections were flagged in sub-array 2.
!  A total of 1893 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 1075 telescope corrections were flagged in sub-array 1.
!  A total of 1116 telescope corrections were flagged in sub-array 2.
!  A total of 1884 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 1075 telescope corrections were flagged in sub-array 1.
!  A total of 1116 telescope corrections were flagged in sub-array 2.
!  A total of 1884 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 1107 telescope corrections were flagged in sub-array 1.
!  A total of 1155 telescope corrections were flagged in sub-array 2.
!  A total of 1884 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=1.157903Jy  sigma=0.010688
! Fit after  self-cal, rms=0.915361Jy  sigma=0.009152
! 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 0.478% of the data.
!  The x-axis pixel size should ideally be below 0.1913 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1722 milli-arcsec
! Estimated beam: bmin=0.6135 mas, bmaj=0.9987 mas, bpa=-3.274 degrees
! Estimated noise=994.572 mJy/beam.
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! Added new window around map position (0, 0).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 1.17381 Jy
! Component: 100  -  total flux cleaned = 1.53484 Jy
! Total flux subtracted in 100 components = 1.53484 Jy
! Clean residual min=-0.045594 max=0.185107 Jy/beam
! Clean residual mean=0.003432 rms=0.019887 Jy/beam
! Combined flux in latest and established models = 1.53484 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 9 components and 1.53484 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.596976Jy  sigma=0.005511
! Fit after  self-cal, rms=0.595765Jy  sigma=0.005504
! Inverting map 
! Your choice of large map pixels excluded 0.478% of the data.
!  The x-axis pixel size should ideally be below 0.1913 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1722 milli-arcsec
! Added new window around map position (0.6, 0.8).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.209114 Jy
! Component: 100  -  total flux cleaned = 0.347039 Jy
! Total flux subtracted in 100 components = 0.347039 Jy
! Clean residual min=-0.034455 max=0.122680 Jy/beam
! Clean residual mean=0.001957 rms=0.012630 Jy/beam
! Combined flux in latest and established models = 1.88188 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 22 components and 1.88188 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.474030Jy  sigma=0.003775
! Fit after  self-cal, rms=0.467229Jy  sigma=0.003716
! Inverting map 
! Your choice of large map pixels excluded 0.478% of the data.
!  The x-axis pixel size should ideally be below 0.1913 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1722 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.112893 Jy
! Component: 100  -  total flux cleaned = 0.189688 Jy
! Total flux subtracted in 100 components = 0.189688 Jy
! Clean residual min=-0.025654 max=0.083243 Jy/beam
! Clean residual mean=0.001152 rms=0.008894 Jy/beam
! Combined flux in latest and established models = 2.07156 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 29 components and 2.07156 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.426825Jy  sigma=0.003005
! Fit after  self-cal, rms=0.423162Jy  sigma=0.002970
! Inverting map 
! Your choice of large map pixels excluded 0.478% of the data.
!  The x-axis pixel size should ideally be below 0.1913 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1722 milli-arcsec
! Added new window around map position (-1, -1.2).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0743175 Jy
! Component: 100  -  total flux cleaned = 0.125339 Jy
! Total flux subtracted in 100 components = 0.125339 Jy
! Clean residual min=-0.020650 max=0.034975 Jy/beam
! Clean residual mean=0.000632 rms=0.006640 Jy/beam
! Combined flux in latest and established models = 2.1969 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 35 components and 2.1969 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.406761Jy  sigma=0.002638
! Fit after  self-cal, rms=0.406236Jy  sigma=0.002636
! Inverting map 
! Your choice of large map pixels excluded 0.478% of the data.
!  The x-axis pixel size should ideally be below 0.1913 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1722 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 0.478% of the data.
!  The x-axis pixel size should ideally be below 0.1913 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1722 milli-arcsec
! Estimated beam: bmin=0.868 mas, bmaj=1.411 mas, bpa=-4.916 degrees
! Estimated noise=462.3 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.0610798 Jy
! Component: 100  -  total flux cleaned = 0.0980341 Jy
! Component: 150  -  total flux cleaned = 0.121732 Jy
! Component: 200  -  total flux cleaned = 0.137108 Jy
! Total flux subtracted in 200 components = 0.137108 Jy
! Clean residual min=-0.024916 max=0.036742 Jy/beam
! Clean residual mean=-0.002054 rms=0.007202 Jy/beam
! Combined flux in latest and established models = 2.33401 Jy
! Performing phase self-cal
! Adding 34 model components to the UV plane model.
! The established model now contains 58 components and 2.33401 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.400181Jy  sigma=0.002453
! Fit after  self-cal, rms=0.399742Jy  sigma=0.002450
! Inverting map 
! Your choice of large map pixels excluded 0.478% of the data.
!  The x-axis pixel size should ideally be below 0.1913 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1722 milli-arcsec
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 48 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        0.96     GC        1.03     HH        0.91     
!   HN        1.00     KK        0.94     KP        1.00     LA        0.96     
!   MC        0.97     MK        1.00*    NL        1.05     NY        1.06     
!   ON        0.96     OV        0.97     PT        1.03     SC        1.09     
!   WF        1.19     WZ        1.04     
! 
!  A total of 24 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.95     FD        0.97     GC        1.17     HH        0.94     
!   HN        0.99     KK        1.00*    KP        0.99     LA        0.98     
!   MC        1.08     MK        1.00*    NL        1.05     NY        1.05     
!   ON        0.91     OV        1.00     PT        1.04     SC        1.02     
!   WF        0.99     WZ        0.95     
! 
!  A total of 27 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        0.96     GC        1.04     HH        1.00*    
!   HN        1.00     KK        0.97     KP        1.00     LA        0.98     
!   MC        1.00*    MK        0.99     NL        1.08     NY        1.20     
!   ON        1.00*    OV        0.97     PT        1.02     SC        1.00*    
!   WF        1.18     WZ        1.00*    
! 
! 
! Correcting IF 2.
!  A total of 48 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        0.94     GC        1.01     HH        0.95     
!   HN        0.98     KK        0.95     KP        1.01     LA        0.97     
!   MC        0.98     MK        1.00*    NL        1.00     NY        1.10     
!   ON        0.97     OV        0.95     PT        0.95     SC        1.08     
!   WF        1.05     WZ        1.09     
! 
!  A total of 24 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.96     FD        0.97     GC        1.15     HH        1.06     
!   HN        1.04     KK        1.00*    KP        1.01     LA        0.98     
!   MC        1.12     MK        1.00*    NL        0.99     NY        1.07     
!   ON        0.88     OV        0.98     PT        0.95     SC        1.05     
!   WF        1.10     WZ        1.03     
! 
!  A total of 27 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        0.96     GC        1.01     HH        1.00*    
!   HN        0.99     KK        0.96     KP        1.01     LA        0.98     
!   MC        1.00*    MK        0.98     NL        1.04     NY        1.26     
!   ON        1.00*    OV        0.95     PT        0.94     SC        1.00*    
!   WF        1.13     WZ        1.00*    
! 
! 
! Correcting IF 3.
!  A total of 48 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.03     FD        0.97     GC        0.98     HH        0.94     
!   HN        1.00     KK        0.99     KP        1.02     LA        0.95     
!   MC        1.02     MK        1.00*    NL        1.00     NY        1.14     
!   ON        0.97     OV        0.97     PT        0.96     SC        1.09     
!   WF        1.06     WZ        1.12     
! 
!  A total of 24 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.98     FD        1.00     GC        1.11     HH        1.00     
!   HN        1.01     KK        1.00*    KP        1.03     LA        0.98     
!   MC        1.11     MK        1.00*    NL        0.99     NY        1.11     
!   ON        0.93     OV        1.00     PT        0.96     SC        1.02     
!   WF        1.05     WZ        1.00     
! 
!  A total of 27 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.03     FD        0.98     GC        0.98     HH        1.00*    
!   HN        0.99     KK        1.02     KP        1.03     LA        0.98     
!   MC        1.00*    MK        0.96     NL        1.03     NY        1.34     
!   ON        1.00*    OV        0.97     PT        0.95     SC        1.00*    
!   WF        1.11     WZ        1.00*    
! 
! 
! Correcting IF 4.
!  A total of 63 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        0.96     GC        1.00     HH        1.06     
!   HN        1.00     KK        0.96     KP        1.00     LA        0.97     
!   MC        0.98     MK        1.00*    NL        1.00     NY        1.21     
!   ON        0.96     OV        0.96     PT        0.98     SC        1.06     
!   WF        1.05     WZ        1.00*    
! 
!  A total of 24 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.96     FD        0.98     GC        1.14     HH        1.06     
!   HN        0.98     KK        1.00*    KP        1.02     LA        0.99     
!   MC        1.09     MK        1.00*    NL        0.94     NY        1.15     
!   ON        0.90     OV        1.01     PT        1.00     SC        0.99     
!   WF        1.05     WZ        1.00*    
! 
!  A total of 27 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        0.97     GC        1.00     HH        1.00*    
!   HN        0.99     KK        0.99     KP        1.01     LA        0.99     
!   MC        1.00*    MK        0.97     NL        1.04     NY        1.41     
!   ON        1.00*    OV        0.97     PT        0.98     SC        1.00*    
!   WF        1.10     WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.399742Jy  sigma=0.002450
! Fit after  self-cal, rms=0.427099Jy  sigma=0.002248
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 0.485% of the data.
!  The x-axis pixel size should ideally be below 0.1913 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1722 milli-arcsec
! Estimated beam: bmin=0.8794 mas, bmaj=1.447 mas, bpa=-5.698 degrees
! Estimated noise=465.486 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.2, 3.4).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00297136 Jy
! Component: 100  -  total flux cleaned = 0.00222795 Jy
! Component: 150  -  total flux cleaned = 0.000750062 Jy
! Component: 200  -  total flux cleaned = 8.87561e-06 Jy
! Total flux subtracted in 200 components = 8.87561e-06 Jy
! Clean residual min=-0.012182 max=0.009719 Jy/beam
! Clean residual mean=-0.001272 rms=0.003047 Jy/beam
! Combined flux in latest and established models = 2.33402 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 83 components and 2.33402 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.424857Jy  sigma=0.002213
! Fit after  self-cal, rms=0.424977Jy  sigma=0.002208
! Inverting map 
! Your choice of large map pixels excluded 0.485% of the data.
!  The x-axis pixel size should ideally be below 0.1913 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1722 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.424977Jy  sigma=0.002208
! Fit after  self-cal, rms=0.425866Jy  sigma=0.002181
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 0.485% of the data.
!  The x-axis pixel size should ideally be below 0.1913 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1722 milli-arcsec
! Estimated beam: bmin=0.8813 mas, bmaj=1.451 mas, bpa=-5.798 degrees
! Estimated noise=465.128 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00075056 Jy
! Component: 100  -  total flux cleaned = 6.62395e-05 Jy
! Component: 150  -  total flux cleaned = 0.00109336 Jy
! Component: 200  -  total flux cleaned = 0.00166999 Jy
! Total flux subtracted in 200 components = 0.00166999 Jy
! Clean residual min=-0.009369 max=0.007545 Jy/beam
! Clean residual mean=-0.000534 rms=0.002260 Jy/beam
! Combined flux in latest and established models = 2.33569 Jy
selfcal
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 95 components and 2.33569 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.425170Jy  sigma=0.002171
! Fit after  self-cal, rms=0.425158Jy  sigma=0.002170
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 0.485% of the data.
!  The x-axis pixel size should ideally be below 0.1913 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1722 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.00123078 Jy
! Component: 100  -  total flux cleaned = 0.00228849 Jy
! Component: 150  -  total flux cleaned = 0.00252638 Jy
! Component: 200  -  total flux cleaned = 0.00274301 Jy
! Total flux subtracted in 200 components = 0.00274301 Jy
! Clean residual min=-0.008636 max=0.006257 Jy/beam
! Clean residual mean=-0.000575 rms=0.002044 Jy/beam
! Combined flux in latest and established models = 2.33843 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 100 components and 2.33843 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.424865Jy  sigma=0.002166
! Fit after  self-cal, rms=0.424803Jy  sigma=0.002165
! Inverting map 
! Your choice of large map pixels excluded 0.485% of the data.
!  The x-axis pixel size should ideally be below 0.1913 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1722 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.424803Jy  sigma=0.002165
! Fit after  self-cal, rms=0.425794Jy  sigma=0.002163
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 0.485% of the data.
!  The x-axis pixel size should ideally be below 0.1913 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1722 milli-arcsec
! Estimated beam: bmin=0.8817 mas, bmaj=1.452 mas, bpa=-5.825 degrees
! Estimated noise=464.737 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00300709 Jy
! Component: 100  -  total flux cleaned = -0.00274774 Jy
! Component: 150  -  total flux cleaned = -0.00231317 Jy
! Component: 200  -  total flux cleaned = -0.00212305 Jy
! Total flux subtracted in 200 components = -0.00212305 Jy
! Clean residual min=-0.007298 max=0.005721 Jy/beam
! Clean residual mean=-0.000418 rms=0.001765 Jy/beam
! Combined flux in latest and established models = 2.33631 Jy
selfcal
! Performing phase self-cal
! Adding 29 model components to the UV plane model.
! The established model now contains 106 components and 2.33631 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.425515Jy  sigma=0.002159
! Fit after  self-cal, rms=0.425484Jy  sigma=0.002159
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 0.485% of the data.
!  The x-axis pixel size should ideally be below 0.1913 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1722 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.000331715 Jy
! Component: 100  -  total flux cleaned = 0.000887089 Jy
! Component: 150  -  total flux cleaned = 0.00121485 Jy
! Component: 200  -  total flux cleaned = 0.00136279 Jy
! Total flux subtracted in 200 components = 0.00136279 Jy
! Clean residual min=-0.006953 max=0.005436 Jy/beam
! Clean residual mean=-0.000439 rms=0.001651 Jy/beam
! Combined flux in latest and established models = 2.33767 Jy
! Performing phase self-cal
! Adding 29 model components to the UV plane model.
! The established model now contains 110 components and 2.33767 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.425334Jy  sigma=0.002157
! Fit after  self-cal, rms=0.425296Jy  sigma=0.002157
! Inverting map 
! Your choice of large map pixels excluded 0.485% of the data.
!  The x-axis pixel size should ideally be below 0.1913 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1722 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.425296Jy  sigma=0.002157
! Fit after  self-cal, rms=0.425995Jy  sigma=0.002156
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 0.485% of the data.
!  The x-axis pixel size should ideally be below 0.1913 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1722 milli-arcsec
! Estimated beam: bmin=2.394 mas, bmaj=2.687 mas, bpa=-6.584 degrees
! Estimated noise=560.037 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00342085 Jy
! Component: 100  -  total flux cleaned = -0.00379365 Jy
! Component: 150  -  total flux cleaned = -0.00380106 Jy
! Component: 200  -  total flux cleaned = -0.00370278 Jy
! Total flux subtracted in 200 components = -0.00370278 Jy
! Clean residual min=-0.006010 max=0.003643 Jy/beam
! Clean residual mean=-0.000810 rms=0.001589 Jy/beam
! Combined flux in latest and established models = 2.33397 Jy
selfcal
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 127 components and 2.33397 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.425884Jy  sigma=0.002155
! Fit after  self-cal, rms=0.425829Jy  sigma=0.002154
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 0.485% of the data.
!  The x-axis pixel size should ideally be below 0.1913 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1722 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.000342768 Jy
! Component: 100  -  total flux cleaned = 0.00118452 Jy
! Component: 150  -  total flux cleaned = 0.00128212 Jy
! Component: 200  -  total flux cleaned = 0.00151172 Jy
! Total flux subtracted in 200 components = 0.00151172 Jy
! Clean residual min=-0.005540 max=0.003667 Jy/beam
! Clean residual mean=-0.000862 rms=0.001513 Jy/beam
! Combined flux in latest and established models = 2.33548 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 136 components and 2.33548 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.425795Jy  sigma=0.002154
! Fit after  self-cal, rms=0.425761Jy  sigma=0.002153
! Inverting map 
! Your choice of large map pixels excluded 0.485% of the data.
!  The x-axis pixel size should ideally be below 0.1913 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1722 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 0.485% of the data.
!  The x-axis pixel size should ideally be below 0.1913 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1722 milli-arcsec
! Estimated beam: bmin=0.882 mas, bmaj=1.453 mas, bpa=-5.856 degrees
! Estimated noise=464.503 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.882 x 1.453 at -5.856 degrees (North through East)
! Clean map  min=-0.013608  max=1.6243 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.425761Jy  sigma=0.002153
! Fit after  self-cal, rms=0.501528Jy  sigma=0.002052
! Inverting map and beam 
! Your choice of large map pixels excluded 0.485% of the data.
!  The x-axis pixel size should ideally be below 0.1913 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1722 milli-arcsec
! Estimated beam: bmin=0.882 mas, bmaj=1.453 mas, bpa=-5.839 degrees
! Estimated noise=463.925 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00302209 Jy
! Component: 100  -  total flux cleaned = -0.00302937 Jy
! Component: 150  -  total flux cleaned = -0.00289016 Jy
! Component: 200  -  total flux cleaned = -0.00275906 Jy
! Total flux subtracted in 200 components = -0.00275906 Jy
! Clean residual min=-0.005209 max=0.005064 Jy/beam
! Clean residual mean=-0.000346 rms=0.001294 Jy/beam
! Combined flux in latest and established models = 2.33272 Jy
! Performing phase self-cal
! Adding 18 model components to the UV plane model.
! The established model now contains 140 components and 2.33272 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.501420Jy  sigma=0.002051
! Fit after  self-cal, rms=0.501408Jy  sigma=0.002051
! Inverting map 
! Your choice of large map pixels excluded 0.485% of the data.
!  The x-axis pixel size should ideally be below 0.1913 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1722 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000188011 Jy
! Component: 100  -  total flux cleaned = 0.000300722 Jy
! Component: 150  -  total flux cleaned = 0.000522411 Jy
! Component: 200  -  total flux cleaned = 0.000624116 Jy
! Total flux subtracted in 200 components = 0.000624116 Jy
! Clean residual min=-0.005075 max=0.004825 Jy/beam
! Clean residual mean=-0.000356 rms=0.001257 Jy/beam
! Combined flux in latest and established models = 2.33334 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 140 components and 2.33334 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.501338Jy  sigma=0.002050
! Fit after  self-cal, rms=0.501322Jy  sigma=0.002050
! Inverting map 
! Your choice of large map pixels excluded 0.485% of the data.
!  The x-axis pixel size should ideally be below 0.1913 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1722 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.501322Jy  sigma=0.002050
! Fit after  self-cal, rms=0.668659Jy  sigma=0.002049
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 0.485% of the data.
!  The x-axis pixel size should ideally be below 0.1913 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1722 milli-arcsec
! Estimated beam: bmin=0.6252 mas, bmaj=1.02 mas, bpa=-4.486 degrees
! Estimated noise=1020.04 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 1.19623 Jy
! Component: 100  -  total flux cleaned = 1.57978 Jy
! Component: 150  -  total flux cleaned = 1.79565 Jy
! Component: 200  -  total flux cleaned = 1.92586 Jy
! Total flux subtracted in 200 components = 1.92586 Jy
! Clean residual min=-0.016790 max=0.068836 Jy/beam
! Clean residual mean=0.001654 rms=0.008234 Jy/beam
! Combined flux in latest and established models = 1.92586 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 18 model components to the UV plane model.
! The established model now contains 18 components and 1.92586 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 0.485% of the data.
!  The x-axis pixel size should ideally be below 0.1913 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1722 milli-arcsec
! Estimated beam: bmin=0.8825 mas, bmaj=1.454 mas, bpa=-5.877 degrees
! Estimated noise=463.733 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.146319 Jy
! Component: 100  -  total flux cleaned = 0.223895 Jy
! Component: 150  -  total flux cleaned = 0.274751 Jy
! Component: 200  -  total flux cleaned = 0.310757 Jy
! Total flux subtracted in 200 components = 0.310757 Jy
! Clean residual min=-0.008983 max=0.021265 Jy/beam
! Clean residual mean=0.001165 rms=0.004523 Jy/beam
! Combined flux in latest and established models = 2.23661 Jy
! Adding 66 model components to the UV plane model.
! The established model now contains 70 components and 2.23661 Jy
! Inverting map 
! Your choice of large map pixels excluded 0.485% of the data.
!  The x-axis pixel size should ideally be below 0.1913 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1722 milli-arcsec
! Added new window around map position (1.4, 0.8).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0264267 Jy
! Component: 100  -  total flux cleaned = 0.0460159 Jy
! Component: 150  -  total flux cleaned = 0.0602374 Jy
! Component: 200  -  total flux cleaned = 0.0668138 Jy
! Total flux subtracted in 200 components = 0.0668138 Jy
! Clean residual min=-0.008227 max=0.007457 Jy/beam
! Clean residual mean=0.000097 rms=0.002114 Jy/beam
! Combined flux in latest and established models = 2.30343 Jy
! Adding 42 model components to the UV plane model.
! The established model now contains 98 components and 2.30343 Jy
! Inverting map 
! Your choice of large map pixels excluded 0.485% of the data.
!  The x-axis pixel size should ideally be below 0.1913 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1722 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 0.485% of the data.
!  The x-axis pixel size should ideally be below 0.1913 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1722 milli-arcsec
! Estimated beam: bmin=2.394 mas, bmaj=2.689 mas, bpa=-6.493 degrees
! Estimated noise=558.421 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0147122 Jy
! Component: 100  -  total flux cleaned = 0.0197 Jy
! Component: 150  -  total flux cleaned = 0.0219187 Jy
! Component: 200  -  total flux cleaned = 0.0234174 Jy
! Total flux subtracted in 200 components = 0.0234174 Jy
! Clean residual min=-0.004929 max=0.003976 Jy/beam
! Clean residual mean=-0.000660 rms=0.001531 Jy/beam
! Combined flux in latest and established models = 2.32684 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.000902072 Jy
! Component: 100  -  total flux cleaned = 0.00125349 Jy
! Component: 150  -  total flux cleaned = 0.00135262 Jy
! Component: 200  -  total flux cleaned = 0.00161105 Jy
! Total flux subtracted in 200 components = 0.00161105 Jy
! Clean residual min=-0.004496 max=0.003386 Jy/beam
! Clean residual mean=-0.000723 rms=0.001283 Jy/beam
! Combined flux in latest and established models = 2.32846 Jy
! Adding 43 model components to the UV plane model.
! The established model now contains 126 components and 2.32846 Jy
! Inverting map 
! Your choice of large map pixels excluded 0.485% of the data.
!  The x-axis pixel size should ideally be below 0.1913 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1722 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 0.485% of the data.
!  The x-axis pixel size should ideally be below 0.1913 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1722 milli-arcsec
! Estimated beam: bmin=0.8825 mas, bmaj=1.454 mas, bpa=-5.877 degrees
! Estimated noise=463.733 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00122853 Jy
! Component: 100  -  total flux cleaned = 0.000324325 Jy
! Component: 150  -  total flux cleaned = 0.00107913 Jy
! Component: 200  -  total flux cleaned = 0.00124722 Jy
! Total flux subtracted in 200 components = 0.00124722 Jy
! Clean residual min=-0.005617 max=0.005475 Jy/beam
! Clean residual mean=-0.000320 rms=0.001300 Jy/beam
! Combined flux in latest and established models = 2.3297 Jy
selfcal
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 133 components and 2.3297 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.668545Jy  sigma=0.002050
! Fit after  self-cal, rms=0.668548Jy  sigma=0.002049
wmodel J0530+1331_X_1999_05_10_pus_map.mod
! Writing 133 model components to file: J0530+1331_X_1999_05_10_pus_map.mod
wobs J0530+1331_X_1999_05_10_pus_uvs.fits
! Writing UV FITS file: J0530+1331_X_1999_05_10_pus_uvs.fits
wwins J0530+1331_X_1999_05_10_pus_map.win
! wwins: Wrote 5 windows to J0530+1331_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 0.485% of the data.
!  The x-axis pixel size should ideally be below 0.1913 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1722 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.000648494 Jy
! Component: 100  -  total flux cleaned = -3.19081e-05 Jy
! Component: 150  -  total flux cleaned = -0.000729097 Jy
! Component: 200  -  total flux cleaned = -0.0015919 Jy
! Component: 250  -  total flux cleaned = -0.00248347 Jy
! Component: 300  -  total flux cleaned = -0.00354129 Jy
! Component: 350  -  total flux cleaned = -0.00443601 Jy
! Component: 400  -  total flux cleaned = -0.00530662 Jy
! Component: 450  -  total flux cleaned = -0.00603511 Jy
! Component: 500  -  total flux cleaned = -0.00680685 Jy
! Component: 550  -  total flux cleaned = -0.00750334 Jy
! Component: 600  -  total flux cleaned = -0.00829824 Jy
! Component: 650  -  total flux cleaned = -0.00885508 Jy
! Component: 700  -  total flux cleaned = -0.00940214 Jy
! Component: 750  -  total flux cleaned = -0.00988613 Jy
! Component: 800  -  total flux cleaned = -0.010309 Jy
! Component: 850  -  total flux cleaned = -0.010569 Jy
! Component: 900  -  total flux cleaned = -0.0109279 Jy
! Component: 950  -  total flux cleaned = -0.0112309 Jy
! Component: 1000  -  total flux cleaned = -0.0115789 Jy
! Total flux subtracted in 1024 components = -0.0116283 Jy
! Clean residual min=-0.002960 max=0.002455 Jy/beam
! Clean residual mean=-0.000174 rms=0.000966 Jy/beam
! Combined flux in latest and established models = 2.31807 Jy
keep
! Adding 71 model components to the UV plane model.
! The established model now contains 201 components and 2.31807 Jy
![Exited script file: muppet]
wmap "J0530+1331_X_1999_05_10_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 0.485% of the data.
!  The x-axis pixel size should ideally be below 0.1913 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1722 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.8825 x 1.454 at -5.877 degrees (North through East)
! Clean map  min=-0.011443  max=1.6275 Jy/beam
! Writing clean map to FITS file: J0530+1331_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.6275 
invert
! Inverting map 
! Your choice of large map pixels excluded 0.485% of the data.
!  The x-axis pixel size should ideally be below 0.1913 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1722 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.00096241 
device "J0530+1331_X_1999_05_10_pus\_map.eps/VPS"
! Attempting to open device: 'J0530+1331_X_1999_05_10_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.177402 0.177402 0.354805 0.70961 1.41922 2.83844 5.67688 11.3538 22.7075 45.415 90.83
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0028 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.627 
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.8825 x 1.454 at -5.877 degrees (North through East)
! Clean map  min=-0.011443  max=1.6275 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0530+1331_X_1999_05_10_pus\_map.gif/vgif"
! Attempting to open device: 'J0530+1331_X_1999_05_10_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0530+1331_X_1999_05_10_pus_uvs.log closed on Mon Jan 14 12:35:28 2008