<?xml version="1.0" encoding="utf-8" ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>suikeidoutaiのブログ</title>
<link>https://ameblo.jp/suikeidoutai/</link>
<atom:link href="https://rssblog.ameba.jp/suikeidoutai/rss20.xml" rel="self" type="application/rss+xml" />
<atom:link rel="hub" href="http://pubsubhubbub.appspot.com" />
<description>ブログの説明を入力します。</description>
<language>ja</language>
<item>
<title>気温の差の二乗平均算出プログラム（構造関数用）</title>
<description>
<![CDATA[ <p># csvファイル<br>fpath_csv = r"./TKC/2022/06/28/202206281200.csv"<br><br># csvファイルをdataframeに<br>df_dt = pd.read_csv(fpath_csv,<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; skiprows=1,<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; names = ["date and time","y","x","z","T","C","Q"],<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; encoding="Shift-JIS"<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; )<br># 列ごとに値を配列に格納<br>dt_measure = df_dt.loc[:,"date and time"].values<br>y = df_dt.loc[:,"y"].values<br>x = df_dt.loc[:,"x"].values<br>z = df_dt.loc[:,"z"].values<br>T = df_dt.loc[:,"T"].values<br>C = df_dt.loc[:,"C"].values<br>Q = df_dt.loc[:,"Q"].values<br><br>X_30 = np.mean(x)<br>Y_30 = np.mean(y)<br>Z_30 = np.mean(z)<br>U_ave30 = np.sqrt(X_30**2 + Y_30**2 + Z_30**2) &nbsp; &nbsp;<br># ケルビン表示<br>T_K = [t + 273.15 for t in T]<br><br># 気温の差の二乗平均リスト<br>meanlist = []<br># 気温の差の二乗平均算出プログラム　ラグでループ処理<br>for j in range(1,len(x)):<br>&nbsp; &nbsp; sqlist = []<br>&nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; for k in range(len(x)-j):<br>&nbsp; &nbsp; &nbsp; &nbsp; t2 = (T_K[k]-T_K[k+j])**2<br>&nbsp; &nbsp; &nbsp; &nbsp; sqlist.append(t2)<br>&nbsp; &nbsp; meanlist.append(np.mean(sqlist))<br><br><a href="https://stat.ameba.jp/user_images/20221115/18/suikeidoutai/ec/9f/p/o0567016915203426080.png"><img alt="" height="125" src="https://stat.ameba.jp/user_images/20221115/18/suikeidoutai/ec/9f/p/o0567016915203426080.png" width="420"></a></p>
]]>
</description>
<link>https://ameblo.jp/suikeidoutai/entry-12774672232.html</link>
<pubDate>Tue, 15 Nov 2022 18:51:29 +0900</pubDate>
</item>
</channel>
</rss>
