メモです
wgrib2
以下からwgrib2をダウンロード
Index of /wd51we/wgrib2/Windows_64
DLLが必要になるので合わせてダウンロード
自分の環境では以下で動作しました。
gdal
DownloadingGdalBinaries – GDAL
topojson
GoeJSONをTopoJSONに変換する
npm install -g topojson
var prev = ctx.globalCompositeOperation; //現在の設定を保存
ctx.globalCompositeOperation = "destination-in"; //globalCompositeOperationを destination-in に設定
ctx.fillStyle = "rgba(0, 0, 0, 0.90)"; //canvasを塗りつぶす。 0.9の値を変えると軌跡の見え方(長さ)が変わる
ctx.fillRect(0, 0, canvas.attr("width"), canvas.attr("height"));
ctx.globalCompositeOperation = prev; //globalCompositeOperationを元に戻す
globalCompositeOperationの仕様
globalCompositeOperation プロパティ - Canvasリファレンス - HTML5.JP