Well, if we're all lucky, the next version will be 5.0.0 (fully open
source), and this test should work fine. Or, even if the next version
is 4.3.2, it should be okay. The following short script produced
all "is less than" output, which was the expected output:
versions = (/"4.2.0.a034","4.3.0", "4.3.1","4.3.2","4.4.0","5.0","5.0.0"/)
nv = dimsizes(versions)
do i=0,nv-2
do j=i+1,nv-1
if( versions(i) .lt. versions(j)) then
print(versions(i) + " is less than " + versions(j))
else
print(versions(i) + " is not less than " + versions(j))
end if
end do
end do
The NCL team hasn't considered changing the version numbering scheme.
We moved away from the weird "4.2.0.axxx" numbering, and are now
using the "x.y.z" format.
Good question!
--Mary
On Thu, 23 Aug 2007, Lunde, Bruce N CIV NAVOCEANO, NP1 wrote:
>
> Hello,
>
> I guess to conditionally load scripts based on the
> version of NCL you are running you could do the
> following:
>
> if( get_ncl_version() .lt. "4.3.0" )then
> loadscript("where.ncl")
> end if
>
> begin
> ... Your code ...
> end
>
>
> But the ability of this to work into the future
> could depend upon the future NCL version numbering
> system.
>
> Bruce
>
> =====
> Bruce Lunde
> Bruce.Lunde_at_navy.mil
> 228-688-5843
> Code NP1
> Naval Oceanographic Office
> Stennis Space Center, MS
> =====
> _______________________________________________
> ncl-talk mailing list
> ncl-talk_at_ucar.edu
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Thu Aug 23 2007 - 15:54:14 MDT
This archive was generated by hypermail 2.2.0 : Thu Aug 23 2007 - 15:57:17 MDT