equinor / dlisio

Python library for working with the well log formats Digital Log Interchange Standard (DLIS V1) and Log Information Standard (LIS79)
https://dlisio.readthedocs.io/en/latest/
Other
121 stars 39 forks source link

Support files with non-zero padding #370

Open achaikou opened 3 years ago

achaikou commented 3 years ago

According to LIS79 specification,

a Physical Record may be padded with null characters to guarantee a minimum record size.

RP66 specification says nothing on the matter.

In reality we however see many files with random(?) padbyte characters added after the record to assure that for every record (declared_record_length + size(padbytes)) % 4 == 0. At the moment we always saw it to be 2 characters. These two characters are not included in the record length. For example

It happens in both dlis and lis files, but looks to be more common in lis ones.

At the moment we saw these %4 padded files wrapped into 2 types of envelopes:

Note: It's unclear if these envelopes can be mixed or if %4-padded files can be not wrapped into anything at all.