-
I have a file containing only one APID. To confirm that, I ran PacketArray(
name="data",
data_type="uint",
bit_length=8,
array_shape="expand",
)) when I define the last field. However, when I look at the APID in the parsed output, it's something other than 32, and it's not even static. I'm not sure if there's something wrong with my data, something wrong with my code, or potentially something off in the One question I did have was why am I required to define Has Thanks for any advice! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You're right, it's hard to help without data! But here's what I can say: The
|
Beta Was this translation helpful? Give feedback.
You're right, it's hard to help without data! But here's what I can say:
The
bit_length
is the bit length of each array element. If you're not sure what the bit length is going to be, but you're sure the expanding field is going to be a clean number of bytes, then just setbit_length=8
and each array element will be one byte. The reason it's this way is because some people have expanding arrays of e.g. 10 bit unsigned integers and want them organized.VariableLength.load()
andsplit_by_apid()
use different code to iterate through the packets, so it's possible something is up, Are you specifying the primary header fields manually? The docs tell you not to do this forVariableLength
, but I …