API Index
Complete alphabetical index of all public functions and methods in biosample-enricher.
Alphabetical API Index
This is a comprehensive alphabetical index of all public functions, methods, and constants in the biosample-enricher package.
Module Constants
Public constants exported by modules (typically used for configuration, validation, or schema definitions).
_version
COMMIT_ID
Value:
Union[str, None]
COMMIT_ID
Value:
object
TYPE_CHECKING
Value:
False
VERSION_TUPLE
Value:
Tuple[Union[int, str], ...]
VERSION_TUPLE
Value:
object
soil.models
USDA_TEXTURE_CLASSES
Value:
{'Sand': {'sand': (85, 100), 'clay': (0, 10)}, 'Loamy sand': {'sand': (70, 85), 'clay': (0, 15)},...
environmental_metadata
ALL_SUPPORTED_SLOTS
Value:
CLIMATE_SLOTS | WEATHER_SLOTS | ELEVATION_SLOTS | MARINE_SLOTS | SOIL_SLOTS
CLIMATE_PROVIDERS
Value:
frozenset(['meteostat', 'nasa_power'])
CLIMATE_SLOTS
Value:
frozenset(['annual_precpt', 'annual_temp'])
ELEVATION_SLOTS
Value:
frozenset(['elev'])
MARINE_SLOTS
Value:
frozenset(['depth'])
SOIL_SLOTS
Value:
frozenset(['ph', 'soil_type'])
WEATHER_SLOTS
Value:
frozenset(['temp', 'air_temp', 'humidity', 'wind_speed', 'wind_direction', 'solar_irradiance'])
Functions and Methods
A
analyze
Type: function
Module:
cli_biosample_elevationSignature:
analyze(input_file: Path) -> NoneDescription: Analyze biosample field mapping without performing elevation lookups.
analyze
Type: function
Module:
cli_weatherSignature:
analyze(input_file: str, source: str, output_dir: str | None, sample_limit: int | None)Description: Analyze weather enrichment coverage for a collection of biosamples.
B
BaseElevationProvider.__init__
Type: method
Module:
elevation.providers.baseClass:
BaseElevationProviderSignature:
__init__(self, name: str, endpoint: str, api_version: str) -> NoneDescription: Initialize the provider.
BaseElevationProvider.fetch
Type: method
Module:
elevation.providers.baseClass:
BaseElevationProviderSignature:
fetch(self, lat: float, lon: float) -> FetchResultDescription: Fetch elevation data for the given coordinates.
BaseReverseGeocodingProvider.__init__
Type: method
Module:
reverse_geocoding.providers.baseClass:
BaseReverseGeocodingProviderSignature:
__init__(self, name: str, endpoint: str, api_version: str) -> NoneDescription: Initialize the provider.
BaseReverseGeocodingProvider.fetch
Type: method
Module:
reverse_geocoding.providers.baseClass:
BaseReverseGeocodingProviderSignature:
fetch(self, lat: float, lon: float) -> ReverseGeocodeFetchResultDescription: Fetch reverse geocoding data for the given coordinates.
batch
Type: function
Module:
cli_soilSignature:
batch(input_file: Path, output: Path, depth: str, lat_col: str, lon_col: str, output_format: str, verbose: bool) -> NoneDescription: Enrich multiple locations from CSV or JSON file.
batch
Type: function
Module:
cli_landSignature:
batch(input_file: str, date: datetime | None, time_window: int, output: str, batch_size: int)Description: Process multiple locations from a file.
batch
Type: function
Module:
cli_forward_geocodingSignature:
batch(input_file: str, language: str, output: str, batch_size: int)Description: Process multiple place names from a file.
batch
Type: function
Module:
cli_osm_featuresSignature:
batch(input_file: str, radius: int, timeout: int, output: str, batch_size: int)Description: Process multiple locations from a file.
batch
Type: function
Module:
cli_marineSignature:
batch(input: str, output: str | None, schema: str, max_samples: int | None)Description: Batch marine enrichment for multiple biosamples.
batch_elevation
Type: function
Module:
cli_elevationSignature:
batch_elevation(input_file: Path, output: str, providers: tuple[str, ...], timeout: float, lat_col: str, lon_col: str, id_col: str, no_cache: bool, read_cache: bool, write_cache: bool) -> NoneDescription: Process elevation lookups from CSV/TSV file.
BiosampleAdapter.extract_location
Type: method
Module:
adaptersClass:
BiosampleAdapterSignature:
extract_location(self, biosample_data: dict[str, Any]) -> BiosampleLocationDescription: Extract standardized location data from a single biosample.
BiosampleAdapter.extract_locations_batch
Type: method
Module:
adaptersClass:
BiosampleAdapterSignature:
extract_locations_batch(self, biosamples: list[dict[str, Any]]) -> list[BiosampleLocation]Description: Extract location data from multiple biosamples.
BiosampleElevationBatch.filter_valid_coordinates
Type: method
Module:
biosample_elevation_mapperClass:
BiosampleElevationBatchSignature:
filter_valid_coordinates(biosamples: list[dict[str, Any]]) -> list[dict[str, Any]]Description: Filter biosamples to only those with valid coordinates.
BiosampleElevationBatch.get_coordinate_summary
Type: method
Module:
biosample_elevation_mapperClass:
BiosampleElevationBatchSignature:
get_coordinate_summary(biosamples: list[dict[str, Any]]) -> dict[str, Any]Description: Get summary statistics about coordinates in a biosample collection.
BiosampleElevationMapper.create_elevation_request
Type: method
Module:
biosample_elevation_mapperClass:
BiosampleElevationMapperSignature:
create_elevation_request(biosample: dict[str, Any], preferred_providers: list[str] | None) -> ElevationRequest | NoneDescription: Create an ElevationRequest from biosample metadata.
BiosampleElevationMapper.extract_coordinates
Type: method
Module:
biosample_elevation_mapperClass:
BiosampleElevationMapperSignature:
extract_coordinates(biosample: dict[str, Any]) -> tuple[float, float] | NoneDescription: Extract latitude and longitude from various biosample field structures.
BiosampleElevationMapper.get_biosample_id
Type: method
Module:
biosample_elevation_mapperClass:
BiosampleElevationMapperSignature:
get_biosample_id(biosample: dict[str, Any]) -> strDescription: Extract a unique identifier from biosample metadata.
BiosampleElevationMapper.get_field_mapping_info
Type: method
Module:
biosample_elevation_mapperClass:
BiosampleElevationMapperSignature:
get_field_mapping_info() -> dict[str, Any]Description: Get comprehensive information about biosample field mappings.
BiosampleElevationMapper.get_location_context
Type: method
Module:
biosample_elevation_mapperClass:
BiosampleElevationMapperSignature:
get_location_context(biosample: dict[str, Any]) -> dict[str, Any]Description: Extract additional location context from biosample metadata.
BiosampleElevationMapper.validate_coordinates
Type: method
Module:
biosample_elevation_mapperClass:
BiosampleElevationMapperSignature:
validate_coordinates(lat: float, lon: float) -> boolDescription: Validate that coordinates are within valid ranges.
BiosampleLocation.calculate_completeness
Type: method
Module:
modelsClass:
BiosampleLocationSignature:
calculate_completeness(self) -> 'BiosampleLocation'Description: Calculate location completeness score based on available fields.
BiosampleLocation.is_enrichable
Type: method
Module:
modelsClass:
BiosampleLocationSignature:
is_enrichable(self) -> boolDescription: Check if sample has minimum data for API enrichment.
BiosampleLocation.to_dict
Type: method
Module:
modelsClass:
BiosampleLocationSignature:
to_dict(self) -> dictDescription: Convert to dictionary for serialization with enrichable status.
BiosampleLocation.validate_collection_date
Type: method
Module:
modelsClass:
BiosampleLocationSignature:
validate_collection_date(cls, v: str | None) -> str | NoneDescription: Validate collection date format.
BiosampleMetricsFetcher.__init__
Type: method
Module:
metrics.fetcherClass:
BiosampleMetricsFetcherSignature:
__init__(self, nmdc_connection_string: str | None, gold_connection_string: str | None, nmdc_database: str, gold_database: str, nmdc_collection: str, gold_collection: str)Description: Initialize metrics fetcher with database connections.
BiosampleMetricsFetcher.fetch_all_samples
Type: method
Module:
metrics.fetcherClass:
BiosampleMetricsFetcherSignature:
fetch_all_samples(self, n_per_source: int, enrichable_only: bool) -> dict[str, tuple[list[dict[str, Any]], list[BiosampleLocation]]]Description: Fetch random samples from both NMDC and GOLD.
BiosampleMetricsFetcher.fetch_gold_samples
Type: method
Module:
metrics.fetcherClass:
BiosampleMetricsFetcherSignature:
fetch_gold_samples(self, n: int, enrichable_only: bool) -> tuple[list[dict[str, Any]], list[BiosampleLocation]]Description: Fetch random GOLD samples.
BiosampleMetricsFetcher.fetch_nmdc_samples
Type: method
Module:
metrics.fetcherClass:
BiosampleMetricsFetcherSignature:
fetch_nmdc_samples(self, n: int, enrichable_only: bool) -> tuple[list[dict[str, Any]], list[BiosampleLocation]]Description: Fetch random NMDC samples.
C
calculate_distance_m
Type: function
Module:
elevation.utilsSignature:
calculate_distance_m(lat1: float, lon1: float, lat2: float, lon2: float) -> floatDescription: Calculate the great circle distance between two points using the Haversine formula.
canonicalize_coords
Type: function
Module:
http_cacheSignature:
canonicalize_coords(params: dict[str, Any]) -> dict[str, Any]Description: Canonicalize coordinate parameters for consistent caching.
classify_texture
Type: function
Module:
soil.modelsSignature:
classify_texture(sand_pct: float, silt_pct: float, clay_pct: float) -> strDescription: Classify soil texture using USDA texture triangle.
clear
Type: function
Module:
cache_managementSignature:
clear(ctx: click.Context, confirm: bool) -> NoneDescription: Clear all cache entries.
cli
Type: function
Module:
cache_managementSignature:
cli(ctx: click.Context) -> NoneDescription: HTTP Cache Management CLI.
cli
Type: function
Module:
elevation_demosSignature:
cli(log_level: str) -> NoneDescription: Elevation service demonstrations and batch processing.
cli
Type: function
Module:
cli_biosample_elevationSignature:
cli(log_level: str) -> NoneDescription: Biosample elevation enrichment CLI with automatic field mapping.
ClimateNormalsProvider.get_climate_normals
Type: method
Module:
weather.serviceClass:
ClimateNormalsProviderSignature:
get_climate_normals(self, lat: float, lon: float, start_year: int, end_year: int) -> ClimateNormalsResult
ClimateNormalsResult.get_annual_precipitation
Type: method
Module:
weather.modelsClass:
ClimateNormalsResultSignature:
get_annual_precipitation(self) -> float | NoneDescription: Calculate annual precipitation by summing 12 monthly normals.
ClimateNormalsResult.get_annual_temperature
Type: method
Module:
weather.modelsClass:
ClimateNormalsResultSignature:
get_annual_temperature(self) -> float | NoneDescription: Calculate annual average temperature from 12 monthly normals.
ClimateNormalsResult.to_submission_schema
Type: method
Module:
weather.modelsClass:
ClimateNormalsResultSignature:
to_submission_schema(self) -> dict[str, Any]Description: Extract values in submission-schema compatible format.
CombinedFeaturesResult.to_enrichment_dict
Type: method
Module:
osm_features.modelsClass:
CombinedFeaturesResultSignature:
to_enrichment_dict(self) -> dict[str, Any]Description: Convert combined results to enrichment dictionary.
compare
Type: function
Module:
cli_forward_geocodingSignature:
compare(query: str, language: str, country: str | None, max_results: int, output: str | None, pretty: bool)Description: Compare results from all available providers.
compare_providers
Type: function
Module:
elevation_demosSignature:
compare_providers(lat: float, lon: float, providers: str, output: str) -> NoneDescription: Compare elevation results from different providers for a single coordinate.
configure_from_env
Type: function
Module:
logging_configSignature:
configure_from_env() -> logging.LoggerDescription: Configure logging from environment variables.
CoordinateClassifier.__init__
Type: method
Module:
elevation.classifierClass:
CoordinateClassifierSignature:
__init__(self, enable_online_detection: bool, user_agent: str) -> NoneDescription: Initialize the coordinate classifier.
CoordinateClassifier.classify
Type: method
Module:
elevation.classifierClass:
CoordinateClassifierSignature:
classify(self, lat: float, lon: float) -> CoordinateClassificationDescription: Classify coordinates to determine appropriate providers.
CoordinateClassifier.classify_biosample_location
Type: method
Module:
elevation.classifierClass:
CoordinateClassifierSignature:
classify_biosample_location(self, lat: float, lon: float) -> dictDescription: Classify a biosample location for routing and metadata.
CoverageEvaluator.__init__
Type: method
Module:
metrics.evaluatorClass:
CoverageEvaluatorSignature:
__init__(self) -> NoneDescription: Initialize evaluator with enrichment services.
CoverageEvaluator.evaluate_batch
Type: method
Module:
metrics.evaluatorClass:
CoverageEvaluatorSignature:
evaluate_batch(self, samples: list[tuple[dict[str, Any], BiosampleLocation]], source: str) -> list[dict[str, Any]]Description: Evaluate a batch of samples.
CoverageEvaluator.evaluate_sample
Type: method
Module:
metrics.evaluatorClass:
CoverageEvaluatorSignature:
evaluate_sample(self, raw_doc: dict[str, Any], normalized_location: BiosampleLocation, source: str) -> dict[str, Any]Description: Evaluate a single sample for coverage metrics.
D
demo
Type: function
Module:
cli_weatherSignature:
demo()Description: Run weather enrichment demonstration.
demonstrate_field_mapping
Type: function
Module:
biosample_elevation_mapperSignature:
demonstrate_field_mapping() -> NoneDescription: Demonstrate the field mapping capabilities with example data.
E
elevation_cli
Type: function
Module:
cli_elevationSignature:
elevation_cli(log_level: str) -> NoneDescription: Elevation lookup CLI.
ElevationProvider.choices
Type: method
Module:
providersClass:
ElevationProviderSignature:
choices(cls) -> list[str]Description: Get list of provider choices for Click.
ElevationProvider.description
Type: method
Module:
providersClass:
ElevationProviderSignature:
description(cls) -> strDescription: Get formatted description of all available providers.
ElevationProvider.fetch
Type: method
Module:
elevation.providers.baseClass:
ElevationProviderSignature:
fetch(self, lat: float, lon: float) -> FetchResultDescription: Fetch elevation data for the given coordinates.
ElevationProvider.info
Type: method
Module:
providersClass:
ElevationProviderSignature:
info(cls, provider: 'ElevationProvider | str') -> ProviderInfoDescription: Get detailed information about a provider.
ElevationService.__init__
Type: method
Module:
elevation.serviceClass:
ElevationServiceSignature:
__init__(self, google_api_key: str | None, enable_google: bool, enable_usgs: bool, enable_osm: bool, enable_open_topo_data: bool, osm_endpoint: str, open_topo_data_endpoint: str) -> NoneDescription: Initialize the elevation service.
ElevationService.classify_biosample_location
Type: method
Module:
elevation.serviceClass:
ElevationServiceSignature:
classify_biosample_location(self, lat: float, lon: float) -> dictDescription: Classify a biosample location for routing and metadata.
ElevationService.classify_coordinates
Type: method
Module:
elevation.serviceClass:
ElevationServiceSignature:
classify_coordinates(self, lat: float, lon: float) -> CoordinateClassificationDescription: Classify coordinates for provider routing.
ElevationService.create_output_envelope
Type: method
Module:
elevation.serviceClass:
ElevationServiceSignature:
create_output_envelope(self, subject_id: str, observations: list[Observation], read_from_cache: bool, write_to_cache: bool) -> OutputEnvelopeDescription: Create output envelope with observations.
ElevationService.from_env
Type: method
Module:
elevation.serviceClass:
ElevationServiceSignature:
from_env(cls) -> 'ElevationService'Description: Create elevation service from environment variables.
ElevationService.get_best_elevation
Type: method
Module:
elevation.serviceClass:
ElevationServiceSignature:
get_best_elevation(self, observations: list[Observation]) -> ElevationResult | NoneDescription: Select the best elevation from multiple observations.
ElevationService.get_elevation
Type: method
Module:
elevation.serviceClass:
ElevationServiceSignature:
get_elevation(self, request: ElevationRequest) -> list[Observation]Description: Get elevation observations from multiple providers.
ElevationService.select_providers
Type: method
Module:
elevation.serviceClass:
ElevationServiceSignature:
select_providers(self, classification: CoordinateClassification, preferred: list[str] | None) -> list[ElevationProvider]Description: Select providers based on coordinate classification.
enrich
Type: function
Module:
cli_forward_geocodingSignature:
enrich(query: str, language: str, country: str | None)Description: Get coordinates and enrichment data for biosample place names.
enrich
Type: function
Module:
cli_osm_featuresSignature:
enrich(latitude: float, longitude: float, radius: int, timeout: int, providers: str)Description: Get enrichment data for biosample coordinates.
enrich
Type: function
Module:
cli_biosample_elevationSignature:
enrich(input_file: Path, output: Path, output_format: str, timeout: float, no_cache: bool, providers: tuple[str, ...], show_mapping: bool) -> NoneDescription: Enrich biosamples with elevation data using automatic field mapping.
ESACCIProvider.__init__
Type: method
Module:
marine.providers.esa_cciClass:
ESACCIProviderSignature:
__init__(self, timeout: int) -> NoneDescription: Initialize ESA CCI provider.
ESACCIProvider.get_coverage_period
Type: method
Module:
marine.providers.esa_cciClass:
ESACCIProviderSignature:
get_coverage_period(self) -> dict[str, str]Description: Get temporal coverage.
ESACCIProvider.get_marine_data
Type: method
Module:
marine.providers.esa_cciClass:
ESACCIProviderSignature:
get_marine_data(self, latitude: float, longitude: float, target_date: date, _parameters: list[str] | None) -> MarineResultDescription: Get chlorophyll-a data from ESA CCI.
ESACCIProvider.get_provider_info
Type: method
Module:
marine.providers.esa_cciClass:
ESACCIProviderSignature:
get_provider_info(self) -> dict[str, Any]Description: Get ESA CCI provider information.
ESACCIProvider.is_available
Type: method
Module:
marine.providers.esa_cciClass:
ESACCIProviderSignature:
is_available(self, latitude: float, longitude: float, target_date: date) -> boolDescription: Check if ESA CCI data is available for location and date.
ESACCIProvider.provider_name
Type: method
Module:
marine.providers.esa_cciClass:
ESACCIProviderSignature:
provider_name(self) -> strDescription: Get provider name.
ESAWorldCoverProvider.__init__
Type: method
Module:
land.providers.esa_worldcoverClass:
ESAWorldCoverProviderSignature:
__init__(self, timeout: int)
ESAWorldCoverProvider.coverage_description
Type: method
Module:
land.providers.esa_worldcoverClass:
ESAWorldCoverProviderSignature:
coverage_description(self) -> str
ESAWorldCoverProvider.get_land_cover
Type: method
Module:
land.providers.esa_worldcoverClass:
ESAWorldCoverProviderSignature:
get_land_cover(self, latitude: float, longitude: float, target_date: date | None) -> list[LandCoverObservation]Description: Get ESA WorldCover land cover data.
ESAWorldCoverProvider.is_available
Type: method
Module:
land.providers.esa_worldcoverClass:
ESAWorldCoverProviderSignature:
is_available(self) -> boolDescription: Check if ESA WorldCover WMS is available.
ESAWorldCoverProvider.name
Type: method
Module:
land.providers.esa_worldcoverClass:
ESAWorldCoverProviderSignature:
name(self) -> str
evaluate
Type: function
Module:
cli_metricsSignature:
evaluate(nmdc_samples: int, gold_samples: int, exclude_host: bool, output_dir: Path, nmdc_connection: str | None, gold_connection: str | None, create_plots: bool, verbose: bool, debug_samples: bool, enrichment_lifecycle_dir: Path) -> NoneDescription: Evaluate enrichment coverage metrics for random samples.
F
FieldAligner.__init__
Type: method
Module:
metrics.alignerClass:
FieldAlignerSignature:
__init__(self, mappings_file: Path | None)Description: Initialize field aligner with mappings configuration.
FieldAligner.align_temporal_data
Type: method
Module:
metrics.alignerClass:
FieldAlignerSignature:
align_temporal_data(self, collection_date: str | None, api_date: str | None, tolerance_days: int) -> boolDescription: Check if temporal data is aligned within tolerance.
FieldAligner.compare_fields
Type: method
Module:
metrics.alignerClass:
FieldAlignerSignature:
compare_fields(self, before_doc: dict[str, Any], after_doc: dict[str, Any], source: str) -> dict[str, dict[str, Any]]Description: Compare field coverage before and after enrichment.
FieldAligner.extract_all_fields
Type: method
Module:
metrics.alignerClass:
FieldAlignerSignature:
extract_all_fields(self, document: dict[str, Any], source: str) -> dict[str, Any]Description: Extract all mapped fields from a document.
FieldAligner.extract_field_value
Type: method
Module:
metrics.alignerClass:
FieldAlignerSignature:
extract_field_value(self, document: dict[str, Any], path: str, extract_type: str) -> AnyDescription: Extract a field value from a document using a path specification.
FieldAligner.normalize_value
Type: method
Module:
metrics.alignerClass:
FieldAlignerSignature:
normalize_value(self, value: Any, field_type: str | None) -> AnyDescription: Normalize a field value for comparison.
FileBiosampleFetcher.__init__
Type: method
Module:
adaptersClass:
FileBiosampleFetcherSignature:
__init__(self, file_path: str | Path, format_type: str)
FileBiosampleFetcher.detect_format
Type: method
Module:
adaptersClass:
FileBiosampleFetcherSignature:
detect_format(self) -> strDescription: Detect file format and biosample type.
FileBiosampleFetcher.fetch_locations
Type: method
Module:
adaptersClass:
FileBiosampleFetcherSignature:
fetch_locations(self, limit: int | None) -> Iterator[BiosampleLocation]Description: Fetch locations from file (stub implementation).
forward_geocoding
Type: function
Module:
cli_forward_geocodingSignature:
forward_geocoding()Description: Forward geocoding commands - convert place names to coordinates.
ForwardGeocodeResult.get_administrative_summary
Type: method
Module:
forward_geocoding.modelsClass:
ForwardGeocodeResultSignature:
get_administrative_summary(self) -> dict[str, str]Description: Get administrative components from best match.
ForwardGeocodeResult.get_best_match
Type: method
Module:
forward_geocoding.modelsClass:
ForwardGeocodeResultSignature:
get_best_match(self) -> ForwardGeocodeLocation | NoneDescription: Get the highest relevance/confidence location result.
ForwardGeocodeResult.get_coordinates
Type: method
Module:
forward_geocoding.modelsClass:
ForwardGeocodeResultSignature:
get_coordinates(self) -> tuple[float, float] | NoneDescription: Get coordinates from best match.
ForwardGeocodeResult.to_enrichment_dict
Type: method
Module:
forward_geocoding.modelsClass:
ForwardGeocodeResultSignature:
to_enrichment_dict(self) -> dict[str, Any]Description: Convert to dictionary suitable for biosample coordinate enrichment.
ForwardGeocodingProvider.attribution
Type: method
Module:
forward_geocoding.providers.baseClass:
ForwardGeocodingProviderSignature:
attribution(self) -> str | NoneDescription: Required attribution text.
ForwardGeocodingProvider.is_available
Type: method
Module:
forward_geocoding.providers.baseClass:
ForwardGeocodingProviderSignature:
is_available(self) -> boolDescription: Check if provider is available (API key, network, etc.).
ForwardGeocodingProvider.name
Type: method
Module:
forward_geocoding.providers.baseClass:
ForwardGeocodingProviderSignature:
name(self) -> strDescription: Provider name for identification.
ForwardGeocodingProvider.search
Type: method
Module:
forward_geocoding.providers.baseClass:
ForwardGeocodingProviderSignature:
search(self, query: str) -> ForwardGeocodeFetchResultDescription: Perform forward geocoding to convert place names to coordinates.
ForwardGeocodingProvider.validate_query
Type: method
Module:
forward_geocoding.providers.baseClass:
ForwardGeocodingProviderSignature:
validate_query(self, query: str) -> NoneDescription: Validate place name query input.
ForwardGeocodingService.__init__
Type: method
Module:
forward_geocoding.serviceClass:
ForwardGeocodingServiceSignature:
__init__(self) -> NoneDescription: Initialize the forward geocoding service.
ForwardGeocodingService.geocode
Type: method
Module:
forward_geocoding.serviceClass:
ForwardGeocodingServiceSignature:
geocode(self, query: str, provider: str | None) -> ForwardGeocodeResult | NoneDescription: Perform forward geocoding to convert place name to coordinates.
ForwardGeocodingService.geocode_multiple
Type: method
Module:
forward_geocoding.serviceClass:
ForwardGeocodingServiceSignature:
geocode_multiple(self, query: str, providers: list[str] | None) -> dict[str, ForwardGeocodeResult]Description: Perform forward geocoding using multiple providers for comparison.
ForwardGeocodingService.get_available_providers
Type: method
Module:
forward_geocoding.serviceClass:
ForwardGeocodingServiceSignature:
get_available_providers(self) -> list[str]Description: Get list of available provider names.
ForwardGeocodingService.get_coordinates_for_place
Type: method
Module:
forward_geocoding.serviceClass:
ForwardGeocodingServiceSignature:
get_coordinates_for_place(self, place_name: str, prefer_provider: str | None, language: str, country_hint: str | None) -> dict[str, Any]Description: Get coordinates and enrichment data for a biosample place name.
ForwardGeocodingService.get_provider
Type: method
Module:
forward_geocoding.serviceClass:
ForwardGeocodingServiceSignature:
get_provider(self, name: str) -> ForwardGeocodingProvider | NoneDescription: Get a specific provider by name.
ForwardGeocodingService.get_provider_status
Type: method
Module:
forward_geocoding.serviceClass:
ForwardGeocodingServiceSignature:
get_provider_status(self) -> dict[str, dict[str, Any]]Description: Get status information for all providers.
G
GEBCOProvider.__init__
Type: method
Module:
marine.providers.gebcoClass:
GEBCOProviderSignature:
__init__(self, timeout: int) -> NoneDescription: Initialize GEBCO provider.
GEBCOProvider.get_coverage_period
Type: method
Module:
marine.providers.gebcoClass:
GEBCOProviderSignature:
get_coverage_period(self) -> dict[str, str]Description: Get temporal coverage (static dataset).
GEBCOProvider.get_marine_data
Type: method
Module:
marine.providers.gebcoClass:
GEBCOProviderSignature:
get_marine_data(self, latitude: float, longitude: float, target_date: date, _parameters: list[str] | None) -> MarineResultDescription: Get bathymetry data from GEBCO.
GEBCOProvider.get_provider_info
Type: method
Module:
marine.providers.gebcoClass:
GEBCOProviderSignature:
get_provider_info(self) -> dict[str, Any]Description: Get GEBCO provider information.
GEBCOProvider.is_available
Type: method
Module:
marine.providers.gebcoClass:
GEBCOProviderSignature:
is_available(self, latitude: float, longitude: float, _target_date: date) -> boolDescription: Check if GEBCO data is available for location.
GEBCOProvider.provider_name
Type: method
Module:
marine.providers.gebcoClass:
GEBCOProviderSignature:
provider_name(self) -> strDescription: Get provider name.
generate_html_dashboard
Type: function
Module:
metrics.dashboardSignature:
generate_html_dashboard(summary_csv: Path, regional_csv: Path | None, output_path: Path | None) -> strDescription: Generate HTML dashboard with embedded data and charts.
generate_markdown_table
Type: function
Module:
metrics.markdownSignature:
generate_markdown_table(df: pd.DataFrame) -> strDescription: Convert DataFrame to GitHub-flavored markdown table.
generate_metrics_report
Type: function
Module:
metrics.markdownSignature:
generate_metrics_report(csv_path: Path) -> strDescription: Generate enrichment performance report showing what data types are enriched.
get_config_dir
Type: function
Module:
pathsSignature:
get_config_dir() -> PathDescription: Get the config directory.
get_data_dir
Type: function
Module:
pathsSignature:
get_data_dir() -> PathDescription: Get the data directory.
get_host_detector
Type: function
Module:
host_detectorSignature:
get_host_detector() -> HostDetectorDescription: Get or create the singleton host detector instance.
get_logger
Type: function
Module:
logging_configSignature:
get_logger(name: str) -> logging.LoggerDescription: Get a logger instance for a module.
get_logs_dir
Type: function
Module:
pathsSignature:
get_logs_dir() -> PathDescription: Get the logs directory.
get_package_data_dir
Type: function
Module:
pathsSignature:
get_package_data_dir() -> PathDescription: Get the package data directory.
get_project_root
Type: function
Module:
pathsSignature:
get_project_root() -> PathDescription: Get the project root directory.
get_session
Type: function
Module:
http_cacheSignature:
get_session() -> CachedSessionDescription: Get cached session with SQLite backend.
get_environmental_metadata
Type: function
Module:
environmental_metadataSignature:
get_environmental_metadata(lat: float, lon: float, slots: list[str], datetime_obj: datetime | None, providers: list[str] | None) -> dict[str, Any]Description: Get NMDC submission-schema compliant values for specified slots.
GOLDBiosampleAdapter.extract_location
Type: method
Module:
adaptersClass:
GOLDBiosampleAdapterSignature:
extract_location(self, biosample_data: dict[str, Any], database: Any) -> BiosampleLocationDescription: Extract location data from GOLD biosample document.
GOLDBiosampleAdapter.extract_locations_batch
Type: method
Module:
adaptersClass:
GOLDBiosampleAdapterSignature:
extract_locations_batch(self, biosamples: list[dict[str, Any]]) -> list[BiosampleLocation]Description: Extract location data from multiple GOLD biosamples.
GoogleElevationProvider.__init__
Type: method
Module:
elevation.providers.googleClass:
GoogleElevationProviderSignature:
__init__(self, api_key: str | None) -> NoneDescription: Initialize Google Elevation provider.
GoogleElevationProvider.fetch
Type: method
Module:
elevation.providers.googleClass:
GoogleElevationProviderSignature:
fetch(self, lat: float, lon: float) -> FetchResultDescription: Fetch elevation data from Google Elevation API.
GoogleForwardGeocodingProvider.__init__
Type: method
Module:
forward_geocoding.providers.googleClass:
GoogleForwardGeocodingProviderSignature:
__init__(self, api_key: str | None)Description: Initialize Google provider.
GoogleForwardGeocodingProvider.attribution
Type: method
Module:
forward_geocoding.providers.googleClass:
GoogleForwardGeocodingProviderSignature:
attribution(self) -> str
GoogleForwardGeocodingProvider.is_available
Type: method
Module:
forward_geocoding.providers.googleClass:
GoogleForwardGeocodingProviderSignature:
is_available(self) -> boolDescription: Check if Google API is available.
GoogleForwardGeocodingProvider.name
Type: method
Module:
forward_geocoding.providers.googleClass:
GoogleForwardGeocodingProviderSignature:
name(self) -> str
GoogleForwardGeocodingProvider.search
Type: method
Module:
forward_geocoding.providers.googleClass:
GoogleForwardGeocodingProviderSignature:
search(self, query: str) -> ForwardGeocodeFetchResultDescription: Search for places by name using Google Maps Geocoding API.
GooglePlacesProvider.__init__
Type: method
Module:
osm_features.google_providerClass:
GooglePlacesProviderSignature:
__init__(self, api_key: str | None)Description: Initialize Google Places provider.
GooglePlacesProvider.get_features
Type: method
Module:
osm_features.google_providerClass:
GooglePlacesProviderSignature:
get_features(self, latitude: float, longitude: float, radius_m: int, timeout_s: int) -> GooglePlacesFetchResultDescription: Get geographic features from Google Places API.
GooglePlacesProvider.is_available
Type: method
Module:
osm_features.google_providerClass:
GooglePlacesProviderSignature:
is_available(self) -> boolDescription: Check if Google Places API is available.
GooglePlacesResult.get_nearest_feature
Type: method
Module:
osm_features.modelsClass:
GooglePlacesResultSignature:
get_nearest_feature(self, category: FeatureCategory) -> GooglePlacesFeature | NoneDescription: Get nearest feature of specified category.
GooglePlacesResult.to_enrichment_dict
Type: method
Module:
osm_features.modelsClass:
GooglePlacesResultSignature:
to_enrichment_dict(self) -> dict[str, Any]Description: Convert to dictionary suitable for biosample enrichment.
GoogleReverseGeocodingProvider.__init__
Type: method
Module:
reverse_geocoding.providers.googleClass:
GoogleReverseGeocodingProviderSignature:
__init__(self, api_key: str | None) -> NoneDescription: Initialize Google Geocoding reverse geocoding provider.
GoogleReverseGeocodingProvider.fetch
Type: method
Module:
reverse_geocoding.providers.googleClass:
GoogleReverseGeocodingProviderSignature:
fetch(self, lat: float, lon: float) -> ReverseGeocodeFetchResultDescription: Fetch reverse geocoding data from Google Geocoding API.
H
HostDetector.__init__
Type: method
Module:
host_detectorClass:
HostDetectorSignature:
__init__(self, config_file: Path | None)Description: Initialize host detector with configuration.
HostDetector.classify_sample_type
Type: method
Module:
host_detectorClass:
HostDetectorSignature:
classify_sample_type(self, data: dict[str, Any], source: str) -> strDescription: Classify the sample type based on available metadata.
HostDetector.is_host_associated
Type: method
Module:
host_detectorClass:
HostDetectorSignature:
is_host_associated(self, data: dict[str, Any], source: str) -> boolDescription: Detect if a biosample is host-associated.
HostDetector.is_host_associated_gold
Type: method
Module:
host_detectorClass:
HostDetectorSignature:
is_host_associated_gold(self, data: dict[str, Any]) -> boolDescription: Detect if GOLD sample is host-associated.
HostDetector.is_host_associated_nmdc
Type: method
Module:
host_detectorClass:
HostDetectorSignature:
is_host_associated_nmdc(self, data: dict[str, Any]) -> boolDescription: Detect if NMDC sample is host-associated.
I
info
Type: function
Module:
cache_managementSignature:
info(ctx: click.Context) -> NoneDescription: Show cache information.
L
land
Type: function
Module:
cli_landSignature:
land()Description: Land cover and vegetation enrichment commands.
LandCoverObservation.validate_location
Type: method
Module:
land.modelsClass:
LandCoverObservationSignature:
validate_location(cls, v: dict[str, float]) -> dict[str, float]Description: Validate location coordinates.
LandCoverProviderBase.coverage_description
Type: method
Module:
land.providers.baseClass:
LandCoverProviderBaseSignature:
coverage_description(self) -> strDescription: Description of geographic and temporal coverage.
LandCoverProviderBase.get_land_cover
Type: method
Module:
land.providers.baseClass:
LandCoverProviderBaseSignature:
get_land_cover(self, latitude: float, longitude: float, target_date: date | None) -> list[LandCoverObservation]Description: Retrieve land cover data for a specific location and date.
LandCoverProviderBase.is_available
Type: method
Module:
land.providers.baseClass:
LandCoverProviderBaseSignature:
is_available(self) -> boolDescription: Check if the provider is currently available.
LandCoverProviderBase.name
Type: method
Module:
land.providers.baseClass:
LandCoverProviderBaseSignature:
name(self) -> strDescription: Provider name for identification and logging.
LandCoverProviderBase.validate_coordinates
Type: method
Module:
land.providers.baseClass:
LandCoverProviderBaseSignature:
validate_coordinates(self, latitude: float, longitude: float) -> NoneDescription: Validate coordinate inputs.
LandResult.to_gold_schema
Type: method
Module:
land.modelsClass:
LandResultSignature:
to_gold_schema(self) -> dict[str, Any]Description: Convert to GOLD schema format.
LandResult.to_nmdc_schema
Type: method
Module:
land.modelsClass:
LandResultSignature:
to_nmdc_schema(self) -> dict[str, Any]Description: Convert to NMDC schema format.
LandResult.validate_requested_location
Type: method
Module:
land.modelsClass:
LandResultSignature:
validate_requested_location(cls, v: dict[str, float]) -> dict[str, float]Description: Validate requested location coordinates.
LandService.__init__
Type: method
Module:
land.serviceClass:
LandServiceSignature:
__init__(self)Description: Initialize land service with all providers.
LandService.enrich_batch
Type: method
Module:
land.serviceClass:
LandServiceSignature:
enrich_batch(self, locations: list[tuple[float, float]], target_date: date | None, time_window_days: int) -> list[LandResult]Description: Enrich multiple locations with land cover and vegetation data.
LandService.enrich_biosample
Type: method
Module:
land.serviceClass:
LandServiceSignature:
enrich_biosample(self, sample_data: dict[str, Any]) -> dict[str, Any]Description: Enrich a single biosample with land cover and vegetation data.
LandService.enrich_location
Type: method
Module:
land.serviceClass:
LandServiceSignature:
enrich_location(self, latitude: float, longitude: float, target_date: date | None, time_window_days: int) -> LandResultDescription: Enrich a single location with land cover and vegetation data.
LandService.get_provider_status
Type: method
Module:
land.serviceClass:
LandServiceSignature:
get_provider_status(self) -> dict[str, dict[str, Any]]Description: Get status of all land cover and vegetation providers.
LocationDetector.__init__
Type: method
Module:
elevation.location_detectorClass:
LocationDetectorSignature:
__init__(self, user_agent: str)Description: Initialize the location detector.
LocationDetector.classify_for_elevation_routing
Type: method
Module:
elevation.location_detectorClass:
LocationDetectorSignature:
classify_for_elevation_routing(self, lat: float, lon: float) -> dict[str, Any]Description: Classify coordinates specifically for elevation service routing.
LocationDetector.detect_location
Type: method
Module:
elevation.location_detectorClass:
LocationDetectorSignature:
detect_location(self, lat: float, lon: float, prefer_online: bool) -> dict[str, Any]Description: Detect location characteristics using multiple methods.
lookup
Type: function
Module:
cli_soilSignature:
lookup(latitude: float, longitude: float, depth: str, output_format: str, verbose: bool) -> NoneDescription: Look up soil data for a specific location.
lookup
Type: function
Module:
cli_landSignature:
lookup(lat: float, lon: float, date: datetime | None, time_window: int, output: str | None, pretty: bool)Description: Look up land cover and vegetation data for a single location.
lookup
Type: function
Module:
cli_forward_geocodingSignature:
lookup(query: str, provider: str, language: str, country: str | None, max_results: int, output: str | None, pretty: bool)Description: Look up coordinates for a place name.
lookup
Type: function
Module:
cli_osm_featuresSignature:
lookup(latitude: float, longitude: float, radius: int, providers: str, timeout: int, output: str | None, pretty: bool)Description: Look up geographic features around coordinates.
lookup
Type: function
Module:
cli_marineSignature:
lookup(lat: float, lon: float, date: str, providers: str, output: str | None, schema: str)Description: Look up marine data for a specific location and date.
lookup
Type: function
Module:
cli_weatherSignature:
lookup(lat: float, lon: float, date: str, providers: str, output: str | None, schema: str)Description: Get weather data for specific coordinates and date.
lookup_elevation
Type: function
Module:
cli_elevationSignature:
lookup_elevation(lat: float, lon: float, providers: tuple[str, ...], output: str | None, subject_id: str, timeout: float, no_cache: bool, read_cache: bool, write_cache: bool) -> NoneDescription: Look up elevation for a single coordinate.
M
main
Type: function
Module:
cliSignature:
main() -> NoneDescription: Biosample Enricher: Infer AI-friendly metadata about biosamples.
main
Type: function
Module:
schema_inferenceSignature:
main() -> None
main
Type: function
Module:
schema_statisticsSignature:
main() -> None
marine_cli
Type: function
Module:
cli_marineSignature:
marine_cli(debug: bool)Description: Marine enrichment CLI for biosample oceanographic context.
MarineObservation.validate_value
Type: method
Module:
marine.modelsClass:
MarineObservationSignature:
validate_value(cls, v)Description: Validate observation value.
MarineProviderBase.__init__
Type: method
Module:
marine.providers.baseClass:
MarineProviderBaseSignature:
__init__(self, timeout: int) -> NoneDescription: Initialize provider with timeout setting.
MarineProviderBase.get_coverage_period
Type: method
Module:
marine.providers.baseClass:
MarineProviderBaseSignature:
get_coverage_period(self) -> dict[str, str]Description: Get temporal coverage of the provider.
MarineProviderBase.get_marine_data
Type: method
Module:
marine.providers.baseClass:
MarineProviderBaseSignature:
get_marine_data(self, latitude: float, longitude: float, target_date: date, parameters: list[str] | None) -> MarineResultDescription: Get marine data for location and date.
MarineProviderBase.get_provider_info
Type: method
Module:
marine.providers.baseClass:
MarineProviderBaseSignature:
get_provider_info(self) -> dict[str, Any]Description: Get provider metadata and capabilities.
MarineProviderBase.is_available
Type: method
Module:
marine.providers.baseClass:
MarineProviderBaseSignature:
is_available(self, latitude: float, longitude: float, target_date: date) -> boolDescription: Check if provider has data for given location and date.
MarineProviderBase.provider_name
Type: method
Module:
marine.providers.baseClass:
MarineProviderBaseSignature:
provider_name(self) -> strDescription: Get the provider name.
MarineResult.get_coverage_metrics
Type: method
Module:
marine.modelsClass:
MarineResultSignature:
get_coverage_metrics(self) -> dict[str, Any]Description: Generate coverage metrics for this marine result.
MarineResult.get_schema_mapping
Type: method
Module:
marine.modelsClass:
MarineResultSignature:
get_schema_mapping(self, target_schema: str) -> dict[str, Any]Description: Map marine data to target biosample schema.
MarineResult.validate_date_format
Type: method
Module:
marine.modelsClass:
MarineResultSignature:
validate_date_format(cls, v)Description: Validate date format.
MarineService.__init__
Type: method
Module:
marine.serviceClass:
MarineServiceSignature:
__init__(self, providers: list[MarineProviderBase] | None)Description: Initialize marine service with provider chain.
MarineService.get_comprehensive_marine_data
Type: method
Module:
marine.serviceClass:
MarineServiceSignature:
get_comprehensive_marine_data(self, latitude: float, longitude: float, target_date: date) -> MarineResultDescription: Get comprehensive marine data from all available providers.
MarineService.get_marine_data_for_biosample
Type: method
Module:
marine.serviceClass:
MarineServiceSignature:
get_marine_data_for_biosample(self, biosample: dict[str, Any], target_schema: str) -> dict[str, Any]Description: Get marine data for a biosample and map to target schema.
MeteostatProvider.__init__
Type: method
Module:
weather.providers.meteostatClass:
MeteostatProviderSignature:
__init__(self, timeout: int)
MeteostatProvider.get_climate_normals
Type: method
Module:
weather.providers.meteostatClass:
MeteostatProviderSignature:
get_climate_normals(self, lat: float, lon: float, start_year: int, end_year: int) -> ClimateNormalsResultDescription: Get 30-year climate averages (normals) for a location.
MeteostatProvider.get_coverage_period
Type: method
Module:
weather.providers.meteostatClass:
MeteostatProviderSignature:
get_coverage_period(self) -> dict[str, str]Description: Return temporal coverage period.
MeteostatProvider.get_daily_weather
Type: method
Module:
weather.providers.meteostatClass:
MeteostatProviderSignature:
get_daily_weather(self, lat: float, lon: float, target_date: date, _parameters: list[str] | None) -> WeatherResultDescription: Get daily weather data for specific date and location from MeteoStat.
MeteostatProvider.get_spatial_resolution
Type: method
Module:
weather.providers.meteostatClass:
MeteostatProviderSignature:
get_spatial_resolution(self) -> strDescription: Return spatial resolution.
MeteostatProvider.get_supported_parameters
Type: method
Module:
weather.providers.meteostatClass:
MeteostatProviderSignature:
get_supported_parameters(self) -> list[str]Description: Return list of weather parameters supported by MeteoStat.
MeteostatProvider.get_temporal_resolution
Type: method
Module:
weather.providers.meteostatClass:
MeteostatProviderSignature:
get_temporal_resolution(self) -> strDescription: Return temporal resolution.
MeteostatProvider.is_available
Type: method
Module:
weather.providers.meteostatClass:
MeteostatProviderSignature:
is_available(self, _lat: float, _lon: float, target_date: date) -> boolDescription: Check if MeteoStat has data for the given location and date.
metrics
Type: function
Module:
cli_metricsSignature:
metrics() -> NoneDescription: Evaluate enrichment coverage metrics.
MetricsReporter.__init__
Type: method
Module:
metrics.reporterClass:
MetricsReporterSignature:
__init__(self, output_dir: Path | None)Description: Initialize reporter with output directory.
MetricsReporter.generate_detailed_samples
Type: method
Module:
metrics.reporterClass:
MetricsReporterSignature:
generate_detailed_samples(self, evaluations: list[dict[str, Any]], limit: int) -> pd.DataFrameDescription: Generate detailed per-sample results.
MetricsReporter.generate_regional_table
Type: method
Module:
metrics.reporterClass:
MetricsReporterSignature:
generate_regional_table(self, evaluations: list[dict[str, Any]]) -> pd.DataFrameDescription: Generate coverage table by geographic region.
MetricsReporter.generate_summary_table
Type: method
Module:
metrics.reporterClass:
MetricsReporterSignature:
generate_summary_table(self, evaluations: list[dict[str, Any]], exclude_host_associated: bool) -> pd.DataFrameDescription: Generate overall coverage summary table.
MetricsReporter.print_summary
Type: method
Module:
metrics.reporterClass:
MetricsReporterSignature:
print_summary(self, summary_df: pd.DataFrame) -> NoneDescription: Print summary table to console.
MetricsReporter.save_all_reports
Type: method
Module:
metrics.reporterClass:
MetricsReporterSignature:
save_all_reports(self, evaluations: list[dict[str, Any]], prefix: str) -> dict[str, Path]Description: Save all report tables to CSV files.
MetricsVisualizer.__init__
Type: method
Module:
metrics.visualizerClass:
MetricsVisualizerSignature:
__init__(self, output_dir: Path | None)Description: Initialize visualizer with output directory.
MetricsVisualizer.create_all_visualizations
Type: method
Module:
metrics.visualizerClass:
MetricsVisualizerSignature:
create_all_visualizations(self, evaluations: list[dict[str, Any]], summary_df: pd.DataFrame, regional_df: pd.DataFrame, prefix: str) -> dict[str, Path]Description: Create all visualization plots.
MetricsVisualizer.plot_host_association_breakdown
Type: method
Module:
metrics.visualizerClass:
MetricsVisualizerSignature:
plot_host_association_breakdown(self, evaluations: list[dict[str, Any]], save_path: Path | None) -> plt.FigureDescription: Create pie charts showing host-associated vs environmental samples.
MetricsVisualizer.plot_improvement_bars
Type: method
Module:
metrics.visualizerClass:
MetricsVisualizerSignature:
plot_improvement_bars(self, summary_df: pd.DataFrame, save_path: Path | None) -> plt.FigureDescription: Create bar chart showing improvement percentages.
MetricsVisualizer.plot_regional_comparison
Type: method
Module:
metrics.visualizerClass:
MetricsVisualizerSignature:
plot_regional_comparison(self, regional_df: pd.DataFrame, save_path: Path | None) -> plt.FigureDescription: Create regional comparison plot.
MetricsVisualizer.plot_source_datatype_coverage
Type: method
Module:
metrics.visualizerClass:
MetricsVisualizerSignature:
plot_source_datatype_coverage(self, summary_df: pd.DataFrame, save_path: Path | None) -> plt.FigureDescription: Create grouped bar chart for source × data type coverage.
MODISVegetationProvider.__init__
Type: method
Module:
land.providers.modis_vegetationClass:
MODISVegetationProviderSignature:
__init__(self, timeout: int)
MODISVegetationProvider.coverage_description
Type: method
Module:
land.providers.modis_vegetationClass:
MODISVegetationProviderSignature:
coverage_description(self) -> str
MODISVegetationProvider.get_vegetation_indices
Type: method
Module:
land.providers.modis_vegetationClass:
MODISVegetationProviderSignature:
get_vegetation_indices(self, latitude: float, longitude: float, target_date: date | None, time_window_days: int) -> list[VegetationObservation]Description: Get MODIS vegetation indices.
MODISVegetationProvider.is_available
Type: method
Module:
land.providers.modis_vegetationClass:
MODISVegetationProviderSignature:
is_available(self) -> boolDescription: Check if APPEEARS API is available.
MODISVegetationProvider.name
Type: method
Module:
land.providers.modis_vegetationClass:
MODISVegetationProviderSignature:
name(self) -> str
MongoGOLDBiosampleFetcher.__init__
Type: method
Module:
adaptersClass:
MongoGOLDBiosampleFetcherSignature:
__init__(self, connection_string: str | None, database_name: str, collection_name: str)
MongoGOLDBiosampleFetcher.connect
Type: method
Module:
adaptersClass:
MongoGOLDBiosampleFetcherSignature:
connect(self) -> boolDescription: Establish MongoDB connection.
MongoGOLDBiosampleFetcher.count_enrichable_samples
Type: method
Module:
adaptersClass:
MongoGOLDBiosampleFetcherSignature:
count_enrichable_samples(self) -> intDescription: Count biosamples with coordinates.
MongoGOLDBiosampleFetcher.count_total_samples
Type: method
Module:
adaptersClass:
MongoGOLDBiosampleFetcherSignature:
count_total_samples(self) -> intDescription: Count total biosamples in collection.
MongoGOLDBiosampleFetcher.disconnect
Type: method
Module:
adaptersClass:
MongoGOLDBiosampleFetcherSignature:
disconnect(self) -> NoneDescription: Close MongoDB connection.
MongoGOLDBiosampleFetcher.fetch_enrichable_locations
Type: method
Module:
adaptersClass:
MongoGOLDBiosampleFetcherSignature:
fetch_enrichable_locations(self, limit: int | None) -> Iterator[BiosampleLocation]Description: Fetch only biosamples with coordinates suitable for enrichment.
MongoGOLDBiosampleFetcher.fetch_locations
Type: method
Module:
adaptersClass:
MongoGOLDBiosampleFetcherSignature:
fetch_locations(self, query: dict[str, Any] | None, limit: int | None) -> Iterator[BiosampleLocation]Description: Fetch and extract locations from GOLD biosamples.
MongoGOLDBiosampleFetcher.fetch_locations_by_ids
Type: method
Module:
adaptersClass:
MongoGOLDBiosampleFetcherSignature:
fetch_locations_by_ids(self, ids: list[str], id_field: str) -> Iterator[BiosampleLocation]Description: Fetch biosamples by specific IDs using native field names.
MongoGOLDBiosampleFetcher.fetch_random_enrichable_locations
Type: method
Module:
adaptersClass:
MongoGOLDBiosampleFetcherSignature:
fetch_random_enrichable_locations(self, n: int) -> Iterator[BiosampleLocation]Description: Fetch N random enrichable biosamples from collection.
MongoGOLDBiosampleFetcher.fetch_random_locations
Type: method
Module:
adaptersClass:
MongoGOLDBiosampleFetcherSignature:
fetch_random_locations(self, n: int) -> Iterator[BiosampleLocation]Description: Fetch N random biosamples from collection.
MongoNMDCBiosampleFetcher.__init__
Type: method
Module:
adaptersClass:
MongoNMDCBiosampleFetcherSignature:
__init__(self, connection_string: str | None, database_name: str, collection_name: str)
MongoNMDCBiosampleFetcher.connect
Type: method
Module:
adaptersClass:
MongoNMDCBiosampleFetcherSignature:
connect(self) -> boolDescription: Establish MongoDB connection.
MongoNMDCBiosampleFetcher.count_enrichable_samples
Type: method
Module:
adaptersClass:
MongoNMDCBiosampleFetcherSignature:
count_enrichable_samples(self) -> intDescription: Count biosamples with coordinates.
MongoNMDCBiosampleFetcher.count_total_samples
Type: method
Module:
adaptersClass:
MongoNMDCBiosampleFetcherSignature:
count_total_samples(self) -> intDescription: Count total biosamples in collection.
MongoNMDCBiosampleFetcher.disconnect
Type: method
Module:
adaptersClass:
MongoNMDCBiosampleFetcherSignature:
disconnect(self) -> NoneDescription: Close MongoDB connection.
MongoNMDCBiosampleFetcher.fetch_enrichable_locations
Type: method
Module:
adaptersClass:
MongoNMDCBiosampleFetcherSignature:
fetch_enrichable_locations(self, limit: int | None) -> Iterator[BiosampleLocation]Description: Fetch only biosamples with coordinates suitable for enrichment.
MongoNMDCBiosampleFetcher.fetch_locations
Type: method
Module:
adaptersClass:
MongoNMDCBiosampleFetcherSignature:
fetch_locations(self, query: dict[str, Any] | None, limit: int | None) -> Iterator[BiosampleLocation]Description: Fetch and extract locations from NMDC biosamples.
MongoNMDCBiosampleFetcher.fetch_locations_by_ids
Type: method
Module:
adaptersClass:
MongoNMDCBiosampleFetcherSignature:
fetch_locations_by_ids(self, ids: list[str], id_field: str) -> Iterator[BiosampleLocation]Description: Fetch biosamples by specific IDs using native field names.
MongoNMDCBiosampleFetcher.fetch_random_enrichable_locations
Type: method
Module:
adaptersClass:
MongoNMDCBiosampleFetcherSignature:
fetch_random_enrichable_locations(self, n: int) -> Iterator[BiosampleLocation]Description: Fetch N random enrichable biosamples from collection.
MongoNMDCBiosampleFetcher.fetch_random_locations
Type: method
Module:
adaptersClass:
MongoNMDCBiosampleFetcherSignature:
fetch_random_locations(self, n: int) -> Iterator[BiosampleLocation]Description: Fetch N random biosamples from collection.
MultiProviderClimateNormals.get_consensus_precipitation
Type: method
Module:
weather.modelsClass:
MultiProviderClimateNormalsSignature:
get_consensus_precipitation(self) -> float | NoneDescription: Calculate consensus annual precipitation across all successful providers.
MultiProviderClimateNormals.get_consensus_temperature
Type: method
Module:
weather.modelsClass:
MultiProviderClimateNormalsSignature:
get_consensus_temperature(self) -> float | NoneDescription: Calculate consensus annual temperature across all successful providers.
MultiProviderClimateNormals.get_provider_result
Type: method
Module:
weather.modelsClass:
MultiProviderClimateNormalsSignature:
get_provider_result(self, provider_name: str) -> 'ClimateNormalsResult | None'Description: Get result from a specific provider.
MultiProviderClimateNormals.get_value_ranges
Type: method
Module:
weather.modelsClass:
MultiProviderClimateNormalsSignature:
get_value_ranges(self) -> dict[str, tuple[float, float] | None]Description: Get min/max range of values across providers.
MultiProviderClimateNormals.to_submission_schema
Type: method
Module:
weather.modelsClass:
MultiProviderClimateNormalsSignature:
to_submission_schema(self, provider: str | None, strategy: str) -> dict[str, Any]Description: Extract values in submission-schema compatible format.
N
NASAPowerProvider.__init__
Type: method
Module:
weather.providers.nasa_powerClass:
NASAPowerProviderSignature:
__init__(self, timeout: int)Description: Initialize NASA POWER provider.
NASAPowerProvider.get_climate_normals
Type: method
Module:
weather.providers.nasa_powerClass:
NASAPowerProviderSignature:
get_climate_normals(self, lat: float, lon: float, start_year: int, end_year: int) -> ClimateNormalsResultDescription: Get 20-year climate averages from NASA POWER.
NLCDProvider.__init__
Type: method
Module:
land.providers.nlcdClass:
NLCDProviderSignature:
__init__(self, timeout: int)
NLCDProvider.coverage_description
Type: method
Module:
land.providers.nlcdClass:
NLCDProviderSignature:
coverage_description(self) -> str
NLCDProvider.get_land_cover
Type: method
Module:
land.providers.nlcdClass:
NLCDProviderSignature:
get_land_cover(self, latitude: float, longitude: float, target_date: date | None) -> list[LandCoverObservation]Description: Get NLCD land cover data.
NLCDProvider.is_available
Type: method
Module:
land.providers.nlcdClass:
NLCDProviderSignature:
is_available(self) -> boolDescription: Check if NLCD WMS is available.
NLCDProvider.name
Type: method
Module:
land.providers.nlcdClass:
NLCDProviderSignature:
name(self) -> str
NMDCBiosampleAdapter.extract_location
Type: method
Module:
adaptersClass:
NMDCBiosampleAdapterSignature:
extract_location(self, biosample_data: dict[str, Any]) -> BiosampleLocationDescription: Extract location data from NMDC biosample document.
NMDCBiosampleAdapter.extract_locations_batch
Type: method
Module:
adaptersClass:
NMDCBiosampleAdapterSignature:
extract_locations_batch(self, biosamples: list[dict[str, Any]]) -> list[BiosampleLocation]Description: Extract location data from multiple NMDC biosamples.
NOAAOISSTProvider.__init__
Type: method
Module:
marine.providers.noaa_oisstClass:
NOAAOISSTProviderSignature:
__init__(self, timeout: int) -> NoneDescription: Initialize NOAA OISST provider.
NOAAOISSTProvider.get_coverage_period
Type: method
Module:
marine.providers.noaa_oisstClass:
NOAAOISSTProviderSignature:
get_coverage_period(self) -> dict[str, str]Description: Get temporal coverage.
NOAAOISSTProvider.get_marine_data
Type: method
Module:
marine.providers.noaa_oisstClass:
NOAAOISSTProviderSignature:
get_marine_data(self, latitude: float, longitude: float, target_date: date, _parameters: list[str] | None) -> MarineResultDescription: Get SST data from NOAA OISST.
NOAAOISSTProvider.get_provider_info
Type: method
Module:
marine.providers.noaa_oisstClass:
NOAAOISSTProviderSignature:
get_provider_info(self) -> dict[str, Any]Description: Get NOAA OISST provider information.
NOAAOISSTProvider.is_available
Type: method
Module:
marine.providers.noaa_oisstClass:
NOAAOISSTProviderSignature:
is_available(self, latitude: float, longitude: float, target_date: date) -> boolDescription: Check if OISST data is available for location and date.
NOAAOISSTProvider.provider_name
Type: method
Module:
marine.providers.noaa_oisstClass:
NOAAOISSTProviderSignature:
provider_name(self) -> strDescription: Get provider name.
O
OpenMeteoProvider.__init__
Type: method
Module:
weather.providers.open_meteoClass:
OpenMeteoProviderSignature:
__init__(self, timeout: int)
OpenMeteoProvider.get_coverage_period
Type: method
Module:
weather.providers.open_meteoClass:
OpenMeteoProviderSignature:
get_coverage_period(self) -> dict[str, str]Description: Return temporal coverage period.
OpenMeteoProvider.get_daily_weather
Type: method
Module:
weather.providers.open_meteoClass:
OpenMeteoProviderSignature:
get_daily_weather(self, lat: float, lon: float, target_date: date, parameters: list[str] | None) -> WeatherResultDescription: Get daily weather data for specific date and location from Open-Meteo.
OpenMeteoProvider.get_spatial_resolution
Type: method
Module:
weather.providers.open_meteoClass:
OpenMeteoProviderSignature:
get_spatial_resolution(self) -> strDescription: Return spatial resolution.
OpenMeteoProvider.get_supported_parameters
Type: method
Module:
weather.providers.open_meteoClass:
OpenMeteoProviderSignature:
get_supported_parameters(self) -> list[str]Description: Return list of weather parameters supported by Open-Meteo.
OpenMeteoProvider.get_temporal_resolution
Type: method
Module:
weather.providers.open_meteoClass:
OpenMeteoProviderSignature:
get_temporal_resolution(self) -> strDescription: Return temporal resolution.
OpenMeteoProvider.is_available
Type: method
Module:
weather.providers.open_meteoClass:
OpenMeteoProviderSignature:
is_available(self, _lat: float, _lon: float, target_date: date) -> boolDescription: Check if Open-Meteo has data for the given location and date.
OpenTopoDataProvider.__init__
Type: method
Module:
elevation.providers.open_topo_dataClass:
OpenTopoDataProviderSignature:
__init__(self, endpoint: str, dataset: str) -> NoneDescription: Initialize Open Topo Data provider.
OpenTopoDataProvider.fetch
Type: method
Module:
elevation.providers.open_topo_dataClass:
OpenTopoDataProviderSignature:
fetch(self, lat: float, lon: float) -> FetchResultDescription: Fetch elevation data from Open Topo Data API.
osm_features
Type: function
Module:
cli_osm_featuresSignature:
osm_features()Description: OpenStreetMap geographic features commands.
OSMElevationProvider.__init__
Type: method
Module:
elevation.providers.osmClass:
OSMElevationProviderSignature:
__init__(self, endpoint: str) -> NoneDescription: Initialize OSM-like elevation provider.
OSMElevationProvider.fetch
Type: method
Module:
elevation.providers.osmClass:
OSMElevationProviderSignature:
fetch(self, lat: float, lon: float) -> FetchResultDescription: Fetch elevation data from OpenElevation-style API.
OSMFeaturesResult.get_distance_summary
Type: method
Module:
osm_features.modelsClass:
OSMFeaturesResultSignature:
get_distance_summary(self) -> dict[str, Any]Description: Generate distance summary for key feature categories.
OSMFeaturesResult.get_feature_counts_by_category
Type: method
Module:
osm_features.modelsClass:
OSMFeaturesResultSignature:
get_feature_counts_by_category(self) -> dict[str, int]Description: Get counts of unnamed features by main category.
OSMFeaturesResult.get_features_by_category
Type: method
Module:
osm_features.modelsClass:
OSMFeaturesResultSignature:
get_features_by_category(self, category: FeatureCategory) -> list[OSMNamedFeature]Description: Get all named features of a specific category.
OSMFeaturesResult.get_nearest_feature
Type: method
Module:
osm_features.modelsClass:
OSMFeaturesResultSignature:
get_nearest_feature(self, category: FeatureCategory) -> OSMNamedFeature | NoneDescription: Get the nearest named feature of a specific category.
OSMFeaturesResult.to_enrichment_dict
Type: method
Module:
osm_features.modelsClass:
OSMFeaturesResultSignature:
to_enrichment_dict(self) -> dict[str, Any]Description: Convert to dictionary suitable for biosample enrichment.
OSMFeaturesService.__init__
Type: method
Module:
osm_features.serviceClass:
OSMFeaturesServiceSignature:
__init__(self, default_radius_m: int, enable_google: bool)Description: Initialize geographic features service.
OSMFeaturesService.batch_enrich_locations
Type: method
Module:
osm_features.serviceClass:
OSMFeaturesServiceSignature:
batch_enrich_locations(self, locations: list[tuple[float, float]], radius_m: int, timeout_s: int) -> list[dict[str, Any]]Description: Batch enrich multiple locations with OSM features.
OSMFeaturesService.enrich_biosample_location
Type: method
Module:
osm_features.serviceClass:
OSMFeaturesServiceSignature:
enrich_biosample_location(self, latitude: float, longitude: float, radius_m: int | None, timeout_s: int, use_combined: bool) -> dict[str, Any]Description: Enrich a biosample location with geographic features from multiple providers.
OSMFeaturesService.get_combined_features_for_location
Type: method
Module:
osm_features.serviceClass:
OSMFeaturesServiceSignature:
get_combined_features_for_location(self, latitude: float, longitude: float, radius_m: int | None, timeout_s: int) -> CombinedFeaturesResultDescription: Get geographic features from both OSM and Google Places providers.
OSMFeaturesService.get_features_for_biosample
Type: method
Module:
osm_features.serviceClass:
OSMFeaturesServiceSignature:
get_features_for_biosample(self, biosample: dict[str, Any], radius_m: int, timeout_s: int) -> dict[str, Any]Description: Get OSM features for a biosample dictionary.
OSMFeaturesService.get_features_for_location
Type: method
Module:
osm_features.serviceClass:
OSMFeaturesServiceSignature:
get_features_for_location(self, latitude: float, longitude: float, radius_m: int | None, timeout_s: int) -> OSMFeaturesResult | NoneDescription: Get geographic features around a location from OSM only (for backward compatibility).
OSMFeaturesService.get_provider_status
Type: method
Module:
osm_features.serviceClass:
OSMFeaturesServiceSignature:
get_provider_status(self) -> dict[str, Any]Description: Get status of all geographic features providers.
OSMForwardGeocodingProvider.__init__
Type: method
Module:
forward_geocoding.providers.osmClass:
OSMForwardGeocodingProviderSignature:
__init__(self, base_url: str)Description: Initialize OSM provider.
OSMForwardGeocodingProvider.attribution
Type: method
Module:
forward_geocoding.providers.osmClass:
OSMForwardGeocodingProviderSignature:
attribution(self) -> str
OSMForwardGeocodingProvider.is_available
Type: method
Module:
forward_geocoding.providers.osmClass:
OSMForwardGeocodingProviderSignature:
is_available(self) -> boolDescription: Check if Nominatim API is available.
OSMForwardGeocodingProvider.name
Type: method
Module:
forward_geocoding.providers.osmClass:
OSMForwardGeocodingProviderSignature:
name(self) -> str
OSMForwardGeocodingProvider.search
Type: method
Module:
forward_geocoding.providers.osmClass:
OSMForwardGeocodingProviderSignature:
search(self, query: str) -> ForwardGeocodeFetchResultDescription: Search for places by name using OSM Nominatim search API.
OSMOverpassProvider.__init__
Type: method
Module:
osm_features.providerClass:
OSMOverpassProviderSignature:
__init__(self, base_url: str)Description: Initialize OSM Overpass provider.
OSMOverpassProvider.get_features
Type: method
Module:
osm_features.providerClass:
OSMOverpassProviderSignature:
get_features(self, latitude: float, longitude: float, radius_m: int, timeout_s: int) -> OSMFetchResultDescription: Get geographic features around a location.
OSMOverpassProvider.is_available
Type: method
Module:
osm_features.providerClass:
OSMOverpassProviderSignature:
is_available(self) -> boolDescription: Check if Overpass API is available.
OSMReverseGeocodingProvider.__init__
Type: method
Module:
reverse_geocoding.providers.osmClass:
OSMReverseGeocodingProviderSignature:
__init__(self, endpoint: str, user_agent: str) -> NoneDescription: Initialize OSM Nominatim reverse geocoding provider.
OSMReverseGeocodingProvider.fetch
Type: method
Module:
reverse_geocoding.providers.osmClass:
OSMReverseGeocodingProviderSignature:
fetch(self, lat: float, lon: float) -> ReverseGeocodeFetchResultDescription: Fetch reverse geocoding data from OSM Nominatim API.
P
parse_args
Type: function
Module:
schema_inferenceSignature:
parse_args() -> argparse.Namespace
parse_args
Type: function
Module:
schema_statisticsSignature:
parse_args() -> argparse.Namespace
process_biosamples
Type: function
Module:
elevation_demosSignature:
process_biosamples(input_file: Path, output_file: Path, timeout: float, no_cache: bool, providers: tuple[str, ...], output_format: str) -> NoneDescription: Process elevation lookups for synthetic biosamples JSON file.
providers
Type: function
Module:
cli_soilSignature:
providers(verbose: bool) -> NoneDescription: Show status of soil data providers.
providers
Type: function
Module:
cli_landSignature:
providers()Description: Show status of all land cover and vegetation providers.
providers
Type: function
Module:
cli_forward_geocodingSignature:
providers()Description: Show status of all forward geocoding providers.
providers
Type: function
Module:
cli_osm_featuresSignature:
providers()Description: Show status of OSM features providers.
providers
Type: function
Module:
cli_marineSignature:
providers()Description: List available marine data providers and their capabilities.
R
RateLimiter.__init__
Type: method
Module:
elevation.location_detectorClass:
RateLimiterSignature:
__init__(self) -> None
RateLimiter.wait_if_needed
Type: method
Module:
elevation.location_detectorClass:
RateLimiterSignature:
wait_if_needed(self, service: str, min_interval: float) -> NoneDescription: Ensure minimum interval between requests for a service.
request
Type: function
Module:
http_cacheSignature:
request(method: str, url: str, read_from_cache: bool, write_to_cache: bool) -> requests.ResponseDescription: Make cached HTTP request with coordinate canonicalization.
reset_session
Type: function
Module:
http_cacheSignature:
reset_session()Description: Close and clear the module session (for tests).
ReverseGeocodeResult.filter_by_type
Type: method
Module:
reverse_geocoding_modelsClass:
ReverseGeocodeResultSignature:
filter_by_type(self, place_type: PlaceType) -> list[ReverseGeocodeLocation]Description: Filter locations by place type.
ReverseGeocodeResult.get_best_match
Type: method
Module:
reverse_geocoding_modelsClass:
ReverseGeocodeResultSignature:
get_best_match(self) -> ReverseGeocodeLocation | NoneDescription: Get the best matching location (first in list).
ReverseGeocodeResult.get_country
Type: method
Module:
reverse_geocoding_modelsClass:
ReverseGeocodeResultSignature:
get_country(self) -> str | NoneDescription: Get country from the best match.
ReverseGeocodeResult.get_formatted_address
Type: method
Module:
reverse_geocoding_modelsClass:
ReverseGeocodeResultSignature:
get_formatted_address(self) -> str | NoneDescription: Get formatted address from the best match.
ReverseGeocodeResult.to_simple_dict
Type: method
Module:
reverse_geocoding_modelsClass:
ReverseGeocodeResultSignature:
to_simple_dict(self) -> dict[str, Any]Description: Convert to simple dictionary for easy viewing.
ReverseGeocodingProvider.choices
Type: method
Module:
providersClass:
ReverseGeocodingProviderSignature:
choices(cls) -> list[str]Description: Get list of provider choices for Click.
ReverseGeocodingProvider.description
Type: method
Module:
providersClass:
ReverseGeocodingProviderSignature:
description(cls) -> strDescription: Get formatted description of all available providers.
ReverseGeocodingProvider.fetch
Type: method
Module:
reverse_geocoding.providers.baseClass:
ReverseGeocodingProviderSignature:
fetch(self, lat: float, lon: float) -> ReverseGeocodeFetchResultDescription: Fetch reverse geocoding data for the given coordinates.
ReverseGeocodingProvider.info
Type: method
Module:
providersClass:
ReverseGeocodingProviderSignature:
info(cls, provider: 'ReverseGeocodingProvider | str') -> ProviderInfoDescription: Get detailed information about a provider.
ReverseGeocodingService.__init__
Type: method
Module:
reverse_geocoding.serviceClass:
ReverseGeocodingServiceSignature:
__init__(self) -> NoneDescription: Initialize the reverse geocoding service.
ReverseGeocodingService.compare_providers
Type: method
Module:
reverse_geocoding.serviceClass:
ReverseGeocodingServiceSignature:
compare_providers(self, lat: float, lon: float) -> dict[str, Any]Description: Compare results from all available providers.
ReverseGeocodingService.get_available_providers
Type: method
Module:
reverse_geocoding.serviceClass:
ReverseGeocodingServiceSignature:
get_available_providers(self) -> list[str]Description: Get list of available provider names.
ReverseGeocodingService.get_provider
Type: method
Module:
reverse_geocoding.serviceClass:
ReverseGeocodingServiceSignature:
get_provider(self, name: str) -> ReverseGeocodingProvider | NoneDescription: Get a specific provider by name.
ReverseGeocodingService.reverse_geocode
Type: method
Module:
reverse_geocoding.serviceClass:
ReverseGeocodingServiceSignature:
reverse_geocode(self, lat: float, lon: float, provider: str | None) -> ReverseGeocodeResult | NoneDescription: Perform reverse geocoding using specified or default provider.
ReverseGeocodingService.reverse_geocode_multiple
Type: method
Module:
reverse_geocoding.serviceClass:
ReverseGeocodingServiceSignature:
reverse_geocode_multiple(self, lat: float, lon: float, providers: list[str] | None) -> dict[str, ReverseGeocodeResult]Description: Perform reverse geocoding using multiple providers sequentially.
S
set_session_for_tests
Type: function
Module:
http_cacheSignature:
set_session_for_tests(session: CachedSession)Description: Force http_cache.get_session() to return a provided session (for tests).
setup_logging
Type: function
Module:
logging_configSignature:
setup_logging(level: str, log_file: str | None, enable_file_logging: bool) -> logging.LoggerDescription: Set up centralized logging with console and optional file output.
show_mapping_info
Type: function
Module:
cli_biosample_elevationSignature:
show_mapping_info() -> NoneDescription: Display comprehensive field mapping information and examples.
show_version
Type: function
Module:
cliSignature:
show_version() -> NoneDescription: Print the biosample-enricher version.
SmartOpenTopoDataProvider.__init__
Type: method
Module:
elevation.providers.open_topo_dataClass:
SmartOpenTopoDataProviderSignature:
__init__(self, endpoint: str) -> NoneDescription: Initialize smart provider with automatic dataset selection.
SmartOpenTopoDataProvider.fetch
Type: method
Module:
elevation.providers.open_topo_dataClass:
SmartOpenTopoDataProviderSignature:
fetch(self, lat: float, lon: float) -> FetchResultDescription: Fetch elevation using optimal dataset for location.
soil
Type: function
Module:
cli_soilSignature:
soil() -> NoneDescription: Soil enrichment commands for biosample site characterization.
SoilGridsProvider.__init__
Type: method
Module:
soil.providers.soilgridsClass:
SoilGridsProviderSignature:
__init__(self, timeout: int)
SoilGridsProvider.coverage_description
Type: method
Module:
soil.providers.soilgridsClass:
SoilGridsProviderSignature:
coverage_description(self) -> str
SoilGridsProvider.get_soil_data
Type: method
Module:
soil.providers.soilgridsClass:
SoilGridsProviderSignature:
get_soil_data(self, latitude: float, longitude: float, depth_cm: str | None) -> SoilResultDescription: Get SoilGrids soil data for a location.
SoilGridsProvider.is_available
Type: method
Module:
soil.providers.soilgridsClass:
SoilGridsProviderSignature:
is_available(self) -> boolDescription: Check if SoilGrids services are available.
SoilGridsProvider.name
Type: method
Module:
soil.providers.soilgridsClass:
SoilGridsProviderSignature:
name(self) -> str
SoilObservation.validate_texture_class
Type: method
Module:
soil.modelsClass:
SoilObservationSignature:
validate_texture_class(cls, v: str | None) -> str | NoneDescription: Validate USDA texture class names.
SoilProviderBase.calculate_quality_score
Type: method
Module:
soil.providers.baseClass:
SoilProviderBaseSignature:
calculate_quality_score(self, distance_m: float | None, confidence: float | None, data_completeness: float) -> floatDescription: Calculate overall data quality score.
SoilProviderBase.coverage_description
Type: method
Module:
soil.providers.baseClass:
SoilProviderBaseSignature:
coverage_description(self) -> strDescription: Description of geographic and data coverage.
SoilProviderBase.get_soil_data
Type: method
Module:
soil.providers.baseClass:
SoilProviderBaseSignature:
get_soil_data(self, latitude: float, longitude: float, depth_cm: str | None) -> SoilResultDescription: Retrieve soil data for a specific location.
SoilProviderBase.is_available
Type: method
Module:
soil.providers.baseClass:
SoilProviderBaseSignature:
is_available(self) -> boolDescription: Check if the provider is currently available.
SoilProviderBase.name
Type: method
Module:
soil.providers.baseClass:
SoilProviderBaseSignature:
name(self) -> strDescription: Provider name for identification and logging.
SoilProviderBase.validate_coordinates
Type: method
Module:
soil.providers.baseClass:
SoilProviderBaseSignature:
validate_coordinates(self, latitude: float, longitude: float) -> NoneDescription: Validate coordinate inputs.
SoilResult.to_gold_schema
Type: method
Module:
soil.modelsClass:
SoilResultSignature:
to_gold_schema(self) -> dict[str, Any]Description: Convert to GOLD biosample schema format.
SoilResult.to_nmdc_schema
Type: method
Module:
soil.modelsClass:
SoilResultSignature:
to_nmdc_schema(self) -> dict[str, Any]Description: Convert to NMDC biosample schema format.
SoilService.__init__
Type: method
Module:
soil.serviceClass:
SoilServiceSignature:
__init__(self)Description: Initialize soil service with providers.
SoilService.enrich_batch
Type: method
Module:
soil.serviceClass:
SoilServiceSignature:
enrich_batch(self, locations: list[tuple[float, float]], depth_cm: str | None) -> list[SoilResult]Description: Enrich multiple locations with soil data.
SoilService.enrich_biosample
Type: method
Module:
soil.serviceClass:
SoilServiceSignature:
enrich_biosample(self, sample_data: dict) -> dictDescription: Enrich a single biosample with soil data.
SoilService.enrich_location
Type: method
Module:
soil.serviceClass:
SoilServiceSignature:
enrich_location(self, latitude: float, longitude: float, depth_cm: str | None) -> SoilResultDescription: Enrich a single location with soil data.
SoilService.get_provider_status
Type: method
Module:
soil.serviceClass:
SoilServiceSignature:
get_provider_status(self) -> dict[str, dict]Description: Get status of all soil providers.
T
test
Type: function
Module:
cli_soilSignature:
test(latitude: float, longitude: float, provider: str, depth: str, verbose: bool) -> NoneDescription: Test soil data providers at a specific location.
test
Type: function
Module:
cache_managementSignature:
test(ctx: click.Context, url: str, method: str, params: str | None) -> NoneDescription: Test cache functionality with a request.
test
Type: function
Module:
cli_landSignature:
test(lat: float, lon: float, date: datetime | None)Description: Test land enrichment with sample coordinates.
test
Type: function
Module:
cli_forward_geocodingSignature:
test(query: str)Description: Test forward geocoding with a sample place name.
test
Type: function
Module:
cli_osm_featuresSignature:
test(latitude: float, longitude: float, radius: int)Description: Test OSM features enrichment with sample coordinates.
test
Type: function
Module:
cli_marineSignature:
test(lat: float, lon: float, date: str)Description: Test marine data providers for a specific location and date.
test_connection
Type: function
Module:
cli_metricsSignature:
test_connection(nmdc_connection: str | None, gold_connection: str | None) -> NoneDescription: Test database connections.
typeof
Type: function
Module:
schema_statisticsSignature:
typeof(v: Any) -> str
U
UnifiedBiosampleFetcher.__init__
Type: method
Module:
adaptersClass:
UnifiedBiosampleFetcherSignature:
__init__(self) -> None
UnifiedBiosampleFetcher.configure_gold_mongo
Type: method
Module:
adaptersClass:
UnifiedBiosampleFetcherSignature:
configure_gold_mongo(self, connection_string: str, database: str, collection: str) -> NoneDescription: Configure GOLD MongoDB connection.
UnifiedBiosampleFetcher.configure_nmdc_mongo
Type: method
Module:
adaptersClass:
UnifiedBiosampleFetcherSignature:
configure_nmdc_mongo(self, connection_string: str, database: str, collection: str) -> NoneDescription: Configure NMDC MongoDB connection.
UnifiedBiosampleFetcher.fetch_enrichable_locations
Type: method
Module:
adaptersClass:
UnifiedBiosampleFetcherSignature:
fetch_enrichable_locations(self, source: str, limit: int | None) -> Iterator[BiosampleLocation]Description: Fetch enrichable locations from configured sources.
UnifiedBiosampleFetcher.fetch_locations_by_ids
Type: method
Module:
adaptersClass:
UnifiedBiosampleFetcherSignature:
fetch_locations_by_ids(self, ids: list[str], source: str, id_field: str | None) -> Iterator[BiosampleLocation]Description: Fetch locations by IDs from configured sources.
UnifiedBiosampleFetcher.fetch_random_enrichable_locations
Type: method
Module:
adaptersClass:
UnifiedBiosampleFetcherSignature:
fetch_random_enrichable_locations(self, n: int, source: str) -> Iterator[BiosampleLocation]Description: Fetch N random enrichable locations from configured sources.
UnifiedBiosampleFetcher.fetch_random_locations
Type: method
Module:
adaptersClass:
UnifiedBiosampleFetcherSignature:
fetch_random_locations(self, n: int, source: str) -> Iterator[BiosampleLocation]Description: Fetch N random locations from configured sources.
UnifiedBiosampleFetcher.get_enrichment_statistics
Type: method
Module:
adaptersClass:
UnifiedBiosampleFetcherSignature:
get_enrichment_statistics(self) -> dict[str, Any]Description: Get statistics about available enrichable samples.
USDANRCSProvider.__init__
Type: method
Module:
soil.providers.usda_nrcsClass:
USDANRCSProviderSignature:
__init__(self, timeout: int)
USDANRCSProvider.coverage_description
Type: method
Module:
soil.providers.usda_nrcsClass:
USDANRCSProviderSignature:
coverage_description(self) -> str
USDANRCSProvider.get_soil_data
Type: method
Module:
soil.providers.usda_nrcsClass:
USDANRCSProviderSignature:
get_soil_data(self, latitude: float, longitude: float, depth_cm: str | None) -> SoilResultDescription: Get USDA soil taxonomy data for a location.
USDANRCSProvider.is_available
Type: method
Module:
soil.providers.usda_nrcsClass:
USDANRCSProviderSignature:
is_available(self) -> boolDescription: Check if USDA SDA is available.
USDANRCSProvider.name
Type: method
Module:
soil.providers.usda_nrcsClass:
USDANRCSProviderSignature:
name(self) -> str
USGSElevationProvider.__init__
Type: method
Module:
elevation.providers.usgsClass:
USGSElevationProviderSignature:
__init__(self) -> NoneDescription: Initialize USGS Elevation provider.
USGSElevationProvider.fetch
Type: method
Module:
elevation.providers.usgsClass:
USGSElevationProviderSignature:
fetch(self, lat: float, lon: float) -> FetchResultDescription: Fetch elevation data from USGS 3DEP ArcGIS service.
V
validate_elevation_providers
Type: function
Module:
providersSignature:
validate_elevation_providers(providers_str: str | None) -> list[str] | NoneDescription: Validate and parse elevation provider string.
validate_geocoding_providers
Type: function
Module:
providersSignature:
validate_geocoding_providers(providers_str: str | None) -> list[str] | NoneDescription: Validate and parse reverse geocoding provider string.
VegetationObservation.validate_location
Type: method
Module:
land.modelsClass:
VegetationObservationSignature:
validate_location(cls, v: dict[str, float]) -> dict[str, float]Description: Validate location coordinates.
VegetationProviderBase.calculate_spatial_distance
Type: method
Module:
land.providers.baseClass:
VegetationProviderBaseSignature:
calculate_spatial_distance(self, lat1: float, lon1: float, lat2: float, lon2: float) -> floatDescription: Calculate distance between two points using Haversine formula.
VegetationProviderBase.calculate_temporal_offset
Type: method
Module:
land.providers.baseClass:
VegetationProviderBaseSignature:
calculate_temporal_offset(self, target_date: date, actual_date: date) -> intDescription: Calculate temporal offset between target and actual dates.
VegetationProviderBase.coverage_description
Type: method
Module:
land.providers.baseClass:
VegetationProviderBaseSignature:
coverage_description(self) -> strDescription: Description of geographic and temporal coverage.
VegetationProviderBase.get_vegetation_indices
Type: method
Module:
land.providers.baseClass:
VegetationProviderBaseSignature:
get_vegetation_indices(self, latitude: float, longitude: float, target_date: date | None, time_window_days: int) -> list[VegetationObservation]Description: Retrieve vegetation indices for a specific location and date.
VegetationProviderBase.is_available
Type: method
Module:
land.providers.baseClass:
VegetationProviderBaseSignature:
is_available(self) -> boolDescription: Check if the provider is currently available.
VegetationProviderBase.name
Type: method
Module:
land.providers.baseClass:
VegetationProviderBaseSignature:
name(self) -> strDescription: Provider name for identification and logging.
VegetationProviderBase.validate_coordinates
Type: method
Module:
land.providers.baseClass:
VegetationProviderBaseSignature:
validate_coordinates(self, latitude: float, longitude: float) -> NoneDescription: Validate coordinate inputs.
visualize
Type: function
Module:
cli_metricsSignature:
visualize(csv_file: Path, output_dir: Path) -> NoneDescription: Create visualizations from existing metrics CSV file.
W
walk
Type: function
Module:
schema_statisticsSignature:
walk(doc: Any, prefix: str, seen: dict[str, dict], max_examples: int, doc_id: str) -> NoneDescription: Recursively record stats for each path.
weather_cli
Type: function
Module:
cli_weatherSignature:
weather_cli(debug: bool)Description: Weather enrichment CLI for biosample environmental context.
WeatherEnrichmentMetrics.__init__
Type: method
Module:
weather.metricsClass:
WeatherEnrichmentMetricsSignature:
__init__(self)
WeatherEnrichmentMetrics.analyze_biosample_collection
Type: method
Module:
weather.metricsClass:
WeatherEnrichmentMetricsSignature:
analyze_biosample_collection(self, biosamples: list[dict[str, Any]], source: str) -> dict[str, Any]Description: Analyze weather field coverage before and after enrichment for a collection of biosamples.
WeatherEnrichmentMetrics.export_detailed_results
Type: method
Module:
weather.metricsClass:
WeatherEnrichmentMetricsSignature:
export_detailed_results(self, output_path: str) -> NoneDescription: Export detailed enrichment results to CSV for further analysis.
WeatherEnrichmentMetrics.generate_metrics_report
Type: method
Module:
weather.metricsClass:
WeatherEnrichmentMetricsSignature:
generate_metrics_report(self, analyses: list[dict[str, Any]]) -> pd.DataFrameDescription: Generate comprehensive metrics report in tabular format.
WeatherObservation.validate_value
Type: method
Module:
weather.modelsClass:
WeatherObservationSignature:
validate_value(cls, v)Description: Validate that value is either a number or dict with numeric values.
WeatherProviderBase.__init__
Type: method
Module:
weather.providers.baseClass:
WeatherProviderBaseSignature:
__init__(self, timeout: int)
WeatherProviderBase.get_coverage_period
Type: method
Module:
weather.providers.baseClass:
WeatherProviderBaseSignature:
get_coverage_period(self) -> dict[str, str]Description: Return temporal coverage period.
WeatherProviderBase.get_daily_weather
Type: method
Module:
weather.providers.baseClass:
WeatherProviderBaseSignature:
get_daily_weather(self, lat: float, lon: float, target_date: date, parameters: list | None) -> WeatherResultDescription: Get weather data for a specific date and location.
WeatherProviderBase.get_provider_info
Type: method
Module:
weather.providers.baseClass:
WeatherProviderBaseSignature:
get_provider_info(self) -> dict[str, Any]Description: Get provider metadata and capabilities.
WeatherProviderBase.get_spatial_resolution
Type: method
Module:
weather.providers.baseClass:
WeatherProviderBaseSignature:
get_spatial_resolution(self) -> strDescription: Return spatial resolution (e.g., ‘11km’, ‘station-based’).
WeatherProviderBase.get_supported_parameters
Type: method
Module:
weather.providers.baseClass:
WeatherProviderBaseSignature:
get_supported_parameters(self) -> listDescription: Return list of weather parameters this provider supports.
WeatherProviderBase.get_temporal_resolution
Type: method
Module:
weather.providers.baseClass:
WeatherProviderBaseSignature:
get_temporal_resolution(self) -> strDescription: Return temporal resolution (e.g., ‘hourly’, ‘daily’).
WeatherProviderBase.is_available
Type: method
Module:
weather.providers.baseClass:
WeatherProviderBaseSignature:
is_available(self, lat: float, lon: float, target_date: date) -> boolDescription: Check if provider has data available for given location and date.
WeatherResult.get_coverage_metrics
Type: method
Module:
weather.modelsClass:
WeatherResultSignature:
get_coverage_metrics(self) -> dict[str, Any]Description: Generate before/after coverage metrics for this weather enrichment.
WeatherResult.get_schema_mapping
Type: method
Module:
weather.modelsClass:
WeatherResultSignature:
get_schema_mapping(self, target_schema: str) -> dict[str, Any]Description: Map weather observations to target biosample schema fields.
WeatherResult.validate_date_format
Type: method
Module:
weather.modelsClass:
WeatherResultSignature:
validate_date_format(cls, v)Description: Ensure collection date is in YYYY-MM-DD format.
WeatherService.__init__
Type: method
Module:
weather.serviceClass:
WeatherServiceSignature:
__init__(self, providers: list[WeatherProviderBase] | None)Description: Initialize weather service with provider chain.
WeatherService.get_climate_normals
Type: method
Module:
weather.serviceClass:
WeatherServiceSignature:
get_climate_normals(self, lat: float, lon: float, years_back: int, providers: list[str] | None) -> MultiProviderClimateNormalsDescription: Get climate averages (normals) for a location from all available providers.
WeatherService.get_daily_weather
Type: method
Module:
weather.serviceClass:
WeatherServiceSignature:
get_daily_weather(self, lat: float, lon: float, target_date: date, parameters: list[str] | None) -> WeatherResultDescription: Get daily weather data by integrating results from all providers.
WeatherService.get_provider_info
Type: method
Module:
weather.serviceClass:
WeatherServiceSignature:
get_provider_info(self) -> list[dict[str, Any]]Description: Get information about all configured providers.
WeatherService.get_weather_for_biosample
Type: method
Module:
weather.serviceClass:
WeatherServiceSignature:
get_weather_for_biosample(self, biosample: dict[str, Any], target_schema: str) -> dict[str, Any]Description: Get weather data for a biosample and map to target schema.
This index was automatically generated by scripts/generate_api_index.py