! Started logfile: J1504+1029_X_2003_09_17_pus_uvs.log on Sat May 12 21:57:39 2007
obs J1504+1029_X_2003_09_17_pus_uva.fits
! Reading UV FITS file: J1504+1029_X_2003_09_17_pus_uva.fits
! AN table 1: 100 integrations on 120 of 120 possible baselines.
! AN table 2: 64 integrations on 120 of 120 possible baselines.
! AN table 3: 170 integrations on 120 of 120 possible baselines.
! AN table 4: 104 integrations on 120 of 120 possible baselines.
! Apparent sampling: 0.0927511 visibilities/baseline/integration-bin.
! *** This seems a bit low - see "help observe" on the binwid argument.
! Found source: J1504+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 1485 lines of history.
! 
! Reading 19500 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
float field_size
field_size = 256
float field_cell
field_cell = 0.2
float 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 996 telescope corrections were flagged in sub-array 1.
!  A total of 815 telescope corrections were flagged in sub-array 2.
!  A total of 2236 telescope corrections were flagged in sub-array 3.
!  A total of 1135 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 2.
!  A total of 996 telescope corrections were flagged in sub-array 1.
!  A total of 815 telescope corrections were flagged in sub-array 2.
!  A total of 2236 telescope corrections were flagged in sub-array 3.
!  A total of 1135 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 3.
!  A total of 996 telescope corrections were flagged in sub-array 1.
!  A total of 815 telescope corrections were flagged in sub-array 2.
!  A total of 2236 telescope corrections were flagged in sub-array 3.
!  A total of 1135 telescope corrections were flagged in sub-array 4.
! 
! Correcting IF 4.
!  A total of 996 telescope corrections were flagged in sub-array 1.
!  A total of 815 telescope corrections were flagged in sub-array 2.
!  A total of 2236 telescope corrections were flagged in sub-array 3.
!  A total of 1135 telescope corrections were flagged in sub-array 4.
! 
! Fit before self-cal, rms=1.260316Jy  sigma=0.010701
! Fit after  self-cal, rms=0.697292Jy  sigma=0.006332
! clrmod: Cleared the established, tentative and continuum models.
! Redundant starting model cleared.
uvw 2,-1
! Uniform weighting binwidth: 2 (pixels).
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 2.05% of the data.
!  The x-axis pixel size should ideally be below 0.1824 milli-arcsec
! Estimated beam: bmin=0.5631 mas, bmaj=1.289 mas, bpa=-8.008 degrees
! Estimated noise=1038.32 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.14073 Jy
! Component: 100  -  total flux cleaned = 1.45871 Jy
! Total flux subtracted in 100 components = 1.45871 Jy
! Clean residual min=-0.045596 max=0.147803 Jy/beam
! Clean residual mean=0.001024 rms=0.015386 Jy/beam
! Combined flux in latest and established models = 1.45871 Jy
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 6 components and 1.45871 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.396637Jy  sigma=0.003435
! Fit after  self-cal, rms=0.396093Jy  sigma=0.003431
! Inverting map 
! Your choice of large map pixels excluded 2.05% of the data.
!  The x-axis pixel size should ideally be below 0.1824 milli-arcsec
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.166696 Jy
! Component: 100  -  total flux cleaned = 0.258132 Jy
! Total flux subtracted in 100 components = 0.258132 Jy
! Clean residual min=-0.025507 max=0.061240 Jy/beam
! Clean residual mean=0.000424 rms=0.008847 Jy/beam
! Combined flux in latest and established models = 1.71684 Jy
! Performing phase self-cal
! Adding 6 model components to the UV plane model.
! The established model now contains 8 components and 1.71684 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.292888Jy  sigma=0.002229
! Fit after  self-cal, rms=0.292541Jy  sigma=0.002226
! Inverting map 
! Your choice of large map pixels excluded 2.05% of the data.
!  The x-axis pixel size should ideally be below 0.1824 milli-arcsec
! Added new window around map position (1, -0.4).
! clean: niter=100  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0638091 Jy
! Component: 100  -  total flux cleaned = 0.105724 Jy
! Total flux subtracted in 100 components = 0.105724 Jy
! Clean residual min=-0.023793 max=0.037698 Jy/beam
! Clean residual mean=0.000170 rms=0.007187 Jy/beam
! Combined flux in latest and established models = 1.82257 Jy
! Performing phase self-cal
! Adding 20 model components to the UV plane model.
! The established model now contains 23 components and 1.82257 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.271007Jy  sigma=0.001919
! Fit after  self-cal, rms=0.270190Jy  sigma=0.001913
! Inverting map 
! Your choice of large map pixels excluded 2.05% of the data.
!  The x-axis pixel size should ideally be below 0.1824 milli-arcsec
print "************** FINISHED UNIFORM WEIGHTING CLEAN **************"
! ************** FINISHED UNIFORM WEIGHTING CLEAN ************** 
! 
uvw 0,-1
! Uniform weighting is not currently selected.
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
win_mult = win_mult * 1.6
clean_niter = clean_niter * 2
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 2.05% of the data.
!  The x-axis pixel size should ideally be below 0.1824 milli-arcsec
! Estimated beam: bmin=0.6924 mas, bmaj=1.603 mas, bpa=-11.36 degrees
! Estimated noise=620.184 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.0613139 Jy
! Component: 100  -  total flux cleaned = 0.0979352 Jy
! Component: 150  -  total flux cleaned = 0.12091 Jy
! Component: 200  -  total flux cleaned = 0.135898 Jy
! Total flux subtracted in 200 components = 0.135898 Jy
! Clean residual min=-0.021722 max=0.035971 Jy/beam
! Clean residual mean=-0.000822 rms=0.008030 Jy/beam
! Combined flux in latest and established models = 1.95846 Jy
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 38 components and 1.95846 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.259493Jy  sigma=0.001707
! Fit after  self-cal, rms=0.258765Jy  sigma=0.001700
! Inverting map 
! Your choice of large map pixels excluded 2.05% of the data.
!  The x-axis pixel size should ideally be below 0.1824 milli-arcsec
print "************** FINISHED NATURAL WEIGHTING CLEAN **************"
! ************** FINISHED NATURAL WEIGHTING CLEAN ************** 
! 
gscale true
! Performing overall amplitude self-cal
! 
! Correcting IF 1.
!  A total of 36 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        0.98     GC        0.96     HN        0.98     KP        1.01     
!   LA        0.95     MK        0.97     NL        1.02     NY        1.00*    
!   ON        1.00*    OV        0.99     PT        0.97     SC        0.96     
!   TS        1.00*    KK        1.05     WZ        1.00*    WF        1.00*    
! 
!  A total of 75 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        1.00*    GC        1.00*    HN        0.97     KP        1.00*    
!   LA        1.00*    MK        1.00*    NL        0.81     NY        1.06     
!   ON        1.03     OV        1.00*    PT        1.00*    SC        0.94     
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.01     
! 
!  A total of 192 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        1.00*    GC        1.00*    HN        0.96     KP        1.00*    
!   LA        1.00*    MK        1.00*    NL        1.12     NY        1.01     
!   ON        0.99     OV        1.00*    PT        1.00*    SC        0.94     
!   TS        1.34     KK        1.00*    WZ        0.97     WF        1.05     
! 
!  A total of 69 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   FD        1.02     GC        1.01     HN        1.11     KP        1.01     
!   LA        0.98     MK        0.96     NL        1.02     NY        1.00*    
!   ON        1.00*    OV        0.99     PT        1.00     SC        1.00*    
!   TS        0.99     KK        1.02     WZ        1.00*    WF        1.21     
! 
! 
! Correcting IF 2.
!  A total of 36 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        0.98     GC        0.98     HN        0.98     KP        0.96     
!   LA        0.95     MK        0.97     NL        1.01     NY        1.00*    
!   ON        1.00*    OV        0.98     PT        1.00     SC        0.93     
!   TS        1.00*    KK        1.08     WZ        1.00*    WF        1.00*    
! 
!  A total of 75 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        1.00*    GC        1.00*    HN        0.96     KP        1.00*    
!   LA        1.00*    MK        1.00*    NL        0.82     NY        1.11     
!   ON        1.04     OV        1.00*    PT        1.00*    SC        0.90     
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        0.97     
! 
!  A total of 192 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        1.00*    GC        1.00*    HN        0.98     KP        1.00*    
!   LA        1.00*    MK        1.00*    NL        1.12     NY        1.07     
!   ON        0.97     OV        1.00*    PT        1.00*    SC        0.93     
!   TS        1.34     KK        1.00*    WZ        0.96     WF        1.01     
! 
!  A total of 69 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   FD        1.02     GC        1.06     HN        1.12     KP        0.96     
!   LA        0.99     MK        0.98     NL        1.02     NY        1.00*    
!   ON        1.00*    OV        0.99     PT        1.03     SC        1.00*    
!   TS        0.97     KK        1.05     WZ        1.00*    WF        1.15     
! 
! 
! Correcting IF 3.
!  A total of 36 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        0.97     GC        0.95     HN        0.98     KP        0.94     
!   LA        0.95     MK        0.97     NL        1.00     NY        1.00*    
!   ON        1.00*    OV        1.02     PT        1.01     SC        0.94     
!   TS        1.00*    KK        1.03     WZ        1.00*    WF        1.00*    
! 
!  A total of 75 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        1.00*    GC        1.00*    HN        0.97     KP        1.00*    
!   LA        1.00*    MK        1.00*    NL        0.81     NY        1.12     
!   ON        1.06     OV        1.00*    PT        1.00*    SC        0.93     
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        1.03     
! 
!  A total of 192 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        1.00*    GC        1.00*    HN        0.96     KP        1.00*    
!   LA        1.00*    MK        1.00*    NL        1.08     NY        1.08     
!   ON        0.98     OV        1.00*    PT        1.00*    SC        0.95     
!   TS        1.39     KK        1.00*    WZ        0.99     WF        1.07     
! 
!  A total of 69 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   FD        1.01     GC        1.01     HN        1.11     KP        0.95     
!   LA        1.00     MK        0.97     NL        1.01     NY        1.00*    
!   ON        1.00*    OV        1.03     PT        1.03     SC        1.00*    
!   TS        0.97     KK        0.99     WZ        1.00*    WF        1.22     
! 
! 
! Correcting IF 4.
!  A total of 36 telescope corrections were flagged in sub-array 1.
!  Telescope amplitude corrections in sub-array 1:
!   FD        0.99     GC        0.93     HN        1.00     KP        0.95     
!   LA        0.94     MK        1.01     NL        1.01     NY        1.00*    
!   ON        1.00*    OV        1.01     PT        1.01     SC        0.99     
!   TS        1.00*    KK        1.05     WZ        1.00*    WF        1.00*    
! 
!  A total of 75 telescope corrections were flagged in sub-array 2.
!  Telescope amplitude corrections in sub-array 2:
!   FD        1.00*    GC        1.00*    HN        0.99     KP        1.00*    
!   LA        1.00*    MK        1.00*    NL        0.82     NY        1.11     
!   ON        1.07     OV        1.00*    PT        1.00*    SC        0.96     
!   TS        1.00*    KK        1.00*    WZ        1.00*    WF        0.98     
! 
!  A total of 192 telescope corrections were flagged in sub-array 3.
!  Telescope amplitude corrections in sub-array 3:
!   FD        1.00*    GC        1.00*    HN        1.01     KP        1.00*    
!   LA        1.00*    MK        1.00*    NL        1.10     NY        1.05     
!   ON        1.04     OV        1.00*    PT        1.00*    SC        0.98     
!   TS        1.33     KK        1.00*    WZ        1.01     WF        1.00     
! 
!  A total of 69 telescope corrections were flagged in sub-array 4.
!  Telescope amplitude corrections in sub-array 4:
!   FD        1.03     GC        1.00     HN        1.15     KP        0.96     
!   LA        0.97     MK        1.01     NL        1.02     NY        1.00*    
!   ON        1.00*    OV        1.02     PT        1.04     SC        1.00*    
!   TS        0.99     KK        1.02     WZ        1.00*    WF        1.20     
! 
! 
! Fit before self-cal, rms=0.258765Jy  sigma=0.001700
! Fit after  self-cal, rms=0.213774Jy  sigma=0.001398
dynam = dynam - 0.5
flux_cutoff = imstat(rms) * dynam
! Inverting map and beam 
! Your choice of large map pixels excluded 2.23% of the data.
!  The x-axis pixel size should ideally be below 0.1824 milli-arcsec
! Estimated beam: bmin=0.6994 mas, bmaj=1.705 mas, bpa=-9.992 degrees
! Estimated noise=625.618 mJy/beam.
repeat
  if (peak(flux) > flux_cutoff) peakwin win_mult
  clean clean_niter,clean_gain
  flux_cutoff = imstat(rms) * dynam
  selfcal
  new_peak = peak(flux)
  until(new_peak<=flux_cutoff)
! Added new window around map position (2.4, -0.8).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0268094 Jy
! Component: 100  -  total flux cleaned = 0.0424187 Jy
! Component: 150  -  total flux cleaned = 0.0513307 Jy
! Component: 200  -  total flux cleaned = 0.0544253 Jy
! Total flux subtracted in 200 components = 0.0544253 Jy
! Clean residual min=-0.013006 max=0.013883 Jy/beam
! Clean residual mean=0.000345 rms=0.003666 Jy/beam
! Combined flux in latest and established models = 2.01289 Jy
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 62 components and 2.01289 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.210150Jy  sigma=0.001353
! Fit after  self-cal, rms=0.209847Jy  sigma=0.001347
! Inverting map 
! Your choice of large map pixels excluded 2.23% of the data.
!  The x-axis pixel size should ideally be below 0.1824 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.209847Jy  sigma=0.001347
! Fit after  self-cal, rms=0.191407Jy  sigma=0.001247
dynam = dynam - 0.75
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 2.23% of the data.
!  The x-axis pixel size should ideally be below 0.1824 milli-arcsec
! Estimated beam: bmin=0.6997 mas, bmaj=1.702 mas, bpa=-10.05 degrees
! Estimated noise=625.637 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0130533 Jy
! Component: 100  -  total flux cleaned = 0.0206109 Jy
! Component: 150  -  total flux cleaned = 0.0245841 Jy
! Component: 200  -  total flux cleaned = 0.0262071 Jy
! Total flux subtracted in 200 components = 0.0262071 Jy
! Clean residual min=-0.006992 max=0.010166 Jy/beam
! Clean residual mean=0.000301 rms=0.001957 Jy/beam
! Combined flux in latest and established models = 2.0391 Jy
selfcal
! Performing phase self-cal
! Adding 24 model components to the UV plane model.
! The established model now contains 79 components and 2.0391 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.190409Jy  sigma=0.001236
! Fit after  self-cal, rms=0.190249Jy  sigma=0.001234
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 2.23% of the data.
!  The x-axis pixel size should ideally be below 0.1824 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 (5.6, 0.8).
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00919664 Jy
! Component: 100  -  total flux cleaned = 0.0141969 Jy
! Component: 150  -  total flux cleaned = 0.0164274 Jy
! Component: 200  -  total flux cleaned = 0.0177297 Jy
! Total flux subtracted in 200 components = 0.0177297 Jy
! Clean residual min=-0.007150 max=0.006073 Jy/beam
! Clean residual mean=0.000088 rms=0.001609 Jy/beam
! Combined flux in latest and established models = 2.05683 Jy
! Performing phase self-cal
! Adding 31 model components to the UV plane model.
! The established model now contains 103 components and 2.05683 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.189735Jy  sigma=0.001228
! Fit after  self-cal, rms=0.189698Jy  sigma=0.001227
! Inverting map 
! Your choice of large map pixels excluded 2.23% of the data.
!  The x-axis pixel size should ideally be below 0.1824 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.189698Jy  sigma=0.001227
! Fit after  self-cal, rms=0.189906Jy  sigma=0.001225
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 2.23% of the data.
!  The x-axis pixel size should ideally be below 0.1824 milli-arcsec
! Estimated beam: bmin=0.6999 mas, bmaj=1.701 mas, bpa=-10.05 degrees
! Estimated noise=625.709 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00576592 Jy
! Component: 100  -  total flux cleaned = 0.00940189 Jy
! Component: 150  -  total flux cleaned = 0.0111137 Jy
! Component: 200  -  total flux cleaned = 0.0123573 Jy
! Total flux subtracted in 200 components = 0.0123573 Jy
! Clean residual min=-0.005768 max=0.005143 Jy/beam
! Clean residual mean=0.000183 rms=0.001350 Jy/beam
! Combined flux in latest and established models = 2.06918 Jy
selfcal
! Performing phase self-cal
! Adding 33 model components to the UV plane model.
! The established model now contains 119 components and 2.06918 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.189614Jy  sigma=0.001222
! Fit after  self-cal, rms=0.189598Jy  sigma=0.001222
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 2.23% of the data.
!  The x-axis pixel size should ideally be below 0.1824 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.00221612 Jy
! Component: 100  -  total flux cleaned = 0.00347883 Jy
! Component: 150  -  total flux cleaned = 0.00438142 Jy
! Component: 200  -  total flux cleaned = 0.00518001 Jy
! Total flux subtracted in 200 components = 0.00518001 Jy
! Clean residual min=-0.005666 max=0.005013 Jy/beam
! Clean residual mean=0.000118 rms=0.001301 Jy/beam
! Combined flux in latest and established models = 2.07436 Jy
! Performing phase self-cal
! Adding 30 model components to the UV plane model.
! The established model now contains 125 components and 2.07436 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.189477Jy  sigma=0.001221
! Fit after  self-cal, rms=0.189468Jy  sigma=0.001220
! Inverting map 
! Your choice of large map pixels excluded 2.23% of the data.
!  The x-axis pixel size should ideally be below 0.1824 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.189468Jy  sigma=0.001220
! Fit after  self-cal, rms=0.189720Jy  sigma=0.001220
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 2.23% of the data.
!  The x-axis pixel size should ideally be below 0.1824 milli-arcsec
! Estimated beam: bmin=2.18 mas, bmaj=3.28 mas, bpa=-20.51 degrees
! Estimated noise=915.871 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.00673851 Jy
! Component: 100  -  total flux cleaned = 0.00826157 Jy
! Component: 150  -  total flux cleaned = 0.00917871 Jy
! Component: 200  -  total flux cleaned = 0.00953927 Jy
! Total flux subtracted in 200 components = 0.00953927 Jy
! Clean residual min=-0.004332 max=0.007211 Jy/beam
! Clean residual mean=0.000387 rms=0.002003 Jy/beam
! Combined flux in latest and established models = 2.0839 Jy
selfcal
! Performing phase self-cal
! Adding 23 model components to the UV plane model.
! The established model now contains 142 components and 2.0839 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.189671Jy  sigma=0.001220
! Fit after  self-cal, rms=0.189652Jy  sigma=0.001219
flux_cutoff = imstat(rms) * dynam
! Inverting map 
! Your choice of large map pixels excluded 2.23% of the data.
!  The x-axis pixel size should ideally be below 0.1824 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.000977385 Jy
! Component: 100  -  total flux cleaned = 0.00181254 Jy
! Component: 150  -  total flux cleaned = 0.0022218 Jy
! Component: 200  -  total flux cleaned = 0.00241951 Jy
! Total flux subtracted in 200 components = 0.00241951 Jy
! Clean residual min=-0.004648 max=0.006656 Jy/beam
! Clean residual mean=0.000296 rms=0.002021 Jy/beam
! Combined flux in latest and established models = 2.08632 Jy
! Performing phase self-cal
! Adding 32 model components to the UV plane model.
! The established model now contains 155 components and 2.08632 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.189667Jy  sigma=0.001219
! Fit after  self-cal, rms=0.189656Jy  sigma=0.001219
! Inverting map 
! Your choice of large map pixels excluded 2.23% of the data.
!  The x-axis pixel size should ideally be below 0.1824 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
win_mult = win_mult / 1.2
print "************** FINISHED AMPLITUDE SELF-CAL **************"
! ************** FINISHED AMPLITUDE SELF-CAL ************** 
restore
! Inverting map and beam 
! Your choice of large map pixels excluded 2.23% of the data.
!  The x-axis pixel size should ideally be below 0.1824 milli-arcsec
! Estimated beam: bmin=0.7 mas, bmaj=1.7 mas, bpa=-10.05 degrees
! Estimated noise=625.766 mJy/beam.
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7 x 1.7 at -10.05 degrees (North through East)
! Clean map  min=-0.0036469  max=1.569 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.189656Jy  sigma=0.001219
! Fit after  self-cal, rms=0.171610Jy  sigma=0.001089
! Inverting map and beam 
! Your choice of large map pixels excluded 2.23% of the data.
!  The x-axis pixel size should ideally be below 0.1824 milli-arcsec
! Estimated beam: bmin=0.6999 mas, bmaj=1.701 mas, bpa=-10.11 degrees
! Estimated noise=625.142 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000581303 Jy
! Component: 100  -  total flux cleaned = 0.000768543 Jy
! Component: 150  -  total flux cleaned = 0.000938693 Jy
! Component: 200  -  total flux cleaned = 0.00116712 Jy
! Total flux subtracted in 200 components = 0.00116712 Jy
! Clean residual min=-0.004184 max=0.003503 Jy/beam
! Clean residual mean=0.000114 rms=0.001025 Jy/beam
! Combined flux in latest and established models = 2.08749 Jy
! Performing phase self-cal
! Adding 19 model components to the UV plane model.
! The established model now contains 165 components and 2.08749 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.171515Jy  sigma=0.001088
! Fit after  self-cal, rms=0.171509Jy  sigma=0.001088
! Inverting map 
! Your choice of large map pixels excluded 2.23% of the data.
!  The x-axis pixel size should ideally be below 0.1824 milli-arcsec
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.000179184 Jy
! Component: 100  -  total flux cleaned = 0.000246814 Jy
! Component: 150  -  total flux cleaned = 0.00030859 Jy
! Component: 200  -  total flux cleaned = 0.000248395 Jy
! Total flux subtracted in 200 components = 0.000248395 Jy
! Clean residual min=-0.004117 max=0.003490 Jy/beam
! Clean residual mean=0.000111 rms=0.001006 Jy/beam
! Combined flux in latest and established models = 2.08774 Jy
! Performing phase self-cal
! Adding 26 model components to the UV plane model.
! The established model now contains 173 components and 2.08774 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.171456Jy  sigma=0.001087
! Fit after  self-cal, rms=0.171454Jy  sigma=0.001087
! Inverting map 
! Your choice of large map pixels excluded 2.23% of the data.
!  The x-axis pixel size should ideally be below 0.1824 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.171454Jy  sigma=0.001087
! Fit after  self-cal, rms=0.171582Jy  sigma=0.001087
print "************** CLEARING MODEL AND STARTING OVER **********"
! ************** CLEARING MODEL AND STARTING OVER ********** 
clrmod true
! clrmod: Cleared the established and tentative models.
uvw 2,-1
! Uniform weighting binwidth: 2 (pixels).
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 2.23% of the data.
!  The x-axis pixel size should ideally be below 0.1824 milli-arcsec
! Estimated beam: bmin=0.5636 mas, bmaj=1.344 mas, bpa=-7.312 degrees
! Estimated noise=1043.51 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 1.14254 Jy
! Component: 100  -  total flux cleaned = 1.46312 Jy
! Component: 150  -  total flux cleaned = 1.6268 Jy
! Component: 200  -  total flux cleaned = 1.72318 Jy
! Total flux subtracted in 200 components = 1.72318 Jy
! Clean residual min=-0.017107 max=0.051173 Jy/beam
! Clean residual mean=0.000868 rms=0.006475 Jy/beam
! Combined flux in latest and established models = 1.72318 Jy
uvw 0,-1
! Uniform weighting is not currently selected.
! Gridding weights will be scaled by errors raised to the power -1.
! Radial weighting is not currently selected.
flux_cutoff = imstat(rms) * dynam
! Adding 9 model components to the UV plane model.
! The established model now contains 9 components and 1.72318 Jy
! Inverting map and beam 
! Your choice of large map pixels excluded 2.23% of the data.
!  The x-axis pixel size should ideally be below 0.1824 milli-arcsec
! Estimated beam: bmin=0.7 mas, bmaj=1.701 mas, bpa=-10.1 degrees
! Estimated noise=625.278 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.108081 Jy
! Component: 100  -  total flux cleaned = 0.170851 Jy
! Component: 150  -  total flux cleaned = 0.211478 Jy
! Component: 200  -  total flux cleaned = 0.239999 Jy
! Total flux subtracted in 200 components = 0.239999 Jy
! Clean residual min=-0.006424 max=0.017187 Jy/beam
! Clean residual mean=0.001782 rms=0.004052 Jy/beam
! Combined flux in latest and established models = 1.96318 Jy
! Adding 54 model components to the UV plane model.
! The established model now contains 57 components and 1.96318 Jy
! Inverting map 
! Your choice of large map pixels excluded 2.23% of the data.
!  The x-axis pixel size should ideally be below 0.1824 milli-arcsec
uvtaper 0.3,taper_size
! Gaussian taper: value 0.3 at UV radius = 70 mega-wavelengths.
clean clean_niter,clean_gain
! Inverting map and beam 
! Your choice of large map pixels excluded 2.23% of the data.
!  The x-axis pixel size should ideally be below 0.1824 milli-arcsec
! Estimated beam: bmin=2.177 mas, bmaj=3.279 mas, bpa=-20.47 degrees
! Estimated noise=915.967 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = 0.0452498 Jy
! Component: 100  -  total flux cleaned = 0.0709323 Jy
! Component: 150  -  total flux cleaned = 0.0873064 Jy
! Component: 200  -  total flux cleaned = 0.0983272 Jy
! Total flux subtracted in 200 components = 0.0983272 Jy
! Clean residual min=-0.005475 max=0.008262 Jy/beam
! Clean residual mean=0.001379 rms=0.002549 Jy/beam
! Combined flux in latest and established models = 2.06151 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.0076909 Jy
! Component: 100  -  total flux cleaned = 0.0131568 Jy
! Component: 150  -  total flux cleaned = 0.0170944 Jy
! Component: 200  -  total flux cleaned = 0.0194482 Jy
! Total flux subtracted in 200 components = 0.0194482 Jy
! Clean residual min=-0.004423 max=0.005856 Jy/beam
! Clean residual mean=0.000627 rms=0.001762 Jy/beam
! Combined flux in latest and established models = 2.08096 Jy
! Adding 90 model components to the UV plane model.
! The established model now contains 141 components and 2.08096 Jy
! Inverting map 
! Your choice of large map pixels excluded 2.23% of the data.
!  The x-axis pixel size should ideally be below 0.1824 milli-arcsec
uvtaper 0,0
! No UV-taper is currently set.
clean
! Inverting map and beam 
! Your choice of large map pixels excluded 2.23% of the data.
!  The x-axis pixel size should ideally be below 0.1824 milli-arcsec
! Estimated beam: bmin=0.7 mas, bmaj=1.701 mas, bpa=-10.1 degrees
! Estimated noise=625.278 mJy/beam.
! clean: niter=200  gain=0.03  cutoff=0
! Component: 050  -  total flux cleaned = -0.00107012 Jy
! Component: 100  -  total flux cleaned = -0.000341551 Jy
! Component: 150  -  total flux cleaned = 9.31384e-05 Jy
! Component: 200  -  total flux cleaned = 0.000484582 Jy
! Total flux subtracted in 200 components = 0.000484582 Jy
! Clean residual min=-0.003933 max=0.004130 Jy/beam
! Clean residual mean=0.000210 rms=0.001040 Jy/beam
! Combined flux in latest and established models = 2.08144 Jy
selfcal
! Performing phase self-cal
! Adding 15 model components to the UV plane model.
! The established model now contains 148 components and 2.08144 Jy
! 
! Correcting IF 1.
! 
! Correcting IF 2.
! 
! Correcting IF 3.
! 
! Correcting IF 4.
! 
! Fit before self-cal, rms=0.171877Jy  sigma=0.001090
! Fit after  self-cal, rms=0.171675Jy  sigma=0.001088
wmodel J1504+1029_X_2003_09_17_pus_map.mod
! Writing 148 model components to file: J1504+1029_X_2003_09_17_pus_map.mod
wobs J1504+1029_X_2003_09_17_pus_uvs.fits
! Writing UV FITS file: J1504+1029_X_2003_09_17_pus_uvs.fits
wwins J1504+1029_X_2003_09_17_pus_map.win
! wwins: Wrote 4 windows to J1504+1029_X_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 
! Your choice of large map pixels excluded 2.23% of the data.
!  The x-axis pixel size should ideally be below 0.1824 milli-arcsec
! clean: niter=1024  gain=0.01  cutoff=0
! Component: 050  -  total flux cleaned = 0.00160307 Jy
! Component: 100  -  total flux cleaned = 0.00255764 Jy
! Component: 150  -  total flux cleaned = 0.00334048 Jy
! Component: 200  -  total flux cleaned = 0.00386645 Jy
! Component: 250  -  total flux cleaned = 0.00427014 Jy
! Component: 300  -  total flux cleaned = 0.00470801 Jy
! Component: 350  -  total flux cleaned = 0.00517771 Jy
! Component: 400  -  total flux cleaned = 0.00549607 Jy
! Component: 450  -  total flux cleaned = 0.00585004 Jy
! Component: 500  -  total flux cleaned = 0.00602294 Jy
! Component: 550  -  total flux cleaned = 0.00640384 Jy
! Component: 600  -  total flux cleaned = 0.00673568 Jy
! Component: 650  -  total flux cleaned = 0.00714232 Jy
! Component: 700  -  total flux cleaned = 0.00750126 Jy
! Component: 750  -  total flux cleaned = 0.0078149 Jy
! Component: 800  -  total flux cleaned = 0.0081614 Jy
! Component: 850  -  total flux cleaned = 0.00846415 Jy
! Component: 900  -  total flux cleaned = 0.00876204 Jy
! Component: 950  -  total flux cleaned = 0.00905529 Jy
! Component: 1000  -  total flux cleaned = 0.00923625 Jy
! Total flux subtracted in 1024 components = 0.00941548 Jy
! Clean residual min=-0.002097 max=0.002287 Jy/beam
! Clean residual mean=0.000096 rms=0.000752 Jy/beam
! Combined flux in latest and established models = 2.09086 Jy
keep
! Adding 72 model components to the UV plane model.
! The established model now contains 219 components and 2.09086 Jy
wmap "J1504+1029_X_2003_09_17_pus\_map.fits"
! Inverting map 
! Your choice of large map pixels excluded 2.23% of the data.
!  The x-axis pixel size should ideally be below 0.1824 milli-arcsec
! restore: Substituting estimate of restoring beam from last 'invert'.
! Restoring with beam: 0.7 x 1.701 at -10.1 degrees (North through East)
! Clean map  min=-0.0029208  max=1.5667 Jy/beam
! Writing clean map to FITS file: J1504+1029_X_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 1.56665 
invert
! Inverting map 
! Your choice of large map pixels excluded 2.23% of the data.
!  The x-axis pixel size should ideally be below 0.1824 milli-arcsec
float image_rms
image_rms = imstat(rms)
print "The final image rms is",image_rms
! The final image rms is 0.000749825 
device "J1504+1029_X_2003_09_17_pus\_map.eps/VPS"
! Attempting to open device: 'J1504+1029_X_2003_09_17_pus_map.eps/VPS'
loglevs 100*3*image_rms/peak_flux
! The new contour levels are:
!  -0.143585 0.143585 0.287169 0.574339 1.14868 2.29736 4.59471 9.18942 18.3788 36.7577 73.5154
print "clev=",int(3*image_rms*10000)/10000
! clev= 0.0022 
print "peak=",int(1000*peak_flux)/1000
! peak= 1.566 
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.7 x 1.701 at -10.1 degrees (North through East)
! Clean map  min=-0.0029208  max=1.5667 Jy/beam
mapcolor color, 0.9
! Mapplot colormap: rainbow, contrast: 0.9 brightness: 0.5.
device "J1504+1029_X_2003_09_17_pus\_map.gif/vgif"
! Attempting to open device: 'J1504+1029_X_2003_09_17_pus_map.gif/vgif'
mapplot cln
quit
! Quitting program
! Log file J1504+1029_X_2003_09_17_pus_uvs.log closed on Sat May 12 21:58:57 2007