As you can met wrong metadata (issue with bliss or nxtomomill) or if you want to 'twist' a dataset it can be interesting to get some hint to modify an NXtomo.
since tomwer 1.1 the nxtomo editor
widget allow edition of some simple field (such as energy, sample / detector distance...)
from IPython.display import YouTubeVideo
YouTubeVideo("KwwCYXnP3YI", height=500, width=800)
Copy one of your NXtomo or copy the 'crayon.nx' file from /scisoft/tomo_training/part6_edit_nxtomo
and set:
note: you can use directly the tomwer nxtomo-editor
command if you like
NXtomo image_key field is used to determine each frame type. Possible types are:
A common operation is to change the image_key to ignore some frames (with noise for example) or modify projections to flat (see part 3).
For this you can use the image-key-upgrader
or the image-key-editor
invalid darks and flats frames of the crayon.nx
NXtomo
note: you can use the tomwer image-key-editor command if you like
edit image-key value frame by frame
from IPython.display import YouTubeVideo
YouTubeVideo("4yrEBrAmwtY", height=500, width=800)
edit image-key value by frame type directly.
From the upper part the user select the frame type (darks, flats,...) to be upgraded to another frame type. Once the scan encounter the widget this will edit (in place) the NXtomo.
convert all 'projection' frames to 'flats' frames
The simplest way to edit an NXtomo from python is either: