Move a signal in time.
    
    This function returns a signal created by a shifting in time on the original
    signal. 
   
    Parameters
    ----------
    w: array-like
      the input signal to move.
    move: int
      the ammount of samples to shift the signal (if <0 the signal moves back, 
      if >0 the signal moves forward).

    Returns
    -------
    nw: a masked array
      a new aligned signal in a masked array (some cells have NAN values
      due to the alignment).
        
    
    See also: align()

def moveWave(w,move):
    """ Move a signal in time.
    
    This function returns a signal created by a shifting in time on the original
    signal. 
   
    Parameters
    ----------
    w: array-like
      the input signal to move.
    move: int
      the ammount of samples to shift the signal (if <0 the signal moves back, 
      if >0 the signal moves forward).

    Returns
    -------
    nw: a masked array
      a new aligned signal in a masked array (some cells have NAN values
      due to the alignment).
        
    
    See also: align()
    """ 
    
    nw = ma.masked_all(len(w))
    
    if (move == 0): 
        #don't move
        nw[0:] = w[0:]  
    elif (move>0):
        #forward
        nw[move:len(w)] = w[:len(w)-move]  
    else:
        #backwards
        nw[:len(w)-abs(move)] = w[abs(move):len(w)]
   
    return nw