Enum bufkit_data::Model
source · pub enum Model {
GFS,
NAM,
NAM4KM,
LocalWrf,
Other,
}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
LocalWrf
This could be any special local model, but let it be WRF.
Other
This is any other local model not accounted for so far.
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
Trait Implementations
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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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