python-bioformats icon indicating copy to clipboard operation
python-bioformats copied to clipboard

How to extract metadata?

Open vbmade2000 opened this issue 4 years ago • 1 comments

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?

vbmade2000 avatar Oct 23 '21 13:10 vbmade2000

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.

FMagnani avatar Feb 23 '23 17:02 FMagnani