示例#1
0
文件: ww3.py 项目: gdfa-ugr/protocol
def wind(file_name, metadata, path='.'):
    data = read_data(file_name, path)
    metadata['longitude'] = data.iloc[0, :]['lon']
    metadata['longitude'] = data.iloc[0, :]['lat']
    modf = adapt_driver(data, 'wind', driver_descriptors, metadata)

    return modf
示例#2
0
def wave(file_name, variable_name, time_column_pos, metadata, path='.'):
    data = read_data(file_name, variable_name, time_column_pos, path)
    modf = adapt_driver(data, 'wave', driver_descriptors, metadata)

    return modf
示例#3
0
文件: saih.py 项目: gdfa-ugr/protocol
def river_discharge(file_name, metadata, path='.'):
    data = read_data(file_name, path)
    modf = adapt_driver(data, 'river_discharge', driver_descriptors, metadata)

    return modf
示例#4
0
def astronomical_tide(file_name, metadata, path='.'):
    data = read_data(file_name, path)
    modf = adapt_driver(data, 'astronomical_tide', driver_descriptors, metadata)

    return modf
示例#5
0
文件: era.py 项目: gdfa-ugr/protocol
def sea_level_pressure(file_name, metadata, path='.'):
    (data, units, metadata) = read_data(file_name, metadata, path)
    modf = adapt_driver(data, 'sea_level_pressure', driver_descriptors, metadata)

    return modf