示例#1
0
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)
示例#2
0
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"))
示例#4
0
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
示例#5
0
def filtered_ctd():
    yield ctd.from_cnv(data_path.joinpath("CTD-spiked-filtered.cnv.bz2"))
示例#6
0
def cnv():
    yield ctd.from_cnv(data_path.joinpath("small.cnv.bz2"))
    plt.close("all")
示例#7
0
def cnv():
    yield ctd.from_cnv(data_path.joinpath("small.cnv.bz2"))
    plt.close("all")