Changeset 524 for trunk


Ignore:
Timestamp:
03/01/05 12:40:30 (20 years ago)
Author:
kil064
Message:

make 'tint' weigting the default for average_time

Location:
trunk/python
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/asapmath.py

    r520 r524  
    1111        scanav:   True (default) averages each scan separately
    1212                  False averages all scans together,
    13         weight:   Weighting scheme. 'none' (default), 'var' (1/var(spec)
     13        weight:   Weighting scheme. 'none, 'var' (1/var(spec)
    1414                  weighted), 'tsys' (1/Tsys**2 weighted), or 'tint'
    15                   (integration time weighted)
     15                  (integration time weighted). The default is 'tint'
    1616    Example:
    1717        # return a time averaged scan from scana and scanb
     
    2626    if kwargs.has_key('scanav'):
    2727       scanAv = kwargs.get('scanav')
    28     weight = 'none'
     28    weight = 'tint'
    2929    if kwargs.has_key('weight'):
    3030       weight = kwargs.get('weight')
  • trunk/python/scantable.py

    r523 r524  
    744744    #
    745745
    746     def average_time(self, mask=None, scanav=True, weight=None):
     746    def average_time(self, mask=None, scanav=True, weight='tint'):
    747747        """
    748748        Return the (time) average of a scan, or apply it 'insitu'.
     
    756756            scanav:   True (default) averages each scan separately
    757757                      False averages all scans together,
    758             weight:   Weighting scheme. 'none' (default), 'var' (1/var(spec)
     758            weight:   Weighting scheme. 'none', 'var' (1/var(spec)
    759759                      weighted), 'tsys' (1/Tsys**2 weighted), or 'tint'
    760                       (integration time weighted)
     760                      (integration time weighted).  The default is
     761                      'tint'
    761762        Example:
    762763            # time average the scantable without using a mask
     
    764765        """
    765766        varlist = vars()
    766         if weight is None: weight = 'none'
     767        if weight is None: weight = 'tint'
    767768        if mask is None: mask = ()
    768769        from asap._asap import average as _av       
Note: See TracChangeset for help on using the changeset viewer.