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

2020年度 大気科学演習1

gnuplot

練習問題1ー1

Skymonitor の稼働率を見る

/work2/atmos/data/gnuplot/year.dat
/work2/atmos/data/gnuplot/month.dat
/work2/atmos/data/gnuplot/hour.dat

ヒント

味わい方

#練習問題1ー1a

文字の出現頻度を比べる

/work2/atmos/data/text/char01.dat
/work2/atmos/data/text/char02.dat
/work2/atmos/data/text/char03.dat
/work2/atmos/data/text/char04.dat

ヒント

規格化

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

テキスト推定

/work2/atmos/data/text/My_favorite_things.txt
/work2/atmos/data/text/Hotel_Mauna_Kea.txt
/work2/atmos/data/text/Potential_Vorticity.txt
/work2/atmos/data/text/Pangram.txt


練習問題1ー2

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 '/work2/atmos/data/chaos/lorenz.dat' using 2:3:4 with lines

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

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


練習問題1ー3

CO2濃度

/work2/atmos/data/co2/insitu.txt

ヒント

gnuplot> plot '/work2/atmos/data/co2/insitu.txt' using 0:8 with linespoints pointtype 7 pointsize 0.3
gnuplot> set datafile missing '-999.99'
gnuplot> plot '/work2/atmos/data/co2/insitu.txt' using ($2+($3-1)/12.0):8 with linespoints pointtype 7 pointsize 0.3




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