-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extracting metadata (parameter) information from LIS files. #404
Comments
I think you want the components as is not formatted as a table. They are way more primitive than dlis parameters tho |
Hi @ErlendHaa, Code
|
Hi, When the information record is structured (tm), the purpose of the mnemonic field is to indicate which column in the structured table the component block belongs in. Hence the repeated mnemonics. This entire structuring of components is a bit wierd, and the specification doesn't offer any good explanation of the semantic meaning of it. If you want to have a closer look it's defined in chapter 3.3.1.2 in the spec |
Hi @ErlendHaa, Thanks Again, |
That's right. This is also a good illustration of them, as it shows how multiple Component Blocks are combined into one row in the table. And I guess one row is sorta analogues to a DLIS parameter. We might want to update the documentation on this a bit. Maybe even add some support features that extract each "row" as an object (dict?):
|
For me it looks like, LIS has more detailed parameter information when compared to DLIS. |
Hi, This can be closed. I was able to successfully extract the information record data . -Achyuth |
Hi,
For DLIS files, I was able to extract the parameter information in a structured format quit easily by doing
logical_file.parameters
.For LIS, it looks like the parameter information is extracted by calling
dlisio.lis.InformationRecord()
. But when I do that what I get in return is an unstructured data, which I am not able to understand/process further.Is there an easy way to extract the metadata information from LIS files?
It would be much easier if could get the output in a strucured table format, or as a key value pair.
Sample code
Output:- I am not able to figure out how to format this data into say... Name, Description and Unit.
The text was updated successfully, but these errors were encountered: