<div dir="ltr"><div dir="ltr"><br><div>I am struggling (feeling dumb) that I cannot figure out how to write a one-line efficient solution to copy a 1D vector of latitude to all the columns of a 2D grid since the values (of latitude) are constant across my grid in the X-direction.</div><div><br></div><div>So what I have is this</div><div><div>ny = 8</div><div>nx = 10</div><div>a = new( (/ny,nx/), float)</div><div>a = 0.</div><div>a(:, 0) = fspan(40., 42., ny)</div><div>do n = 1, nx-1</div><div>  a(:, n) = a(:,0)</div><div>end do</div></div><div><br></div><div>but that DO-n loop is slow as nx grows large and I thought there was an elegant solution in NCL to treat this array manipulation.</div><div><br></div><div>Any thoughts?</div><div>Thanks!!!</div><div><br></div><div>Greg</div><div><br></div></div></div>