Closed zxdawn closed 1 year ago
Well, find out. I can store the result into a new variable named pqf
and use that to filter data.
pqf = product.validity.data.astype('uint32') & 0b1111111
product.pqf = harp.Variable(pqf, ["time",])
product_pqf = harp.execute_operations(product, operations='pqf==0')
Usually, I check specific errors of processing quality flag by:
However, the
processing_quality_flags
namedvalidity
has been converted from uint32 to int32 by harp automatically. Is it possible to convert it back to uint32 in operation and filter it by bitfield operator=&
? Or any other easier ways?