I have the arrays lat2d(2168,5004) and lon2d(2168,5004).
The longitude values range from -180 to 180.
What's the fastest way to convert this to 0 to 360?
The do loop is too slow:
do ilat=0,2167
do ilon=0,5003
if (.not.ismissing(lon2d(ilat,ilon))) then
if (lon2d(ilat,ilon).lt.0.) then
lon2d(ilat,ilon)=lon2d(ilat,ilon)+360.
end if
end if
end do
end do
Thanks.
Mike
_______________________________________________
ncl-talk mailing list
ncl-talk@ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
This archive was generated by hypermail 2b29 : Fri Jul 30 2004 - 07:52:58 MDT