A quick fix for FCS files that have multiple datasets. I double-checked the FCS 3.1 standard, and $NEXTDATA gives the offset from the beginning of the current dataset to the beginning of the next one (in bytes.) We can implement this behavior by turning nextdata_offset into an accumulator, as I've done here.
I also added a quick smoke test with the file that @photocyte provided.
A quick fix for FCS files that have multiple datasets. I double-checked the FCS 3.1 standard, and
$NEXTDATA
gives the offset from the beginning of the current dataset to the beginning of the next one (in bytes.) We can implement this behavior by turningnextdata_offset
into an accumulator, as I've done here.I also added a quick smoke test with the file that @photocyte provided.