Added para datasource to database, modified calling method of database

这个提交包含在:
2023-03-28 11:31:57 +08:00
父节点 d0400e2c76
当前提交 ea2a7195a9
共修改 7 个文件,包含 30 行新增和 27 行删除
+10 -2
查看文件
@@ -42,8 +42,16 @@ def main():
from pyat.tlcore import call_tl
import numpy as np
[ranges, depths, TL, bathym] = call_tl(ETOPO1Path, STPath, freq=freq, sourceDepth=sourceDepth, sourceLat=sLat, sourceLon=sLon, receiveDepth=receiveDepth,
receiveLat=rLat, receiveLon=rLon, timeType=timeType, modelType=modelType, isPlot=png)
# 定义时间段
timeIndex = timeType
# 创建类
database = DataBase(ETOPO1Path, STPath)
# 设置时间段
database.set_timePeriod(timeIndex)
[ranges, depths, TL, bathym] = call_tl(database=database, freq=freq, sourceDepth=sourceDepth, sourceLat=sLat, sourceLon=sLon, receiveDepth=receiveDepth,
receiveLat=rLat, receiveLon=rLon, modelType=modelType, isPlot=png)
# write data to file
# 保存地形数据