! Started logfile: J1608+1029_X_2001_07_05_pus_uvs.log on Wed Jul  4 21:09:35 2007
obs J1608+1029_X_2001_07_05_pus_uva.fits
! Reading UV FITS file: J1608+1029_X_2001_07_05_pus_uva.fits
! AN table 1: 55 integrations on 171 of 171 possible baselines.
! AN table 2: 87 integrations on 171 of 171 possible baselines.
! AN table 3: 112 integrations on 171 of 171 possible baselines.
! AN table 4: 38 integrations on 171 of 171 possible baselines.
! Apparent sampling: 0.147 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1608+1029
! 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  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 2370 lines of history.
! 
! Reading 29360 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 
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 738 telescope corrections were flagged in sub-array 1.
!  A total of 1413 telescope corrections were flagged in sub-array 2.
!  A total of 1102 telescope corrections were flagged in sub-array 3.
!  A total of 692 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 738 telescope corrections were flagged in sub-array 1.
!  A total of 1413 telescope corrections were flagged in sub-array 2.
!  A total of 1102 telescope corrections were flagged in sub-array 3.
!  A total of 692 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 738 telescope corrections were flagged in sub-array 1.
!  A total of 1413 telescope corrections were flagged in sub-array 2.
!  A total of 1102 telescope corrections were flagged in sub-array 3.
!  A total of 692 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 738 telescope corrections were flagged in sub-array 1.
!  A total of 1413 telescope corrections were flagged in sub-array 2.
!  A total of 1102 telescope corrections were flagged in sub-array 3.
!  A total of 692 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=1.784178Jy  sigma=0.015477
! Fit after  self-cal, rms=1.273337Jy  sigma=0.011352
! 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 4.54% of the data.
!  The x-axis pixel size should ideally be below 0.1618 milli-arcsec
!  The y-axis pixel size should ideally be below 0.174 milli-arcsec
! Estimated beam: bmin=0.5517 mas, bmaj=1.149 mas, bpa=-4.616 degrees
! Estimated noise=790.216 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.66313 Jy
! Component: 100  -  total flux cleaned = 2.06754 Jy
! Total flux subtracted in 100 components = 2.06754 Jy
! Clean residual min=-0.051584 max=0.171419 Jy/beam
! Clean residual mean=0.000286 rms=0.016900 Jy/beam
! Combined flux in latest and established models = 2.06754 Jy
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 6 components and 2.06754 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.457448Jy  sigma=0.004071
! Fit after  self-cal, rms=0.456839Jy  sigma=0.004069
! Inverting map 
! Your choice of large map pixels excluded 4.54% of the data.
!  The x-axis pixel size should ideally be below 0.1618 milli-arcsec
!  The y-axis pixel size should ideally be below 0.174 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.193237 Jy
! Component: 100  -  total flux cleaned = 0.301689 Jy
! Total flux subtracted in 100 components = 0.301689 Jy
! Clean residual min=-0.050129 max=0.068566 Jy/beam
! Clean residual mean=0.000056 rms=0.012445 Jy/beam
! Combined flux in latest and established models = 2.36922 Jy
! Performing phase self-cal
! Adding 11 model components to the UV plane model.
! The established model now contains 13 components and 2.36922 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.356417Jy  sigma=0.002966
! Fit after  self-cal, rms=0.355881Jy  sigma=0.002963
! Inverting map 
! Your choice of large map pixels excluded 4.54% of the data.
!  The x-axis pixel size should ideally be below 0.1618 milli-arcsec
!  The y-axis pixel size should ideally be below 0.174 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 4.54% of the data.
!  The x-axis pixel size should ideally be below 0.1618 milli-arcsec
!  The y-axis pixel size should ideally be below 0.174 milli-arcsec
! Estimated beam: bmin=0.618 mas, bmaj=1.444 mas, bpa=-8.829 degrees
! Estimated noise=513.209 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.0956149 Jy
! Component: 100  -  total flux cleaned = 0.143469 Jy
! Component: 150  -  total flux cleaned = 0.170789 Jy
! Component: 200  -  total flux cleaned = 0.18727 Jy
! Total flux subtracted in 200 components = 0.18727 Jy
! Clean residual min=-0.034470 max=0.062291 Jy/beam
! Clean residual mean=0.000011 rms=0.009688 Jy/beam
! Combined flux in latest and established models = 2.55649 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 30 components and 2.55649 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.338485Jy  sigma=0.002678
! Fit after  self-cal, rms=0.338164Jy  sigma=0.002677
! Inverting map 
! Your choice of large map pixels excluded 4.54% of the data.
!  The x-axis pixel size should ideally be below 0.1618 milli-arcsec
!  The y-axis pixel size should ideally be below 0.174 milli-arcsec
! Added new window around map position (-1.6, 0.8).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0619938 Jy
! Component: 100  -  total flux cleaned = 0.074125 Jy
! Component: 150  -  total flux cleaned = 0.0786496 Jy
! Component: 200  -  total flux cleaned = 0.0823429 Jy
! Total flux subtracted in 200 components = 0.0823429 Jy
! Clean residual min=-0.034391 max=0.033808 Jy/beam
! Clean residual mean=-0.001130 rms=0.008077 Jy/beam
! Combined flux in latest and established models = 2.63884 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 49 components and 2.63884 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.326834Jy  sigma=0.002537
! Fit after  self-cal, rms=0.325288Jy  sigma=0.002526
! Inverting map 
! Your choice of large map pixels excluded 4.54% of the data.
!  The x-axis pixel size should ideally be below 0.1618 milli-arcsec
!  The y-axis pixel size should ideally be below 0.174 milli-arcsec
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        0.97     GC        0.94     GG        1.00*    
!   HH        1.00*    HN        1.26     KK        0.96     KP        0.94     
!   LA        0.94     MC        1.00*    MK        0.95     NL        0.96     
!   NY        1.00*    OV        0.93     PT        0.97     SC        1.00*    
!   TS        0.89     WF        1.03     WZ        1.00*    
! 
!  A total of 60 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.03     FD        1.00*    GC        1.02     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.03     KP        1.08     
!   LA        1.10     MC        1.00*    MK        0.96     NL        1.00*    
!   NY        1.00*    OV        1.01     PT        1.06     SC        1.00*    
!   TS        1.36     WF        1.00*    WZ        1.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.98     FD        1.01     GC        0.96     GG        1.00*    
!   HH        1.09     HN        1.02     KK        1.05     KP        0.99     
!   LA        0.98     MC        1.08     MK        0.96     NL        1.00     
!   NY        1.03     OV        0.99     PT        1.01     SC        1.00     
!   TS        1.00*    WF        1.02     WZ        0.98     
! 
!  A total of 30 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        0.00*    HN        0.00*    KK        0.00*    KP        0.00*    
!   LA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   NY        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    
! 
! 
! Correcting IF 2.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.97     FD        0.96     GC        0.91     GG        1.00*    
!   HH        1.00*    HN        1.26     KK        0.96     KP        0.95     
!   LA        0.93     MC        1.00*    MK        0.95     NL        0.92     
!   NY        1.00*    OV        0.93     PT        0.93     SC        1.00*    
!   TS        0.89     WF        1.03     WZ        1.00*    
! 
!  A total of 60 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.04     FD        1.00*    GC        0.97     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.01     KP        1.09     
!   LA        1.09     MC        1.00*    MK        0.95     NL        1.00*    
!   NY        1.00*    OV        1.00     PT        1.03     SC        1.00*    
!   TS        1.35     WF        1.00*    WZ        1.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        0.99     FD        1.00     GC        0.93     GG        1.00*    
!   HH        1.16     HN        1.01     KK        1.04     KP        0.99     
!   LA        0.97     MC        1.09     MK        0.96     NL        0.97     
!   NY        1.12     OV        0.98     PT        0.98     SC        0.96     
!   TS        1.00*    WF        1.02     WZ        0.98     
! 
!  A total of 30 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        0.00*    HN        0.00*    KK        0.00*    KP        0.00*    
!   LA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   NY        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    
! 
! 
! Correcting IF 3.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        1.01     FD        0.95     GC        0.95     GG        1.00*    
!   HH        1.00*    HN        1.27     KK        0.94     KP        0.99     
!   LA        0.95     MC        1.00*    MK        0.97     NL        0.95     
!   NY        1.00*    OV        0.98     PT        0.96     SC        1.00*    
!   TS        0.86     WF        1.01     WZ        1.00*    
! 
!  A total of 60 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.08     FD        1.00*    GC        1.00     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.00     KP        1.14     
!   LA        1.11     MC        1.00*    MK        0.98     NL        1.00*    
!   NY        1.00*    OV        1.05     PT        1.06     SC        1.00*    
!   TS        1.39     WF        1.00*    WZ        1.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.02     FD        0.99     GC        0.98     GG        1.00*    
!   HH        1.27     HN        1.02     KK        1.02     KP        1.03     
!   LA        0.99     MC        1.10     MK        0.98     NL        1.00     
!   NY        1.11     OV        1.03     PT        1.00     SC        0.97     
!   TS        1.00*    WF        1.02     WZ        0.97     
! 
!  A total of 30 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        0.00*    HN        0.00*    KK        0.00*    KP        0.00*    
!   LA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   NY        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    
! 
! 
! Correcting IF 4.
!  A total of 9 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.99     FD        0.93     GC        0.95     GG        1.00*    
!   HH        1.00*    HN        1.31     KK        0.96     KP        0.96     
!   LA        0.93     MC        1.00*    MK        1.00     NL        0.97     
!   NY        1.00*    OV        0.95     PT        0.96     SC        1.00*    
!   TS        0.87     WF        1.01     WZ        1.00*    
! 
!  A total of 60 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        1.04     FD        1.00*    GC        1.02     GG        1.00*    
!   HH        1.00*    HN        1.00*    KK        1.01     KP        1.10     
!   LA        1.09     MC        1.00*    MK        1.01     NL        1.00*    
!   NY        1.00*    OV        1.02     PT        1.06     SC        1.00*    
!   TS        1.40     WF        1.00*    WZ        1.00*    
! 
!  A total of 9 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00     FD        0.97     GC        0.98     GG        1.00*    
!   HH        1.46     HN        1.04     KK        1.04     KP        1.00     
!   LA        0.97     MC        1.10     MK        1.01     NL        1.01     
!   NY        1.04     OV        1.00     PT        1.00     SC        1.03     
!   TS        1.00*    WF        1.02     WZ        0.97     
! 
!  A total of 30 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.00*    FD        0.00*    GC        0.00*    GG        0.00*    
!   HH        0.00*    HN        0.00*    KK        0.00*    KP        0.00*    
!   LA        0.00*    MC        0.00*    MK        0.00*    NL        0.00*    
!   NY        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   TS        0.00*    WF        0.00*    WZ        0.00*    
! 
! 
! Fit before self-cal, rms=0.325288Jy  sigma=0.002526
! Fit after  self-cal, rms=0.264739Jy  sigma=0.001897
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 4.47% of the data.
!  The x-axis pixel size should ideally be below 0.1618 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1807 milli-arcsec
! Estimated beam: bmin=0.6242 mas, bmaj=1.489 mas, bpa=-9.138 degrees
! Estimated noise=519.492 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.00182288 Jy
! Component: 100  -  total flux cleaned = -0.00184098 Jy
! Component: 150  -  total flux cleaned = -0.00183632 Jy
! Component: 200  -  total flux cleaned = -0.00122767 Jy
! Total flux subtracted in 200 components = -0.00122767 Jy
! Clean residual min=-0.033936 max=0.023278 Jy/beam
! Clean residual mean=-0.000524 rms=0.006113 Jy/beam
! Combined flux in latest and established models = 2.63761 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 56 components and 2.63761 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.258481Jy  sigma=0.001842
! Fit after  self-cal, rms=0.258146Jy  sigma=0.001839
! Inverting map 
! Your choice of large map pixels excluded 4.47% of the data.
!  The x-axis pixel size should ideally be below 0.1618 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1807 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.258146Jy  sigma=0.001839
! Fit after  self-cal, rms=0.215965Jy  sigma=0.001341
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 4.47% of the data.
!  The x-axis pixel size should ideally be below 0.1618 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1807 milli-arcsec
! Estimated beam: bmin=0.6267 mas, bmaj=1.485 mas, bpa=-8.99 degrees
! Estimated noise=519.719 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00437854 Jy
! Component: 100  -  total flux cleaned = -0.00444761 Jy
! Component: 150  -  total flux cleaned = -0.00395969 Jy
! Component: 200  -  total flux cleaned = -0.00356567 Jy
! Total flux subtracted in 200 components = -0.00356567 Jy
! Clean residual min=-0.007667 max=0.009060 Jy/beam
! Clean residual mean=0.000443 rms=0.001901 Jy/beam
! Combined flux in latest and established models = 2.63404 Jy
selfcal
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 69 components and 2.63404 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.211909Jy  sigma=0.001301
! Fit after  self-cal, rms=0.211700Jy  sigma=0.001299
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 4.47% of the data.
!  The x-axis pixel size should ideally be below 0.1618 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1807 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.8, 3.4).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00583216 Jy
! Component: 100  -  total flux cleaned = 0.00648806 Jy
! Component: 150  -  total flux cleaned = 0.00733107 Jy
! Component: 200  -  total flux cleaned = 0.00783119 Jy
! Total flux subtracted in 200 components = 0.00783119 Jy
! Clean residual min=-0.007369 max=0.006762 Jy/beam
! Clean residual mean=0.000328 rms=0.001719 Jy/beam
! Combined flux in latest and established models = 2.64187 Jy
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 78 components and 2.64188 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.210730Jy  sigma=0.001290
! Fit after  self-cal, rms=0.210662Jy  sigma=0.001290
! Inverting map 
! Your choice of large map pixels excluded 4.47% of the data.
!  The x-axis pixel size should ideally be below 0.1618 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1807 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.210662Jy  sigma=0.001290
! Fit after  self-cal, rms=0.209850Jy  sigma=0.001281
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 4.47% of the data.
!  The x-axis pixel size should ideally be below 0.1618 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1807 milli-arcsec
! Estimated beam: bmin=0.6282 mas, bmaj=1.484 mas, bpa=-8.955 degrees
! Estimated noise=519.207 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00484733 Jy
! Component: 100  -  total flux cleaned = -0.00321417 Jy
! Component: 150  -  total flux cleaned = -0.0024022 Jy
! Component: 200  -  total flux cleaned = -0.00195854 Jy
! Total flux subtracted in 200 components = -0.00195854 Jy
! Clean residual min=-0.004876 max=0.005415 Jy/beam
! Clean residual mean=0.000264 rms=0.001356 Jy/beam
! Combined flux in latest and established models = 2.63992 Jy
selfcal
! Performing phase self-cal
! Adding 21 model components to the UV plane model.
! The established model now contains 81 components and 2.63992 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.208775Jy  sigma=0.001272
! Fit after  self-cal, rms=0.208723Jy  sigma=0.001271
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 4.47% of the data.
!  The x-axis pixel size should ideally be below 0.1618 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1807 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.00193769 Jy
! Component: 100  -  total flux cleaned = 0.00253103 Jy
! Component: 150  -  total flux cleaned = 0.00288823 Jy
! Component: 200  -  total flux cleaned = 0.00305157 Jy
! Total flux subtracted in 200 components = 0.00305157 Jy
! Clean residual min=-0.004690 max=0.005202 Jy/beam
! Clean residual mean=0.000220 rms=0.001283 Jy/beam
! Combined flux in latest and established models = 2.64297 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 85 components and 2.64297 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.208372Jy  sigma=0.001269
! Fit after  self-cal, rms=0.208345Jy  sigma=0.001268
! Inverting map 
! Your choice of large map pixels excluded 4.47% of the data.
!  The x-axis pixel size should ideally be below 0.1618 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1807 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.208345Jy  sigma=0.001268
! Fit after  self-cal, rms=0.208264Jy  sigma=0.001266
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 4.47% of the data.
!  The x-axis pixel size should ideally be below 0.1618 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1807 milli-arcsec
! Estimated beam: bmin=2.292 mas, bmaj=2.643 mas, bpa=5.494 degrees
! Estimated noise=738.784 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000536558 Jy
! Component: 100  -  total flux cleaned = 0.000192351 Jy
! Component: 150  -  total flux cleaned = 0.000767222 Jy
! Component: 200  -  total flux cleaned = 0.000954382 Jy
! Total flux subtracted in 200 components = 0.000954382 Jy
! Clean residual min=-0.004660 max=0.008237 Jy/beam
! Clean residual mean=0.000475 rms=0.001900 Jy/beam
! Combined flux in latest and established models = 2.64392 Jy
selfcal
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 91 components and 2.64392 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.208257Jy  sigma=0.001266
! Fit after  self-cal, rms=0.208224Jy  sigma=0.001266
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 4.47% of the data.
!  The x-axis pixel size should ideally be below 0.1618 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1807 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.000444257 Jy
! Component: 100  -  total flux cleaned = 0.000856522 Jy
! Component: 150  -  total flux cleaned = 0.00101878 Jy
! Component: 200  -  total flux cleaned = 0.00106592 Jy
! Total flux subtracted in 200 components = 0.00106592 Jy
! Clean residual min=-0.004627 max=0.008080 Jy/beam
! Clean residual mean=0.000424 rms=0.001880 Jy/beam
! Combined flux in latest and established models = 2.64499 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 96 components and 2.64499 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.208201Jy  sigma=0.001266
! Fit after  self-cal, rms=0.208194Jy  sigma=0.001266
! Inverting map 
! Your choice of large map pixels excluded 4.47% of the data.
!  The x-axis pixel size should ideally be below 0.1618 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1807 milli-arcsec
! Added new window around map position (-6.4, 5).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00749581 Jy
! Component: 100  -  total flux cleaned = 0.0107381 Jy
! Component: 150  -  total flux cleaned = 0.0119828 Jy
! Component: 200  -  total flux cleaned = 0.0123595 Jy
! Total flux subtracted in 200 components = 0.0123595 Jy
! Clean residual min=-0.003222 max=0.003273 Jy/beam
! Clean residual mean=-0.000170 rms=0.001162 Jy/beam
! Combined flux in latest and established models = 2.65735 Jy
! Performing phase self-cal
! Adding 40 model components to the UV plane model.
! The established model now contains 135 components and 2.65735 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.208060Jy  sigma=0.001265
! Fit after  self-cal, rms=0.208046Jy  sigma=0.001265
! Inverting map 
! Your choice of large map pixels excluded 4.47% of the data.
!  The x-axis pixel size should ideally be below 0.1618 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1807 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 4.47% of the data.
!  The x-axis pixel size should ideally be below 0.1618 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1807 milli-arcsec
! Estimated beam: bmin=0.629 mas, bmaj=1.484 mas, bpa=-8.937 degrees
! Estimated noise=518.824 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.629 x 1.484 at -8.937 degrees (North through East)
! Clean map  min=-0.013002  max=2.2141 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.208046Jy  sigma=0.001265
! Fit after  self-cal, rms=0.197703Jy  sigma=0.001162
! Inverting map and beam 
! Your choice of large map pixels excluded 4.47% of the data.
!  The x-axis pixel size should ideally be below 0.1618 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1807 milli-arcsec
! Estimated beam: bmin=0.6288 mas, bmaj=1.484 mas, bpa=-8.953 degrees
! Estimated noise=517.737 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00489991 Jy
! Component: 100  -  total flux cleaned = -0.00544385 Jy
! Component: 150  -  total flux cleaned = -0.00545755 Jy
! Component: 200  -  total flux cleaned = -0.00504648 Jy
! Total flux subtracted in 200 components = -0.00504648 Jy
! Clean residual min=-0.003203 max=0.003916 Jy/beam
! Clean residual mean=-0.000046 rms=0.000891 Jy/beam
! Combined flux in latest and established models = 2.6523 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 146 components and 2.6523 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.197303Jy  sigma=0.001159
! Fit after  self-cal, rms=0.197278Jy  sigma=0.001159
! Inverting map 
! Your choice of large map pixels excluded 4.47% of the data.
!  The x-axis pixel size should ideally be below 0.1618 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1807 milli-arcsec
! Added new window around map position (0.8, 0.8).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00114154 Jy
! Component: 100  -  total flux cleaned = 0.0014159 Jy
! Component: 150  -  total flux cleaned = 0.00179801 Jy
! Component: 200  -  total flux cleaned = 0.00239643 Jy
! Total flux subtracted in 200 components = 0.00239643 Jy
! Clean residual min=-0.003146 max=0.002740 Jy/beam
! Clean residual mean=-0.000081 rms=0.000840 Jy/beam
! Combined flux in latest and established models = 2.6547 Jy
! Performing phase self-cal
! Adding 30 model components to the UV plane model.
! The established model now contains 157 components and 2.6547 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.197050Jy  sigma=0.001157
! Fit after  self-cal, rms=0.197035Jy  sigma=0.001157
! Inverting map 
! Your choice of large map pixels excluded 4.47% of the data.
!  The x-axis pixel size should ideally be below 0.1618 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1807 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.197035Jy  sigma=0.001157
! Fit after  self-cal, rms=0.197098Jy  sigma=0.001156
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 4.47% of the data.
!  The x-axis pixel size should ideally be below 0.1618 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1807 milli-arcsec
! Estimated beam: bmin=0.5656 mas, bmaj=1.212 mas, bpa=-5.563 degrees
! Estimated noise=780.621 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 1.6987 Jy
! Component: 100  -  total flux cleaned = 2.08866 Jy
! Component: 150  -  total flux cleaned = 2.25152 Jy
! Component: 200  -  total flux cleaned = 2.34414 Jy
! Total flux subtracted in 200 components = 2.34414 Jy
! Clean residual min=-0.010417 max=0.051182 Jy/beam
! Clean residual mean=0.000352 rms=0.005131 Jy/beam
! Combined flux in latest and established models = 2.34414 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 10 model components to the UV plane model.
! The established model now contains 10 components and 2.34414 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 4.47% of the data.
!  The x-axis pixel size should ideally be below 0.1618 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1807 milli-arcsec
! Estimated beam: bmin=0.6293 mas, bmaj=1.484 mas, bpa=-8.938 degrees
! Estimated noise=517.577 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)
! Added new window around map position (-0.6, 0.2).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0995025 Jy
! Component: 100  -  total flux cleaned = 0.159842 Jy
! Component: 150  -  total flux cleaned = 0.199746 Jy
! Component: 200  -  total flux cleaned = 0.226885 Jy
! Total flux subtracted in 200 components = 0.226885 Jy
! Clean residual min=-0.004045 max=0.014967 Jy/beam
! Clean residual mean=0.001065 rms=0.002574 Jy/beam
! Combined flux in latest and established models = 2.57102 Jy
! Adding 41 model components to the UV plane model.
! The established model now contains 46 components and 2.57102 Jy
! Inverting map 
! Your choice of large map pixels excluded 4.47% of the data.
!  The x-axis pixel size should ideally be below 0.1618 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1807 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0188888 Jy
! Component: 100  -  total flux cleaned = 0.0321955 Jy
! Component: 150  -  total flux cleaned = 0.041812 Jy
! Component: 200  -  total flux cleaned = 0.0490412 Jy
! Total flux subtracted in 200 components = 0.0490412 Jy
! Clean residual min=-0.003377 max=0.005053 Jy/beam
! Clean residual mean=0.000387 rms=0.001196 Jy/beam
! Combined flux in latest and established models = 2.62007 Jy
! Adding 35 model components to the UV plane model.
! The established model now contains 66 components and 2.62007 Jy
! Inverting map 
! Your choice of large map pixels excluded 4.47% of the data.
!  The x-axis pixel size should ideally be below 0.1618 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1807 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 4.47% of the data.
!  The x-axis pixel size should ideally be below 0.1618 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1807 milli-arcsec
! Estimated beam: bmin=2.292 mas, bmaj=2.642 mas, bpa=5.552 degrees
! Estimated noise=736.542 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0113139 Jy
! Component: 100  -  total flux cleaned = 0.0184162 Jy
! Component: 150  -  total flux cleaned = 0.0233409 Jy
! Component: 200  -  total flux cleaned = 0.0269542 Jy
! Total flux subtracted in 200 components = 0.0269542 Jy
! Clean residual min=-0.003437 max=0.002926 Jy/beam
! Clean residual mean=-0.000036 rms=0.001179 Jy/beam
! Combined flux in latest and established models = 2.64702 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.00223519 Jy
! Component: 100  -  total flux cleaned = 0.00359005 Jy
! Component: 150  -  total flux cleaned = 0.00406577 Jy
! Component: 200  -  total flux cleaned = 0.00442389 Jy
! Total flux subtracted in 200 components = 0.00442389 Jy
! Clean residual min=-0.003269 max=0.002990 Jy/beam
! Clean residual mean=-0.000239 rms=0.001025 Jy/beam
! Combined flux in latest and established models = 2.65144 Jy
! Adding 82 model components to the UV plane model.
! The established model now contains 137 components and 2.65144 Jy
! Inverting map 
! Your choice of large map pixels excluded 4.47% of the data.
!  The x-axis pixel size should ideally be below 0.1618 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1807 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 4.47% of the data.
!  The x-axis pixel size should ideally be below 0.1618 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1807 milli-arcsec
! Estimated beam: bmin=0.6293 mas, bmaj=1.484 mas, bpa=-8.938 degrees
! Estimated noise=517.577 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00183507 Jy
! Component: 100  -  total flux cleaned = -0.00115081 Jy
! Component: 150  -  total flux cleaned = -0.000274986 Jy
! Component: 200  -  total flux cleaned = 0.0003119 Jy
! Total flux subtracted in 200 components = 0.0003119 Jy
! Clean residual min=-0.003009 max=0.002835 Jy/beam
! Clean residual mean=-0.000083 rms=0.000808 Jy/beam
! Combined flux in latest and established models = 2.65176 Jy
selfcal
! Performing phase self-cal
! Adding 25 model components to the UV plane model.
! The established model now contains 153 components and 2.65176 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.197827Jy  sigma=0.001162
! Fit after  self-cal, rms=0.197644Jy  sigma=0.001161
wmodel J1608+1029_X_2001_07_05_pus_map.mod
! Writing 153 model components to file: J1608+1029_X_2001_07_05_pus_map.mod
wobs J1608+1029_X_2001_07_05_pus_uvs.fits
! Writing UV FITS file: J1608+1029_X_2001_07_05_pus_uvs.fits
wwins J1608+1029_X_2001_07_05_pus_map.win
! wwins: Wrote 6 windows to J1608+1029_X_2001_07_05_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 4.47% of the data.
!  The x-axis pixel size should ideally be below 0.1618 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1807 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = -0.000777599 Jy
! Component: 100  -  total flux cleaned = -0.00124782 Jy
! Component: 150  -  total flux cleaned = -0.00160688 Jy
! Component: 200  -  total flux cleaned = -0.00191117 Jy
! Component: 250  -  total flux cleaned = -0.0022504 Jy
! Component: 300  -  total flux cleaned = -0.00245756 Jy
! Component: 350  -  total flux cleaned = -0.00266017 Jy
! Component: 400  -  total flux cleaned = -0.00285833 Jy
! Component: 450  -  total flux cleaned = -0.00301379 Jy
! Component: 500  -  total flux cleaned = -0.00312869 Jy
! Component: 550  -  total flux cleaned = -0.00335347 Jy
! Component: 600  -  total flux cleaned = -0.00346379 Jy
! Component: 650  -  total flux cleaned = -0.00357258 Jy
! Component: 700  -  total flux cleaned = -0.00375064 Jy
! Component: 750  -  total flux cleaned = -0.00385543 Jy
! Component: 800  -  total flux cleaned = -0.00392461 Jy
! Component: 850  -  total flux cleaned = -0.00416331 Jy
! Component: 900  -  total flux cleaned = -0.00423067 Jy
! Component: 950  -  total flux cleaned = -0.00443007 Jy
! Component: 1000  -  total flux cleaned = -0.00459422 Jy
! Total flux subtracted in 1024 components = -0.00462682 Jy
! Clean residual min=-0.001879 max=0.001672 Jy/beam
! Clean residual mean=-0.000046 rms=0.000646 Jy/beam
! Combined flux in latest and established models = 2.64713 Jy
keep
! Adding 73 model components to the UV plane model.
! The established model now contains 219 components and 2.64713 Jy
wmap "J1608+1029_X_2001_07_05_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 4.47% of the data.
!  The x-axis pixel size should ideally be below 0.1618 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1807 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.6293 x 1.484 at -8.938 degrees (North through East)
! Clean map  min=-0.0043348  max=2.2172 Jy/beam
! Writing clean map to FITS file: J1608+1029_X_2001_07_05_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 2.21725 
invert
! Inverting map 
! Your choice of large map pixels excluded 4.47% of the data.
!  The x-axis pixel size should ideally be below 0.1618 milli-arcsec
!  The y-axis pixel size should ideally be below 0.1807 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000645431 
device "J1608+1029_X_2001_07_05_pus\_map.eps/VPS"
! Attempting to open device: 'J1608+1029_X_2001_07_05_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.0873285 0.0873285 0.174657 0.349314 0.698628 1.39726 2.79451 5.58903 11.1781 22.3561 44.7122 89.4244
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0019 
print "peak=",int(1000*peak_flux)/1000
! peak= 2.217 
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.6293 x 1.484 at -8.938 degrees (North through East)
! Clean map  min=-0.0043348  max=2.2172 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1608+1029_X_2001_07_05_pus\_map.gif/vgif"
! Attempting to open device: 'J1608+1029_X_2001_07_05_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1608+1029_X_2001_07_05_pus_uvs.log closed on Wed Jul  4 21:11:01 2007