def test_all_drivers():
    file_name = 'time_series.out'
    metadata = {'id': 'Guadalete',
                'latitude': 36.45,
                'longitude': 353.45}
    path = os.path.join(tests.sample_data_path, 'tidal_model_driver')

    modfs = tidal_model_driver.astronomical_tide(file_name, metadata, path)
def test_tidal_model_driver_jl():
    input_file_name = 'time_series.out'
    input_path = os.path.join(tests.full_data_path, 'locations', 'jl', 'astronomical_tide')
    output_csv_file_name = 'juan_lacaze_astronomical_tide.csv'
    output_csv_path = os.path.join('output', 'csv')
    output_modf_file_name = 'juan_lacaze_astronomical_tide.modf'
    output_modf_path = os.path.join('output', 'modf')
    metadata = {'source': 'tidal_model_driver',
                'latitude': -34.49,
                'longitude': -57.38,
                'depth': 'deep_water'}
    # Adapt driver
    modf_astron_tide = tidal_model_driver.astronomical_tide(input_file_name, metadata, input_path)

    # Save results at output
    tests.save_to_csv(modf_astron_tide, output_csv_file_name, output_csv_path)
    output_modf = os.path.join(output_modf_path, output_modf_file_name)
    modf_astron_tide.to_file(output_modf)
def test_tidal_model_driver_eg():
    input_file_name = 'time_series.out'
    input_path = os.path.join(tests.full_data_path, 'locations', 'eg', 'astronomical_tide')
    output_csv_file_name = 'guadalete_estuary_astronomical_tide.csv'
    output_csv_path = os.path.join('output', 'csv')
    output_modf_file_name = 'guadalete_estuary_astronomical_tide.modf'
    output_modf_path = os.path.join('output', 'modf')

    metadata = {'source': 'tidal_model_driver',
                'latitude': 36.45,
                'longitude': -6.55,
                'depth': 'deep_water'}
    # Adapt driver
    modf_astron_tide = tidal_model_driver.astronomical_tide(input_file_name, metadata, input_path)

    # Save results at output
    tests.save_to_csv(modf_astron_tide, output_csv_file_name, output_csv_path)
    output_modf = os.path.join(output_modf_path, output_modf_file_name)
    modf_astron_tide.to_file(output_modf)