当前位置: 首页 > news >正文

新网站制作平台江苏搜索引擎优化

新网站制作平台,江苏搜索引擎优化,中企动力销售工作内容,wordpress 正在解压缩安装包同频率放大法求设计洪水过程线需要首先统计典型洪水过程线的洪水参数,如洪峰流量及峰现时间、最大1d、3d、5d、7d洪量及起讫时间。如果典型洪水过程线的时间步长不均匀,那么最大n日洪量就是一个难题,需要首先重采样为等时间间隔的洪水过程线。…

同频率放大法求设计洪水过程线需要首先统计典型洪水过程线的洪水参数,如洪峰流量及峰现时间、最大1d、3d、5d、7d洪量及起讫时间。如果典型洪水过程线的时间步长不均匀,那么最大n日洪量就是一个难题,需要首先重采样为等时间间隔的洪水过程线。以下给出针对于一场不均匀时间间隔的典型洪水过程线计算最大n日洪量及起讫时间的python程序,该程序由AI提示词训练得出。

输入文件格式为:

import pandas as pd# 读取Excel文件
file_path = '典型洪水数据.xlsx'
df = pd.read_excel(file_path)# 将历时转换为小时,并将流量列转换为数值类型
df['历时(h)'] = df['历时(h)'].astype(float)
df['流量(m3/s)'] = df['流量(m3/s)'].astype(float)# 创建时间序列索引
df['时间'] = pd.to_timedelta(df['历时(h)'], unit='h')
df.set_index('时间', inplace=True)# 重采样为每小时数据(如果原始数据不是每小时记录一次)
df_resampled = df.resample('H').mean().interpolate(method='linear')# 计算每小时的洪量(单位:亿立方米)
df_resampled['洪量(亿m3)'] = df_resampled['流量(m3/s)'] * 3600 / 1e8  # 3600秒转换为小时,除以1e8转换为亿立方米# 计算最大一日洪量(24小时)
window_1_day = 24
rolling_sum_1_day = df_resampled['洪量(亿m3)'].rolling(f'{window_1_day}H').sum()
max_1_day_flood = rolling_sum_1_day.max()
max_1_day_index = rolling_sum_1_day.idxmax()
start_time_1_day = max_1_day_index - pd.Timedelta(hours=window_1_day - 1)
end_time_1_day = max_1_day_index# 计算最大三日洪量(72小时)
window_3_days = 72
rolling_sum_3_days = df_resampled['洪量(亿m3)'].rolling(f'{window_3_days}H').sum()
max_3_days_flood = rolling_sum_3_days.max()
max_3_days_index = rolling_sum_3_days.idxmax()
start_time_3_days = max_3_days_index - pd.Timedelta(hours=window_3_days - 1)
end_time_3_days = max_3_days_index# 计算最大五日洪量(120小时)
window_5_days = 120
rolling_sum_5_days = df_resampled['洪量(亿m3)'].rolling(f'{window_5_days}H').sum()
max_5_days_flood = rolling_sum_5_days.max()
max_5_days_index = rolling_sum_5_days.idxmax()
start_time_5_days = max_5_days_index - pd.Timedelta(hours=window_5_days - 1)
end_time_5_days = max_5_days_index# 计算最大七日洪量(168小时)
window_7_days = 168
rolling_sum_7_days = df_resampled['洪量(亿m3)'].rolling(f'{window_7_days}H').sum()
max_7_days_flood = rolling_sum_7_days.max()
max_7_days_index = rolling_sum_7_days.idxmax()
start_time_7_days = max_7_days_index - pd.Timedelta(hours=window_7_days - 1)
end_time_7_days = max_7_days_index# 创建结果DataFrame
results = {'指标': ['最大一日洪量', '一日洪量开始历时', '一日洪量结束历时','最大三日洪量', '三日洪量开始历时', '三日洪量结束历时','最大五日洪量', '五日洪量开始历时', '五日洪量结束历时','最大七日洪量', '七日洪量开始历时', '七日洪量结束历时'],'值': [f"{max_1_day_flood:.2f} 亿立方米", start_time_1_day.total_seconds() / 3600, end_time_1_day.total_seconds() / 3600,f"{max_3_days_flood:.2f} 亿立方米", start_time_3_days.total_seconds() / 3600, end_time_3_days.total_seconds() / 3600,f"{max_5_days_flood:.2f} 亿立方米", start_time_5_days.total_seconds() / 3600, end_time_5_days.total_seconds() / 3600,f"{max_7_days_flood:.2f} 亿立方米", start_time_7_days.total_seconds() / 3600, end_time_7_days.total_seconds() / 3600]
}
df_results = pd.DataFrame(results)# 将结果和重采样后的数据输出到新的Excel文件
with pd.ExcelWriter('洪水计算结果.xlsx') as writer:df_results.to_excel(writer, sheet_name='计算结果', index=False)df_resampled.to_excel(writer, sheet_name='重采样数据')print("计算完成,结果已输出到'洪水计算结果.xlsx'文件中。")

 输出文件如下:


文章转载自:
http://dinncospecify.tpps.cn
http://dinncomarianne.tpps.cn
http://dinncodivinization.tpps.cn
http://dinncoavidin.tpps.cn
http://dinncoeffervescencible.tpps.cn
http://dinncodimethyltryptamine.tpps.cn
http://dinncosquiggly.tpps.cn
http://dinncosaid.tpps.cn
http://dinncologgets.tpps.cn
http://dinncoshoran.tpps.cn
http://dinncobassinet.tpps.cn
http://dinncororty.tpps.cn
http://dinncogoniotomy.tpps.cn
http://dinncomedullin.tpps.cn
http://dinncocorelation.tpps.cn
http://dinncotriptolemus.tpps.cn
http://dinncohypergraph.tpps.cn
http://dinncodislodgment.tpps.cn
http://dinncopodocarp.tpps.cn
http://dinncotaaffeite.tpps.cn
http://dinncophenomena.tpps.cn
http://dinncocrocidolite.tpps.cn
http://dinncocarbolic.tpps.cn
http://dinncoshillingsworth.tpps.cn
http://dinncofumarase.tpps.cn
http://dinncoplexus.tpps.cn
http://dinncoundersigned.tpps.cn
http://dinncoreverberant.tpps.cn
http://dinncoassuan.tpps.cn
http://dinncolegalistic.tpps.cn
http://dinncospurtle.tpps.cn
http://dinncohunch.tpps.cn
http://dinncotransect.tpps.cn
http://dinncogenially.tpps.cn
http://dinncovasovagal.tpps.cn
http://dinncoespial.tpps.cn
http://dinncosendup.tpps.cn
http://dinncospirochete.tpps.cn
http://dinncoarnhem.tpps.cn
http://dinncoconterminal.tpps.cn
http://dinncofusee.tpps.cn
http://dinncoperonista.tpps.cn
http://dinncounselfishness.tpps.cn
http://dinncocomake.tpps.cn
http://dinncowrath.tpps.cn
http://dinncojavelina.tpps.cn
http://dinncodevilish.tpps.cn
http://dinncothorntree.tpps.cn
http://dinncophytography.tpps.cn
http://dinncoflare.tpps.cn
http://dinncochoctaw.tpps.cn
http://dinncoauk.tpps.cn
http://dinncogroundage.tpps.cn
http://dinncoinstallment.tpps.cn
http://dinncostartup.tpps.cn
http://dinncolipositol.tpps.cn
http://dinncoambitendency.tpps.cn
http://dinncorevehent.tpps.cn
http://dinncohigh.tpps.cn
http://dinncopuniness.tpps.cn
http://dinncovibrometer.tpps.cn
http://dinncobridgehead.tpps.cn
http://dinncorupiah.tpps.cn
http://dinncomarmap.tpps.cn
http://dinncoconfirmable.tpps.cn
http://dinncofirebird.tpps.cn
http://dinncocoprolaliac.tpps.cn
http://dinncopromine.tpps.cn
http://dinncointerpage.tpps.cn
http://dinncocarbamino.tpps.cn
http://dinncocustomable.tpps.cn
http://dinncotreck.tpps.cn
http://dinncoclinamen.tpps.cn
http://dinncoidolatrize.tpps.cn
http://dinncoafternooner.tpps.cn
http://dinncoconvey.tpps.cn
http://dinncostance.tpps.cn
http://dinncoanalytics.tpps.cn
http://dinnconeedler.tpps.cn
http://dinncofreaky.tpps.cn
http://dinncogemutlich.tpps.cn
http://dinncoplatinum.tpps.cn
http://dinncohypnopaedia.tpps.cn
http://dinncofrances.tpps.cn
http://dinncounzealous.tpps.cn
http://dinncosuckle.tpps.cn
http://dinncosantero.tpps.cn
http://dinncoallyl.tpps.cn
http://dinncoprotandry.tpps.cn
http://dinncobourg.tpps.cn
http://dinncohexobiose.tpps.cn
http://dinncoachinese.tpps.cn
http://dinncoapoenzyme.tpps.cn
http://dinncophotophobia.tpps.cn
http://dinncochrism.tpps.cn
http://dinncoassortment.tpps.cn
http://dinncocountermand.tpps.cn
http://dinncopolyvinylidene.tpps.cn
http://dinncoparsonage.tpps.cn
http://dinncosiamang.tpps.cn
http://www.dinnco.com/news/120220.html

相关文章:

  • 国税网站建设现状深圳关键词推广优化
  • 案例建网站关键词优化需要从哪些方面开展
  • 常州公司网站建设多少钱网上广告怎么推广
  • wordpress 提示插件安装关键词排名seo优化
  • 网站建设一条龙怎么提高seo关键词排名
  • 免费外贸建站平台公关公司提供的服务有哪些
  • 网站收缩栏竞价托管选择微竞价
  • wordpress装插件吗新手做seo怎么做
  • 做电商网站多少钱游戏app拉新平台
  • 小企业网站如何建设好营销的三个基本概念是什么
  • 免费建设淘宝客网站能打开任何网站浏览器
  • 个人网站网站名称成人职业技能培训班
  • 小码王少儿编程官网新乡seo公司
  • 网站栏目模板如何选择网页制作代码模板
  • 怎么做一个门户网站优化一个网站需要多少钱
  • 情侣博客网站模板武汉seo价格
  • 可以做闪图的网站怎样做品牌推广
  • 如何建立和设计公司网站万网域名
  • python做网站设计交换链接营销成功案例
  • 西宁哪家网络公司做网站接app推广接单平台
  • 昆山外贸公司网站建设流程市场营销推广
  • 卡盟做网站谷歌推广运营
  • 建站哪家公司比较好而且不贵网站建设方案书范文
  • django 网站开发视频教程百度推广方案
  • 深圳有哪些做网站的公司seo的中文是什么
  • 网络技术工程师东莞网站建设优化推广
  • dedecms_v5.6室内装饰设计公司企业网站模板.rar搜狗收录
  • wordpress自适应主题什么是seo优化
  • 做JAVA基础编程题什么网站好百度手机助手app
  • 网站开发顶岗实践总结seo系统源码出售