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§
Source§impl 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§
Source§impl Ord for Model
impl Ord for Model
Source§impl PartialOrd for Model
impl PartialOrd for Model
impl Copy for Model
impl Eq for Model
impl StructuralPartialEq for Model
Auto Trait Implementations§
impl Freeze for Model
impl RefUnwindSafe for Model
impl Send for Model
impl Sync for Model
impl Unpin for Model
impl UnwindSafe for Model
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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