importbraheasbh# Initialize EOP databh.initialize_eop()# Load groundstations from a single providerksat_stations=bh.datasets.groundstations.load("ksat")print(f"KSAT stations: {len(ksat_stations)}")# Load all available providers at onceall_stations=bh.datasets.groundstations.load_all()print(f"Total stations (all providers): {len(all_stations)}")# List available providersproviders=bh.datasets.groundstations.list_providers()print(f"\nAvailable providers: {', '.join(providers)}")# Load multiple specific providersaws_stations=bh.datasets.groundstations.load("aws")ssc_stations=bh.datasets.groundstations.load("ssc")combined=aws_stations+ssc_stationsprint(f"\nCombined AWS + SSC: {len(combined)} stations")
usebraheasbh;fnmain(){bh::initialize_eop().unwrap();// Load groundstations from a single providerletksat_stations=bh::datasets::groundstations::load_groundstations("ksat").unwrap();println!("KSAT stations: {}",ksat_stations.len());// Load all available providers at onceletall_stations=bh::datasets::groundstations::load_all_groundstations().unwrap();println!("Total stations (all providers): {}",all_stations.len());// List available providersletproviders=bh::datasets::groundstations::list_providers();println!("\nAvailable providers: {}",providers.join(", "));// Load multiple specific providersletaws_stations=bh::datasets::groundstations::load_groundstations("aws").unwrap();letssc_stations=bh::datasets::groundstations::load_groundstations("ssc").unwrap();letcombined:Vec<_>=aws_stations.iter().chain(ssc_stations.iter()).cloned().collect();println!("\nCombined AWS + SSC: {} stations",combined.len());}
usebraheasbh;usebh::utils::Identifiable;fnmain(){bh::initialize_eop().unwrap();// Load KSAT groundstationsletstations=bh::datasets::groundstations::load_groundstations("ksat").unwrap();// Access the first stationletstation=&stations[0];// Geographic coordinates (degrees and meters)letname=station.get_name().unwrap_or("Unknown");println!("Station: {}",name);println!("Latitude: {:.4}°",station.lat());println!("Longitude: {:.4}°",station.lon());println!("Altitude: {:.1} m",station.alt());// Show all stations with their locationsprintln!("\n{} KSAT Stations:",stations.len());for(i,gs)instations.iter().enumerate(){letgs_name=gs.get_name().unwrap_or("Unknown");println!("{:2}. {:30} ({:7.3}°, {:8.3}°)",i+1,gs_name,gs.lat(),gs.lon());}}
importbraheasbhstations=bh.datasets.groundstations.load("ksat")station=stations[0]# Geographic coordinates (WGS84)lon=station.lon()# Longitude in degreeslat=station.lat()# Latitude in degreesalt=station.alt()# Altitude in meters# Metadata propertiesprops=station.propertiesname=station.get_name()# Station nameprovider=props["provider"]# Provider name (e.g., "KSAT")bands=props["frequency_bands"]# Supported bands (e.g., ["S", "X"])
All groundstations include these standard properties:
provider: Provider name (string, e.g., "KSAT", "Atlas")
frequency_bands: List of supported frequency bands (e.g., ["S", "X", "Ka"])
Additional properties may be included in future releases as data becomes available.