#[non_exhaustive]pub enum NomadsModel {
Gfs,
Rap,
}Expand description
Which NCEP model to ask for.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Gfs
The Global Forecast System on its 0.25° grid (gfs.tHHz.pgrb2.0p25.fFFF).
Rap
The Rapid Refresh on its 13 km grid 130 over the contiguous United States
(rap.tHHz.awp130pgrbfFF.grib2).
Implementations§
Source§impl NomadsModel
impl NomadsModel
Sourcepub fn cycle_hours(self) -> i64
pub fn cycle_hours(self) -> i64
Hours between runs: 6 for GFS (00, 06, 12, 18 UTC), 1 for RAP.
Sourcepub fn has_forecast_hour(self, cycle_hour_utc: u32, forecast_hour: u32) -> bool
pub fn has_forecast_hour(self, cycle_hour_utc: u32, forecast_hour: u32) -> bool
Whether a run starting at cycle_hour_utc has a forecast forecast_hour hours on: GFS’s
every hour to 120, then every third hour to 384; RAP’s every hour to 21, and to 51 from its
03, 09, 15 and 21 UTC runs.
Sourcepub fn has_grid(self, grid: &Grid) -> bool
pub fn has_grid(self, grid: &Grid) -> bool
Whether grid has the model’s steps and projection: GFS’s 0.25° latitude/longitude steps,
or RAP’s grid 130, 13,545 m Lambert conformal cells on a cone tangent at 25° N about 265° E.
A cut with others, even a self-consistent one, is not this model’s answer. Where the grid
starts is not checked: the filter cuts whole grid points.
Sourcepub fn levels_hpa(self) -> &'static [u32]
pub fn levels_hpa(self) -> &'static [u32]
The pressure levels asked for, hPa, highest pressure first.
Trait Implementations§
Source§impl Clone for NomadsModel
impl Clone for NomadsModel
Source§fn clone(&self) -> NomadsModel
fn clone(&self) -> NomadsModel
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for NomadsModel
Source§impl Debug for NomadsModel
impl Debug for NomadsModel
Source§impl<'de> Deserialize<'de> for NomadsModel
impl<'de> Deserialize<'de> for NomadsModel
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for NomadsModel
Source§impl PartialEq for NomadsModel
impl PartialEq for NomadsModel
Source§fn eq(&self, other: &NomadsModel) -> bool
fn eq(&self, other: &NomadsModel) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for NomadsModel
impl Serialize for NomadsModel
impl StructuralPartialEq for NomadsModel
Auto Trait Implementations§
impl Freeze for NomadsModel
impl RefUnwindSafe for NomadsModel
impl Send for NomadsModel
impl Sync for NomadsModel
impl Unpin for NomadsModel
impl UnsafeUnpin for NomadsModel
impl UnwindSafe for NomadsModel
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.