[ 岡山大学 | 理学部 | 地球科学科 | 地球および惑星大気科学研究室 ]

大気科学演習1

gnuplot

練習問題1ー1

Skymonitor の稼働率を見る

/home/atmos/ipesc/sample/gnuplot/year.dat
/home/atmos/ipesc/sample/gnuplot/month.dat
/home/atmos/ipesc/sample/gnuplot/hour.dat

ヒント

味わい方


#練習問題1ー2

文字の出現頻度を比べる

/home/atmos/ipesc/sample/text/char01.dat
/home/atmos/ipesc/sample/text/char02.dat
/home/atmos/ipesc/sample/text/char03.dat
/home/atmos/ipesc/sample/text/char04.dat
/home/atmos/ipesc/sample/text/char05.dat
/home/atmos/ipesc/sample/text/char06.dat

ヒント

規格化

$ awk '{print $2}' datafile | xargs | tr ' ' '+' | bc

テキスト推定

/home/atmos/ipesc/sample/text/Close_to_you.txt
/home/atmos/ipesc/sample/text/Hotel_Mauna_Kea.txt
/home/atmos/ipesc/sample/text/Lorem_ipsum.txt
/home/atmos/ipesc/sample/text/My_favorite_things.txt
/home/atmos/ipesc/sample/text/Potential_Vorticity.txt
/home/atmos/ipesc/sample/text/Pangram.txt


練習問題1ー3

Lorenzアトラクタを描いてみる

ヒント

Lorenz方程式

Edward N. Lorenzが大気の流れを表す方程式を簡略化して導いた連立方程式.

dx/dt = P ( y - x )
dy/dt = - y - x z + R x
dz/dt = x y - b z

決定論的な常微分方程式であるが,カオス的な振る舞いをする.

味わい方

3次元プロット

gnuplot> splot '/home/atmos/ipesc/sample/chaos/lorenz.dat' using 2:3:4 with lines

とすると,xyz を3次元でプロットする.

図の上にカーソルを持っていって,クリックしたままカーソルを動かすと,視点を変えることができる.


#練習問題1ー4

CO2濃度

/home/atmos/ipesc/sample/co2/insitu.txt

ヒント

gnuplot> plot '/home/atmos/ipesc/sample/co2/insitu.txt' using 8:9 with lines
gnuplot> set datafile missing '-999.99'
gnuplot> plot '/home/atmos/ipesc/sample/co2/insitu.txt' using 8:9 with lines


練習問題1ー5

円周率に出てくる数字の出現頻度を見る.

ヒント

/home/atmos/ipesc/sample/number/pi.dat

味わい方1

#練習問題1ー5a

出現確率が 0.1 であった場合の出現頻度の95%信頼区間を重ね描きする.

ヒント

n p
[ n p - 1.96 ( n p ( 1 - p ) )^0.5 , n p + 1.96 ( n p ( 1 - p ) )^0.5 ]
gnuplot> plot 2

味わい方2

[ n p - 1.96 ( n p ( 1 - p ) )^0.5 , n p + 1.96 ( n p ( 1 - p ) )^0.5 ]

正規分布

練習問題1ー5b

各数字の出現確率を見る.

ヒント

using 1:($2/100000.0)

#練習問題1−5c

各数字の出現確率を区間推定し,出現確率と95%信頼区間を表示する.

ヒント

[ p - 1.96 ( p ( 1 - p ) / N )^0.5 , p + 1.96 ( p ( 1 - p ) / N )^0.5 ]
using 1:2:3 with errorbars
using 1:($2/100000.0):(1.96*(($2/100000.0)*(1.0-$2/100000.0)/100000.0)**(0.5)) with errorbars
N=100000.0
using 1:($2/N):(1.96*(($2/N)*(1.0-$2/N)/N)**(0.5)) with errorbars

味わい方3




Last Updated: 2021/11/11, Since: 2019/11/07.
This page is generated by Makefile.rd2html.