絵を描く

「絵を描く」の編集履歴(バックアップ)一覧はこちら

絵を描く」(2010/01/05 (火) 20:11:30) の最新版変更点

追加された行は緑色になります。

削除された行は赤色になります。

とりあえずメモ。 a=fomfile("FILE",float32) a.byteswap() ←データは"big endian"で書かれているので、shuiで読むためにバイトスワップ。 a.reshape(180,360) imshow(ma.masked_equal(a,0),origin="lower"),colorbar() ←海は"0"が入っているので、ゼロをマスク from matplotlib.toolkits.basemap import Basemap a=fromfile("FILE",float32).reshape(220,250) M=Basemap( ) M.imshow M.drawcoastlines savefig( ) ちなみに、絵→動画はiamgemagickのconvert。 imagemagickはパイソンじゃないよ。
とりあえずメモ。 a=fomfile("FILE",float32) a.byteswap() ←データは"big endian"で書かれているので、shuiで読むためにバイトスワップ。 a.reshape(180,360) imshow(ma.masked_equal(a,0),origin="lower",interpolation="nearest,vmin=-30,vmax=30),colorbar() ←海は"0"が入っているので、ゼロをマスク from matplotlib.toolkits.basemap import Basemap a=fromfile("FILE",float32).reshape(220,250) M=Basemap( ) M.imshow M.drawcoastlines savefig( ) ちなみに、絵→動画はiamgemagickのconvert。 imagemagickはパイソンじゃないよ。

表示オプション

横に並べて表示:
変化行の前後のみ表示:
ツールボックス

下から選んでください:

新しいページを作成する
ヘルプ / FAQ もご覧ください。