<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">hi Stefan<div><br></div><div>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</div><div>A way to achieve that, given an image id</div><div> * load the annotation related to the image and look for a file annotation (original_metadata.txt). using the metadata service using the loadAnnotations method</div><div> * From the file annotation you can access the original File. If you use the previous method the original file will be loaded.</div><div> * Download the original file using the rawFileStore i.e.</div><div><br></div><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; ">RawFileStorePrx store = getRawFileService();</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; ">store.setFileId(originalFileID);</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; ">then read the data using the store.read method</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; ">Hope it helps</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; ">Jmarie</div></div><div><br></div><div><div><div>On 19 Sep 2011, at 16:13, Stefan Dürrenberger wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Hi,<br><br>I'm trying to write a script for OMERO to export images and some<br>metadata. There are a few examples for images, but I can't find any for<br>exporting metadata. I'm looking especially for data listed under<br>Acquisition/Original Metadata/GlobalMetadata in Insight.<br><br>Does anyone have an example script for me or pointers to more<br>documentation?<br><br>thanks,<br><br>Stefan<br><br><br><br>-- <br>Stefan Dürrenberger<br>Universität Basel<br>Zentrum für Mikroskopie (ZMB)<br>Klingelbergstrasse 50<br>CH-4056 Basel<br>Tel.: +41-(0)61-267 14 05<br>Fax: +41-(0)61-267 14 10<br><br>Email: <a href="mailto:stefan.duerrenberger@unibas.ch">stefan.duerrenberger@unibas.ch</a><br><br>_______________________________________________<br>ome-users mailing list<br><a href="mailto:ome-users@lists.openmicroscopy.org.uk">ome-users@lists.openmicroscopy.org.uk</a><br>http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-users<br></div></blockquote></div><br></div></body></html>