cp ts_smoke_by_xr.py ts_smoke.py
[wrf-fire-matlab.git] / vis3d / tign2rosg.m
blob677fc46a016ed0a044a2ae6b61c3571c23cb4838
1 function r=tign2rosg(p,i)
2 t=p.tign_g(:,:,i);
3 t(t==t(1,1))=nan;
4 [gx,gy]=grad(p.fxlong(:,:,i),p.fxlat(:,:,i),t);
5 gn=sqrt(gx.^2+gy.^2);
6 r = 1./gn;
7 end