Skip to content

Commit

Permalink
fix src/GridPaths.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
gaelforget committed Nov 25, 2021
1 parent 5b26769 commit 7c76dba
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/GridPaths.jl
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ function rotate_XCYC(Γ,R)
z=sind.(lat)

#rotation R:
γ=Γ.XC.grid
tmpx=γ.write(x); tmpy=γ.write(y); tmpz=γ.write(z)
tmp1=findall((!isnan).(tmpx))
tmpx2=tmpx[tmp1]; tmpy2=tmpy[tmp1]; tmpz2=tmpz[tmp1]
Expand All @@ -59,6 +60,7 @@ function shorter_paths!(xyz,xyz0,msk_in)
theta[1]=atan(y0[1],x0[1])
theta[2]=atan(y0[2],x0[2])

γ=msk_in[1].grid
tmpx=γ.write(x); tmpy=γ.write(y); tmpz=γ.write(z);
tmptheta=atan.(tmpy,tmpx)
if theta[2]<0;
Expand Down

0 comments on commit 7c76dba

Please sign in to comment.