ctdcal.io.load_exchange_ctd

ctdcal.io.load_exchange_ctd(ctd_file: Union[str, pathlib.Path, io.BufferedIOBase], n_files=None, recursed=False) pandas.core.frame.DataFrame[source]

Load WHP-exchange CTD file(s) (_ct1.csv) into DataFrame. File(s) can be on local file system or downloaded from an appropriate cchdo.ucsd.edu link (e.g., https://cchdo.ucsd.edu/data/19434/325020210316_ct1.zip)

Adapted from cchdo.hydro package.

Parameters
  • ctd_file (str or Path) – Name or URL of file to be loaded

  • n_files (int, optional) – Number of files to load from .zip archive

Returns

  • header (dict or list of dict) – File metadata from header(s) (e.g., EXPOCODE, STNNBR, CASTNO)

  • df (DataFrame or list of DataFrame) – Loaded CTD file(s)