def test_pressure_field_labels(): """ Support different pressure field labels encountered in Sea-Bird cnv files (issue #3) """ for fname in sorted(data_path.glob("issue3prlabworks*.cnv")): ctd.from_cnv(fname) for fname in sorted(data_path.glob("issue3prlabfails*.cnv")): with pytest.raises(KeyError): ctd.from_cnv(fname)
def cnv(): yield ctd.from_cnv(data_path.joinpath("small.cnv.bz2"))
def filtered_ctd(): yield ctd.from_cnv(data_path.joinpath("CTD-spiked-filtered.cnv.bz2"))
def readCnv(file): # get the T/S Data by Cast df = ctd.from_cnv(file) df= df[['t090C','sal00']].rename(columns={"t090C": "temp", "sal00": "sal"}) df['cast'] = float(os.path.basename(file)[3:-4]) return df
def cnv(): yield ctd.from_cnv(data_path.joinpath("small.cnv.bz2")) plt.close("all")