code: def from_fsi(fname, skiprows=9):
      
      f = _read_file(fname)
      df = pd.read_csv(
          f,
          header="infer",
          index_col=None,
          skiprows=skiprows,
          dtype=float,
          delim_whitespace=True,
      )
      f.close()
  
      df.set_index("PRES", drop=True, inplace=True)
      df.index.name = "Pressure [dbar]"
      metadata = {"name": str(fname)}
      setattr(df, "_metadata", metadata)
      return df
docs: DataFrame constructor to open Falmouth Scientific, Inc. (FSI) CTD
      ASCII format.
  
      Examples
      --------
      >>> from pathlib import Path
      >>> import ctd
      >>> data_path = Path(__file__).parents[1].joinpath("tests", "data")
      >>> cast = ctd.from_fsi(data_path.joinpath('FSI.txt.gz'))
      >>> downcast, upcast = cast.split()
      >>> ax = downcast['TEMP'].plot_cast()