def test_storm_import(tmpdir): """Import Cube using Storm format (case Reek).""" acube = Cube() st1 = xtg.timer() acube.from_file(SFILE3, fformat="storm") elapsed = xtg.timer(st1) logger.info("Reading Storm format took %s", elapsed) assert acube.ncol == 280, "NCOL" vals = acube.values assert vals[180, 185, 4] == pytest.approx(0.117074, 0.0001) acube.to_file(join(tmpdir, "cube.rmsreg"), fformat="rms_regular")
def test_storm_import(): """Import Cube using Storm format (case Reek).""" acube = Cube() st1 = xtg.timer() acube.from_file(SFILE3, fformat="storm") elapsed = xtg.timer(st1) logger.info("Reading Storm format took %s", elapsed) assert acube.ncol == 280, "NCOL" vals = acube.values tsetup.assert_almostequal(vals[180, 185, 4], 0.117074, 0.0001) acube.to_file(join(TMD, "cube.rmsreg"), fformat="rms_regular")