コード例 #1
0
def test_create_latex_document_guadalete_estuary_astronomical_tide():
    # Data
    modf = os.path.join(tests.current_path, '..', '..', 'inputadapter',  'tests', 'output', 'modf',
                        'guadalete_estuary_astronomical_tide.modf')
    modf = MetOceanDF.read_file(modf)

    # Config report file
    template = os.path.join(tests.current_path, '..', 'templates', 'latex', 'guadalete_estuary_astronomical_tide.conf')

    latex.create_document(modf, template, output_title='guadalete_estuary_astronomical_tide')
コード例 #2
0
def test_create_latex_document_gran_valparaiso_sea_level_pressure():
    # Data
    modf = os.path.join(tests.current_path, '..', '..', 'inputadapter',  'tests', 'output', 'modf',
                        'gran_valparaiso_sea_level_pressure.modf')
    modf = MetOceanDF.read_file(modf)

    # Config report file
    template = os.path.join(tests.current_path, '..', 'templates', 'latex', 'gran_valparaiso_sea_level_pressure.conf')

    latex.create_document(modf, template, output_title='gran_valparaiso_sea_level_pressure')
コード例 #3
0
def test_create_latex_document_mondego_estuary_river_discharge():
    # Data
    modf = os.path.join(tests.current_path, '..', '..', 'inputadapter',  'tests', 'output', 'modf',
                        'mondego_estuary_river_discharge.modf')
    modf = MetOceanDF.read_file(modf)

    # Config report file
    template = os.path.join(tests.current_path, '..', 'templates', 'latex', 'mondego_estuary_river_discharge.conf')

    latex.create_document(modf, template, output_title='mondego_estuary_river_discharge')
コード例 #4
0
def test_create_latex_document_granada_beach_wind():
    # Data
    modf = os.path.join(tests.current_path, '..', '..', 'inputadapter',  'tests', 'output', 'modf',
                        'granada_beach_wind.modf')
    modf = MetOceanDF.read_file(modf)

    # Config report file
    template = os.path.join(tests.current_path, '..', 'templates', 'latex', 'granada_beach_wind.conf')

    latex.create_document(modf, template, output_title='granada_beach_wind')
コード例 #5
0
def test_create_latex_document_gran_valparaiso_wave():
    # Data
    modf = os.path.join(tests.current_path, '..', '..', 'inputadapter',  'tests', 'output', 'modf',
                        'gran_valparaiso_wave.modf')
    modf = MetOceanDF.read_file(modf)
    # Remove duplicates
    modf_unique = missing_values.erase_duplicated_time_indices(modf, 'first')

    # Config report file
    template = os.path.join(tests.current_path, '..', 'templates', 'latex', 'gran_valparaiso_wave.conf')

    latex.create_document(modf_unique, template, output_title='gran_valparaiso_wave')
コード例 #6
0
def test_create_latex_document_cancun():
    location = 'cancun'
    drivers = ['wave', 'wind', 'astronomical_tide', 'sea_level_pressure']

    data = []
    # Data
    for driver in drivers:
        modf = os.path.join(tests.current_path, '..', '..', 'inputadapter',  'tests', 'output', 'modf',
                            '{}_{}.modf'.format(location, driver))
        data.append(MetOceanDF.read_file(modf))

    # Config report file
    template = os.path.join(tests.current_path, '..', 'templates', 'latex', '{}.conf'.format(location))

    latex.create_document(data, template, output_title=location)