コード例 #1
0
ファイル: test_read.py プロジェクト: marianpena/python-ctd
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
ファイル: test_read.py プロジェクト: marianpena/python-ctd
def cnv():
    yield ctd.from_cnv(data_path.joinpath("small.cnv.bz2"))
コード例 #3
0
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
ファイル: test_plotting.py プロジェクト: pyoceans/python-ctd
def cnv():
    yield ctd.from_cnv(data_path.joinpath("small.cnv.bz2"))
    plt.close("all")