We're Hiring!

size of images on disk

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.

size of images on disk

Postby mahogny » Wed Jun 27, 2012 2:20 pm

Hello!
Is there a simple way to figure out how much an image in the server occupy on disk, in the pixelstore? I don't find this information in insight and it would be very useful as an admin

thanks,
/Johan
----
http://www.endrov.net - An open source platform for image processing
mahogny
 
Posts: 13
Joined: Mon Jan 17, 2011 2:27 pm

Re: size of images on disk

Postby jmoore » Thu Jun 28, 2012 6:15 am

Hi Johan,

though it doesn't show you information about possibly archived original files (under /OMERO/Files), this query will at least show you how many mega-pixels you have stored under /OMERO/Pixels:

Code: Select all
$ bin/omero hql --admin 'select p.pixelsType.value, sum(sizex * sizey * sizez * sizet * sizec)/1000000 from Pixels p group by p.pixelsType.value'
Using session ace76294-3654-46d2-8219-0e679b1f63e1 (root@localhost:4064). Idle timeout: 10.0 min. Current group: 53d20859-3871-4faa-b5f5-dc2515a123d1
# | Col1   | Col2
---+--------+------
0 | uint8  | 73.0
1 | int16  | 36.0
2 | uint16 | 0.0 
3 | int8   | 48.0


If, on the other hand, you've got an omero.api.RawPixelStorePrx in hand, you can just call getTotalSize().

Cheers,
~Josh
User avatar
jmoore
Site Admin
 
Posts: 1591
Joined: Fri May 22, 2009 1:29 pm
Location: Germany


Return to User Discussion

Who is online

Users browsing this forum: No registered users and 0 guests