2014年9月16日火曜日

Pythonでcsvファイルからデータを取り込んで処理してグラフ表示

引数処理
http://www.quark.kj.yamagata-u.ac.jp/~hiroki/python/?id=22
ファイル名やパラメータを引数として取り込む


CSVファイルを取り込んで数値のみに変換
http://www.quark.kj.yamagata-u.ac.jp/~hiroki/python/?id=4
途中readerがrenderになっている誤植があるので注意

http://peaceandhilightandpython.hatenablog.com/entry/2013/12/04/093359
こちらも参考になる

filter関数の使い方
http://www.18th-technote.com/post/5330171699/python-filter
lambda関数を内部で使っている

lambda関数について
http://www.lifewithpython.com/2013/01/python-anonymous-function-lambda.html
lambdaでの範囲の使い方
http://stackoverflow.com/questions/6076270/python-lambda-function-in-list-comprehensions

文字列構成要素の確認
http://motw.mods.jp/Python/str_methods.html#check_format
isdigit()の使い方

isdigitをfloatでも使えるようにする方法
http://d.hatena.ne.jp/artgear/20120217/1329493335

グラフ表示matplotlib
http://bicycle1885.hatenablog.com/entry/2014/02/14/023734

対数グラフの例
http://matplotlib.org/examples/pylab_examples/log_test.html

グラフの範囲指定について
http://d.hatena.ne.jp/y_n_c/20091122/1258842406

scipy(FFTやフィルタ作成に使える)
http://docs.scipy.org/doc/scipy/reference/

LPFの構成で参考に
http://stackoverflow.com/questions/17833119/lowpass-filter-in-python
http://blog.livedoor.jp/sce_info3-craft/archives/8388566.html
その他フィルタは本家
http://docs.scipy.org/doc/scipy/reference/generated/scipy.signal.firwin.html

FFTの参考に
http://turbare.net/transl/scipy-lecture-notes/intro/scipy.html

HEXファイルの比較(diff) for Mac

cmpコマンド
http://macterm.blog84.fc2.com/blog-entry-7.html

Hex find
http://ridiculousfish.com/hexfiend/