bit manipulation in NCL ?

From: Greg King <gking_at_nyahnyahspammersnyahnyah>
Date: Mon Sep 19 2011 - 12:38:08 MDT

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:
Received on Mon Sep 19 14:38:16 2011

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