! Started logfile: J1438-2204_X_1999_05_10_pus_uvs.log on Mon Jan 14 12:49:23 2008
obs J1438-2204_X_1999_05_10_pus_uva.fits
! Reading UV FITS file: J1438-2204_X_1999_05_10_pus_uva.fits
! AN table 1: 9 integrations on 153 of 153 possible baselines.
! AN table 2: 33 integrations on 153 of 153 possible baselines.
! AN table 3: 17 integrations on 153 of 153 possible baselines.
! AN table 4: 107 integrations on 153 of 153 possible baselines.
! Apparent sampling: 0.134696 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1438-2204
! 
! There are 4 IFs, and a total of 4 channels:
! 
!  IF  Channel    Frequency  Freq offset  Number of   Overall IF
!       origin    at origin  per channel   channels    bandwidth
!  ------------------------------------------------------------- (Hz)
!  01        1  8.40997e+09        8e+06          1        8e+06
!  02        2  8.47997e+09        8e+06          1        8e+06
!  03        3  8.79497e+09        8e+06          1        8e+06
!  04        4  8.89997e+09        8e+06          1        8e+06
! 
! Polarization(s): RR
! 
! Read 1759 lines of history.
! 
! Reading 13684 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 J1438-2204_X_1999_05_10_pus]
integer clean_niter
clean_niter = 100
float clean_gain
clean_gain = 0.03
float dynam
dynam = 6.0
float soltime1
soltime1 = 120
float soltime2
soltime2 = 20
float thresh
thresh = 0.5
float win_mult
win_mult = 1.8
float time_av
time_av = 16
float old_peak
float new_peak
float flux_cutoff
mapsize field_size, field_cell
! Map grid = 256x256 pixels with 0.200x0.200 milli-arcsec cellsize.
startmod
! Applying default point source starting model.
! Performing phase self-cal
! Adding 1 model components to the UV plane model.
! The established model now contains 1 components and 1 Jy
! 
! Correcting IF 1.
!  A total of 162 telescope corrections were flagged in sub-array 1.
!  A total of 549 telescope corrections were flagged in sub-array 2.
!  A total of 197 telescope corrections were flagged in sub-array 3.
!  A total of 1100 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 162 telescope corrections were flagged in sub-array 1.
!  A total of 549 telescope corrections were flagged in sub-array 2.
!  A total of 197 telescope corrections were flagged in sub-array 3.
!  A total of 1100 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 162 telescope corrections were flagged in sub-array 1.
!  A total of 549 telescope corrections were flagged in sub-array 2.
!  A total of 197 telescope corrections were flagged in sub-array 3.
!  A total of 1100 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 162 telescope corrections were flagged in sub-array 1.
!  A total of 594 telescope corrections were flagged in sub-array 2.
!  A total of 197 telescope corrections were flagged in sub-array 3.
!  A total of 1100 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=0.680938Jy  sigma=0.004797
! Fit after  self-cal, rms=0.518921Jy  sigma=0.003764
! 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 5.38% of the data.
!  The x-axis pixel size should ideally be below 0.1649 milli-arcsec
! Estimated beam: bmin=0.5963 mas, bmaj=1.293 mas, bpa=5.361 degrees
! Estimated noise=1362.6 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.487912 Jy
! Component: 100  -  total flux cleaned = 0.611844 Jy
! Total flux subtracted in 100 components = 0.611844 Jy
! Clean residual min=-0.024448 max=0.052193 Jy/beam
! Clean residual mean=0.001967 rms=0.008548 Jy/beam
! Combined flux in latest and established models = 0.611844 Jy
! Performing phase self-cal
! Adding 7 model components to the UV plane model.
! The established model now contains 7 components and 0.611844 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.359997Jy  sigma=0.001903
! Fit after  self-cal, rms=0.359780Jy  sigma=0.001902
! Inverting map 
! Your choice of large map pixels excluded 5.38% of the data.
!  The x-axis pixel size should ideally be below 0.1649 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0580121 Jy
! Component: 100  -  total flux cleaned = 0.0885331 Jy
! Total flux subtracted in 100 components = 0.0885331 Jy
! Clean residual min=-0.022789 max=0.033784 Jy/beam
! Clean residual mean=0.000895 rms=0.005925 Jy/beam
! Combined flux in latest and established models = 0.700377 Jy
! Performing phase self-cal
! Adding 12 model components to the UV plane model.
! The established model now contains 13 components and 0.700377 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.353308Jy  sigma=0.001764
! Fit after  self-cal, rms=0.353096Jy  sigma=0.001763
! Inverting map 
! Your choice of large map pixels excluded 5.38% of the data.
!  The x-axis pixel size should ideally be below 0.1649 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 5.38% of the data.
!  The x-axis pixel size should ideally be below 0.1649 milli-arcsec
! Estimated beam: bmin=0.7221 mas, bmaj=1.752 mas, bpa=0.4139 degrees
! Estimated noise=752.258 mJy/beam.
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! Added new window around map position (1.6, 0.8).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.032334 Jy
! Component: 100  -  total flux cleaned = 0.0383724 Jy
! Component: 150  -  total flux cleaned = 0.0423678 Jy
! Component: 200  -  total flux cleaned = 0.0463447 Jy
! Total flux subtracted in 200 components = 0.0463447 Jy
! Clean residual min=-0.016438 max=0.016766 Jy/beam
! Clean residual mean=0.000084 rms=0.003970 Jy/beam
! Combined flux in latest and established models = 0.746722 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 28 components and 0.746722 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.350469Jy  sigma=0.001715
! Fit after  self-cal, rms=0.349865Jy  sigma=0.001710
! Inverting map 
! Your choice of large map pixels excluded 5.38% of the data.
!  The x-axis pixel size should ideally be below 0.1649 milli-arcsec
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GC        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MC        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  A total of 45 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GC        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MC        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        0.98     GC        1.00*    HH        1.00*    
!   HN        1.00*    KK        0.93     KP        0.97     LA        0.97     
!   MC        1.00*    MK        0.92     NL        1.12     NY        1.00*    
!   ON        1.00*    OV        0.96     PT        1.00     SC        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.87     FD        0.99     GC        1.00*    HH        0.88     
!   HN        1.00     KK        1.00*    KP        0.94     LA        0.99     
!   MC        1.09     MK        1.00*    NL        1.05     NY        1.00*    
!   ON        1.00*    OV        0.96     PT        1.01     SC        1.05     
!   WF        1.18     WZ        1.00*    
! 
! 
! Correcting IF 2.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GC        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MC        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  A total of 45 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GC        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MC        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        0.95     GC        1.00*    HH        1.00*    
!   HN        1.00*    KK        0.90     KP        0.99     LA        0.97     
!   MC        1.00*    MK        0.92     NL        1.12     NY        1.00*    
!   ON        1.00*    OV        0.96     PT        0.95     SC        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.97     FD        0.97     GC        1.00*    HH        0.86     
!   HN        0.99     KK        1.00*    KP        0.96     LA        1.00     
!   MC        1.12     MK        1.00*    NL        1.00     NY        1.00*    
!   ON        1.00*    OV        0.94     PT        0.93     SC        1.02     
!   WF        1.06     WZ        1.00*    
! 
! 
! Correcting IF 3.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GC        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MC        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  A total of 45 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GC        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MC        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        0.99     GC        1.00*    HH        1.00*    
!   HN        1.00*    KK        0.95     KP        1.04     LA        0.96     
!   MC        1.00*    MK        0.90     NL        1.13     NY        1.00*    
!   ON        1.00*    OV        0.96     PT        0.93     SC        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.98     FD        0.99     GC        1.00*    HH        0.92     
!   HN        1.02     KK        1.00*    KP        1.00     LA        0.99     
!   MC        1.16     MK        1.00*    NL        1.01     NY        1.00*    
!   ON        1.00*    OV        0.95     PT        0.94     SC        1.05     
!   WF        1.07     WZ        1.00*    
! 
! 
! Correcting IF 4.
!  Telescope amplitude corrections in sub-array 1:
!   BR        0.00*    FD        0.00*    GC        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MC        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  Telescope amplitude corrections in sub-array 2:
!   BR        0.00*    FD        0.00*    GC        0.00*    HH        0.00*    
!   HN        0.00*    KK        0.00*    KP        0.00*    LA        0.00*    
!   MC        0.00*    MK        0.00*    NL        0.00*    NY        0.00*    
!   ON        0.00*    OV        0.00*    PT        0.00*    SC        0.00*    
!   WF        0.00*    WZ        0.00*    
! 
!  Telescope amplitude corrections in sub-array 3:
!   BR        1.00*    FD        0.95     GC        1.00*    HH        1.00*    
!   HN        1.00*    KK        0.94     KP        0.98     LA        0.98     
!   MC        1.00*    MK        0.92     NL        1.09     NY        1.00*    
!   ON        1.00*    OV        0.97     PT        0.97     SC        1.00*    
!   WF        1.00*    WZ        1.00*    
! 
!  A total of 3 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   BR        0.91     FD        0.98     GC        1.00*    HH        0.95     
!   HN        1.01     KK        1.00*    KP        0.98     LA        1.01     
!   MC        1.12     MK        1.00*    NL        1.03     NY        1.00*    
!   ON        1.00*    OV        0.96     PT        0.97     SC        1.01     
!   WF        1.05     WZ        1.00*    
! 
! 
! Fit before self-cal, rms=0.349865Jy  sigma=0.001710
! Fit after  self-cal, rms=0.365267Jy  sigma=0.001666
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 5.44% of the data.
!  The x-axis pixel size should ideally be below 0.1649 milli-arcsec
! Estimated beam: bmin=0.7366 mas, bmaj=1.785 mas, bpa=0.9341 degrees
! Estimated noise=763.462 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.00304288 Jy
! Component: 100  -  total flux cleaned = -0.0035092 Jy
! Component: 150  -  total flux cleaned = -0.00390154 Jy
! Component: 200  -  total flux cleaned = -0.00412282 Jy
! Total flux subtracted in 200 components = -0.00412282 Jy
! Clean residual min=-0.007973 max=0.007120 Jy/beam
! Clean residual mean=0.000006 rms=0.001969 Jy/beam
! Combined flux in latest and established models = 0.742599 Jy
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 41 components and 0.742599 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.365084Jy  sigma=0.001664
! Fit after  self-cal, rms=0.365225Jy  sigma=0.001664
! Inverting map 
! Your choice of large map pixels excluded 5.44% of the data.
!  The x-axis pixel size should ideally be below 0.1649 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.365225Jy  sigma=0.001664
! Fit after  self-cal, rms=0.375266Jy  sigma=0.001655
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 5.44% of the data.
!  The x-axis pixel size should ideally be below 0.1649 milli-arcsec
! Estimated beam: bmin=0.7372 mas, bmaj=1.782 mas, bpa=0.998 degrees
! Estimated noise=763.944 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 5.19557e-05 Jy
! Component: 100  -  total flux cleaned = 4.4561e-05 Jy
! Component: 150  -  total flux cleaned = -4.53748e-05 Jy
! Component: 200  -  total flux cleaned = -4.31973e-05 Jy
! Total flux subtracted in 200 components = -4.31973e-05 Jy
! Clean residual min=-0.006322 max=0.005789 Jy/beam
! Clean residual mean=-0.000003 rms=0.001460 Jy/beam
! Combined flux in latest and established models = 0.742556 Jy
selfcal
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 50 components and 0.742556 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.375188Jy  sigma=0.001654
! Fit after  self-cal, rms=0.375307Jy  sigma=0.001654
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 5.44% of the data.
!  The x-axis pixel size should ideally be below 0.1649 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 = -8.95937e-05 Jy
! Component: 100  -  total flux cleaned = -1.14284e-05 Jy
! Component: 150  -  total flux cleaned = -1.21096e-05 Jy
! Component: 200  -  total flux cleaned = -8.10858e-05 Jy
! Total flux subtracted in 200 components = -8.10858e-05 Jy
! Clean residual min=-0.005878 max=0.005707 Jy/beam
! Clean residual mean=-0.000007 rms=0.001427 Jy/beam
! Combined flux in latest and established models = 0.742475 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 53 components and 0.742475 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.375262Jy  sigma=0.001654
! Fit after  self-cal, rms=0.375269Jy  sigma=0.001654
! Inverting map 
! Your choice of large map pixels excluded 5.44% of the data.
!  The x-axis pixel size should ideally be below 0.1649 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.375269Jy  sigma=0.001654
! Fit after  self-cal, rms=0.381335Jy  sigma=0.001653
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 5.44% of the data.
!  The x-axis pixel size should ideally be below 0.1649 milli-arcsec
! Estimated beam: bmin=0.7392 mas, bmaj=1.782 mas, bpa=1.053 degrees
! Estimated noise=764.976 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 2.42894e-05 Jy
! Component: 100  -  total flux cleaned = -0.000285695 Jy
! Component: 150  -  total flux cleaned = -0.000426483 Jy
! Component: 200  -  total flux cleaned = -0.000489088 Jy
! Total flux subtracted in 200 components = -0.000489088 Jy
! Clean residual min=-0.004996 max=0.005550 Jy/beam
! Clean residual mean=0.000058 rms=0.001364 Jy/beam
! Combined flux in latest and established models = 0.741986 Jy
selfcal
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 55 components and 0.741986 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.381285Jy  sigma=0.001652
! Fit after  self-cal, rms=0.381363Jy  sigma=0.001652
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 5.44% of the data.
!  The x-axis pixel size should ideally be below 0.1649 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.000166958 Jy
! Component: 100  -  total flux cleaned = -0.000107664 Jy
! Component: 150  -  total flux cleaned = -0.000110308 Jy
! Component: 200  -  total flux cleaned = -0.000163093 Jy
! Total flux subtracted in 200 components = -0.000163093 Jy
! Clean residual min=-0.004699 max=0.005498 Jy/beam
! Clean residual mean=0.000061 rms=0.001352 Jy/beam
! Combined flux in latest and established models = 0.741822 Jy
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 58 components and 0.741822 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.381334Jy  sigma=0.001652
! Fit after  self-cal, rms=0.381342Jy  sigma=0.001652
! Inverting map 
! Your choice of large map pixels excluded 5.44% of the data.
!  The x-axis pixel size should ideally be below 0.1649 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.381342Jy  sigma=0.001652
! Fit after  self-cal, rms=0.382231Jy  sigma=0.001652
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 5.44% of the data.
!  The x-axis pixel size should ideally be below 0.1649 milli-arcsec
! Estimated beam: bmin=2.093 mas, bmaj=4.039 mas, bpa=-14.81 degrees
! Estimated noise=949.853 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000721005 Jy
! Component: 100  -  total flux cleaned = -0.000834637 Jy
! Component: 150  -  total flux cleaned = -0.000836282 Jy
! Component: 200  -  total flux cleaned = -0.000874212 Jy
! Total flux subtracted in 200 components = -0.000874212 Jy
! Clean residual min=-0.003329 max=0.004763 Jy/beam
! Clean residual mean=0.000247 rms=0.001425 Jy/beam
! Combined flux in latest and established models = 0.740948 Jy
selfcal
! Performing phase self-cal
! Adding 10 model components to the UV plane model.
! The established model now contains 66 components and 0.740948 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.382229Jy  sigma=0.001652
! Fit after  self-cal, rms=0.382223Jy  sigma=0.001652
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 5.44% of the data.
!  The x-axis pixel size should ideally be below 0.1649 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 = -3.50194e-05 Jy
! Component: 100  -  total flux cleaned = 4.77338e-05 Jy
! Component: 150  -  total flux cleaned = 8.31751e-05 Jy
! Component: 200  -  total flux cleaned = 0.00011365 Jy
! Total flux subtracted in 200 components = 0.00011365 Jy
! Clean residual min=-0.003380 max=0.004775 Jy/beam
! Clean residual mean=0.000239 rms=0.001416 Jy/beam
! Combined flux in latest and established models = 0.741062 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 69 components and 0.741062 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.382220Jy  sigma=0.001652
! Fit after  self-cal, rms=0.382219Jy  sigma=0.001652
! Inverting map 
! Your choice of large map pixels excluded 5.44% of the data.
!  The x-axis pixel size should ideally be below 0.1649 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 5.44% of the data.
!  The x-axis pixel size should ideally be below 0.1649 milli-arcsec
! Estimated beam: bmin=0.7407 mas, bmaj=1.78 mas, bpa=1.12 degrees
! Estimated noise=765.908 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7407 x 1.78 at 1.12 degrees (North through East)
! Clean map  min=-0.004279  max=0.61674 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.382219Jy  sigma=0.001652
! Fit after  self-cal, rms=0.748386Jy  sigma=0.001536
! Inverting map and beam 
! Your choice of large map pixels excluded 5.44% of the data.
!  The x-axis pixel size should ideally be below 0.1649 milli-arcsec
! Estimated beam: bmin=0.742 mas, bmaj=1.781 mas, bpa=1.145 degrees
! Estimated noise=764.449 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00110613 Jy
! Component: 100  -  total flux cleaned = -0.00138203 Jy
! Component: 150  -  total flux cleaned = -0.00155898 Jy
! Component: 200  -  total flux cleaned = -0.00161359 Jy
! Total flux subtracted in 200 components = -0.00161359 Jy
! Clean residual min=-0.004765 max=0.004353 Jy/beam
! Clean residual mean=-0.000061 rms=0.001182 Jy/beam
! Combined flux in latest and established models = 0.739448 Jy
! Performing phase self-cal
! Adding 17 model components to the UV plane model.
! The established model now contains 74 components and 0.739448 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.748354Jy  sigma=0.001536
! Fit after  self-cal, rms=0.748382Jy  sigma=0.001536
! Inverting map 
! Your choice of large map pixels excluded 5.44% of the data.
!  The x-axis pixel size should ideally be below 0.1649 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000130827 Jy
! Component: 100  -  total flux cleaned = -0.000185042 Jy
! Component: 150  -  total flux cleaned = -0.000185017 Jy
! Component: 200  -  total flux cleaned = -0.000185732 Jy
! Total flux subtracted in 200 components = -0.000185732 Jy
! Clean residual min=-0.004787 max=0.004331 Jy/beam
! Clean residual mean=-0.000052 rms=0.001178 Jy/beam
! Combined flux in latest and established models = 0.739263 Jy
! Performing phase self-cal
! Adding 14 model components to the UV plane model.
! The established model now contains 76 components and 0.739263 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.748364Jy  sigma=0.001535
! Fit after  self-cal, rms=0.748378Jy  sigma=0.001535
! Inverting map 
! Your choice of large map pixels excluded 5.44% of the data.
!  The x-axis pixel size should ideally be below 0.1649 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.748378Jy  sigma=0.001535
! Fit after  self-cal, rms=0.780931Jy  sigma=0.001535
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 5.44% of the data.
!  The x-axis pixel size should ideally be below 0.1649 milli-arcsec
! Estimated beam: bmin=0.6043 mas, bmaj=1.406 mas, bpa=6.175 degrees
! Estimated noise=1337.4 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.482756 Jy
! Component: 100  -  total flux cleaned = 0.597649 Jy
! Component: 150  -  total flux cleaned = 0.648083 Jy
! Component: 200  -  total flux cleaned = 0.678491 Jy
! Total flux subtracted in 200 components = 0.678491 Jy
! Clean residual min=-0.008351 max=0.015962 Jy/beam
! Clean residual mean=0.000767 rms=0.003190 Jy/beam
! Combined flux in latest and established models = 0.678491 Jy
uvw 0,-1
! Uniform weighting is not currently selected.
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
flux_cutoff = imstat(rms) * dynam
! Adding 20 model components to the UV plane model.
! The established model now contains 20 components and 0.678491 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 5.44% of the data.
!  The x-axis pixel size should ideally be below 0.1649 milli-arcsec
! Estimated beam: bmin=0.7429 mas, bmaj=1.778 mas, bpa=1.205 degrees
! Estimated noise=763.916 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.0254147 Jy
! Component: 100  -  total flux cleaned = 0.0392861 Jy
! Component: 150  -  total flux cleaned = 0.0476419 Jy
! Component: 200  -  total flux cleaned = 0.0531759 Jy
! Total flux subtracted in 200 components = 0.0531759 Jy
! Clean residual min=-0.005264 max=0.005986 Jy/beam
! Clean residual mean=0.000208 rms=0.001584 Jy/beam
! Combined flux in latest and established models = 0.731667 Jy
! Adding 23 model components to the UV plane model.
! The established model now contains 39 components and 0.731667 Jy
! Inverting map 
! Your choice of large map pixels excluded 5.44% of the data.
!  The x-axis pixel size should ideally be below 0.1649 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 5.44% of the data.
!  The x-axis pixel size should ideally be below 0.1649 milli-arcsec
! Estimated beam: bmin=2.093 mas, bmaj=4.04 mas, bpa=-14.81 degrees
! Estimated noise=945.718 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00458589 Jy
! Component: 100  -  total flux cleaned = 0.00605389 Jy
! Component: 150  -  total flux cleaned = 0.00628106 Jy
! Component: 200  -  total flux cleaned = 0.00628125 Jy
! Total flux subtracted in 200 components = 0.00628125 Jy
! Clean residual min=-0.004280 max=0.004349 Jy/beam
! Clean residual mean=-0.000199 rms=0.001470 Jy/beam
! Combined flux in latest and established models = 0.737948 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 = 1.05529e-07 Jy
! Component: 100  -  total flux cleaned = -9.33298e-07 Jy
! Component: 150  -  total flux cleaned = -7.31456e-07 Jy
! Component: 200  -  total flux cleaned = -2.15525e-06 Jy
! Total flux subtracted in 200 components = -2.15525e-06 Jy
! Clean residual min=-0.004084 max=0.004324 Jy/beam
! Clean residual mean=-0.000195 rms=0.001416 Jy/beam
! Combined flux in latest and established models = 0.737946 Jy
! Adding 15 model components to the UV plane model.
! The established model now contains 54 components and 0.737946 Jy
! Inverting map 
! Your choice of large map pixels excluded 5.44% of the data.
!  The x-axis pixel size should ideally be below 0.1649 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 5.44% of the data.
!  The x-axis pixel size should ideally be below 0.1649 milli-arcsec
! Estimated beam: bmin=0.7429 mas, bmaj=1.778 mas, bpa=1.205 degrees
! Estimated noise=763.916 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.000122793 Jy
! Component: 100  -  total flux cleaned = -0.000244353 Jy
! Component: 150  -  total flux cleaned = -0.000248081 Jy
! Component: 200  -  total flux cleaned = -0.000247356 Jy
! Total flux subtracted in 200 components = -0.000247356 Jy
! Clean residual min=-0.004939 max=0.005487 Jy/beam
! Clean residual mean=-0.000076 rms=0.001321 Jy/beam
! Combined flux in latest and established models = 0.737699 Jy
selfcal
! Performing phase self-cal
! Adding 16 model components to the UV plane model.
! The established model now contains 66 components and 0.737699 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.781087Jy  sigma=0.001539
! Fit after  self-cal, rms=0.781018Jy  sigma=0.001537
wmodel J1438-2204_X_1999_05_10_pus_map.mod
! Writing 66 model components to file: J1438-2204_X_1999_05_10_pus_map.mod
wobs J1438-2204_X_1999_05_10_pus_uvs.fits
! Writing UV FITS file: J1438-2204_X_1999_05_10_pus_uvs.fits
wwins J1438-2204_X_1999_05_10_pus_map.win
! wwins: Wrote 2 windows to J1438-2204_X_1999_05_10_pus_map.win
x = (field_size-8) * field_cell / 4
addwin -x,x,-x,x
clean (field_size*4),0.01
! Inverting map 
! Your choice of large map pixels excluded 5.44% of the data.
!  The x-axis pixel size should ideally be below 0.1649 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.000745802 Jy
! Component: 100  -  total flux cleaned = 0.000506954 Jy
! Component: 150  -  total flux cleaned = 0.000203245 Jy
! Component: 200  -  total flux cleaned = 0.0002012 Jy
! Component: 250  -  total flux cleaned = 0.000132716 Jy
! Component: 300  -  total flux cleaned = 6.74892e-05 Jy
! Component: 350  -  total flux cleaned = 4.0975e-06 Jy
! Component: 400  -  total flux cleaned = -5.61139e-05 Jy
! Component: 450  -  total flux cleaned = -5.62574e-05 Jy
! Component: 500  -  total flux cleaned = -0.000112634 Jy
! Component: 550  -  total flux cleaned = -0.000111913 Jy
! Component: 600  -  total flux cleaned = -0.000165347 Jy
! Component: 650  -  total flux cleaned = -0.000217365 Jy
! Component: 700  -  total flux cleaned = -0.000268203 Jy
! Component: 750  -  total flux cleaned = -0.000317289 Jy
! Component: 800  -  total flux cleaned = -0.000364517 Jy
! Component: 850  -  total flux cleaned = -0.000410802 Jy
! Component: 900  -  total flux cleaned = -0.000501742 Jy
! Component: 950  -  total flux cleaned = -0.000589954 Jy
! Component: 1000  -  total flux cleaned = -0.000589321 Jy
! Total flux subtracted in 1024 components = -0.000546483 Jy
! Clean residual min=-0.002320 max=0.002297 Jy/beam
! Clean residual mean=-0.000007 rms=0.000825 Jy/beam
! Combined flux in latest and established models = 0.737152 Jy
keep
! Adding 57 model components to the UV plane model.
! The established model now contains 123 components and 0.737152 Jy
![Exited script file: muppet]
wmap "J1438-2204_X_1999_05_10_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 5.44% of the data.
!  The x-axis pixel size should ideally be below 0.1649 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7429 x 1.778 at 1.205 degrees (North through East)
! Clean map  min=-0.0034751  max=0.61661 Jy/beam
! Writing clean map to FITS file: J1438-2204_X_1999_05_10_pus_map.fits
float peak_flux
peak_flux = peak(flux,max)
print "The peak flux is",peak_flux
! The peak flux is 0.61661 
invert
! Inverting map 
! Your choice of large map pixels excluded 5.44% of the data.
!  The x-axis pixel size should ideally be below 0.1649 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000823333 
device "J1438-2204_X_1999_05_10_pus\_map.eps/VPS"
! Attempting to open device: 'J1438-2204_X_1999_05_10_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.400577 0.400577 0.801154 1.60231 3.20462 6.40923 12.8185 25.6369 51.2738
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0024 
print "peak=",int(1000*peak_flux)/1000
! peak= 0.616 
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.7429 x 1.778 at 1.205 degrees (North through East)
! Clean map  min=-0.0034751  max=0.61661 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1438-2204_X_1999_05_10_pus\_map.gif/vgif"
! Attempting to open device: 'J1438-2204_X_1999_05_10_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1438-2204_X_1999_05_10_pus_uvs.log closed on Mon Jan 14 12:49:34 2008