Пример #1
0
def test_imaging_sweep():
    testFile = "/input/APLUWCOVISMBSONAR001_20111001T210757.973Z-IMAGING.tar.gz"
    outputDir = "/output/test_imaging_sweep/"

    with runtime.Runtime() as pp:
        matfile = pp.covis_imaging_sweep(testFile, outputDir)
        assert (os.path.isfile(matfile))

        plotfile = pp.covis_imaging_plot(matfile, outputDir)
Пример #2
0
def test_imaging_sweep():
    with runtime.Runtime() as pp:
        metadata = pp.postproc_metadata()

        for key in [
                "matlab_version", "verstr", "postprocessing_gitrev",
                "postprocessing_gittags"
        ]:
            assert key in metadata
Пример #3
0
def test_diffuse_process_sweep():
    testFile = "/input/APLUWCOVISMBSONAR001_20111001T215909.172Z-DIFFUSE.tar.gz"
    outputDir = "/output/test_diffuse_process_sweep/"

    with runtime.Runtime() as pp:
        matfile = pp.covis_diffuse_sweep(testFile, outputDir)
        assert (os.path.isfile(matfile))

        plotfile = pp.covis_diffuse_plot(matfile, outputDir)
Пример #4
0
def test_version():
    with runtime.Runtime() as pp:
        matlab_version = pp.matlab_version()
        covis_version = pp.covis_version()
def test_imaging_sweep():
    with runtime.Runtime() as pp:
        metadata = pp.postproc_metadata()

        for key in ["gitrev", "gittags"]:
            assert key in metadata
from pycovis.postprocess import runtime

from pathlib import Path


testFile = "/input/APLUWCOVISMBSONAR001_20111001T210757.973Z-IMAGING.tar.gz"
outputDir = "/output/imaging/"

with runtime.Runtime() as pp:
    matfile = pp.covis_process_sweep(testFile, outputDir)
Пример #7
0
from pycovis.postprocess import runtime
import json

with runtime.Runtime() as covis:

    print("Looking for covis_path.json at: %s" % covis.find_input_file("covis_bathy.json") )

    with open( covis.find_input_file("covis_bathy.json") ) as f:
        j = json.load( f )

    print(j)