pub struct MiniSeedHeader {Show 22 fields
pub sequence_number: u32,
pub quality_indicator: u8,
pub station: String,
pub location: String,
pub channel: String,
pub network: String,
pub start_year: u16,
pub start_day: u16,
pub start_hour: u8,
pub start_min: u8,
pub start_sec: u8,
pub start_frac: u16,
pub num_samples: u16,
pub sample_rate_factor: i16,
pub sample_rate_multiplier: i16,
pub activity_flags: u8,
pub io_flags: u8,
pub data_quality_flags: u8,
pub num_blockettes: u8,
pub time_correction: i32,
pub data_offset: u16,
pub blockette_offset: u16,
}Expand description
MiniSEED fixed record header (48 bytes).
MiniSEED is a subset of SEED (Standard for the Exchange of Earthquake Data).
Fields§
§sequence_number: u32Sequence number (6 ASCII digits, 000001–999999).
quality_indicator: u8Data quality indicator (‘D’, ‘R’, ‘Q’, ‘M’).
station: StringStation identifier (5 characters).
location: StringLocation identifier (2 characters).
channel: StringChannel identifier (3 characters).
network: StringNetwork identifier (2 characters).
start_year: u16Record start time: year.
start_day: u16Record start time: day-of-year.
start_hour: u8Record start time: hour.
start_min: u8Record start time: minute.
start_sec: u8Record start time: second.
start_frac: u16Record start time: tenths of milliseconds (0–9999).
num_samples: u16Number of samples in this record.
sample_rate_factor: i16Sample rate factor.
sample_rate_multiplier: i16Sample rate multiplier.
activity_flags: u8Activity flags.
io_flags: u8I/O and clock flags.
data_quality_flags: u8Data quality flags.
num_blockettes: u8Number of blockettes following.
time_correction: i32Time correction in units of 0.0001 seconds.
data_offset: u16Byte offset to beginning of data.
blockette_offset: u16Byte offset to first blockette.
Implementations§
Source§impl MiniSeedHeader
impl MiniSeedHeader
Sourcepub fn sample_rate(&self) -> f64
pub fn sample_rate(&self) -> f64
Compute the true sample rate in samples/second.
Trait Implementations§
Source§impl Clone for MiniSeedHeader
impl Clone for MiniSeedHeader
Source§fn clone(&self) -> MiniSeedHeader
fn clone(&self) -> MiniSeedHeader
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for MiniSeedHeader
impl Debug for MiniSeedHeader
Auto Trait Implementations§
impl Freeze for MiniSeedHeader
impl RefUnwindSafe for MiniSeedHeader
impl Send for MiniSeedHeader
impl Sync for MiniSeedHeader
impl Unpin for MiniSeedHeader
impl UnsafeUnpin for MiniSeedHeader
impl UnwindSafe for MiniSeedHeader
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.