Re: bit manipulation in NCL ?

From: David Brown <dbrown_at_nyahnyahspammersnyahnyah>
Date: Mon Sep 19 2011 - 12:48:18 MDT

Look at dim_gbits and getbitsone. For an example see http://www.ncl.ucar.edu/Applications/HDF.shtml#hdf4sds_ex5.
 -dave

On Sep 19, 2011, at 12:38 PM, Greg King wrote:

> I am working with QuikSCAT and ASCAT data sets (swath, level 2B). These have data quality flags stored in an unsigned integer variable for each grid cell. The individual bits of the variable are associated with individual flags (usually 16 or 17 flags). In order to examine individual flags, I need to test for individual bits.
>
> I have been trying to find (without success) NCL functions for bit manipulation, or discussions about how one might do the equivalent of
>
> * btest (fortran)
>
> * bitget, bitand (matlab)
>
> Any ideas and/or examples for NCL?
>
> greg king
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Mon Sep 19 14:48:24 2011

This archive was generated by hypermail 2.1.8 : Thu Sep 22 2011 - 17:12:44 MDT