repo.or.cz
/
wrf-fire-matlab.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
cp ts_smoke_by_xr.py ts_smoke.py
[wrf-fire-matlab.git]
/
vis3d
/
tign2rosg.m
blob
677fc46a016ed0a044a2ae6b61c3571c23cb4838
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