! Started logfile: J0136+4751_X_2001_10_29_pus_uvs.log on Mon Feb 25 16:05:45 2008
obs J0136+4751_X_2001_10_29_pus_uva.fits
! Reading UV FITS file: J0136+4751_X_2001_10_29_pus_uva.fits
! AN table 1: 176 integrations on 153 of 153 possible baselines.
! AN table 2: 117 integrations on 153 of 153 possible baselines.
! AN table 3: 37 integrations on 153 of 153 possible baselines.
! Apparent sampling: 0.211369 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0136+4751
! 
! 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 1970 lines of history.
! 
! Reading 42688 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 J0136+4751_X_2001_10_29_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 1770 telescope corrections were flagged in sub-array 1.
!  A total of 1179 telescope corrections were flagged in sub-array 2.
!  A total of 431 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 2.
!  A total of 1770 telescope corrections were flagged in sub-array 1.
!  A total of 1179 telescope corrections were flagged in sub-array 2.
!  A total of 431 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 3.
!  A total of 1770 telescope corrections were flagged in sub-array 1.
!  A total of 1179 telescope corrections were flagged in sub-array 2.
!  A total of 431 telescope corrections were flagged in sub-array 3.
! 
! Correcting IF 4.
!  A total of 1770 telescope corrections were flagged in sub-array 1.
!  A total of 1179 telescope corrections were flagged in sub-array 2.
!  A total of 431 telescope corrections were flagged in sub-array 3.
! 
! Fit before self-cal, rms=2.785872Jy  sigma=0.024264
! Fit after  self-cal, rms=2.399735Jy  sigma=0.021138
! 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.94% of the data.
!  The x-axis pixel size should ideally be below 0.1536 milli-arcsec
!  The y-axis pixel size should ideally be below 0.185 milli-arcsec
! Estimated beam: bmin=0.5414 mas, bmaj=0.6694 mas, bpa=7.951 degrees
! Estimated noise=873.319 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 = 2.57172 Jy
! Component: 100  -  total flux cleaned = 3.14375 Jy
! Total flux subtracted in 100 components = 3.14375 Jy
! Clean residual min=-0.062413 max=0.202171 Jy/beam
! Clean residual mean=0.000509 rms=0.016832 Jy/beam
! Combined flux in latest and established models = 3.14374 Jy
! Performing phase self-cal
! Adding 4 model components to the UV plane model.
! The established model now contains 4 components and 3.14374 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.469878Jy  sigma=0.004002
! Fit after  self-cal, rms=0.469487Jy  sigma=0.004000
! Inverting map 
! Your choice of large map pixels excluded 2.94% of the data.
!  The x-axis pixel size should ideally be below 0.1536 milli-arcsec
!  The y-axis pixel size should ideally be below 0.185 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.220744 Jy
! Component: 100  -  total flux cleaned = 0.339777 Jy
! Total flux subtracted in 100 components = 0.339777 Jy
! Clean residual min=-0.049836 max=0.070586 Jy/beam
! Clean residual mean=0.000090 rms=0.011133 Jy/beam
! Combined flux in latest and established models = 3.48352 Jy
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 7 components and 3.48352 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.352825Jy  sigma=0.002662
! Fit after  self-cal, rms=0.352072Jy  sigma=0.002658
! Inverting map 
! Your choice of large map pixels excluded 2.94% of the data.
!  The x-axis pixel size should ideally be below 0.1536 milli-arcsec
!  The y-axis pixel size should ideally be below 0.185 milli-arcsec
! Added new window around map position (-1, 2.4).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0742816 Jy
! Component: 100  -  total flux cleaned = 0.123617 Jy
! Total flux subtracted in 100 components = 0.123617 Jy
! Clean residual min=-0.046349 max=0.057064 Jy/beam
! Clean residual mean=-0.000091 rms=0.010137 Jy/beam
! Combined flux in latest and established models = 3.60714 Jy
! Performing phase self-cal
! Adding 9 model components to the UV plane model.
! The established model now contains 12 components and 3.60714 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.339438Jy  sigma=0.002480
! Fit after  self-cal, rms=0.338941Jy  sigma=0.002476
! Inverting map 
! Your choice of large map pixels excluded 2.94% of the data.
!  The x-axis pixel size should ideally be below 0.1536 milli-arcsec
!  The y-axis pixel size should ideally be below 0.185 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.94% of the data.
!  The x-axis pixel size should ideally be below 0.1536 milli-arcsec
!  The y-axis pixel size should ideally be below 0.185 milli-arcsec
! Estimated beam: bmin=0.7179 mas, bmaj=0.9176 mas, bpa=6.022 degrees
! Estimated noise=416.494 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.0423414 Jy
! Component: 100  -  total flux cleaned = 0.0547706 Jy
! Component: 150  -  total flux cleaned = 0.0585495 Jy
! Component: 200  -  total flux cleaned = 0.06057 Jy
! Total flux subtracted in 200 components = 0.06057 Jy
! Clean residual min=-0.045342 max=0.048546 Jy/beam
! Clean residual mean=-0.000946 rms=0.011265 Jy/beam
! Combined flux in latest and established models = 3.66771 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 23 components and 3.66771 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.333136Jy  sigma=0.002417
! Fit after  self-cal, rms=0.332440Jy  sigma=0.002412
! Inverting map 
! Your choice of large map pixels excluded 2.94% of the data.
!  The x-axis pixel size should ideally be below 0.1536 milli-arcsec
!  The y-axis pixel size should ideally be below 0.185 milli-arcsec
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 12 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.00     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.01     KK        0.99     KP        1.04     LA        1.01     
!   MA        0.96     MC        0.91     MK        0.98     NL        0.99     
!   OV        0.96     PT        1.01     SC        1.08     TS        0.92     
!   WF        0.97     WZ        1.07     
! 
!  A total of 54 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.04     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        0.98     KK        1.02     KP        1.01     LA        0.97     
!   MA        0.97     MC        1.03     MK        1.01     NL        1.00     
!   OV        0.99     PT        1.02     SC        0.97     TS        0.97     
!   WF        1.00     WZ        1.00     
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.06     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.03     KK        1.00*    KP        1.00*    LA        1.00*    
!   MA        0.94     MC        0.88     MK        1.00*    NL        1.03     
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        0.95     
!   WF        0.92     WZ        0.94     
! 
! 
! Correcting IF 2.
!  A total of 12 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.00     KK        1.03     KP        1.05     LA        0.99     
!   MA        0.94     MC        0.93     MK        0.97     NL        0.95     
!   OV        0.96     PT        0.99     SC        1.04     TS        0.91     
!   WF        0.97     WZ        1.07     
! 
!  A total of 54 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.05     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        0.97     KK        1.06     KP        1.02     LA        0.95     
!   MA        0.97     MC        1.04     MK        1.00     NL        0.96     
!   OV        0.99     PT        0.99     SC        0.93     TS        0.97     
!   WF        0.98     WZ        0.98     
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.07     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.02     KK        1.00*    KP        1.00*    LA        1.00*    
!   MA        0.93     MC        0.88     MK        1.00*    NL        0.99     
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        0.96     
!   WF        0.90     WZ        0.94     
! 
! 
! Correcting IF 3.
!  A total of 12 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.98     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.01     KK        0.99     KP        1.04     LA        1.02     
!   MA        0.88     MC        0.88     MK        0.98     NL        0.98     
!   OV        0.94     PT        1.01     SC        1.06     TS        0.89     
!   WF        0.99     WZ        1.05     
! 
!  A total of 54 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.02     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        0.98     KK        1.02     KP        1.00     LA        0.98     
!   MA        0.97     MC        1.00     MK        1.01     NL        1.00     
!   OV        0.97     PT        1.01     SC        0.95     TS        0.96     
!   WF        1.02     WZ        0.97     
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.04     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.03     KK        1.00*    KP        1.00*    LA        1.00*    
!   MA        0.88     MC        0.84     MK        1.00*    NL        1.03     
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        0.95     
!   WF        0.94     WZ        0.94     
! 
! 
! Correcting IF 4.
!  A total of 12 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.02     KK        0.99     KP        1.06     LA        1.00     
!   MA        0.93     MC        0.89     MK        1.02     NL        1.00     
!   OV        0.93     PT        1.01     SC        1.10     TS        0.92     
!   WF        1.00     WZ        1.00     
! 
!  A total of 54 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.06     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        0.99     KK        1.01     KP        1.01     LA        0.96     
!   MA        0.97     MC        1.03     MK        1.05     NL        1.01     
!   OV        0.96     PT        1.01     SC        0.99     TS        0.98     
!   WF        1.02     WZ        0.93     
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.07     FD        1.00*    GG        1.00*    HH        1.00*    
!   HN        1.05     KK        1.00*    KP        1.00*    LA        1.00*    
!   MA        0.92     MC        0.85     MK        1.00*    NL        1.04     
!   OV        1.00*    PT        1.00*    SC        1.00*    TS        0.94     
!   WF        0.92     WZ        0.91     
! 
! 
! Fit before self-cal, rms=0.332440Jy  sigma=0.002412
! Fit after  self-cal, rms=0.265784Jy  sigma=0.001824
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 2.89% of the data.
!  The x-axis pixel size should ideally be below 0.1536 milli-arcsec
!  The y-axis pixel size should ideally be below 0.185 milli-arcsec
! Estimated beam: bmin=0.7167 mas, bmaj=0.9161 mas, bpa=6.423 degrees
! Estimated noise=417.135 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 (-2, 1.2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0201813 Jy
! Component: 100  -  total flux cleaned = 0.0246125 Jy
! Component: 150  -  total flux cleaned = 0.0256476 Jy
! Component: 200  -  total flux cleaned = 0.0256491 Jy
! Total flux subtracted in 200 components = 0.0256491 Jy
! Clean residual min=-0.016667 max=0.020059 Jy/beam
! Clean residual mean=0.000098 rms=0.004524 Jy/beam
! Combined flux in latest and established models = 3.69336 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 36 components and 3.69336 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.262517Jy  sigma=0.001793
! Fit after  self-cal, rms=0.262258Jy  sigma=0.001791
! Inverting map 
! Your choice of large map pixels excluded 2.89% of the data.
!  The x-axis pixel size should ideally be below 0.1536 milli-arcsec
!  The y-axis pixel size should ideally be below 0.185 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.262258Jy  sigma=0.001791
! Fit after  self-cal, rms=0.237469Jy  sigma=0.001529
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 2.89% of the data.
!  The x-axis pixel size should ideally be below 0.1536 milli-arcsec
!  The y-axis pixel size should ideally be below 0.185 milli-arcsec
! Estimated beam: bmin=0.7159 mas, bmaj=0.9186 mas, bpa=5.685 degrees
! Estimated noise=417.991 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00037967 Jy
! Component: 100  -  total flux cleaned = 0.00258311 Jy
! Component: 150  -  total flux cleaned = 0.00478852 Jy
! Component: 200  -  total flux cleaned = 0.00669086 Jy
! Total flux subtracted in 200 components = 0.00669086 Jy
! Clean residual min=-0.007963 max=0.017216 Jy/beam
! Clean residual mean=0.001003 rms=0.002764 Jy/beam
! Combined flux in latest and established models = 3.70005 Jy
selfcal
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 44 components and 3.70005 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.235960Jy  sigma=0.001515
! Fit after  self-cal, rms=0.235779Jy  sigma=0.001513
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 2.89% of the data.
!  The x-axis pixel size should ideally be below 0.1536 milli-arcsec
!  The y-axis pixel size should ideally be below 0.185 milli-arcsec
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! Added new window around map position (-0.4, 1.2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.009738 Jy
! Component: 100  -  total flux cleaned = 0.00978184 Jy
! Component: 150  -  total flux cleaned = 0.00946189 Jy
! Component: 200  -  total flux cleaned = 0.00970449 Jy
! Total flux subtracted in 200 components = 0.00970449 Jy
! Clean residual min=-0.007076 max=0.011015 Jy/beam
! Clean residual mean=0.000620 rms=0.002346 Jy/beam
! Combined flux in latest and established models = 3.70975 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 53 components and 3.70975 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.234292Jy  sigma=0.001500
! Fit after  self-cal, rms=0.233965Jy  sigma=0.001498
! Inverting map 
! Your choice of large map pixels excluded 2.89% of the data.
!  The x-axis pixel size should ideally be below 0.1536 milli-arcsec
!  The y-axis pixel size should ideally be below 0.185 milli-arcsec
! Added new window around map position (1, 1).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00571519 Jy
! Component: 100  -  total flux cleaned = 0.00491614 Jy
! Component: 150  -  total flux cleaned = 0.00447721 Jy
! Component: 200  -  total flux cleaned = 0.0042826 Jy
! Total flux subtracted in 200 components = 0.0042826 Jy
! Clean residual min=-0.006734 max=0.008380 Jy/beam
! Clean residual mean=0.000450 rms=0.002127 Jy/beam
! Combined flux in latest and established models = 3.71404 Jy
! Performing phase self-cal
! Adding 22 model components to the UV plane model.
! The established model now contains 63 components and 3.71404 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.233263Jy  sigma=0.001492
! Fit after  self-cal, rms=0.233164Jy  sigma=0.001492
! Inverting map 
! Your choice of large map pixels excluded 2.89% of the data.
!  The x-axis pixel size should ideally be below 0.1536 milli-arcsec
!  The y-axis pixel size should ideally be below 0.185 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.233164Jy  sigma=0.001492
! Fit after  self-cal, rms=0.232908Jy  sigma=0.001487
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 2.89% of the data.
!  The x-axis pixel size should ideally be below 0.1536 milli-arcsec
!  The y-axis pixel size should ideally be below 0.185 milli-arcsec
! Estimated beam: bmin=0.7151 mas, bmaj=0.9187 mas, bpa=5.574 degrees
! Estimated noise=418.152 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00551617 Jy
! Component: 100  -  total flux cleaned = 0.00677677 Jy
! Component: 150  -  total flux cleaned = 0.00740448 Jy
! Component: 200  -  total flux cleaned = 0.00776257 Jy
! Total flux subtracted in 200 components = 0.00776257 Jy
! Clean residual min=-0.005488 max=0.007223 Jy/beam
! Clean residual mean=0.000519 rms=0.001767 Jy/beam
! Combined flux in latest and established models = 3.7218 Jy
selfcal
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 67 components and 3.7218 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.232399Jy  sigma=0.001482
! Fit after  self-cal, rms=0.232335Jy  sigma=0.001481
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 2.89% of the data.
!  The x-axis pixel size should ideally be below 0.1536 milli-arcsec
!  The y-axis pixel size should ideally be below 0.185 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.000670485 Jy
! Component: 100  -  total flux cleaned = 0.000840136 Jy
! Component: 150  -  total flux cleaned = 0.000995204 Jy
! Component: 200  -  total flux cleaned = 0.00114021 Jy
! Total flux subtracted in 200 components = 0.00114021 Jy
! Clean residual min=-0.005272 max=0.006967 Jy/beam
! Clean residual mean=0.000473 rms=0.001706 Jy/beam
! Combined flux in latest and established models = 3.72294 Jy
! Performing phase self-cal
! Adding 28 model components to the UV plane model.
! The established model now contains 69 components and 3.72294 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.232092Jy  sigma=0.001479
! Fit after  self-cal, rms=0.232060Jy  sigma=0.001478
! Inverting map 
! Your choice of large map pixels excluded 2.89% of the data.
!  The x-axis pixel size should ideally be below 0.1536 milli-arcsec
!  The y-axis pixel size should ideally be below 0.185 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.232060Jy  sigma=0.001478
! Fit after  self-cal, rms=0.232143Jy  sigma=0.001477
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 2.89% of the data.
!  The x-axis pixel size should ideally be below 0.1536 milli-arcsec
!  The y-axis pixel size should ideally be below 0.185 milli-arcsec
! Estimated beam: bmin=2.269 mas, bmaj=2.732 mas, bpa=-79.43 degrees
! Estimated noise=608.43 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00720841 Jy
! Component: 100  -  total flux cleaned = 0.0101538 Jy
! Component: 150  -  total flux cleaned = 0.0107495 Jy
! Component: 200  -  total flux cleaned = 0.0112552 Jy
! Total flux subtracted in 200 components = 0.0112552 Jy
! Clean residual min=-0.005626 max=0.009847 Jy/beam
! Clean residual mean=0.000834 rms=0.002854 Jy/beam
! Combined flux in latest and established models = 3.73419 Jy
selfcal
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 78 components and 3.73419 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.232035Jy  sigma=0.001476
! Fit after  self-cal, rms=0.232028Jy  sigma=0.001476
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 2.89% of the data.
!  The x-axis pixel size should ideally be below 0.1536 milli-arcsec
!  The y-axis pixel size should ideally be below 0.185 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.00059243 Jy
! Component: 100  -  total flux cleaned = 0.000679789 Jy
! Component: 150  -  total flux cleaned = 0.000759435 Jy
! Component: 200  -  total flux cleaned = 0.000909235 Jy
! Total flux subtracted in 200 components = 0.000909235 Jy
! Clean residual min=-0.005634 max=0.009437 Jy/beam
! Clean residual mean=0.000723 rms=0.002820 Jy/beam
! Combined flux in latest and established models = 3.7351 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 83 components and 3.7351 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.232017Jy  sigma=0.001476
! Fit after  self-cal, rms=0.232012Jy  sigma=0.001476
! Inverting map 
! Your choice of large map pixels excluded 2.89% of the data.
!  The x-axis pixel size should ideally be below 0.1536 milli-arcsec
!  The y-axis pixel size should ideally be below 0.185 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.89% of the data.
!  The x-axis pixel size should ideally be below 0.1536 milli-arcsec
!  The y-axis pixel size should ideally be below 0.185 milli-arcsec
! Estimated beam: bmin=0.7146 mas, bmaj=0.9189 mas, bpa=5.551 degrees
! Estimated noise=418.356 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7146 x 0.9189 at 5.551 degrees (North through East)
! Clean map  min=-0.006063  max=3.3588 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.232012Jy  sigma=0.001476
! Fit after  self-cal, rms=0.434171Jy  sigma=0.001149
! Inverting map and beam 
! Your choice of large map pixels excluded 2.89% of the data.
!  The x-axis pixel size should ideally be below 0.1536 milli-arcsec
!  The y-axis pixel size should ideally be below 0.185 milli-arcsec
! Estimated beam: bmin=0.7149 mas, bmaj=0.9188 mas, bpa=5.476 degrees
! Estimated noise=418.681 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000427412 Jy
! Component: 100  -  total flux cleaned = 0.000249763 Jy
! Component: 150  -  total flux cleaned = 0.000251628 Jy
! Component: 200  -  total flux cleaned = 0.000383136 Jy
! Total flux subtracted in 200 components = 0.000383136 Jy
! Clean residual min=-0.003632 max=0.006901 Jy/beam
! Clean residual mean=0.000370 rms=0.001267 Jy/beam
! Combined flux in latest and established models = 3.73549 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 86 components and 3.73549 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.434009Jy  sigma=0.001146
! Fit after  self-cal, rms=0.433991Jy  sigma=0.001146
! Inverting map 
! Your choice of large map pixels excluded 2.89% of the data.
!  The x-axis pixel size should ideally be below 0.1536 milli-arcsec
!  The y-axis pixel size should ideally be below 0.185 milli-arcsec
! Added new window around map position (-3.4, 4.4).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00640859 Jy
! Component: 100  -  total flux cleaned = 0.00769529 Jy
! Component: 150  -  total flux cleaned = 0.00834274 Jy
! Component: 200  -  total flux cleaned = 0.0086962 Jy
! Total flux subtracted in 200 components = 0.0086962 Jy
! Clean residual min=-0.003847 max=0.004396 Jy/beam
! Clean residual mean=0.000051 rms=0.001006 Jy/beam
! Combined flux in latest and established models = 3.74418 Jy
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 100 components and 3.74418 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.433873Jy  sigma=0.001143
! Fit after  self-cal, rms=0.433881Jy  sigma=0.001143
! Inverting map 
! Your choice of large map pixels excluded 2.89% of the data.
!  The x-axis pixel size should ideally be below 0.1536 milli-arcsec
!  The y-axis pixel size should ideally be below 0.185 milli-arcsec
! Added new window around map position (-4.8, 2.4).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00304546 Jy
! Component: 100  -  total flux cleaned = 0.00304004 Jy
! Component: 150  -  total flux cleaned = 0.00314388 Jy
! Component: 200  -  total flux cleaned = 0.00314054 Jy
! Total flux subtracted in 200 components = 0.00314054 Jy
! Clean residual min=-0.003688 max=0.003100 Jy/beam
! Clean residual mean=-0.000068 rms=0.000915 Jy/beam
! Combined flux in latest and established models = 3.74732 Jy
! Performing phase self-cal
! Adding 29 model components to the UV plane model.
! The established model now contains 107 components and 3.74732 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.433801Jy  sigma=0.001141
! Fit after  self-cal, rms=0.433811Jy  sigma=0.001141
! Inverting map 
! Your choice of large map pixels excluded 2.89% of the data.
!  The x-axis pixel size should ideally be below 0.1536 milli-arcsec
!  The y-axis pixel size should ideally be below 0.185 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.433811Jy  sigma=0.001141
! Fit after  self-cal, rms=0.434677Jy  sigma=0.001140
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.89% of the data.
!  The x-axis pixel size should ideally be below 0.1536 milli-arcsec
!  The y-axis pixel size should ideally be below 0.185 milli-arcsec
! Estimated beam: bmin=0.5379 mas, bmaj=0.6737 mas, bpa=6.221 degrees
! Estimated noise=869.434 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 2.56001 Jy
! Component: 100  -  total flux cleaned = 3.12643 Jy
! Component: 150  -  total flux cleaned = 3.33377 Jy
! Component: 200  -  total flux cleaned = 3.44011 Jy
! Total flux subtracted in 200 components = 3.44011 Jy
! Clean residual min=-0.014201 max=0.052446 Jy/beam
! Clean residual mean=0.000385 rms=0.004894 Jy/beam
! Combined flux in latest and established models = 3.44011 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 9 model components to the UV plane model.
! The established model now contains 9 components and 3.44011 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 2.89% of the data.
!  The x-axis pixel size should ideally be below 0.1536 milli-arcsec
!  The y-axis pixel size should ideally be below 0.185 milli-arcsec
! Estimated beam: bmin=0.7146 mas, bmaj=0.919 mas, bpa=5.444 degrees
! Estimated noise=418.787 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.106867 Jy
! Component: 100  -  total flux cleaned = 0.163895 Jy
! Component: 150  -  total flux cleaned = 0.200593 Jy
! Component: 200  -  total flux cleaned = 0.225786 Jy
! Total flux subtracted in 200 components = 0.225786 Jy
! Clean residual min=-0.002712 max=0.013949 Jy/beam
! Clean residual mean=0.003222 rms=0.002324 Jy/beam
! Combined flux in latest and established models = 3.66589 Jy
! Adding 45 model components to the UV plane model.
! The established model now contains 46 components and 3.66589 Jy
! Inverting map 
! Your choice of large map pixels excluded 2.89% of the data.
!  The x-axis pixel size should ideally be below 0.1536 milli-arcsec
!  The y-axis pixel size should ideally be below 0.185 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0178833 Jy
! Component: 100  -  total flux cleaned = 0.0310247 Jy
! Component: 150  -  total flux cleaned = 0.0410178 Jy
! Component: 200  -  total flux cleaned = 0.0491155 Jy
! Total flux subtracted in 200 components = 0.0491155 Jy
! Clean residual min=-0.002621 max=0.006335 Jy/beam
! Clean residual mean=0.001295 rms=0.001208 Jy/beam
! Combined flux in latest and established models = 3.71501 Jy
! Adding 39 model components to the UV plane model.
! The established model now contains 73 components and 3.71501 Jy
! Inverting map 
! Your choice of large map pixels excluded 2.89% of the data.
!  The x-axis pixel size should ideally be below 0.1536 milli-arcsec
!  The y-axis pixel size should ideally be below 0.185 milli-arcsec
! Added new window around map position (-1.8, 4.2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00721998 Jy
! Component: 100  -  total flux cleaned = 0.0128589 Jy
! Component: 150  -  total flux cleaned = 0.0175482 Jy
! Component: 200  -  total flux cleaned = 0.0214951 Jy
! Total flux subtracted in 200 components = 0.0214951 Jy
! Clean residual min=-0.002844 max=0.004152 Jy/beam
! Clean residual mean=0.000465 rms=0.000926 Jy/beam
! Combined flux in latest and established models = 3.7365 Jy
! Adding 50 model components to the UV plane model.
! The established model now contains 99 components and 3.7365 Jy
! Inverting map 
! Your choice of large map pixels excluded 2.89% of the data.
!  The x-axis pixel size should ideally be below 0.1536 milli-arcsec
!  The y-axis pixel size should ideally be below 0.185 milli-arcsec
! Added new window around map position (-6.4, 1.4).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00401366 Jy
! Component: 100  -  total flux cleaned = 0.00562524 Jy
! Component: 150  -  total flux cleaned = 0.0067533 Jy
! Component: 200  -  total flux cleaned = 0.00769778 Jy
! Total flux subtracted in 200 components = 0.00769778 Jy
! Clean residual min=-0.003118 max=0.003353 Jy/beam
! Clean residual mean=0.000168 rms=0.000849 Jy/beam
! Combined flux in latest and established models = 3.7442 Jy
! Adding 38 model components to the UV plane model.
! The established model now contains 116 components and 3.7442 Jy
! Inverting map 
! Your choice of large map pixels excluded 2.89% of the data.
!  The x-axis pixel size should ideally be below 0.1536 milli-arcsec
!  The y-axis pixel size should ideally be below 0.185 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.89% of the data.
!  The x-axis pixel size should ideally be below 0.1536 milli-arcsec
!  The y-axis pixel size should ideally be below 0.185 milli-arcsec
! Estimated beam: bmin=2.27 mas, bmaj=2.731 mas, bpa=-79.42 degrees
! Estimated noise=609.102 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00370025 Jy
! Component: 100  -  total flux cleaned = 0.005929 Jy
! Component: 150  -  total flux cleaned = 0.007053 Jy
! Component: 200  -  total flux cleaned = 0.0074391 Jy
! Total flux subtracted in 200 components = 0.0074391 Jy
! Clean residual min=-0.004669 max=0.003817 Jy/beam
! Clean residual mean=-0.000359 rms=0.001312 Jy/beam
! Combined flux in latest and established models = 3.75164 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.000176931 Jy
! Component: 100  -  total flux cleaned = 0.000300359 Jy
! Component: 150  -  total flux cleaned = 0.000328968 Jy
! Component: 200  -  total flux cleaned = 0.000330214 Jy
! Total flux subtracted in 200 components = 0.000330214 Jy
! Clean residual min=-0.004668 max=0.003780 Jy/beam
! Clean residual mean=-0.000398 rms=0.001298 Jy/beam
! Combined flux in latest and established models = 3.75197 Jy
! Adding 25 model components to the UV plane model.
! The established model now contains 137 components and 3.75197 Jy
! Inverting map 
! Your choice of large map pixels excluded 2.89% of the data.
!  The x-axis pixel size should ideally be below 0.1536 milli-arcsec
!  The y-axis pixel size should ideally be below 0.185 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 2.89% of the data.
!  The x-axis pixel size should ideally be below 0.1536 milli-arcsec
!  The y-axis pixel size should ideally be below 0.185 milli-arcsec
! Estimated beam: bmin=0.7146 mas, bmaj=0.919 mas, bpa=5.444 degrees
! Estimated noise=418.787 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00267582 Jy
! Component: 100  -  total flux cleaned = -0.00295742 Jy
! Component: 150  -  total flux cleaned = -0.00287487 Jy
! Component: 200  -  total flux cleaned = -0.00271861 Jy
! Total flux subtracted in 200 components = -0.00271861 Jy
! Clean residual min=-0.003014 max=0.003181 Jy/beam
! Clean residual mean=-0.000025 rms=0.000790 Jy/beam
! Combined flux in latest and established models = 3.74925 Jy
selfcal
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 145 components and 3.74925 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.434510Jy  sigma=0.001138
! Fit after  self-cal, rms=0.434483Jy  sigma=0.001137
wmodel J0136+4751_X_2001_10_29_pus_map.mod
! Writing 145 model components to file: J0136+4751_X_2001_10_29_pus_map.mod
wobs J0136+4751_X_2001_10_29_pus_uvs.fits
! Writing UV FITS file: J0136+4751_X_2001_10_29_pus_uvs.fits
wwins J0136+4751_X_2001_10_29_pus_map.win
! wwins: Wrote 9 windows to J0136+4751_X_2001_10_29_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.89% of the data.
!  The x-axis pixel size should ideally be below 0.1536 milli-arcsec
!  The y-axis pixel size should ideally be below 0.185 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = -0.000884832 Jy
! Component: 100  -  total flux cleaned = -0.00103944 Jy
! Component: 150  -  total flux cleaned = -0.00103864 Jy
! Component: 200  -  total flux cleaned = -0.00103905 Jy
! Component: 250  -  total flux cleaned = -0.001039 Jy
! Component: 300  -  total flux cleaned = -0.000955249 Jy
! Component: 350  -  total flux cleaned = -0.0009153 Jy
! Component: 400  -  total flux cleaned = -0.000876465 Jy
! Component: 450  -  total flux cleaned = -0.000799868 Jy
! Component: 500  -  total flux cleaned = -0.000725452 Jy
! Component: 550  -  total flux cleaned = -0.000689723 Jy
! Component: 600  -  total flux cleaned = -0.000726179 Jy
! Component: 650  -  total flux cleaned = -0.000691151 Jy
! Component: 700  -  total flux cleaned = -0.000621806 Jy
! Component: 750  -  total flux cleaned = -0.000553577 Jy
! Component: 800  -  total flux cleaned = -0.000486326 Jy
! Component: 850  -  total flux cleaned = -0.000486163 Jy
! Component: 900  -  total flux cleaned = -0.000420735 Jy
! Component: 950  -  total flux cleaned = -0.000356246 Jy
! Component: 1000  -  total flux cleaned = -0.000292586 Jy
! Total flux subtracted in 1024 components = -0.000292516 Jy
! Clean residual min=-0.001576 max=0.002094 Jy/beam
! Clean residual mean=0.000008 rms=0.000599 Jy/beam
! Combined flux in latest and established models = 3.74896 Jy
keep
! Adding 74 model components to the UV plane model.
! The established model now contains 218 components and 3.74896 Jy
![Exited script file: muppet]
wmap "J0136+4751_X_2001_10_29_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 2.89% of the data.
!  The x-axis pixel size should ideally be below 0.1536 milli-arcsec
!  The y-axis pixel size should ideally be below 0.185 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7146 x 0.919 at 5.444 degrees (North through East)
! Clean map  min=-0.0027352  max=3.3614 Jy/beam
! Writing clean map to FITS file: J0136+4751_X_2001_10_29_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 3.36144 
invert
! Inverting map 
! Your choice of large map pixels excluded 2.89% of the data.
!  The x-axis pixel size should ideally be below 0.1536 milli-arcsec
!  The y-axis pixel size should ideally be below 0.185 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000598763 
device "J0136+4751_X_2001_10_29_pus\_map.eps/VPS"
! Attempting to open device: 'J0136+4751_X_2001_10_29_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.0534381 0.0534381 0.106876 0.213752 0.427505 0.855009 1.71002 3.42004 6.84008 13.6802 27.3603 54.7206
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0017 
print "peak=",int(1000*peak_flux)/1000
! peak= 3.361 
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.7146 x 0.919 at 5.444 degrees (North through East)
! Clean map  min=-0.0027352  max=3.3614 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0136+4751_X_2001_10_29_pus\_map.gif/vgif"
! Attempting to open device: 'J0136+4751_X_2001_10_29_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0136+4751_X_2001_10_29_pus_uvs.log closed on Mon Feb 25 16:05:59 2008