MCPcopy Create free account

hub / github.com/cr458/geovibes / functions

Functions611 in github.com/cr458/geovibes

↓ 90 callersMethodexecute
(self, sql)
tests/test_faiss_db.py:11
↓ 36 callersMethod_show_operation_status
(self, message: str)
geovibes/ui/app.py:1519
↓ 24 callersFunctioncombine_datasets
Combine multiple GeoJSON files into a single dataset. IMPORTANT: This function respects existing labels in the input files. It does NOT
geovibes/classification/pipeline.py:337
↓ 22 callersMethodload
Load model from JSON file.
geovibes/classification/classifier.py:155
↓ 19 callersMethodclear
(self)
geovibes/ui/tiles.py:392
↓ 15 callersMethodlabel_detection
Add or update label for a detection tile_id.
geovibes/ui/state.py:141
↓ 13 callersFunction_setup_layer_manager_mocks
Set up mock layer manager widget attributes for testing.
tests/test_map_manager_unit.py:14
↓ 11 callersMethod_empty_collection
()
geovibes/ui/app.py:1526
↓ 11 callersMethod_report_progress
Report progress if callback is provided.
geovibes/classification/pipeline.py:326
↓ 11 callersMethodclose
(self)
geovibes/ui/app.py:1557
↓ 11 callersMethodglob
(self, pattern)
tests/test_cloud.py:14
↓ 11 callersMethodload
Load and split training data. Parameters ---------- test_fraction : float Fraction of data to use for te
geovibes/classification/data_loader.py:47
↓ 10 callersMethod_refresh_layer_manager
(self)
geovibes/ui/map_manager.py:359
↓ 10 callersFunctioncreate_spatial_folds
Create fold assignments based on spatial clustering of positives. Algorithm: 1. Buffer positive point geometries and union into contiguo
geovibes/classification/cross_validation.py:64
↓ 10 callersMethodrun
Run batch inference over all embeddings. Parameters ---------- probability_threshold : float Minimum pro
geovibes/classification/inference.py:88
↓ 9 callersFunction_await_tiles
(panel: TilePanel, timeout: float = 1.0)
tests/test_tile_panel.py:30
↓ 9 callersMethod_update_status
( self, lat: Optional[float] = None, lon: Optional[float] = None )
geovibes/ui/app.py:1514
↓ 9 callersMethodremove_layer
(self, name: str)
geovibes/ui/map_manager.py:496
↓ 9 callersFunctionsample_random_negatives
Randomly sample negative examples from DuckDB, excluding positives. This provides a simpler alternative to LULC-based stratified sampling.
geovibes/classification/sample_negatives.py:814
↓ 8 callersMethodfit
Train the classifier. Parameters ---------- X_train : np.ndarray Training features, shape (n_samples, n_
geovibes/classification/classifier.py:70
↓ 7 callersFunctioncross_validate
Perform k-fold cross-validation with pre-assigned folds. Parameters ---------- X : np.ndarray Feature matrix (n_samples, n_f
geovibes/classification/cross_validation.py:200
↓ 7 callersFunctiondetect_geojson_type
(geojson_data: Dict)
geovibes/ui/datasets.py:17
↓ 7 callersMethodupdate_results
( self, search_results_df, *, auto_show: bool = False, on_ready: Optio
geovibes/ui/tiles.py:408
↓ 6 callersMethod_get_utm_crs
Parse MGRS tile_id to get UTM CRS.
geovibes/classification/output.py:240
↓ 6 callersMethodadd_tile_layer
Add an XYZ tile layer overlay.
geovibes/ui/app.py:1533
↓ 6 callersMethodenter_detection_mode
Enter detection review mode with provided GeoJSON data.
geovibes/ui/state.py:129
↓ 6 callersMethodfrom_str
(cls, mgrs_id: str)
geovibes/tiling.py:41
↓ 6 callersFunctionget_cloud_protocol
Returns 's3' or 'gs' if the path is a cloud path, otherwise None.
geovibes/database/cloud.py:15
↓ 6 callersMethodis_gcs_path
Check if path is a Google Cloud Storage path. Args: path: Path to check Returns: True if path is GCS URL, Fa
geovibes/ui_config/constants.py:248
↓ 6 callersMethodsummary
Return human-readable timing summary.
geovibes/classification/pipeline.py:79
↓ 5 callersMethod_color_from_fraction
(cls, fraction: float)
geovibes/ui_config/constants.py:101
↓ 5 callersMethod_insert_overlay_layer
(self, layer: ipyl.TileLayer)
geovibes/ui/map_manager.py:520
↓ 5 callersMethod_render_current_page
( self, append: bool, limit: Optional[int] = None, on_finish: Optional[Callabl
geovibes/ui/tiles.py:512
↓ 5 callersMethod_update_layers
(self)
geovibes/ui/app.py:1198
↓ 5 callersMethodapply_label
Toggle label assignment for a point and return resulting state.
geovibes/ui/state.py:114
↓ 5 callersMethoddf
(self)
tests/test_dataset_manager.py:90
↓ 5 callersFunctionensure_duckdb_extension
Install and load the requested DuckDB extension.
geovibes/database/faiss_db.py:28
↓ 5 callersFunctioninfer_tile_spec_from_name
(name: str)
geovibes/ui/utils.py:69
↓ 5 callersMethodlabel_point
(self, lon: float, lat: float)
geovibes/ui/app.py:861
↓ 5 callersFunctionlog_to_file
(message: str, logfile: str = LOG_FILE)
geovibes/ui/utils.py:19
↓ 5 callersFunctionmatches_expected
(color: tuple[int, int, int], coord: tuple[int, int])
tests/test_xyz.py:124
↓ 5 callersMethodpredict_proba
Predict probability of positive class. Parameters ---------- X : np.ndarray Features, shape (n_samples,
geovibes/classification/classifier.py:134
↓ 5 callersMethodreset
Reset all mutable state.
geovibes/ui/state.py:51
↓ 5 callersMethodsave
Save model to JSON format.
geovibes/classification/classifier.py:150
↓ 5 callersMethodupdate_search_layer
( self, geojson_data: dict, style_callback: Optional[Callable] = None, )
geovibes/ui/map_manager.py:289
↓ 4 callersMethod_apply_label_style
( self, point_id: str, tick_button: Button, cross_button: Button, )
geovibes/ui/tiles.py:903
↓ 4 callersMethod_create_layer_row
( self, name: str, opacity: float, layer_type: str = "tile" )
geovibes/ui/map_manager.py:374
↓ 4 callersFunction_extract_tile_ids
Extract tile IDs from the results grid children in display order.
tests/test_tile_panel.py:361
↓ 4 callersMethod_fetch_embeddings
(self, point_ids)
geovibes/ui/app.py:1190
↓ 4 callersMethod_on_dissimilar_click
(self, _button)
geovibes/ui/tiles.py:467
↓ 4 callersMethod_refresh_detection_layer
Refresh detection layer with current threshold and labels.
geovibes/ui/app.py:1369
↓ 4 callersMethod_score_batch
Score a batch of embeddings. Parameters ---------- embeddings : np.ndarray Batch of embeddings, shape (n
geovibes/classification/inference.py:178
↓ 4 callersMethod_spatial_match
Find nearest tile_id for each point using spatial matching.
geovibes/classification/data_loader.py:184
↓ 4 callersMethod_update_operation
(self, message: Optional[str])
geovibes/ui/tiles.py:877
↓ 4 callersMethod_update_query_vector
(self)
geovibes/ui/app.py:1228
↓ 4 callersMethodevaluate
Evaluate the classifier on test data. Parameters ---------- X_test : np.ndarray Test features, shape (n_
geovibes/classification/classifier.py:99
↓ 4 callersFunctiongeo_to_pixel
Convert geographic coordinates to pixel coordinates. Args: lon: Longitude lat: Latitude geo_bounds: (min_lon, min_lat, ma
scripts/overlay_detections_on_image.py:14
↓ 4 callersFunctionget_mgrs_tile_ids_for_roi
Return all MGRSTileIds whose footprints intersect the *search_geometry*. Parameters ---------- search_geometry : shapely.geometry
geovibes/tiling.py:150
↓ 4 callersMethodget_total_count
Get total number of embeddings in database.
geovibes/classification/inference.py:83
↓ 4 callersMethodremove_layer
Remove an overlay layer by name.
geovibes/ui/app.py:1545
↓ 4 callersMethodset_label_mode
Update the active label mode.
geovibes/ui/state.py:41
↓ 4 callersMethodset_layer_opacity
Set the opacity of an overlay layer.
geovibes/ui/app.py:1549
↓ 4 callersMethodupdate_status
( self, lat: Optional[float] = None, lon: Optional[float] = None )
geovibes/ui/map_manager.py:166
↓ 3 callersMethod_filter_detection_layer
(self, threshold: float)
geovibes/ui/app.py:1349
↓ 3 callersMethod_handle_save_dataset
(self)
geovibes/ui/app.py:1456
↓ 3 callersMethod_process_search_results
( self, results_df: pd.DataFrame, n_neighbors: int )
geovibes/ui/app.py:1108
↓ 3 callersMethod_project_root
()
geovibes/ui/data_manager.py:182
↓ 3 callersFunction_sample_without_buffer
Sample random rows excluding positive tile_ids.
geovibes/classification/sample_negatives.py:876
↓ 3 callersMethodadd_vector_from_content
(self, content: bytes, filename: str)
geovibes/ui/datasets.py:393
↓ 3 callersMethodclear_operation
(self)
geovibes/ui/status.py:24
↓ 3 callersMethodclear_overlay_layers
(self)
geovibes/ui/map_manager.py:513
↓ 3 callersMethoddistance_to_color
( distance: float, min_dist: float, max_dist: float, highlight_cutoff: float |
geovibes/ui_config/constants.py:108
↓ 3 callersMethodfetch_detection_metadata
Fetch metadata for detected IDs. Parameters ---------- detections : List[Tuple[int, float]] List of (id,
geovibes/classification/output.py:53
↓ 3 callersFunctionget_s2_cloud_masked_collection
Get cloud-masked Sentinel-2 collection using CloudScore+ for quality filtering. Args: aoi: Earth Engine geometry defining area of interes
geovibes/ee_tools.py:25
↓ 3 callersMethodhide
(self)
geovibes/ui/tiles.py:389
↓ 3 callersMethodload_for_cv
Load all training data without split, with geometries for spatial CV. Parameters ---------- random_state : int
geovibes/classification/data_loader.py:267
↓ 3 callersMethodnow
(cls)
tests/test_dataset_manager.py:106
↓ 3 callersFunctionprepare_ids_for_query
(ids: Iterable[object])
geovibes/ui/utils.py:15
↓ 3 callersMethodrender
Return HTML for the status bar.
geovibes/ui/status.py:27
↓ 3 callersMethodreset_all
(self, _button=None, clear_overlays: bool = False)
geovibes/ui/app.py:1475
↓ 3 callersFunctionsample_random_negatives_from_geojson
Sample random negatives using positives from a GeoJSON file. This is a convenience function that extracts tile_ids from a GeoJSON file a
geovibes/classification/sample_negatives.py:989
↓ 3 callersMethodset_operation
(self, message: str)
geovibes/ui/status.py:21
↓ 3 callersMethodshow
(self)
geovibes/ui/tiles.py:386
↓ 3 callersMethodunion_tiles
Union overlapping tiles into larger polygons. Parameters ---------- tiles_gdf : gpd.GeoDataFrame GeoData
geovibes/classification/output.py:164
↓ 3 callersMethodupdate_basemap
(self, basemap_name: str)
geovibes/ui/map_manager.py:189
↓ 3 callersMethodupdate_label_layers
( self, *, pos_geojson: dict, neg_geojson: dict, erase_geojson: dict,
geovibes/ui/map_manager.py:278
↓ 2 callersMethod_apply_detection_payload
(self, payload: Dict)
geovibes/ui/datasets.py:384
↓ 2 callersMethod_apply_duckdb_settings
(self, database_path: Optional[str])
geovibes/ui/data_manager.py:547
↓ 2 callersMethod_connect_duckdb
(self, database_path: str)
geovibes/ui/data_manager.py:517
↓ 2 callersMethod_detect_embedding_dim
Detect embedding dimension from first row.
geovibes/classification/inference.py:74
↓ 2 callersMethod_detect_embedding_dim
(self)
geovibes/ui/data_manager.py:597
↓ 2 callersMethod_fetch_embeddings
Fetch embeddings from DuckDB for given tile_ids.
geovibes/classification/data_loader.py:234
↓ 2 callersMethod_geojson_for_ids
(self, ids)
geovibes/ui/app.py:1207
↓ 2 callersMethod_get_colormap_bundle
(cls)
geovibes/ui_config/constants.py:65
↓ 2 callersMethod_handle_label_click
( self, point_id: str, row, label: str, tick_button: Button, c
geovibes/ui/tiles.py:892
↓ 2 callersMethod_infer_geometry_from_db
(self, db_path: str)
geovibes/ui/data_manager.py:307
↓ 2 callersMethod_iterate_batches_fast
Generator yielding (ids, embeddings) batches using fetchdf(). Yields ------ ids : np.ndarray Array of em
geovibes/classification/inference.py:146
↓ 2 callersMethod_make_placeholder_tile
(self)
geovibes/ui/tiles.py:841
↓ 2 callersMethod_match_single_file
( self, directory: pathlib.Path, pattern_specs: List[Tuple[str, Optional[str]]] )
geovibes/ui/data_manager.py:433
↓ 2 callersMethod_on_label_toggle_change
(self, change)
geovibes/ui/app.py:672
next →1–100 of 611, ranked by callers