Hi,
How can I create a boolean mask for the data arrays with integer type? I want
to create a 'useSample' boolean array for masking or discarding the unwanted
data from the array.
[nr,nc] = np.shape(ftype) #
useSamples = np.full((nr,nc), True, dtype=bool)
I want to transform the following MA
Hello Brian,
Thanks for your suggestion. Which is correct for MATLAB command: typeBits = FCF
<< -9?
typeBits = FCF >> 9
or
typeBits = FCF >> -9
I mean to ask if it should be -9 or +9?
Thanks in advance
Madhavan
On Wednesday, May 1, 2019 at 11:22:10 PM UTC+5:30, Brian Oney wrote:
> On Wed,
Hi,
I have the following line from a MATLAB program with FCF (format: UInt_16) as
input:
ftype = bitand(FCF, 7)
typeBits = bitshift(FCF, -9)
subtype = bitand(typeBits, 7)
I wrote the following in Python for the above commands:
ftype = FCF & 7
typeBits = FCF << -9 --> Is this co