tomoscan.utils.drac.recons_vol_mapping.DracRawDataMapping#
- class tomoscan.utils.drac.recons_vol_mapping.DracRawDataMapping(drac_key, raw_data_key, raw_data_field_index=None, raw_data_type_constructor=None, raw_data_unit=None, drac_unit=None)#
Bases:
object
Map drac/icat metadata from / to raw data. Raw data in this context is expected to be a reconstructed volume (by nabu) This layer ease handling of unit conversion as data type (from a single field to multi field structures.)
A raw data / nabu field can be split into several drac/icat field. And several drac/icat field can be concatenate to a single raw_data/nabu field. This is the purpose of the ‘raw_data_field_index’, ‘raw_data_field_size’ and ‘raw_data_type_constructor’ parameters. The over way around is not forseen
- __init__(drac_key, raw_data_key, raw_data_field_index=None, raw_data_type_constructor=None, raw_data_unit=None, drac_unit=None)#
Methods
__init__
(drac_key, raw_data_key[, ...])to_drac
(raw_value)convert a raw_data (nabu) field to an icat field
- to_drac(raw_value)#
convert a raw_data (nabu) field to an icat field