Enum bufkit_data::Model
source · [−]pub enum Model {
GFS,
NAM,
NAM4KM,
}Expand description
Models potentially stored in the archive.
Variants
GFS
The U.S. Global Forecast System
NAM
The U.S. North American Model
NAM4KM
The high resolution nest of the NAM
Implementations
sourceimpl Model
impl Model
sourcepub fn hours_between_runs(self) -> i64
pub fn hours_between_runs(self) -> i64
Get the number of hours between runs.
sourcepub fn base_hour(self) -> i64
pub fn base_hour(self) -> i64
Get the base hour of a model run.
Most model run times are 0Z, 6Z, 12Z, 18Z. The base hour along with hours between runs allows you to reconstruct these times. Note that SREF starts at 03Z and runs every 6 hours, so it is different.
sourcepub fn all_runs(
self,
start: &NaiveDateTime,
end: &NaiveDateTime
) -> impl Iterator<Item = NaiveDateTime>
pub fn all_runs(
self,
start: &NaiveDateTime,
end: &NaiveDateTime
) -> impl Iterator<Item = NaiveDateTime>
Create an iterator of all the model runs between two times
sourcepub fn as_static_str(self) -> &'static str
pub fn as_static_str(self) -> &'static str
Get a static str representation
Trait Implementations
sourceimpl Ord for Model
impl Ord for Model
sourceimpl PartialOrd<Model> for Model
impl PartialOrd<Model> for Model
sourcefn partial_cmp(&self, other: &Model) -> Option<Ordering>
fn partial_cmp(&self, other: &Model) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
impl Copy for Model
impl Eq for Model
impl StructuralEq for Model
impl StructuralPartialEq for Model
Auto Trait Implementations
impl RefUnwindSafe for Model
impl Send for Model
impl Sync for Model
impl Unpin for Model
impl UnwindSafe for Model
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more