tomoscan.esrf.scan.fluoscan.FluoTomoScan2D#
- class tomoscan.esrf.scan.fluoscan.FluoTomoScan2D(scan, dataset_basename, detectors=(), dtype=<class 'numpy.float32'>, verbose=False, angles=None, el_lines=<factory>, pixel_size=None, energy=None, detected_folders=<factory>)#
Bases:
FluoTomoScanBaseDataset manipulation class.
- __init__(scan, dataset_basename, detectors=(), dtype=<class 'numpy.float32'>, verbose=False, angles=None, el_lines=<factory>, pixel_size=None, energy=None, detected_folders=<factory>)#
Methods
__init__(scan, dataset_basename[, ...])detect_detectors()detect_elements()List all folders to process.
Build rotation angles list.
from_identifier(identifier)Return the Dataset from a identifier
return the dataset identifier of the scan.
get_metadata_from_h5_file()load_data(det, element[, line_ind])Main function of class to load data.
Attributes
rotation angles in degree
detectorsenergy in keV
pixel size in meter
rot_angles_deg- rtype:
ndarray[Any,dtype[TypeVar(_ScalarType_co, bound=generic, covariant=True)]]
rot_angles_rad- rtype:
ndarray[Any,dtype[TypeVar(_ScalarType_co, bound=generic, covariant=True)]]
verbose- angles: float | None = None#
rotation angles in degree
- detect_folders()#
List all folders to process.
- detect_rot_angles()#
Build rotation angles list.
- Return type:
ndarray[Any,dtype[TypeVar(_ScalarType_co, bound=generic, covariant=True)]]
- dtype#
alias of
float32
- energy: float | None = None#
energy in keV
- static from_identifier(identifier)#
Return the Dataset from a identifier
- get_identifier()#
return the dataset identifier of the scan. The identifier is insure to be unique for each scan and allow the user to store the scan as a string identifier and to retrieve it later from this single identifier.
- Return type:
- load_data(det, element, line_ind=0)#
Main function of class to load data.
- Return type:
ndarray[Any,dtype[TypeVar(_ScalarType_co, bound=generic, covariant=True)]]
- pixel_size: float | None = None#
pixel size in meter