def test_header_parse(): # file with missing positions xbt = ctd.from_edf(data_path.joinpath("C3_00005.edf")) assert xbt._metadata["lon"] is None assert xbt._metadata["lat"] is None # file with valid positions xbt = ctd.from_edf(data_path.joinpath("XBT.EDF")) np.testing.assert_almost_equal(xbt._metadata["lon"], -39.8790283) np.testing.assert_almost_equal(xbt._metadata["lat"], -19.7174805)
def xbt(): yield ctd.from_edf(data_path.joinpath("XBT.EDF.zip")) plt.close("all")
def xbt(): yield ctd.from_edf(data_path.joinpath("XBT.EDF.zip"))