[3dem] dm3 vs dm4 format?

Sigworth, Frederick fred.sigworth at yale.edu
Tue Apr 16 12:20:54 PDT 2019


I wrote DM3 and DM4 reader functions for Matlab. Formally the main difference in the file formats is that DM4 uses 64-bit integers instead of 32-bit integers to handle quantities such as file size and image size. I think DM3 won’t be able to handle files larger than 2 or 4 GB. 

The other difference, noted by Chris Boothroyd http://www.ntu.edu.sg/home/cbb/info/dmformat/index.html is that DM4 readers will have better forward compatibility, able to skip blocks they don’t recognize. There’s probably no reason not to use DM4 files.

Fred Sigworth


> On Apr 16, 2019, at 12:13 PM, Morgan, David Gene <dagmorga at indiana.edu> wrote:
> 
> Hi,
> 
>    One of our microscopes has a Gatan OneView camera.  Users keep switching back and forth between saving images in dm3 or dm4 format.  I would prefer to use one or the other, but I don't really know whether it matters which.  I know that the dm4 format metadata can easily deal with exposure times, number of frames, etc. and so I suspect it is a "better" format for this camera.  But that info may also be hidden in the dm3 metadata also, and if so, I'm sure I can parse it out.  Does anyone have comments or preferences?  Thanks.
> 
> --
>    politics is more difficult than physics.
>                                             A. Einstein
> 
>            David Gene Morgan
>        Electron Microscopy Center
>             047D Simon Hall
>             IU Bloomington
>          812 856 1457 (office)
>          812 856 3221 (3200)
>      https://nam05.safelinks.protection.outlook.com/?url=http%3A%2F%2Fiubemcenter.indiana.edu&data=02%7C01%7Cfred.sigworth%40yale.edu%7C5be4e9f41f6a4bf0e54808d6c286921d%7Cdd8cbebb21394df8b4114e3e87abeb5c%7C0%7C0%7C636910280571103224&sdata=DECrTmYHYBk%2Bz1WaqGeDDFRP9EcVt4hSi8YpNR3bsBI%3D&reserved=0
> _______________________________________________
> 3dem mailing list
> 3dem at ncmir.ucsd.edu
> https://nam05.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmail.ncmir.ucsd.edu%2Fmailman%2Flistinfo%2F3dem&data=02%7C01%7Cfred.sigworth%40yale.edu%7C5be4e9f41f6a4bf0e54808d6c286921d%7Cdd8cbebb21394df8b4114e3e87abeb5c%7C0%7C0%7C636910280571103224&sdata=v%2FJ0b314ZoOO88ZFqg6A21mFyapVVGNfYTZs0RIuN04%3D&reserved=0



More information about the 3dem mailing list