[ncl-talk] bit test function in NCL?

Adrian Tompkins tompkins at ictp.it
Fri Aug 18 05:51:47 MDT 2017


I found the answer: getbitsone

On 08/18/17 12:44, Adrian Tompkins wrote:
> Can I ask if there is a bit test function in NCL? I can't see one in the
> function list.  Some thing along the lines of :
> 
> logical function btest (
>      i : integer or long
>      ibit : integer
>      }
> 
> Arguments:
>      i : input integer
>      ibit : the bit number to test
> 
> Return value:
>      logical set to True if ibit is set.
> 
> thanks,
> 
> 

-- 
Adrian Tompkins          | Earth System Physics
+39 040 2240579 (office) | ICTP
+39 040 22407579 (fax)   | Strada Costiera 11
www.ictp.it/~tompkins    | 34151 Trieste, Italy



More information about the ncl-talk mailing list