We're Hiring!

Import Metadata To Image's Detail Description Box

General user discussion about using the OMERO platform to its fullest. Please ask new questions at https://forum.image.sc/tags/omero
Please note:
Historical discussions about OMERO. Please look for and ask new questions at https://forum.image.sc/tags/omero

There are workflow guides for various OMERO functions on our help site - http://help.openmicroscopy.org

You should find answers to any basic questions about using the clients there.

Import Metadata To Image's Detail Description Box

Postby flo » Mon Jan 28, 2013 8:07 am

Hi,

I would like to put some of the original metadata (from the acquistion tab) in the image describtion box (general tab).
Can somebody please point me in the right direction, where/how to start (should it be done while importing an image, run a separate script which extracts some data and saves it to the image, using a script, API,..)?

Thank you and happy Monday!
flo
 
Posts: 11
Joined: Mon Dec 10, 2012 9:20 am

Re: Import Metadata To Image's Detail Description Box

Postby wmoore » Mon Jan 28, 2013 10:05 am

Hi,

We have had several requests from users who want various processes to run at import. We need to discuss the best way to expose this functionality (we'll get back to you on that).

In the meantime, I can point you at a script that does almost what you want. https://gist.github.com/4654318 as discussed here: viewtopic.php?f=16&t=920

This processes the original metadata for a list of images, looking for keys named "ChannelDescription|LUTName" and using the value to update the rendering settings.

You could update this script to instead update the description, using:

Code: Select all
img.setDescription("New Description)
img.save()


Hope that helps,

Will.
User avatar
wmoore
Team Member
 
Posts: 674
Joined: Mon May 18, 2009 12:46 pm

Re: Import Metadata To Image's Detail Description Box

Postby flo » Tue Jan 29, 2013 9:03 am

Thanks!
flo
 
Posts: 11
Joined: Mon Dec 10, 2012 9:20 am


Return to User Discussion

Who is online

Users browsing this forum: No registered users and 0 guests