Skip to contents

Package Documentation

Overview of the geospatialsuite package

geospatialsuite geospatialsuite-package
geospatialsuite: Comprehensive Geospatiotemporal Analysis and Multimodal Integration Toolkit

Core Vegetation Indices

Calculate vegetation indices from spectral bands

calculate_vegetation_index()
Calculate comprehensive vegetation indices
calculate_multiple_indices()
Calculate multiple vegetation indices at once
calculate_ndvi_enhanced()
Calculate NDVI with time series options
list_vegetation_indices()
Get comprehensive list of available vegetation indices
get_available_indices()
Get available indices
calculate_vegetation_statistics()
Calculate vegetation statistics
calculate_comprehensive_vegetation_stats()
Calculate comprehensive vegetation statistics -

Sample Data Access

Built-in sample datasets for examples and testing

download_sample_data()
Download or access sample datasets for geospatialsuite
list_sample_datasets()
List available sample datasets
get_sample_data()
Get path to sample data file
load_sample_data()
Load sample data directly

Water Quality & Indices

Water indices and quality assessment

calculate_water_index()
Calculate water indices including both NDWI variants
calculate_multiple_water_indices()
Calculate multiple water indices at once
analyze_water_quality_comprehensive()
Analyze water quality comprehensively with flexible data handling
calculate_water_quality_statistics()
Calculate comprehensive water quality statistics
create_water_quality_plot()
Create water quality plot
create_water_quality_plot_robust()
Create robust water quality visualization
analyze_water_bodies()
Analyze water body characteristics using multiple indices
analyze_water_spatial_patterns()
Analyze spatial patterns in water quality data
analyze_water_temporal_patterns()
Analyze temporal patterns in water quality data
list_water_indices()
Get comprehensive list of available water indices
get_water_index_formulas()
Get water index formulas
get_water_index_requirements()
Get water index requirements
validate_water_index_output()
Validate water index output
handle_water_index_edge_cases()
Handle edge cases for water index calculations
mask_invalid_water_values()
Mask invalid values for water indices

Universal Spatial Operations

Spatial join and integration functions

universal_spatial_join()
Universal Spatial Join - Complete Implementation
integrate_terrain_analysis()
Integrate terrain analysis with vector data
integrate_multiple_datasets()
Integrate multiple datasets
raster_to_raster_ops()
Raster to Raster Operations
perform_extract_join()
Perform extract join (vector to raster)
perform_overlay_join()
Perform other join methods (stubs for now)
perform_resample_join()
Perform resample join (raster to raster)
multiscale_operations()
Multi-scale spatial operations

Crop & Agricultural Analysis

CDL crop data analysis and monitoring

analyze_crop_vegetation()
Specialized crop vegetation analysis
create_crop_mask()
Create crop mask from CDL data
create_crop_map()
Create crop map visualization
create_crop_area_map()
Create crop area map -
create_crop_diversity_map()
Create crop diversity map -
create_dominant_crop_map()
Create dominant crop map -
get_comprehensive_cdl_codes()
Get comprehensive CDL crop codes
analyze_cdl_crops_dynamic()
Analyze CDL crops dynamically
analyze_yield_potential()
Analyze yield potential
analyze_growth_stage()
Analyze growth stage
analyze_seasonal_patterns()
Analyze seasonal patterns
select_crop_indices()
Select appropriate indices for crop analysis
add_crop_statistics_overlay()
Add crop statistics overlay
detect_vegetation_stress()
Detect vegetation stress

Visualization & Mapping

Create publication-quality maps

quick_map()
Quick map function - one-line mapping with auto-detection
create_spatial_map()
Create universal spatial map with reliable terra plotting
plot_raster_fast()
Create fast raster plot using terra
plot_rgb_raster()
Create multi-band raster RGB plot
create_ndvi_map()
Create NDVI map visualization
create_interactive_map()
Create interactive map using leaflet (if available)
create_interactive_map_safe()
Create interactive map safely
save_interactive_map()
Save interactive map to file
save_static_map()
Save static map with ggplot2
create_comparison_map()
Create comparison map (before/after, side-by-side)
create_overlay_comparison()
Create overlay comparison
create_base_plot_map()
Create base plot map as fallback
create_ggplot_map_safe()
Create ggplot map safely
create_raster_map_reliable()
Create reliable raster map
add_boundary_overlay()
Add boundary overlay to existing plot
add_points_to_leaflet()
Add points to leaflet -
add_lines_to_leaflet()
Add lines to leaflet -
add_polygons_to_leaflet()
Add polygons to leaflet -
apply_color_scheme_ggplot()
Apply color scheme to ggplot
save_plot_to_file()
Save plot to file with error handling

Spatial Interpolation

Interpolation methods for spatial data

spatial_interpolation()
Legacy spatial interpolation function (for backward compatibility)
spatial_interpolation_comprehensive()
Perform spatial interpolation for missing data
execute_interpolation_method()
Execute specific interpolation method
execute_simple_interpolation()
Execute simple distance weighting interpolation
execute_nn_interpolation()
Execute nearest neighbor interpolation
execute_spline_interpolation()
Execute spline interpolation
execute_mice_interpolation()
Execute MICE interpolation
compare_interpolation_methods()
Compare interpolation methods
select_optimal_method()
Select optimal interpolation method based on data characteristics
assess_data_for_interpolation()
Assess data characteristics for interpolation method selection
perform_cross_validation()
Perform cross-validation for interpolation accuracy
save_interpolation_results()
Save interpolation results to file
compile_interpolation_results()
Compile interpolation results into requested format

Temporal Analysis

Time series and change detection

calculate_temporal_statistics()
Calculate temporal statistics
calculate_temporal_trend()
Calculate temporal trend using linear regression
detect_temporal_changes()
Detect temporal changes between periods
analyze_temporal_changes()
Analyze temporal changes in geospatial data
extract_dates_universal()
Extract dates from filenames using various patterns
match_rasters_by_date()
Match rasters by date
convert_julian_date()
Convert Julian date to standard format
is_valid_date()
Validate date string
save_temporal_results()
Save temporal analysis results
apply_temporal_smoothing()
Apply temporal smoothing

Terrain Analysis

Topographic analysis from DEMs

calculate_advanced_terrain_metrics()
Calculate advanced terrain metrics
calculate_contributing_area()
Calculate contributing area

Raster Operations

Raster processing and mosaicing

create_raster_mosaic()
Create raster mosaic with intelligent file selection
select_rasters_for_region()
Select rasters for specific region with intelligent filtering
extract_aster_coordinates()
Extract coordinates from ASTER filename
load_raster_data()
Load raster data from various sources
load_raster_safe()
Load raster with error handling
load_and_stack_bands()
Load and stack individual band files
load_and_validate_band()
Load and validate spectral band
load_bands_from_directory()
Load bands from directory
mask_invalid_values()
Mask invalid values based on index type
check_raster_compatibility()
Check raster compatibility

Vector Data Processing

Load and process vector data

process_vector_data()
Process vector data from data frame
load_vector_data_safe()
Load vector data safely with coordinate detection
process_spatial_data_safe()
Process spatial data safely with error handling
load_and_process_spatial_data()
Load and process spatial data for interpolation
convert_to_spatial_flexible()
Convert data.frame to sf with flexible coordinate detection
classify_spatial_data()
Classify spatial data type and load data

Geocoding & Auto-Detection

Automatic geocoding and entity detection

auto_geocode_data()
Auto-geocode data with geographic identifiers
preview_geocoding()
Preview geographic entity detection
geocode_entities()
Geocode geographic entities to coordinates
geocode_states()
Geocode US states
geocode_counties()
Geocode US counties
geocode_cities()
Geocode city names
geocode_fips()
Geocode FIPS codes
geocode_hucs()
Geocode HUC watershed codes
geocode_zipcodes()
Geocode ZIP codes
detect_geographic_entities()
Detect and geocode geographic entity columns
detect_coordinate_columns()
Detect coordinate columns automatically
detect_state_column()
Helper to detect state column
detect_huc_level()
Detect HUC level from column name or data
detect_water_quality_columns()
Detect water quality data columns intelligently

Band Detection & Mapping

Automatic spectral band detection

auto_detect_spectral_bands()
Auto-detect spectral bands
extract_bands_from_raster()
Extract bands from multi-band raster
map_custom_band_names()
Map custom band names
get_satellite_band_info()
Get satellite band information

Comprehensive Workflows

End-to-end analysis pipelines

run_comprehensive_geospatial_workflow()
Run comprehensive geospatial workflow -
run_comprehensive_vegetation_workflow()
Run comprehensive vegetation analysis workflow -
run_enhanced_ndvi_crop_workflow()
Run enhanced NDVI crop analysis workflow -
run_enhanced_temporal_workflow()
Run enhanced temporal workflow
run_enhanced_terrain_analysis_workflow()
Run enhanced terrain analysis workflow
run_enhanced_water_quality_workflow()
Run enhanced water quality analysis workflow
run_enhanced_mosaic_workflow()
Run enhanced mosaic workflow
run_multi_dataset_workflow()
Run multi-dataset workflow
run_interactive_mapping_workflow()
Run interactive mapping workflow

Statistics & Correlation

Statistical analysis and correlation

calculate_spatial_correlation()
Calculate spatial correlation between raster layers
analyze_variable_correlations()
Analyze correlations between multiple variables
create_correlation_plots()
Create correlation plots
calculate_skewness()
Calculate skewness for data assessment
perform_threshold_analysis()
Perform threshold analysis

Quality Control & Validation

Data validation and quality filters

validate_raster_input()
Validate raster input
validate_vector_input()
Validate vector input
validate_required_bands()
Validate required bands for specific indices
validate_numeric_range()
Validate numeric range
validate_method()
Validate method parameter
validate_method_compatibility()
Validate method compatibility
validate_output()
Validate output quality
validate_vegetation_analysis()
Validate vegetation analysis
apply_quality_filter()
Apply quality filter to remove outliers
apply_water_quality_filters()
Apply water quality filters
validation-helpers
Input Validation Helpers
handle_outliers_in_data()
Handle outliers in spatial data

Water Data Management

Load and manage water quality data

load_water_quality_data_flexible()
Load water quality data with flexible format handling
load_single_water_dataset()
Load single water quality dataset
combine_water_datasets()
Combine multiple water quality datasets
save_water_quality_results()
Save water quality analysis results

Utilities & Helpers

Helper functions and utilities

get_region_boundary()
Get region boundary for any specified region
check_required_packages()
Check and load required packages
classify_data_input()
Classify data input type
detect_geometry_type()
Detect geometry type automatically
normalize_column_name()
Normalize column names for robust matching
auto_detect_title()
Auto-detect title for quick mapping
auto_detect_variable()
Auto-detect variable for quick mapping
auto_detect_method()
Auto-detect best spatial join method
get_terra_colors()
Get terra colors for plotting
get_reliable_colors()
Get reliable colors for terra plotting
get_summary_function()
Get summary function for terra operations

Index Information & Formulas

Get information about vegetation and water indices

get_index_formulas()
Get index formulas
get_index_ranges()
Get index typical ranges
get_index_references()
Get index references
get_interpretation_guidelines()
Get interpretation guidelines
calculate_index_by_type()
Calculate index by type
handle_index_edge_cases()
Handle edge cases for index calculations

Results & Reporting

Save and export analysis results

save_vegetation_analysis_results()
Save vegetation analysis results
generate_statistics_report()
Generate comprehensive statistics report
generate_html_summary()
Generate HTML summary report
generate_enhanced_analysis_summary()
Generate enhanced analysis summary

Testing & Validation

Package testing and verification

test_geospatialsuite_package_simple()
Test geospatialsuite with simplified, robust tests
test_package_minimal()
Test package with minimal complexity
test_function_availability()
Test individual function existence
quick_diagnostic()
Quick diagnostic check

Examples & Demonstrations

Example workflows and use cases

geocoding_examples
Geocoding Examples and Use Cases