Re: read byte values from HDF file QA flag

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Wed Aug 14 2013 - 06:13:38 MDT

An example of dim_gbits usage:
    http://www.ncl.ucar.edu/Applications/HDF.shtml
    hdf4eos_5.ncl:

On 8/14/13 12:26 AM, Marston Johnston wrote:
> Hi Xin,
>
> There is a function called dim_gbits() that can do as you require.
>
> http://www.ncl.ucar.edu/Document/Functions/Built-in/dim_gbits.shtml
>
> /M
>
>
> On Wed, Aug 14, 2013 at 8:10 AM, Xin Xi <xxi@gatech.edu> wrote:
>
>> Hi,
>> The quality assurance (QA) flag in a MODIS HDF file is in 8-bit unsigned
>> integer type (valid range 0-254). I want to read bit position 2 and 3,
>> which give me a value between 0 and 3. How can I do it? I tried to use
>> logical operator but it returns true or false values.
>> Thanks,
>> Xin
>>
>> _______________________________________________
>> 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 Wed Aug 14 06:13:26 2013

This archive was generated by hypermail 2.1.8 : Wed Aug 14 2013 - 18:35:09 MDT