Run python bub.py --help to get a quick overview. Basically, you need to tell BUB where to find all your FIN files, as well as the associated SLS file. You can also supply a filename glob, if you have placed multiple sets of FINs in a single directory.
$ python bub.py -f ${HOME}/data/fins-part2/ \
--sls ${HOME}/data/021611\ control\ map.SLS
Reading table of elements...
Reading SLS information...
Processing field: 'Fe57'...
Processing field: 'Cu63'...
Processing field: 'Zn66'...
Processing field: 'Zn70'...
Processing field: 'Se82'...
Processing field: 'Mo95'...
Processing field: 'Au197'...
BUB will scan the files for all the fields available. For every field, it will generate a nrrd (.nhdr and associated data file). You can load up this .nhdr in ImageVis3D for advanced visualization.
![]() |
If you have the PIL installed, BUB will also generate a preview image for each field. It uses the color table given in Figure 1 for this purpose. The table is applied relative to each field; so the red maximum is always the maximum value seen in that field, and every image should always have at least one red pixel. Note that the table specifically masks out the lowest 5% of the data, which for our purposes tends to be background.
BUB performs some simple data validation. This does have a modest performance impact, but the data are currently very small so this does not matter much.
Some of these checks may be erroneous. If BUB is complaining about data which are actually valid, you can set the BUB_NO_VALIDATE variable in your environment, and BUB will stop raising errors. There is currently no way to selectively ignore errors, though; they're either all-on or all-off.
Of course, you could just use the preview images. However, this is pretty limiting; the color table isn't appropriate for all kinds of data. A better approach is to use ImageVis3D, which has significantly better visualization capabilities. When you download ImageVis3D, make sure to download one of the devbuilds instead of an official release; I have recently made some changes which make it easier to view these biometallomics data in ImageVis3D.
![]() |
![]() |
When you first open ImageVis3D, you'll be presented with something like Figure 2, left. You'll want to first open the "Rendering Options" from the "Workspace" menu, as shown in Figure 2 right. The author likes to mount this window to the main ImageVis3D window by dragging it to the appropriate place, as shown in Figure 3.