! Started logfile: J0412+2305_S_2003_09_17_pus_uvs.log on Tue May 22 12:52:53 2007
obs J0412+2305_S_2003_09_17_pus_uva.fits
! Reading UV FITS file: J0412+2305_S_2003_09_17_pus_uva.fits
! AN table 1: 163 integrations on 120 of 120 possible baselines.
! AN table 2: 391 integrations on 120 of 120 possible baselines.
! AN table 3: 53 integrations on 120 of 120 possible baselines.
! AN table 4: 362 integrations on 120 of 120 possible baselines.
! AN table 5: 69 integrations on 120 of 120 possible baselines.
! Apparent sampling: 0.156045 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J0412+2305
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! Warning: Unknown AN-table MNTSTA value (3).
!          Will assume that it is ground-based.
! 
! There are 4 IFs, and a total of 4 channels:
! 
!  IF  Channel    Frequency  Freq offset  Number of   Overall IF
!       origin    at origin  per channel   channels    bandwidth
!  ------------------------------------------------------------- (Hz)
!  01        1  2.23697e+09        8e+06          1        8e+06
!  02        2  2.26697e+09        8e+06          1        8e+06
!  03        3  2.35697e+09        8e+06          1        8e+06
!  04        4  2.37697e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 1732 lines of history.
! 
! Reading 77748 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 = 1024 
print "field_cell =",field_cell
! field_cell = 0.5 
print "taper_size =",taper_size
! taper_size = 20 
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 = 1024x1024 pixels with 0.500x0.500 milli-arcsec cellsize.
startmod
! Applying default point source starting model.
! Performing phase self-cal
! Adding 1 model components to the UV plane model.
! The established model now contains 1 components and 1 Jy
! 
! Correcting IF 1.
!  A total of 2145 telescope corrections were flagged in sub-array 1.
!  A total of 3637 telescope corrections were flagged in sub-array 2.
!  A total of 848 telescope corrections were flagged in sub-array 3.
!  A total of 3630 telescope corrections were flagged in sub-array 4.
!  A total of 981 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 2.
!  A total of 2145 telescope corrections were flagged in sub-array 1.
!  A total of 3637 telescope corrections were flagged in sub-array 2.
!  A total of 848 telescope corrections were flagged in sub-array 3.
!  A total of 3654 telescope corrections were flagged in sub-array 4.
!  A total of 981 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 3.
!  A total of 2145 telescope corrections were flagged in sub-array 1.
!  A total of 3637 telescope corrections were flagged in sub-array 2.
!  A total of 848 telescope corrections were flagged in sub-array 3.
!  A total of 3630 telescope corrections were flagged in sub-array 4.
!  A total of 981 telescope corrections were flagged in sub-array 5.
! 
! Correcting IF 4.
!  A total of 2145 telescope corrections were flagged in sub-array 1.
!  A total of 3637 telescope corrections were flagged in sub-array 2.
!  A total of 848 telescope corrections were flagged in sub-array 3.
!  A total of 3630 telescope corrections were flagged in sub-array 4.
!  A total of 981 telescope corrections were flagged in sub-array 5.
! 
! Fit before self-cal, rms=0.932061Jy  sigma=0.006170
! Fit after  self-cal, rms=0.794059Jy  sigma=0.005454
! clrmod: Cleared the established, tentative and continuum models.
! Redundant starting model cleared.
uvw 2,-1
! Uniform weighting binwidth: 2 (pixels).
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=1.938 mas, bmaj=3.612 mas, bpa=-3.282 degrees
! Estimated noise=872.161 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.173914 Jy
! Component: 100  -  total flux cleaned = 0.226641 Jy
! Total flux subtracted in 100 components = 0.226641 Jy
! Clean residual min=-0.007751 max=0.024341 Jy/beam
! Clean residual mean=0.000083 rms=0.002055 Jy/beam
! Combined flux in latest and established models = 0.226641 Jy
! Performing phase self-cal
! Adding 8 model components to the UV plane model.
! The established model now contains 8 components and 0.226641 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.276927Jy  sigma=0.001310
! Fit after  self-cal, rms=0.276479Jy  sigma=0.001309
! Inverting map 
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0284018 Jy
! Component: 100  -  total flux cleaned = 0.0434095 Jy
! Total flux subtracted in 100 components = 0.0434095 Jy
! Clean residual min=-0.007068 max=0.010550 Jy/beam
! Clean residual mean=0.000070 rms=0.001591 Jy/beam
! Combined flux in latest and established models = 0.270051 Jy
! Performing phase self-cal
! Adding 13 model components to the UV plane model.
! The established model now contains 15 components and 0.270051 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.271708Jy  sigma=0.001259
! Fit after  self-cal, rms=0.271387Jy  sigma=0.001259
! Inverting map 
! Added new window around map position (-15, 11).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0115148 Jy
! Component: 100  -  total flux cleaned = 0.0195341 Jy
! Total flux subtracted in 100 components = 0.0195341 Jy
! Clean residual min=-0.006390 max=0.008246 Jy/beam
! Clean residual mean=0.000064 rms=0.001482 Jy/beam
! Combined flux in latest and established models = 0.289585 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 22 components and 0.289585 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.270306Jy  sigma=0.001248
! Fit after  self-cal, rms=0.270206Jy  sigma=0.001248
! Inverting map 
print "************** FINISHED UNIFORM WEIGHTING CLEAN **************"
! ************** FINISHED UNIFORM WEIGHTING CLEAN ************** 
! 
uvw 0,-1
! Uniform weighting is not currently selected.
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
win_mult = win_mult * 1.6
clean_niter = clean_niter * 2
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.355 mas, bmaj=4.916 mas, bpa=-7.933 degrees
! Estimated noise=389.541 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 (-3, 2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.014416 Jy
! Component: 100  -  total flux cleaned = 0.0242761 Jy
! Component: 150  -  total flux cleaned = 0.030537 Jy
! Component: 200  -  total flux cleaned = 0.0341214 Jy
! Total flux subtracted in 200 components = 0.0341214 Jy
! Clean residual min=-0.005414 max=0.007617 Jy/beam
! Clean residual mean=0.000428 rms=0.001694 Jy/beam
! Combined flux in latest and established models = 0.323706 Jy
! Performing phase self-cal
! Adding 54 model components to the UV plane model.
! The established model now contains 63 components and 0.323706 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.269048Jy  sigma=0.001237
! Fit after  self-cal, rms=0.268898Jy  sigma=0.001237
! Inverting map 
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 255 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        1.00*    GC        1.00*    HN        1.00*    KP        1.00*    
!   LA        1.00*    MK        1.00*    NL        1.00*    NY        0.91     
!   ON        0.81     OV        1.00*    PT        1.00*    SC        1.00*    
!   TS        0.98     KK        1.00*    WZ        0.85     WF        1.00*    
! 
!  A total of 195 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        1.02     GC        0.97     HN        0.95     KP        0.92     
!   LA        0.94     MK        0.99     NL        1.00     NY        0.97     
!   ON        1.00*    OV        0.99     PT        0.92     SC        1.05     
!   TS        1.10     KK        1.05     WZ        1.00*    WF        0.96     
! 
!  Telescope amplitude corrections in sub-array 3:
!   FD        0.00*    GC        0.00*    HN        0.00*    KP        0.00*    
!   LA        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    KK        0.00*    WZ        0.00*    WF        0.00*    
! 
!  A total of 60 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   FD        0.98     GC        1.17     HN        0.90     KP        0.98     
!   LA        1.01     MK        1.00*    NL        1.01     NY        0.94     
!   ON        0.85     OV        1.00*    PT        1.29     SC        1.00     
!   TS        0.96     KK        1.00*    WZ        0.95     WF        0.89     
! 
!  A total of 123 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   FD        0.00*    GC        0.00*    HN        0.00*    KP        0.00*    
!   LA        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    KK        0.00*    WZ        0.00*    WF        0.00*    
! 
! 
! Correcting IF 2.
!  A total of 255 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        1.00*    GC        1.00*    HN        1.00*    KP        1.00*    
!   LA        1.00*    MK        1.00*    NL        1.00*    NY        1.00     
!   ON        0.77     OV        1.00*    PT        1.00*    SC        1.00*    
!   TS        0.95     KK        1.00*    WZ        0.91     WF        1.00*    
! 
!  A total of 195 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        1.00     GC        0.95     HN        1.00     KP        0.99     
!   LA        0.92     MK        1.09     NL        1.03     NY        0.98     
!   ON        1.00*    OV        0.99     PT        0.92     SC        1.12     
!   TS        1.12     KK        1.04     WZ        1.00*    WF        0.97     
! 
!  Telescope amplitude corrections in sub-array 3:
!   FD        0.00*    GC        0.00*    HN        0.00*    KP        0.00*    
!   LA        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    KK        0.00*    WZ        0.00*    WF        0.00*    
! 
!  A total of 72 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   FD        0.99     GC        1.14     HN        1.04     KP        1.16     
!   LA        0.96     MK        1.00*    NL        1.04     NY        1.02     
!   ON        0.77     OV        1.00*    PT        1.21     SC        1.06     
!   TS        0.93     KK        1.00*    WZ        0.93     WF        0.91     
! 
!  A total of 123 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   FD        0.00*    GC        0.00*    HN        0.00*    KP        0.00*    
!   LA        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    KK        0.00*    WZ        0.00*    WF        0.00*    
! 
! 
! Correcting IF 3.
!  A total of 255 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        1.00*    GC        1.00*    HN        1.00*    KP        1.00*    
!   LA        1.00*    MK        1.00*    NL        1.00*    NY        1.00     
!   ON        0.85     OV        1.00*    PT        1.00*    SC        1.00*    
!   TS        0.94     KK        1.00*    WZ        0.87     WF        1.00*    
! 
!  A total of 195 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        0.97     GC        0.98     HN        1.04     KP        1.01     
!   LA        0.90     MK        1.06     NL        0.97     NY        0.94     
!   ON        1.00*    OV        1.01     PT        0.95     SC        1.13     
!   TS        1.17     KK        1.07     WZ        1.00*    WF        0.91     
! 
!  Telescope amplitude corrections in sub-array 3:
!   FD        0.00*    GC        0.00*    HN        0.00*    KP        0.00*    
!   LA        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    KK        0.00*    WZ        0.00*    WF        0.00*    
! 
!  A total of 60 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   FD        1.01     GC        1.14     HN        1.08     KP        1.09     
!   LA        0.94     MK        1.00*    NL        0.99     NY        0.96     
!   ON        0.83     OV        1.00*    PT        1.27     SC        1.05     
!   TS        0.92     KK        1.00*    WZ        0.91     WF        0.97     
! 
!  A total of 123 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   FD        0.00*    GC        0.00*    HN        0.00*    KP        0.00*    
!   LA        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    KK        0.00*    WZ        0.00*    WF        0.00*    
! 
! 
! Correcting IF 4.
!  A total of 255 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        1.00*    GC        1.00*    HN        1.00*    KP        1.00*    
!   LA        1.00*    MK        1.00*    NL        1.00*    NY        0.86     
!   ON        0.77     OV        1.00*    PT        1.00*    SC        1.00*    
!   TS        0.92     KK        1.00*    WZ        1.01     WF        1.00*    
! 
!  A total of 195 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        1.00     GC        1.01     HN        0.96     KP        1.01     
!   LA        0.96     MK        1.02     NL        1.01     NY        0.90     
!   ON        1.00*    OV        1.01     PT        0.90     SC        1.05     
!   TS        1.18     KK        1.10     WZ        1.00*    WF        0.84     
! 
!  Telescope amplitude corrections in sub-array 3:
!   FD        0.00*    GC        0.00*    HN        0.00*    KP        0.00*    
!   LA        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    KK        0.00*    WZ        0.00*    WF        0.00*    
! 
!  A total of 60 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   FD        1.00     GC        1.11     HN        0.88     KP        1.09     
!   LA        0.99     MK        1.00*    NL        0.99     NY        0.92     
!   ON        0.83     OV        1.00*    PT        1.24     SC        1.03     
!   TS        0.91     KK        1.00*    WZ        0.96     WF        0.99     
! 
!  A total of 123 telescope corrections were flagged in sub-array 5.
!  Telescope amplitude corrections in sub-array 5:
!   FD        0.00*    GC        0.00*    HN        0.00*    KP        0.00*    
!   LA        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    KK        0.00*    WZ        0.00*    WF        0.00*    
! 
! 
! Fit before self-cal, rms=0.268898Jy  sigma=0.001237
! Fit after  self-cal, rms=0.245996Jy  sigma=0.001230
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Estimated beam: bmin=2.367 mas, bmaj=4.975 mas, bpa=-7.866 degrees
! Estimated noise=389.73 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 (-9.5, 6.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00616761 Jy
! Component: 100  -  total flux cleaned = 0.00968267 Jy
! Component: 150  -  total flux cleaned = 0.0110145 Jy
! Component: 200  -  total flux cleaned = 0.0114314 Jy
! Total flux subtracted in 200 components = 0.0114314 Jy
! Clean residual min=-0.003370 max=0.005286 Jy/beam
! Clean residual mean=0.000228 rms=0.000981 Jy/beam
! Combined flux in latest and established models = 0.335138 Jy
! Performing phase self-cal
! Adding 28 model components to the UV plane model.
! The established model now contains 91 components and 0.335137 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.245835Jy  sigma=0.001228
! Fit after  self-cal, rms=0.245600Jy  sigma=0.001228
! Inverting map 
! Added new window around map position (7.5, -18.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00501505 Jy
! Component: 100  -  total flux cleaned = 0.00769808 Jy
! Component: 150  -  total flux cleaned = 0.00845409 Jy
! Component: 200  -  total flux cleaned = 0.00896622 Jy
! Total flux subtracted in 200 components = 0.00896622 Jy
! Clean residual min=-0.003145 max=0.004115 Jy/beam
! Clean residual mean=0.000220 rms=0.000861 Jy/beam
! Combined flux in latest and established models = 0.344104 Jy
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 111 components and 0.344104 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.245492Jy  sigma=0.001227
! Fit after  self-cal, rms=0.245462Jy  sigma=0.001227
! Inverting map 
selfcal true, true, soltime1
! Performing amp+phase self-cal over 120 minute time intervals
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.245462Jy  sigma=0.001227
! Fit after  self-cal, rms=0.243489Jy  sigma=0.001226
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.37 mas, bmaj=4.988 mas, bpa=-7.899 degrees
! Estimated noise=389.709 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0021866 Jy
! Component: 100  -  total flux cleaned = 0.00317263 Jy
! Component: 150  -  total flux cleaned = 0.00373091 Jy
! Component: 200  -  total flux cleaned = 0.00413487 Jy
! Total flux subtracted in 200 components = 0.00413487 Jy
! Clean residual min=-0.002949 max=0.003584 Jy/beam
! Clean residual mean=0.000179 rms=0.000815 Jy/beam
! Combined flux in latest and established models = 0.348239 Jy
selfcal
! Performing phase self-cal
! Adding 30 model components to the UV plane model.
! The established model now contains 131 components and 0.348239 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.243460Jy  sigma=0.001225
! Fit after  self-cal, rms=0.243408Jy  sigma=0.001225
flux_cutoff = imstat(rms) * dynam
! Inverting map 
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! Added new window around map position (-22, 13).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0038901 Jy
! Component: 100  -  total flux cleaned = 0.0057287 Jy
! Component: 150  -  total flux cleaned = 0.00658079 Jy
! Component: 200  -  total flux cleaned = 0.00728799 Jy
! Total flux subtracted in 200 components = 0.00728799 Jy
! Clean residual min=-0.002802 max=0.003423 Jy/beam
! Clean residual mean=0.000159 rms=0.000768 Jy/beam
! Combined flux in latest and established models = 0.355527 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 149 components and 0.355527 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.243324Jy  sigma=0.001225
! Fit after  self-cal, rms=0.243316Jy  sigma=0.001224
! Inverting map 
! Added new window around map position (95, 69.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00315623 Jy
! Component: 100  -  total flux cleaned = 0.00481036 Jy
! Component: 150  -  total flux cleaned = 0.00527692 Jy
! Component: 200  -  total flux cleaned = 0.00559561 Jy
! Total flux subtracted in 200 components = 0.00559561 Jy
! Clean residual min=-0.002765 max=0.003277 Jy/beam
! Clean residual mean=0.000146 rms=0.000739 Jy/beam
! Combined flux in latest and established models = 0.361122 Jy
! Performing phase self-cal
! Adding 31 model components to the UV plane model.
! The established model now contains 168 components and 0.361122 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.243244Jy  sigma=0.001224
! Fit after  self-cal, rms=0.243237Jy  sigma=0.001224
! Inverting map 
! Added new window around map position (-66, 46).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00297668 Jy
! Component: 100  -  total flux cleaned = 0.00379717 Jy
! Component: 150  -  total flux cleaned = 0.00416987 Jy
! Component: 200  -  total flux cleaned = 0.00450043 Jy
! Total flux subtracted in 200 components = 0.00450043 Jy
! Clean residual min=-0.002750 max=0.003125 Jy/beam
! Clean residual mean=0.000133 rms=0.000711 Jy/beam
! Combined flux in latest and established models = 0.365623 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 182 components and 0.365623 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.243175Jy  sigma=0.001224
! Fit after  self-cal, rms=0.243164Jy  sigma=0.001224
! Inverting map 
! Added new window around map position (-42.5, 71.5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00206673 Jy
! Component: 100  -  total flux cleaned = 0.00307918 Jy
! Component: 150  -  total flux cleaned = 0.00359161 Jy
! Component: 200  -  total flux cleaned = 0.00390174 Jy
! Total flux subtracted in 200 components = 0.00390174 Jy
! Clean residual min=-0.002761 max=0.002701 Jy/beam
! Clean residual mean=0.000124 rms=0.000696 Jy/beam
! Combined flux in latest and established models = 0.369524 Jy
! Performing phase self-cal
! Adding 29 model components to the UV plane model.
! The established model now contains 195 components and 0.369524 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.243103Jy  sigma=0.001223
! Fit after  self-cal, rms=0.243096Jy  sigma=0.001223
! Inverting map 
selfcal true, true, soltime2
! Performing amp+phase self-cal over 20 minute time intervals
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.243096Jy  sigma=0.001223
! Fit after  self-cal, rms=0.243651Jy  sigma=0.001222
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=2.368 mas, bmaj=4.993 mas, bpa=-7.955 degrees
! Estimated noise=389.09 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00179313 Jy
! Component: 100  -  total flux cleaned = 0.00293555 Jy
! Component: 150  -  total flux cleaned = 0.00386136 Jy
! Component: 200  -  total flux cleaned = 0.00471238 Jy
! Total flux subtracted in 200 components = 0.00471238 Jy
! Clean residual min=-0.002562 max=0.002516 Jy/beam
! Clean residual mean=0.000105 rms=0.000655 Jy/beam
! Combined flux in latest and established models = 0.374237 Jy
selfcal
! Performing phase self-cal
! Adding 41 model components to the UV plane model.
! The established model now contains 223 components and 0.374237 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.243611Jy  sigma=0.001222
! Fit after  self-cal, rms=0.243692Jy  sigma=0.001222
flux_cutoff = imstat(rms) * dynam
! Inverting map 
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00100907 Jy
! Component: 100  -  total flux cleaned = 0.0015132 Jy
! Component: 150  -  total flux cleaned = 0.00194601 Jy
! Component: 200  -  total flux cleaned = 0.00231443 Jy
! Total flux subtracted in 200 components = 0.00231443 Jy
! Clean residual min=-0.002527 max=0.002500 Jy/beam
! Clean residual mean=0.000101 rms=0.000653 Jy/beam
! Combined flux in latest and established models = 0.376551 Jy
! Performing phase self-cal
! Adding 50 model components to the UV plane model.
! The established model now contains 238 components and 0.376551 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.243667Jy  sigma=0.001222
! Fit after  self-cal, rms=0.243670Jy  sigma=0.001222
! Inverting map 
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 20 mega-wavelengths.
win_mult = win_mult * 1.2
selfcal true, true, soltime2
! Performing amp+phase self-cal over 20 minute time intervals
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.243670Jy  sigma=0.001222
! Fit after  self-cal, rms=0.244128Jy  sigma=0.001222
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.383 mas, bmaj=10.57 mas, bpa=-14.53 degrees
! Estimated noise=554.389 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00290747 Jy
! Component: 100  -  total flux cleaned = 0.00434182 Jy
! Component: 150  -  total flux cleaned = 0.00547363 Jy
! Component: 200  -  total flux cleaned = 0.0063292 Jy
! Total flux subtracted in 200 components = 0.0063292 Jy
! Clean residual min=-0.004226 max=0.004603 Jy/beam
! Clean residual mean=0.000271 rms=0.001435 Jy/beam
! Combined flux in latest and established models = 0.38288 Jy
selfcal
! Performing phase self-cal
! Adding 27 model components to the UV plane model.
! The established model now contains 261 components and 0.38288 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.244109Jy  sigma=0.001222
! Fit after  self-cal, rms=0.244150Jy  sigma=0.001222
flux_cutoff = imstat(rms) * dynam
! Inverting map 
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000983787 Jy
! Component: 100  -  total flux cleaned = 0.001638 Jy
! Component: 150  -  total flux cleaned = 0.0021285 Jy
! Component: 200  -  total flux cleaned = 0.00253401 Jy
! Total flux subtracted in 200 components = 0.00253401 Jy
! Clean residual min=-0.004190 max=0.004485 Jy/beam
! Clean residual mean=0.000257 rms=0.001427 Jy/beam
! Combined flux in latest and established models = 0.385414 Jy
! Performing phase self-cal
! Adding 43 model components to the UV plane model.
! The established model now contains 279 components and 0.385414 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.244145Jy  sigma=0.001222
! Fit after  self-cal, rms=0.244147Jy  sigma=0.001222
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
win_mult = win_mult / 1.2
print "************** FINISHED AMPLITUDE SELF-CAL **************"
! ************** FINISHED AMPLITUDE SELF-CAL ************** 
restore
! Inverting map and beam 
! Estimated beam: bmin=2.367 mas, bmaj=4.995 mas, bpa=-7.958 degrees
! Estimated noise=389.23 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.367 x 4.995 at -7.958 degrees (North through East)
! Clean map  min=-0.0023595  max=0.24288 Jy/beam
if(peak(flux) > thresh)
  selfcal true, true
  clean clean_niter,clean_gain
  selfcal
  flux_cutoff = imstat(rms) * dynam
  repeat
    if (peak(flux) > flux_cutoff) peakwin win_mult
    clean clean_niter,clean_gain
    flux_cutoff = imstat(rms) * dynam
    selfcal
    new_peak = peak(flux)
    until(new_peak<=flux_cutoff)
  selfcal true, true
  end if
print "************** CLEARING MODEL AND STARTING OVER **********"
! ************** CLEARING MODEL AND STARTING OVER ********** 
clrmod true
! clrmod: Cleared the established and tentative models.
uvw 2,-1
! Uniform weighting binwidth: 2 (pixels).
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=1.943 mas, bmaj=3.65 mas, bpa=-3.404 degrees
! Estimated noise=864.949 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.172351 Jy
! Component: 100  -  total flux cleaned = 0.226794 Jy
! Component: 150  -  total flux cleaned = 0.2553 Jy
! Component: 200  -  total flux cleaned = 0.271074 Jy
! Total flux subtracted in 200 components = 0.271074 Jy
! Clean residual min=-0.005560 max=0.008420 Jy/beam
! Clean residual mean=0.000027 rms=0.001383 Jy/beam
! Combined flux in latest and established models = 0.271074 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 14 model components to the UV plane model.
! The established model now contains 14 components and 0.271074 Jy
! Inverting map and beam 
! Estimated beam: bmin=2.367 mas, bmaj=4.995 mas, bpa=-7.958 degrees
! Estimated noise=389.23 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.0177799 Jy
! Component: 100  -  total flux cleaned = 0.0303013 Jy
! Component: 150  -  total flux cleaned = 0.0399946 Jy
! Component: 200  -  total flux cleaned = 0.0478672 Jy
! Total flux subtracted in 200 components = 0.0478672 Jy
! Clean residual min=-0.003643 max=0.005305 Jy/beam
! Clean residual mean=0.000300 rms=0.001178 Jy/beam
! Combined flux in latest and established models = 0.318941 Jy
! Adding 48 model components to the UV plane model.
! The established model now contains 56 components and 0.318941 Jy
! Inverting map 
! Added new window around map position (-119, 103).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00672176 Jy
! Component: 100  -  total flux cleaned = 0.0124766 Jy
! Component: 150  -  total flux cleaned = 0.0175328 Jy
! Component: 200  -  total flux cleaned = 0.0220351 Jy
! Total flux subtracted in 200 components = 0.0220351 Jy
! Clean residual min=-0.002977 max=0.003802 Jy/beam
! Clean residual mean=0.000228 rms=0.000887 Jy/beam
! Combined flux in latest and established models = 0.340976 Jy
! Adding 55 model components to the UV plane model.
! The established model now contains 95 components and 0.340976 Jy
! Inverting map 
! Added new window around map position (-53, 48).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00426926 Jy
! Component: 100  -  total flux cleaned = 0.0079935 Jy
! Component: 150  -  total flux cleaned = 0.0113984 Jy
! Component: 200  -  total flux cleaned = 0.0145232 Jy
! Total flux subtracted in 200 components = 0.0145232 Jy
! Clean residual min=-0.002777 max=0.003158 Jy/beam
! Clean residual mean=0.000182 rms=0.000759 Jy/beam
! Combined flux in latest and established models = 0.3555 Jy
! Adding 62 model components to the UV plane model.
! The established model now contains 126 components and 0.355499 Jy
! Inverting map 
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 20 mega-wavelengths.
clean clean_niter,clean_gain
! Inverting map and beam 
! Estimated beam: bmin=7.383 mas, bmaj=10.57 mas, bpa=-14.53 degrees
! Estimated noise=554.389 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00693658 Jy
! Component: 100  -  total flux cleaned = 0.0120708 Jy
! Component: 150  -  total flux cleaned = 0.0162922 Jy
! Component: 200  -  total flux cleaned = 0.0198082 Jy
! Total flux subtracted in 200 components = 0.0198082 Jy
! Clean residual min=-0.004437 max=0.004559 Jy/beam
! Clean residual mean=0.000387 rms=0.001441 Jy/beam
! Combined flux in latest and established models = 0.375308 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.00295534 Jy
! Component: 100  -  total flux cleaned = 0.00546194 Jy
! Component: 150  -  total flux cleaned = 0.0076146 Jy
! Component: 200  -  total flux cleaned = 0.00947447 Jy
! Total flux subtracted in 200 components = 0.00947447 Jy
! Clean residual min=-0.004686 max=0.004335 Jy/beam
! Clean residual mean=0.000305 rms=0.001388 Jy/beam
! Combined flux in latest and established models = 0.384782 Jy
! Adding 105 model components to the UV plane model.
! The established model now contains 218 components and 0.384782 Jy
! Inverting map 
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Estimated beam: bmin=2.367 mas, bmaj=4.995 mas, bpa=-7.958 degrees
! Estimated noise=389.23 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000902409 Jy
! Component: 100  -  total flux cleaned = -0.000903373 Jy
! Component: 150  -  total flux cleaned = -0.00077318 Jy
! Component: 200  -  total flux cleaned = -0.000532941 Jy
! Total flux subtracted in 200 components = -0.000532941 Jy
! Clean residual min=-0.002673 max=0.002494 Jy/beam
! Clean residual mean=0.000095 rms=0.000644 Jy/beam
! Combined flux in latest and established models = 0.384249 Jy
selfcal
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 235 components and 0.384249 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.244150Jy  sigma=0.001222
! Fit after  self-cal, rms=0.244148Jy  sigma=0.001222
wmodel J0412+2305_S_2003_09_17_pus_map.mod
! Writing 235 model components to file: J0412+2305_S_2003_09_17_pus_map.mod
wobs J0412+2305_S_2003_09_17_pus_uvs.fits
! Writing UV FITS file: J0412+2305_S_2003_09_17_pus_uvs.fits
wwins J0412+2305_S_2003_09_17_pus_map.win
! wwins: Wrote 11 windows to J0412+2305_S_2003_09_17_pus_map.win
x = (field_size-8) * field_cell / 4
addwin -x,x,-x,x
clean (field_size*4),0.01
! Inverting map 
! clean: niter=4096  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 7.32309e-05 Jy
! Component: 100  -  total flux cleaned = 0.000731379 Jy
! Component: 150  -  total flux cleaned = 0.00149177 Jy
! Component: 200  -  total flux cleaned = 0.00222904 Jy
! Component: 250  -  total flux cleaned = 0.00262903 Jy
! Component: 300  -  total flux cleaned = 0.00310074 Jy
! Component: 350  -  total flux cleaned = 0.00360215 Jy
! Component: 400  -  total flux cleaned = 0.00398139 Jy
! Component: 450  -  total flux cleaned = 0.00442977 Jy
! Component: 500  -  total flux cleaned = 0.0047244 Jy
! Component: 550  -  total flux cleaned = 0.00508787 Jy
! Component: 600  -  total flux cleaned = 0.00541041 Jy
! Component: 650  -  total flux cleaned = 0.00576377 Jy
! Component: 700  -  total flux cleaned = 0.00597351 Jy
! Component: 750  -  total flux cleaned = 0.00625031 Jy
! Component: 800  -  total flux cleaned = 0.00652399 Jy
! Component: 850  -  total flux cleaned = 0.00676126 Jy
! Component: 900  -  total flux cleaned = 0.00696276 Jy
! Component: 950  -  total flux cleaned = 0.00719594 Jy
! Component: 1000  -  total flux cleaned = 0.00749274 Jy
! Component: 1050  -  total flux cleaned = 0.00772148 Jy
! Component: 1100  -  total flux cleaned = 0.00804516 Jy
! Component: 1150  -  total flux cleaned = 0.00810946 Jy
! Component: 1200  -  total flux cleaned = 0.00839664 Jy
! Component: 1250  -  total flux cleaned = 0.00861831 Jy
! Component: 1300  -  total flux cleaned = 0.00877506 Jy
! Component: 1350  -  total flux cleaned = 0.00911755 Jy
! Component: 1400  -  total flux cleaned = 0.00927219 Jy
! Component: 1450  -  total flux cleaned = 0.00970157 Jy
! Component: 1500  -  total flux cleaned = 0.00973188 Jy
! Component: 1550  -  total flux cleaned = 0.010065 Jy
! Component: 1600  -  total flux cleaned = 0.0103352 Jy
! Component: 1650  -  total flux cleaned = 0.010544 Jy
! Component: 1700  -  total flux cleaned = 0.0107807 Jy
! Component: 1750  -  total flux cleaned = 0.0109575 Jy
! Component: 1800  -  total flux cleaned = 0.0111622 Jy
! Component: 1850  -  total flux cleaned = 0.0113947 Jy
! Component: 1900  -  total flux cleaned = 0.0115679 Jy
! Component: 1950  -  total flux cleaned = 0.0117689 Jy
! Component: 2000  -  total flux cleaned = 0.0119118 Jy
! Component: 2050  -  total flux cleaned = 0.0121104 Jy
! Component: 2100  -  total flux cleaned = 0.012308 Jy
! Component: 2150  -  total flux cleaned = 0.0124766 Jy
! Component: 2200  -  total flux cleaned = 0.0127558 Jy
! Component: 2250  -  total flux cleaned = 0.0128947 Jy
! Component: 2300  -  total flux cleaned = 0.0130604 Jy
! Component: 2350  -  total flux cleaned = 0.0133077 Jy
! Component: 2400  -  total flux cleaned = 0.0133624 Jy
! Component: 2450  -  total flux cleaned = 0.013607 Jy
! Component: 2500  -  total flux cleaned = 0.0137153 Jy
! Component: 2550  -  total flux cleaned = 0.0140115 Jy
! Component: 2600  -  total flux cleaned = 0.0141453 Jy
! Component: 2650  -  total flux cleaned = 0.0143051 Jy
! Component: 2700  -  total flux cleaned = 0.0143848 Jy
! Component: 2750  -  total flux cleaned = 0.0147016 Jy
! Component: 2800  -  total flux cleaned = 0.0147805 Jy
! Component: 2850  -  total flux cleaned = 0.014911 Jy
! Component: 2900  -  total flux cleaned = 0.0150412 Jy
! Component: 2950  -  total flux cleaned = 0.0152742 Jy
! Component: 3000  -  total flux cleaned = 0.0153258 Jy
! Component: 3050  -  total flux cleaned = 0.0155569 Jy
! Component: 3100  -  total flux cleaned = 0.0155568 Jy
! Component: 3150  -  total flux cleaned = 0.0158365 Jy
! Component: 3200  -  total flux cleaned = 0.0158872 Jy
! Component: 3250  -  total flux cleaned = 0.0160384 Jy
! Component: 3300  -  total flux cleaned = 0.0162142 Jy
! Component: 3350  -  total flux cleaned = 0.0163393 Jy
! Component: 3400  -  total flux cleaned = 0.0163394 Jy
! Component: 3450  -  total flux cleaned = 0.0166119 Jy
! Component: 3500  -  total flux cleaned = 0.0167353 Jy
! Component: 3550  -  total flux cleaned = 0.0168583 Jy
! Component: 3600  -  total flux cleaned = 0.0169807 Jy
! Component: 3650  -  total flux cleaned = 0.0169564 Jy
! Component: 3700  -  total flux cleaned = 0.0171023 Jy
! Component: 3750  -  total flux cleaned = 0.0172957 Jy
! Component: 3800  -  total flux cleaned = 0.0173198 Jy
! Component: 3850  -  total flux cleaned = 0.0174639 Jy
! Component: 3900  -  total flux cleaned = 0.0175596 Jy
! Component: 3950  -  total flux cleaned = 0.0177741 Jy
! Component: 4000  -  total flux cleaned = 0.0177505 Jy
! Component: 4050  -  total flux cleaned = 0.0178925 Jy
! Total flux subtracted in 4096 components = 0.018034 Jy
! Clean residual min=-0.001346 max=0.001424 Jy/beam
! Clean residual mean=0.000052 rms=0.000435 Jy/beam
! Combined flux in latest and established models = 0.402283 Jy
keep
! Adding 334 model components to the UV plane model.
! The established model now contains 569 components and 0.402283 Jy
wmap "J0412+2305_S_2003_09_17_pus\_map.fits"
! Inverting map 
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.367 x 4.995 at -7.958 degrees (North through East)
! Clean map  min=-0.0021873  max=0.24337 Jy/beam
! Writing clean map to FITS file: J0412+2305_S_2003_09_17_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.243366 
invert
! Inverting map 
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000439132 
device "J0412+2305_S_2003_09_17_pus\_map.eps/VPS"
! Attempting to open device: 'J0412+2305_S_2003_09_17_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.541323 0.541323 1.08265 2.16529 4.33059 8.66118 17.3224 34.6447 69.2894
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0013 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.243 
mapcolor none
! Mapplot colormap: none, contrast: 1 brightness: 0.5.
mapplot cln
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 2.367 x 4.995 at -7.958 degrees (North through East)
! Clean map  min=-0.0021873  max=0.24337 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J0412+2305_S_2003_09_17_pus\_map.gif/vgif"
! Attempting to open device: 'J0412+2305_S_2003_09_17_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J0412+2305_S_2003_09_17_pus_uvs.log closed on Tue May 22 12:59:57 2007