Re: bit manipulation in NCL ?

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Mon Sep 19 2011 - 13:33:59 MDT

For a specific application:

http://www.ncl.ucar.edu/Applications/HDF.shtml
See hdf4eos_5.ncl

Good luck

On 9/19/11 12:48 PM, David Brown wrote:
> 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
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Mon Sep 19 15:34:06 2011

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