Skip to main content

Fei1Metadata

Struct Fei1Metadata 

Source
pub struct Fei1Metadata {
Show 51 fields pub metadata_size: u32, pub metadata_version: u32, pub bitmask_1: u32, pub timestamp: f64, pub microscope_type: [u8; 16], pub ht: f64, pub dose: f64, pub alpha_tilt: f64, pub beta_tilt: f64, pub x_stage: f64, pub y_stage: f64, pub z_stage: f64, pub tilt_axis_angle: f64, pub pixel_size_x: f64, pub pixel_size_y: f64, pub defocus: f64, pub stem_defocus: f64, pub applied_defocus: f64, pub magnification: f64, pub camera_length: f64, pub spot_index: i32, pub illuminated_area: f64, pub intensity: f64, pub convergence_angle: f64, pub slit_width: f64, pub shift_offset_x: f64, pub shift_offset_y: f64, pub shift_x: f64, pub shift_y: f64, pub integration_time: f64, pub binning_width: i32, pub binning_height: i32, pub camera_name: [u8; 16], pub readout_area_left: i32, pub readout_area_top: i32, pub readout_area_right: i32, pub readout_area_bottom: i32, pub ceta_frames_summed: i32, pub phase_plate: bool, pub gain: f64, pub offset: f64, pub dwell_time: f64, pub frame_time: f64, pub full_scan_fov_x: f64, pub full_scan_fov_y: f64, pub is_dose_fraction: bool, pub fraction_number: i32, pub start_frame: i32, pub end_frame: i32, pub alpha_tilt_min: f64, pub alpha_tilt_max: f64,
}
Expand description

Common FEI1 metadata fields.

Fields are parsed from big-endian bytes following the EPU/Thermo Fisher MRC-2014 specification. Not all 185 fields are exposed; only the most frequently used cryo-EM metadata is included. Access raw bytes for unsupported fields.

Fields§

§metadata_size: u32

Size of this FEI1 record in bytes (should be 768).

§metadata_version: u32

Version number of the metadata format.

§bitmask_1: u32

Bitmask of acquisition flags (little-endian, unlike the rest of the record).

§timestamp: f64

Acquisition timestamp as Unix time (seconds since epoch).

§microscope_type: [u8; 16]

Microscope model name as a null-padded byte string.

§ht: f64

High tension (acceleration voltage) in kV.

§dose: f64

Total electron dose in e⁻/Ų.

§alpha_tilt: f64

Stage alpha (primary) tilt angle in degrees.

§beta_tilt: f64

Stage beta (secondary) tilt angle in degrees.

§x_stage: f64

Stage X position in µm.

§y_stage: f64

Stage Y position in µm.

§z_stage: f64

Stage Z position in µm.

§tilt_axis_angle: f64

Tilt axis rotation angle in degrees.

§pixel_size_x: f64

Pixel size in X in Å.

§pixel_size_y: f64

Pixel size in Y in Å.

§defocus: f64

Objective lens defocus in µm.

§stem_defocus: f64

STEM defocus in µm.

§applied_defocus: f64

Defocus value applied during acquisition in µm.

§magnification: f64

Nominal magnification.

§camera_length: f64

Camera length in mm.

§spot_index: i32

Selected condenser spot index.

§illuminated_area: f64

Illuminated area diameter in µm.

§intensity: f64

Beam intensity setting.

§convergence_angle: f64

Beam convergence semi-angle in mrad.

§slit_width: f64

Energy-filter slit width in eV.

§shift_offset_x: f64

Beam shift offset in X as a fraction of full scale.

§shift_offset_y: f64

Beam shift offset in Y.

§shift_x: f64

Beam shift in X.

§shift_y: f64

Beam shift in Y.

§integration_time: f64

Exposure/integration time in seconds.

§binning_width: i32

Horizontal pixel binning factor.

§binning_height: i32

Vertical pixel binning factor.

§camera_name: [u8; 16]

Detector/camera name as a null-padded byte string.

§readout_area_left: i32

Left pixel coordinate of the readout region.

§readout_area_top: i32

Top pixel coordinate of the readout region.

§readout_area_right: i32

Right pixel coordinate of the readout region.

§readout_area_bottom: i32

Bottom pixel coordinate of the readout region.

§ceta_frames_summed: i32

Number of CETA frames summed into this image.

§phase_plate: bool

Whether a physical phase plate was inserted.

§gain: f64

Detector gain factor.

§offset: f64

Detector offset value.

§dwell_time: f64

Pixel dwell time in seconds (STEM mode).

§frame_time: f64

Total frame exposure time in seconds.

§full_scan_fov_x: f64

Full-scan field of view in X in µm.

§full_scan_fov_y: f64

Full-scan field of view in Y in µm.

§is_dose_fraction: bool

Whether dose fractionation was enabled.

§fraction_number: i32

Fraction index within a dose-fractionated series.

§start_frame: i32

First frame number of this fraction.

§end_frame: i32

Last frame number of this fraction.

§alpha_tilt_min: f64

Minimum alpha tilt angle in degrees (tilt series).

§alpha_tilt_max: f64

Maximum alpha tilt angle in degrees (tilt series).

Implementations§

Source§

impl Fei1Metadata

Source

pub fn from_bytes(bytes: &[u8]) -> Option<Self>

Parse a single FEI1 record from bytes.

Returns None if bytes is shorter than FEI1_RECORD_SIZE or if the metadata_size field does not match the expected record size.

Trait Implementations§

Source§

impl Clone for Fei1Metadata

Source§

fn clone(&self) -> Fei1Metadata

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Fei1Metadata

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for Fei1Metadata

Source§

fn eq(&self, other: &Fei1Metadata) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for Fei1Metadata

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more