Skip to content
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

How to extract metadata? #151

Open
vbmade2000 opened this issue Oct 23, 2021 · 1 comment
Open

How to extract metadata? #151

vbmade2000 opened this issue Oct 23, 2021 · 1 comment

Comments

@vbmade2000
Copy link

I am using python-bioformats to extract metadata from the Tif file.

I found a method called getMetadata which returns some Java object (as it says). This returned object has only one public method called addr(). This addr() method returns some number and I don't know how to use that number.

I want to extract all the metadata from a file. Can someone help me here?

@FMagnani
Copy link

For me, a method called get_omexml_metadata works well. It's a method of bioformats and its argument is the path for the file. For example, md_string = bioformats.get_omexml_metadata(pathToFile). I then copy-paste md_string into a file with extension .xml which can be opened by a browser.

I did this for a .vsi file, not a .tif, but it's worth to try.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants