Enum bufkit_data::Model [−][src]
pub enum Model {
GFS,
NAM,
NAM4KM,
LocalWrf,
Other,
}Models potentially stored in the archive.
Variants
GFSThe U.S. Global Forecast System
NAMThe U.S. North American Model
NAM4KMThe high resolution nest of the NAM
LocalWrfThis could be any special local model, but let it be WRF.
OtherThis is any other local model not accounted for so far.
Methods
impl Model[src]
impl Modelpub fn hours_between_runs(self) -> i64[src]
pub fn hours_between_runs(self) -> i64Get the number of hours between runs.
pub fn base_hour(self) -> i64[src]
pub fn base_hour(self) -> i64Get 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.
pub fn all_runs(
self,
start: &NaiveDateTime,
end: &NaiveDateTime
) -> impl Iterator<Item = NaiveDateTime>[src]
pub fn all_runs(
self,
start: &NaiveDateTime,
end: &NaiveDateTime
) -> impl Iterator<Item = NaiveDateTime>Create an iterator of all the model runs between two times
Trait Implementations
impl Clone for Model[src]
impl Clone for Modelfn clone(&self) -> Model[src]
fn clone(&self) -> ModelReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl Copy for Model[src]
impl Copy for Modelimpl PartialEq for Model[src]
impl PartialEq for Modelfn eq(&self, other: &Model) -> bool[src]
fn eq(&self, other: &Model) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl Eq for Model[src]
impl Eq for Modelimpl Debug for Model[src]
impl Debug for Modelfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl FromStr for Model[src]
impl FromStr for Modeltype Err = ParseError
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Model, Self::Err>[src]
fn from_str(s: &str) -> Result<Model, Self::Err>Parses a string s to return a value of this type. Read more
impl AsStaticRef<str> for Model[src]
impl AsStaticRef<str> for Modelimpl IntoEnumIterator for Model[src]
impl IntoEnumIterator for Modelimpl Hash for Model[src]
impl Hash for Modelfn hash<__H: Hasher>(&self, state: &mut __H)[src]
fn hash<__H: Hasher>(&self, state: &mut __H)Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, Feeds a slice of this type into the given [Hasher]. Read more
impl Display for Model[src]
impl Display for Model