original_docstring: 
      Modify dataframe by adding column 'vel_*_rcs_raw' for velocity in RCS.
      (Might be handy to first smoothen pos_Rz, to reduce error propagation.)
      This velocity is going to be noisy still.
      
docstring: Modify dataframe by adding column 'vel_*_rcs_raw' for velocity in RCS.
  (Might be handy to first smoothen pos_Rz, to reduce error propagation.)
  This velocity is going to be noisy still.
docstring_tokens: Modify dataframe by adding column ' vel_ * _rcs_raw ' for velocity in RCS . ( Might be handy to first smoothen pos_Rz to reduce error propagation . ) This velocity is going to be noisy still .
code: def calc_vel_rcs_raw(df):
      """
      Modify dataframe by adding column 'vel_*_rcs_raw' for velocity in RCS.
      (Might be handy to first smoothen pos_Rz, to reduce error propagation.)
      This velocity is going to be noisy still.
      """
      vx = df.get('vel_x').values
      vy = df.get('vel_y').values
      angle = np.pi*0.5 - df.get('pos_Rz').values
      s = np.sin(angle)
      c = np.cos(angle)
      df.insert(len(df.columns), 'vel_x_rcs_raw', c * vx - s * vy)
      df.insert(len(df.columns), 'vel_y_rcs_raw', s * vx + c * vy)
      # rotational velocity is the same in RCS as in FCS
      df.insert(len(df.columns), 'vel_Rz_rcs_raw', df.get('vel_Rz').values)
      return df
code_tokens: def calc_vel_rcs_raw ( df ) : vx = df . get ( 'vel_x' ) . values vy = df . get ( 'vel_y' ) . values angle = np . pi * 0.5 - df . get ( 'pos_Rz' ) . values s = np . sin ( angle ) c = np . cos ( angle ) df . insert ( len ( df . columns ) , 'vel_x_rcs_raw' , c * vx - s * vy ) df . insert ( len ( df . columns ) , 'vel_y_rcs_raw' , s * vx + c * vy ) df . insert ( len ( df . columns ) , 'vel_Rz_rcs_raw' , df . get ( 'vel_Rz' ) . values ) return df
short_docstring: Modify dataframe by adding column 'vel_*_rcs_raw' for velocity in RCS.
short_docstring_tokens: Modify dataframe by adding column ' vel_ * _rcs_raw ' for velocity in RCS .
comment: """
      Modify dataframe by adding column 'vel_*_rcs_raw' for velocity in RCS.
      (Might be handy to first smoothen pos_Rz, to reduce error propagation.)
      This velocity is going to be noisy still.
      """$SEP$# rotational velocity is the same in RCS as in FCS