pub struct ArgoClient { /* private fields */ }Expand description
Client for Argo Float Ocean Data
Provides access to:
- Ocean temperature profiles
- Salinity measurements
- Pressure/depth data
- Global ocean coverage
Note: This client uses a simplified Argo data access pattern. For production use, consider using dedicated Argo APIs or netCDF data.
§Example
ⓘ
use ruvector_data_framework::ArgoClient;
let client = ArgoClient::new()?;
let recent = client.get_recent_profiles(30).await?;
let regional = client.search_by_region(0.0, -30.0, 500.0).await?;
let temp_profiles = client.get_temperature_profiles().await?;Implementations§
Source§impl ArgoClient
impl ArgoClient
Sourcepub async fn get_recent_profiles(
&self,
_days: u32,
) -> Result<Vec<SemanticVector>>
pub async fn get_recent_profiles( &self, _days: u32, ) -> Result<Vec<SemanticVector>>
Sourcepub async fn search_by_region(
&self,
_lat: f64,
_lon: f64,
_radius_km: f64,
) -> Result<Vec<SemanticVector>>
pub async fn search_by_region( &self, _lat: f64, _lon: f64, _radius_km: f64, ) -> Result<Vec<SemanticVector>>
Sourcepub async fn get_temperature_profiles(&self) -> Result<Vec<SemanticVector>>
pub async fn get_temperature_profiles(&self) -> Result<Vec<SemanticVector>>
Sourcepub fn create_sample_profiles(
&self,
count: usize,
) -> Result<Vec<SemanticVector>>
pub fn create_sample_profiles( &self, count: usize, ) -> Result<Vec<SemanticVector>>
Create sample Argo data for testing/demonstration
This generates synthetic ocean profile data
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ArgoClient
impl !RefUnwindSafe for ArgoClient
impl Send for ArgoClient
impl Sync for ArgoClient
impl Unpin for ArgoClient
impl !UnwindSafe for ArgoClient
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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