code: def rosette_summary(fname):
      
      ros = from_cnv(fname)
      ros["pressure"] = ros.index.values.astype(float)
      ros["nbf"] = ros["nbf"].astype(int)
      ros.set_index("nbf", drop=True, inplace=True, verify_integrity=False)
      return ros
docs: Make a BTL (bottle) file from a ROS (bottle log) file.
  
      More control for the averaging process and at which step we want to
      perform this averaging eliminating the need to read the data into SBE
      Software again after pre-processing.
      NOTE: Do not run LoopEdit on the upcast!
  
      Examples
      --------
      >>> from pathlib import Path
      >>> import ctd
      >>> data_path = Path(__file__).parents[1].joinpath("tests", "data")
      >>> fname = data_path.joinpath('CTD/g01l01s01.ros')
      >>> ros = ctd.rosette_summary(fname)
      >>> ros = ros.groupby(ros.index).mean()
      >>> ros.pressure.values.astype(int)
      array([835, 806, 705, 604, 503, 404, 303, 201, 151, 100,  51,   1])