NASA CEAの解析スクリプト

import matplotlib.pyplot as plt
import pandas as pd

file = open('output.txt').read()
outputs = file.split('THEORETICAL')
outputs = outputs[1:]
df = pd.DataFrame()
for output in outputs:
    dic = {}
    Pin = output.split('Pin =')[1].split('PSIA')[0].strip()
    O_F = output.split('O/F=')[1].split('%FUEL')[0].strip()
    Isp = output.split('Isp, M/SEC')[1].split('MASS')[0].strip()
    dic['Pin'] = float(Pin)
    dic['O_F'] = float(O_F)
    dic['Isp'] = float(Isp)
    df1 = pd.DataFrame(dic, index=[0])
    df = pd.concat([df, df1], ignore_index=True)


Pins = list(df['Pin'].unique())
colors = ['o-r','o-b','o-k']
cnt = 0

for Pin in Pins:
    color = colors[cnt]
    val = df[df['Pin']==Pin]
    plt.plot(val['O_F'],val['Isp'],color)
    cnt += 1

plt.legend([str(Pin)+'(psia)' for Pin in Pins])
plt.xlabel('O/F ratio')
plt.ylabel('Isp')
plt.show()

GoPro Hero9の蛍光灯のちらつきを抑える

  • Preferences>General>Auto Flickerで周波数を50Hzに設定
  • 撮影の解像度を1080, 50FPSに変更

Auto flickering60Hzだとちらつきが大きすぎた
Auto flickering50Hzでも、24FPSだとちらつきが大きい

ただしまだちらつき、というかゆっくりスクロールするような縞が発生する。
youtu.be

以下の動画でシャッタースピードについて触れられていた。
www.youtube.com

シャッタースピードをAutoから1/50に設定したら縞が消えた。無事に解決。