[ome-users] Reading Metadata from a script
jburel
j.burel at dundee.ac.uk
Mon Sep 19 18:17:50 BST 2011
hi Stefan
The metadata you are looking for are read when the image is imported
and stored in a file annotation that we then link to the image
A way to achieve that, given an image id
* load the annotation related to the image and look for a file
annotation (original_metadata.txt). using the metadata service using
the loadAnnotations method
* From the file annotation you can access the original File. If you
use the previous method the original file will be loaded.
* Download the original file using the rawFileStore i.e.
RawFileStorePrx store = getRawFileService();
store.setFileId(originalFileID);
then read the data using the store.read method
Hope it helps
Jmarie
On 19 Sep 2011, at 16:13, Stefan Dürrenberger wrote:
> Hi,
>
> I'm trying to write a script for OMERO to export images and some
> metadata. There are a few examples for images, but I can't find any
> for
> exporting metadata. I'm looking especially for data listed under
> Acquisition/Original Metadata/GlobalMetadata in Insight.
>
> Does anyone have an example script for me or pointers to more
> documentation?
>
> thanks,
>
> Stefan
>
>
>
> --
> Stefan Dürrenberger
> Universität Basel
> Zentrum für Mikroskopie (ZMB)
> Klingelbergstrasse 50
> CH-4056 Basel
> Tel.: +41-(0)61-267 14 05
> Fax: +41-(0)61-267 14 10
>
> Email: stefan.duerrenberger at unibas.ch
>
> _______________________________________________
> ome-users mailing list
> ome-users at lists.openmicroscopy.org.uk
> http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openmicroscopy.org.uk/pipermail/ome-users/attachments/20110919/576f72f6/attachment.html>
More information about the ome-users
mailing list