Metadata-Version: 2.4
Name: geolattice
Version: 0.3.49
Summary: One Python library for geospatial analysis: vector and raster data, spatial analysis, spatial statistics, geostatistics, spatial databases, web and cloud GIS, distributed computing and remote sensing, on CPU or GPU
Author: Zia Ahmed
Maintainer: Zia Ahmed
License-Expression: MIT
Project-URL: Homepage, https://zia207.github.io/GeoLattice/
Project-URL: Documentation, https://zia207.github.io/GeoLattice/user_guide.html
Project-URL: Repository, https://github.com/zia207/GeoLattice
Project-URL: Bug Tracker, https://github.com/zia207/GeoLattice/issues
Project-URL: Changelog, https://github.com/zia207/GeoLattice/blob/main/CHANGELOG.md
Keywords: gis,geospatial,raster,raster-algebra,terrain-analysis,hydrology,watershed,geomorphometry,suitability,fuzzy-overlay,weighted-overlay,multidimensional,netcdf,zarr,zonal-stats,network-analysis,spatial-network,routing,accessibility,geostatistics,kriging,variogram,cokriging,spatial-statistics,esda,moran,gwr,mgwr,spatial-weights,point-pattern,segregation-analysis,causal-inference,spatial-causal-inference,interference,spatial-confounding,web-gis,cloud-native,geoparquet,spatial-database,postgis,spatialite,geopackage,duckdb,spatial-sql,pmtiles,cog,ogc-api,vector,vector-analysis,attribute-table,geoprocessing,pointcloud,remote-sensing,super-resolution,pansharpening,texture-analysis,image-classification,semantic-segmentation,object-detection,change-detection,earth-observation,sentinel,landsat,sar,radarsat,sea-ice,insar,uav,stac,lidar,point-cloud-segmentation,pointnet,hyperspectral,imaging-spectroscopy,spectral-unmixing,emit,enmap,prisma,foundation-models,geospatial-embeddings,alphaearth,prithvi,gpu,jax,parallel,distributed,dask,cuda,rapids,spark,sedona
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Operating System :: POSIX :: Linux
Classifier: Topic :: Scientific/Engineering :: GIS
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: contextily>=1.3.0
Requires-Dist: fiona>=1.8.0
Requires-Dist: folium>=0.12.0
Requires-Dist: gdal>=3.3.0
Requires-Dist: geopandas>=1.0
Requires-Dist: mapclassify>=2.5.0
Requires-Dist: matplotlib>=3.6
Requires-Dist: numpy>=1.21.0
Requires-Dist: pandas>=1.5
Requires-Dist: plotly>=5.0.0
Requires-Dist: pyarrow>=14
Requires-Dist: pyproj>=3.2.0
Requires-Dist: pyvista>=0.35.0
Requires-Dist: rasterio>=1.3.0
Requires-Dist: scipy>=1.9
Requires-Dist: shapely>=2.0.0
Requires-Dist: xarray>=2023.1.0
Requires-Dist: dask[distributed]>=2023.1.0
Requires-Dist: h5netcdf>=1.0.0
Requires-Dist: libpysal>=4.10
Requires-Dist: netCDF4>=1.5.0
Requires-Dist: networkx>=3.0
Requires-Dist: osmnx>=1.9.0
Requires-Dist: scikit-learn>=1.3.0
Requires-Dist: whitebox>=2.0.0
Requires-Dist: zarr>=2.14
Requires-Dist: arviz>=0.17
Requires-Dist: joblib>=1.3.0
Requires-Dist: lightgbm>=4.0.0
Requires-Dist: pygam>=0.9
Requires-Dist: pymc>=5.0
Requires-Dist: torch>=2.1
Requires-Dist: xgboost>=2.0.0
Requires-Dist: jax>=0.4.30
Requires-Dist: jaxlib>=0.4.30
Requires-Dist: optuna
Requires-Dist: asf_search>=7.0
Requires-Dist: cloth-simulation-filter>=1.1
Requires-Dist: earthaccess>=0.9
Requires-Dist: earthengine-api>=0.1.380
Requires-Dist: gdown>=5.0
Requires-Dist: h5py>=3.8
Requires-Dist: hyp3_sdk>=6.0
Requires-Dist: laspy[lazrs]>=2.4
Requires-Dist: leafmap>=0.30
Requires-Dist: lightning>=2.1
Requires-Dist: odc-stac>=0.3.9
Requires-Dist: opencv-python>=4.8
Requires-Dist: planetary-computer>=1.0
Requires-Dist: prosail>=2.0
Requires-Dist: pyodm>=1.5
Requires-Dist: pystac-client>=0.7
Requires-Dist: pystac>=1.8
Requires-Dist: requests>=2.28
Requires-Dist: rioxarray>=0.15
Requires-Dist: sarsen>=0.9
Requires-Dist: scikit-image>=0.20
Requires-Dist: segmentation-models-pytorch>=0.3
Requires-Dist: shap>=0.44
Requires-Dist: sliderule>=4.0
Requires-Dist: snaphu>=0.4; python_version < "3.14"
Requires-Dist: streamlit>=1.30
Requires-Dist: timm>=0.9
Requires-Dist: torchgeo>=0.5
Requires-Dist: torchvision>=0.16
Requires-Dist: tqdm>=4.66
Requires-Dist: xee>=0.0.10
Requires-Dist: adlfs>=2023.1
Requires-Dist: duckdb>=0.10
Requires-Dist: fsspec>=2023.1
Requires-Dist: gcsfs>=2023.1
Requires-Dist: geoalchemy2>=0.14
Requires-Dist: httpx>=0.24
Requires-Dist: pillow>=9.0
Requires-Dist: psycopg[binary]>=3.1
Requires-Dist: pyogrio>=0.7
Requires-Dist: s3fs>=2023.1
Requires-Dist: sqlalchemy>=2.0
Requires-Dist: starlette>=0.27
Requires-Dist: uvicorn>=0.23
Requires-Dist: bokeh>=3.1
Requires-Dist: dask-geopandas>=0.4
Provides-Extra: dev
Requires-Dist: pytest>=7.0.0; extra == "dev"
Requires-Dist: pytest-cov>=3.0.0; extra == "dev"
Requires-Dist: black>=22.0.0; extra == "dev"
Requires-Dist: flake8>=4.0.0; extra == "dev"
Requires-Dist: mypy>=0.950; extra == "dev"
Requires-Dist: sphinx>=4.5.0; extra == "dev"
Requires-Dist: sphinx-rtd-theme>=1.0.0; extra == "dev"
Provides-Extra: io
Requires-Dist: rasterio>=1.2.0; extra == "io"
Requires-Dist: fiona>=1.8.0; extra == "io"
Requires-Dist: geopandas>=0.10.0; extra == "io"
Requires-Dist: pyarrow>=14; extra == "io"
Provides-Extra: compute
Requires-Dist: cupy-cuda13x>=13.6; extra == "compute"
Requires-Dist: numba>=0.56.0; extra == "compute"
Requires-Dist: dask>=2021.10.0; extra == "compute"
Provides-Extra: viz
Requires-Dist: matplotlib>=3.5.0; extra == "viz"
Requires-Dist: geopandas>=0.12.0; extra == "viz"
Requires-Dist: folium>=0.12.0; extra == "viz"
Requires-Dist: contextily>=1.3.0; extra == "viz"
Requires-Dist: mapclassify>=2.5.0; extra == "viz"
Requires-Dist: xarray>=2023.1.0; extra == "viz"
Requires-Dist: plotly>=5.0.0; extra == "viz"
Requires-Dist: pyvista>=0.35.0; extra == "viz"
Provides-Extra: whitebox
Requires-Dist: whitebox>=2.0.0; extra == "whitebox"
Provides-Extra: multidim
Requires-Dist: xarray>=2023.1.0; extra == "multidim"
Requires-Dist: netCDF4>=1.5.0; extra == "multidim"
Requires-Dist: h5netcdf>=1.0.0; extra == "multidim"
Requires-Dist: zarr>=2.10.0; extra == "multidim"
Requires-Dist: dask>=2021.10.0; extra == "multidim"
Provides-Extra: network
Requires-Dist: networkx>=3.0; extra == "network"
Requires-Dist: geopandas>=0.12.0; extra == "network"
Requires-Dist: osmnx>=1.9.0; extra == "network"
Requires-Dist: libpysal>=4.10; extra == "network"
Requires-Dist: scikit-learn>=1.2.0; extra == "network"
Requires-Dist: shapely>=2.0.0; extra == "network"
Provides-Extra: segregation
Requires-Dist: geolattice[network]; extra == "segregation"
Provides-Extra: segregation-dasymetric
Requires-Dist: geolattice[segregation]; extra == "segregation-dasymetric"
Requires-Dist: rasterio>=1.2.0; extra == "segregation-dasymetric"
Provides-Extra: geostatistics
Requires-Dist: geopandas>=0.10.0; extra == "geostatistics"
Requires-Dist: scikit-learn>=1.0.0; extra == "geostatistics"
Provides-Extra: geostatistics-gpu
Requires-Dist: geolattice[geostatistics]; extra == "geostatistics-gpu"
Requires-Dist: cupy-cuda13x>=13.6; extra == "geostatistics-gpu"
Provides-Extra: geostatistics-jax
Requires-Dist: geolattice[geostatistics]; extra == "geostatistics-jax"
Requires-Dist: jax>=0.4.30; extra == "geostatistics-jax"
Requires-Dist: jaxlib>=0.4.30; extra == "geostatistics-jax"
Provides-Extra: geostatistics-plot
Requires-Dist: geolattice[geostatistics]; extra == "geostatistics-plot"
Requires-Dist: matplotlib>=3.5.0; extra == "geostatistics-plot"
Requires-Dist: contextily>=1.3.0; extra == "geostatistics-plot"
Provides-Extra: geostatistics-h2o
Requires-Dist: geolattice[geostatistics]; extra == "geostatistics-h2o"
Requires-Dist: h2o; extra == "geostatistics-h2o"
Provides-Extra: geostatistics-pytorch
Requires-Dist: geolattice[geostatistics]; extra == "geostatistics-pytorch"
Requires-Dist: torch; extra == "geostatistics-pytorch"
Provides-Extra: geostatistics-tensorflow
Requires-Dist: geolattice[geostatistics]; extra == "geostatistics-tensorflow"
Requires-Dist: tensorflow; extra == "geostatistics-tensorflow"
Provides-Extra: geostatistics-gam
Requires-Dist: geolattice[geostatistics]; extra == "geostatistics-gam"
Requires-Dist: pygam; extra == "geostatistics-gam"
Provides-Extra: geostatistics-optuna
Requires-Dist: geolattice[geostatistics]; extra == "geostatistics-optuna"
Requires-Dist: optuna; extra == "geostatistics-optuna"
Provides-Extra: geostatistics-deep
Requires-Dist: geolattice[geostatistics-h2o,geostatistics-pytorch,geostatistics-tensorflow]; extra == "geostatistics-deep"
Provides-Extra: spatial-statistics
Requires-Dist: geopandas>=0.14.0; extra == "spatial-statistics"
Requires-Dist: scikit-learn>=1.3.0; extra == "spatial-statistics"
Requires-Dist: joblib>=1.3.0; extra == "spatial-statistics"
Provides-Extra: spatial-statistics-viz
Requires-Dist: geolattice[spatial-statistics]; extra == "spatial-statistics-viz"
Requires-Dist: matplotlib>=3.5.0; extra == "spatial-statistics-viz"
Requires-Dist: folium>=0.12.0; extra == "spatial-statistics-viz"
Requires-Dist: mapclassify>=2.5.0; extra == "spatial-statistics-viz"
Provides-Extra: spatial-statistics-deep
Requires-Dist: geolattice[spatial-statistics]; extra == "spatial-statistics-deep"
Requires-Dist: torch; extra == "spatial-statistics-deep"
Provides-Extra: spatial-statistics-boosting
Requires-Dist: geolattice[spatial-statistics]; extra == "spatial-statistics-boosting"
Requires-Dist: xgboost>=2.0.0; extra == "spatial-statistics-boosting"
Requires-Dist: lightgbm>=4.0.0; extra == "spatial-statistics-boosting"
Provides-Extra: spatial-statistics-bayes
Requires-Dist: geolattice[spatial-statistics]; extra == "spatial-statistics-bayes"
Requires-Dist: pymc>=5.0; extra == "spatial-statistics-bayes"
Requires-Dist: arviz>=0.17; extra == "spatial-statistics-bayes"
Provides-Extra: spatial-statistics-gam
Requires-Dist: geolattice[spatial-statistics]; extra == "spatial-statistics-gam"
Requires-Dist: pygam>=0.9; extra == "spatial-statistics-gam"
Provides-Extra: spatial-statistics-libpysal
Requires-Dist: geolattice[spatial-statistics]; extra == "spatial-statistics-libpysal"
Requires-Dist: libpysal>=4.9; extra == "spatial-statistics-libpysal"
Provides-Extra: spatial-statistics-network
Requires-Dist: geolattice[spatial-statistics]; extra == "spatial-statistics-network"
Requires-Dist: networkx>=3.0; extra == "spatial-statistics-network"
Provides-Extra: spatial-statistics-all
Requires-Dist: geolattice[spatial-statistics,spatial-statistics-bayes,spatial-statistics-boosting,spatial-statistics-deep,spatial-statistics-gam,spatial-statistics-libpysal,spatial-statistics-network,spatial-statistics-viz]; extra == "spatial-statistics-all"
Provides-Extra: spatialcausal
Requires-Dist: geolattice[spatial-statistics]; extra == "spatialcausal"
Requires-Dist: geopandas>=0.12; extra == "spatialcausal"
Requires-Dist: scikit-learn>=1.2; extra == "spatialcausal"
Provides-Extra: spatialcausal-viz
Requires-Dist: geolattice[spatialcausal]; extra == "spatialcausal-viz"
Requires-Dist: matplotlib>=3.6; extra == "spatialcausal-viz"
Provides-Extra: spatialcausal-causalml
Requires-Dist: geolattice[spatialcausal]; extra == "spatialcausal-causalml"
Provides-Extra: spatialcausal-all
Requires-Dist: geolattice[spatialcausal,spatialcausal-causalml,spatialcausal-viz]; extra == "spatialcausal-all"
Provides-Extra: distributed
Requires-Dist: dask[distributed]>=2023.1.0; extra == "distributed"
Requires-Dist: geopandas>=1.0; extra == "distributed"
Requires-Dist: shapely>=2.0; extra == "distributed"
Requires-Dist: pyarrow>=14; extra == "distributed"
Requires-Dist: pyogrio>=0.7; extra == "distributed"
Requires-Dist: rioxarray>=0.15; extra == "distributed"
Requires-Dist: xarray>=2023.1; extra == "distributed"
Requires-Dist: scipy>=1.9; extra == "distributed"
Requires-Dist: zarr>=2.14; extra == "distributed"
Requires-Dist: odc-stac>=0.3; extra == "distributed"
Requires-Dist: dask-geopandas>=0.4; extra == "distributed"
Requires-Dist: scikit-learn>=1.3; extra == "distributed"
Requires-Dist: networkx>=3.0; extra == "distributed"
Provides-Extra: distributed-gpu
Requires-Dist: geolattice[distributed]; extra == "distributed-gpu"
Requires-Dist: cupy-cuda13x>=13.6; extra == "distributed-gpu"
Requires-Dist: dask-cuda>=24.0; extra == "distributed-gpu"
Provides-Extra: distributed-hpc
Requires-Dist: geolattice[distributed]; extra == "distributed-hpc"
Requires-Dist: dask-jobqueue>=0.8; extra == "distributed-hpc"
Requires-Dist: dask-kubernetes>=2024.1; extra == "distributed-hpc"
Provides-Extra: distributed-ml
Requires-Dist: geolattice[distributed]; extra == "distributed-ml"
Requires-Dist: xgboost>=2.0; extra == "distributed-ml"
Requires-Dist: lightgbm>=4.0; extra == "distributed-ml"
Requires-Dist: torch>=2.1; extra == "distributed-ml"
Requires-Dist: bokeh>=3.1; extra == "distributed-ml"
Provides-Extra: distributed-spark
Requires-Dist: geolattice[distributed]; extra == "distributed-spark"
Requires-Dist: apache-sedona>=1.6; extra == "distributed-spark"
Requires-Dist: pyspark<4.1,>=3.4; extra == "distributed-spark"
Provides-Extra: web
Requires-Dist: geopandas>=1.0; extra == "web"
Requires-Dist: pyarrow>=14; extra == "web"
Requires-Dist: rasterio>=1.3; extra == "web"
Requires-Dist: pillow>=9.0; extra == "web"
Requires-Dist: matplotlib>=3.5; extra == "web"
Requires-Dist: starlette>=0.27; extra == "web"
Requires-Dist: uvicorn>=0.23; extra == "web"
Requires-Dist: httpx>=0.24; extra == "web"
Requires-Dist: folium>=0.12; extra == "web"
Requires-Dist: fsspec>=2023.1; extra == "web"
Provides-Extra: web-cloud
Requires-Dist: geolattice[web]; extra == "web-cloud"
Requires-Dist: s3fs>=2023.1; extra == "web-cloud"
Requires-Dist: gcsfs>=2023.1; extra == "web-cloud"
Requires-Dist: adlfs>=2023.1; extra == "web-cloud"
Requires-Dist: duckdb>=0.10; extra == "web-cloud"
Provides-Extra: spatial-db
Requires-Dist: geopandas>=0.14.0; extra == "spatial-db"
Requires-Dist: shapely>=2.0; extra == "spatial-db"
Requires-Dist: pandas>=1.5; extra == "spatial-db"
Requires-Dist: numpy>=1.21.0; extra == "spatial-db"
Requires-Dist: pyogrio>=0.7; extra == "spatial-db"
Requires-Dist: duckdb>=0.10; extra == "spatial-db"
Provides-Extra: spatial-db-postgis
Requires-Dist: geolattice[spatial-db]; extra == "spatial-db-postgis"
Requires-Dist: sqlalchemy>=2.0; extra == "spatial-db-postgis"
Requires-Dist: psycopg[binary]>=3.1; extra == "spatial-db-postgis"
Requires-Dist: geoalchemy2>=0.14; extra == "spatial-db-postgis"
Requires-Dist: rasterio>=1.3; extra == "spatial-db-postgis"
Provides-Extra: spatial-db-all
Requires-Dist: geolattice[spatial-db,spatial-db-postgis]; extra == "spatial-db-all"
Provides-Extra: rsense
Requires-Dist: xarray>=2023.1.0; extra == "rsense"
Requires-Dist: rioxarray>=0.15; extra == "rsense"
Requires-Dist: rasterio>=1.3.0; extra == "rsense"
Requires-Dist: scikit-image>=0.20; extra == "rsense"
Requires-Dist: geopandas>=0.14.0; extra == "rsense"
Requires-Dist: requests>=2.28; extra == "rsense"
Requires-Dist: pystac-client>=0.7; extra == "rsense"
Requires-Dist: tqdm>=4.66; extra == "rsense"
Provides-Extra: rsense-access
Requires-Dist: geolattice[rsense]; extra == "rsense-access"
Requires-Dist: pystac>=1.8; extra == "rsense-access"
Requires-Dist: pystac-client>=0.7; extra == "rsense-access"
Requires-Dist: planetary-computer>=1.0; extra == "rsense-access"
Requires-Dist: odc-stac>=0.3.9; extra == "rsense-access"
Requires-Dist: earthaccess>=0.9; extra == "rsense-access"
Requires-Dist: requests>=2.28; extra == "rsense-access"
Provides-Extra: rsense-biopar
Requires-Dist: geolattice[rsense]; extra == "rsense-biopar"
Requires-Dist: openeo>=0.31; extra == "rsense-biopar"
Provides-Extra: rsense-sentinel3
Requires-Dist: geolattice[rsense]; extra == "rsense-sentinel3"
Requires-Dist: netCDF4>=1.5.0; extra == "rsense-sentinel3"
Requires-Dist: h5netcdf>=1.0.0; extra == "rsense-sentinel3"
Requires-Dist: pyproj>=3.2.0; extra == "rsense-sentinel3"
Provides-Extra: rsense-sentinel5p
Requires-Dist: geolattice[rsense]; extra == "rsense-sentinel5p"
Requires-Dist: netCDF4>=1.5.0; extra == "rsense-sentinel5p"
Requires-Dist: h5netcdf>=1.0.0; extra == "rsense-sentinel5p"
Provides-Extra: rsense-sar
Requires-Dist: geolattice[rsense]; extra == "rsense-sar"
Requires-Dist: asf_search>=7.0; extra == "rsense-sar"
Requires-Dist: sarsen>=0.9; extra == "rsense-sar"
Requires-Dist: h5py>=3.8; extra == "rsense-sar"
Provides-Extra: rsense-insar
Requires-Dist: geolattice[rsense]; extra == "rsense-insar"
Requires-Dist: hyp3_sdk>=6.0; extra == "rsense-insar"
Requires-Dist: h5py>=3.8; extra == "rsense-insar"
Requires-Dist: snaphu>=0.4; python_version < "3.14" and extra == "rsense-insar"
Requires-Dist: sliderule>=4.0; extra == "rsense-insar"
Provides-Extra: rsense-lidar
Requires-Dist: geolattice[rsense]; extra == "rsense-lidar"
Requires-Dist: laspy[lazrs]>=2.4; extra == "rsense-lidar"
Requires-Dist: cloth-simulation-filter>=1.1; extra == "rsense-lidar"
Requires-Dist: h5py>=3.8; extra == "rsense-lidar"
Requires-Dist: scikit-learn>=1.3.0; extra == "rsense-lidar"
Requires-Dist: matplotlib>=3.5.0; extra == "rsense-lidar"
Provides-Extra: rsense-hyperspectral
Requires-Dist: geolattice[rsense]; extra == "rsense-hyperspectral"
Requires-Dist: h5py>=3.8; extra == "rsense-hyperspectral"
Requires-Dist: scikit-learn>=1.3.0; extra == "rsense-hyperspectral"
Requires-Dist: matplotlib>=3.5.0; extra == "rsense-hyperspectral"
Requires-Dist: plotly>=5.0; extra == "rsense-hyperspectral"
Requires-Dist: prosail>=2.0; extra == "rsense-hyperspectral"
Provides-Extra: rsense-uav
Requires-Dist: geolattice[rsense]; extra == "rsense-uav"
Requires-Dist: pyodm>=1.5; extra == "rsense-uav"
Requires-Dist: opencv-python>=4.8; extra == "rsense-uav"
Requires-Dist: scikit-learn>=1.3.0; extra == "rsense-uav"
Requires-Dist: gdown>=5.0; extra == "rsense-uav"
Provides-Extra: rsense-uav-dl
Requires-Dist: geolattice[rsense-dl,rsense-uav]; extra == "rsense-uav-dl"
Requires-Dist: segment-anything>=1.0; extra == "rsense-uav-dl"
Requires-Dist: ultralytics>=8.0; extra == "rsense-uav-dl"
Requires-Dist: xgboost>=2.0.0; extra == "rsense-uav-dl"
Provides-Extra: rsense-classify
Requires-Dist: geolattice[rsense]; extra == "rsense-classify"
Requires-Dist: scikit-learn>=1.3.0; extra == "rsense-classify"
Requires-Dist: xgboost>=2.0.0; extra == "rsense-classify"
Provides-Extra: rsense-dl
Requires-Dist: geolattice[rsense]; extra == "rsense-dl"
Requires-Dist: torch>=2.1; extra == "rsense-dl"
Requires-Dist: torchvision>=0.16; extra == "rsense-dl"
Requires-Dist: torchgeo>=0.5; extra == "rsense-dl"
Requires-Dist: segmentation-models-pytorch>=0.3; extra == "rsense-dl"
Requires-Dist: timm>=0.9; extra == "rsense-dl"
Requires-Dist: lightning>=2.1; extra == "rsense-dl"
Provides-Extra: rsense-vision
Requires-Dist: geolattice[rsense-classify,rsense-dl]; extra == "rsense-vision"
Requires-Dist: timm>=0.9; extra == "rsense-vision"
Requires-Dist: ultralytics>=8.0; extra == "rsense-vision"
Requires-Dist: open_clip_torch>=2.20; extra == "rsense-vision"
Requires-Dist: huggingface_hub>=0.20; extra == "rsense-vision"
Requires-Dist: segment-geospatial>=0.10; extra == "rsense-vision"
Provides-Extra: rsense-foundation
Requires-Dist: geolattice[rsense-classify,rsense-dl]; extra == "rsense-foundation"
Requires-Dist: torchgeo>=0.8; extra == "rsense-foundation"
Requires-Dist: terratorch>=1.0; extra == "rsense-foundation"
Requires-Dist: timm>=1.0; extra == "rsense-foundation"
Requires-Dist: open_clip_torch>=2.20; extra == "rsense-foundation"
Requires-Dist: huggingface_hub>=0.20; extra == "rsense-foundation"
Requires-Dist: transformers>=4.56; extra == "rsense-foundation"
Requires-Dist: earthengine-api>=0.1.380; extra == "rsense-foundation"
Provides-Extra: rsense-edge
Requires-Dist: geolattice[io,rsense-dl]; extra == "rsense-edge"
Requires-Dist: geopandas>=0.10; extra == "rsense-edge"
Provides-Extra: rsense-xai
Requires-Dist: geolattice[rsense]; extra == "rsense-xai"
Requires-Dist: scikit-learn>=1.3.0; extra == "rsense-xai"
Requires-Dist: shap>=0.44; extra == "rsense-xai"
Provides-Extra: rsense-gee
Requires-Dist: geolattice[rsense]; extra == "rsense-gee"
Requires-Dist: earthengine-api>=0.1.380; extra == "rsense-gee"
Requires-Dist: xee>=0.0.10; extra == "rsense-gee"
Provides-Extra: rsense-viz
Requires-Dist: geolattice[rsense]; extra == "rsense-viz"
Requires-Dist: matplotlib>=3.5.0; extra == "rsense-viz"
Requires-Dist: leafmap>=0.30; extra == "rsense-viz"
Provides-Extra: rsense-scale
Requires-Dist: geolattice[rsense]; extra == "rsense-scale"
Requires-Dist: dask[distributed]>=2023.1.0; extra == "rsense-scale"
Requires-Dist: zarr>=2.10.0; extra == "rsense-scale"
Requires-Dist: pystac>=1.8; extra == "rsense-scale"
Provides-Extra: rsense-apps
Requires-Dist: geolattice[rsense-viz]; extra == "rsense-apps"
Requires-Dist: streamlit>=1.30; extra == "rsense-apps"
Provides-Extra: rsense-gpu
Requires-Dist: geolattice[rsense]; extra == "rsense-gpu"
Requires-Dist: cupy-cuda13x>=13.6; extra == "rsense-gpu"
Provides-Extra: rsense-all
Requires-Dist: geolattice[rsense,rsense-access,rsense-apps,rsense-classify,rsense-dl,rsense-edge,rsense-gee,rsense-hyperspectral,rsense-insar,rsense-lidar,rsense-sar,rsense-scale,rsense-sentinel3,rsense-sentinel5p,rsense-uav,rsense-viz,rsense-xai]; extra == "rsense-all"
Provides-Extra: core
Requires-Dist: geolattice[io,viz]; extra == "core"
Provides-Extra: analysis
Requires-Dist: geolattice[core,multidim,network,segregation,segregation-dasymetric,whitebox]; extra == "analysis"
Provides-Extra: statistics
Requires-Dist: geolattice[analysis,spatial-statistics,spatial-statistics-viz,spatialcausal,spatialcausal-viz]; extra == "statistics"
Provides-Extra: geostats
Requires-Dist: geolattice[geostatistics,geostatistics-plot,statistics]; extra == "geostats"
Provides-Extra: remote-sensing
Requires-Dist: geolattice[geostats,rsense,rsense-access,rsense-classify,rsense-hyperspectral,rsense-lidar,rsense-sar,rsense-sentinel3,rsense-sentinel5p,rsense-uav,rsense-viz]; extra == "remote-sensing"
Provides-Extra: all
Requires-Dist: geolattice[distributed,distributed-ml,geostatistics-gam,geostatistics-jax,geostatistics-optuna,geostatistics-pytorch,remote-sensing,rsense-all,spatial-db-all,spatial-statistics-all,spatialcausal-all,web-cloud]; extra == "all"
Dynamic: license-file

# GeoLattice

<p align="center">
  <img src="https://raw.githubusercontent.com/zia207/GeoLattice/main/Images/geolattice_logo.png" alt="GeoLattice logo: a hexagon lattice with a globe and a spatial network" width="220">
</p>

GeoLattice is a Python library for geospatial analysis that brings vector and raster processing, spatial analysis, spatial statistics, geostatistics, spatial causal inference, spatial databases, web and cloud GIS, and remote sensing together under one import, `geolattice`.

It is built on GDAL, NumPy, SciPy, pandas, GeoPandas, Shapely and xarray, so its functions read and return the objects these libraries already use: GeoDataFrames, xarray DataArrays and Datasets, NumPy arrays and GDAL-readable files. Compute-heavy parts of the library run on the CPU by default and on a GPU (CuPy, PyTorch or JAX) when one is available, and `geolattice.distributed` runs vector and raster work on all CPU cores, a Dask cluster or Spark. Installing GeoLattice installs all of its dependencies (listed in `requirements.txt`); only GPU, cluster and Spark extras are added by name.

GeoLattice comes with a set of tutorials: 372 Jupyter notebooks in nine chapters that explain each method, work through examples on real data and use the sample data in `Data/`.

GeoLattice was called PyGIS until version 0.3.49. See [Moving from PyGIS](#moving-from-pygis) if you have code or an environment that uses the old name.

## What GeoLattice covers

| Area | Import | What it does |
|---|---|---|
| Coordinate reference systems | `geolattice.crs` | Search EPSG and ESRI codes, define custom projections, choose datum transformations |
| Vector data | `geolattice.vector` | Read and write desktop and cloud-native formats (GeoPackage, Shapefile, GeoParquet, FlatGeobuf), geoprocessing (clip, buffer, dissolve, overlay), geometry tools and attribute tables |
| Raster data | `geolattice.raster` | Read, write and reproject GDAL rasters, raster algebra, clip, mosaic, reclassify, zonal statistics, polygonize, proximity and contours |
| Spatial analysis | `geolattice.spatial_analysis` | Terrain analysis, surface hydrology, multi-criteria suitability (weighted and fuzzy overlay), multidimensional rasters (NetCDF, Zarr), network analysis, segregation analysis and vector analysis |
| Spatial causal inference | `geolattice.spatial_analysis.spatialcausal` | Interference and spillover effects, spatial confounding, spatial double machine learning, geographic regression discontinuity, spatial difference-in-differences, synthetic control and causal discovery |
| Spatial statistics | `geolattice.spatial_statistics` | Spatial weights, global and local autocorrelation (Moran, Geary, Getis-Ord), GWR and MGWR, point patterns, spatial regression, spatial sampling and Bayesian disease mapping |
| Geostatistics | `geolattice.geostatistics` | Variograms, the kriging family (simple, ordinary, universal, indicator, co-, Poisson, Bayesian, regression and space-time kriging), sequential and multiple-point simulation, with GPU and JAX backends |
| Spatial databases | `geolattice.geolatticedb` | One API for PostGIS, SpatiaLite, GeoPackage and DuckDB spatial: loading, spatial SQL, joins, nearest neighbours, PostGIS raster, pgRouting and vector tiles |
| Web and cloud GIS | `geolattice.web` | Cloud-Optimized GeoTIFF, GeoParquet, PMTiles, XYZ tiles and an OGC API Features server, with reading from S3, Google Cloud Storage, Azure and HTTP |
| Remote sensing | `geolattice.rsense` | Data access (STAC, Earth Engine, ASF, Copernicus), optical indices and composites, SAR, InSAR, NISAR, lidar, hyperspectral imaging, UAV, time series, fusion, texture, super-resolution, classification, deep learning, foundation models (Prithvi, Clay, DOFA, TerraMind, AlphaEarth and 40 others), surface energy balance evapotranspiration (SEBAL, METRIC, SSEBop, S-SEBI, PT-JPL, TSEB), soil moisture physics (pedotransfer functions, Dobson and Mironov dielectric models, the tau-omega model and its inversion) and explainable AI |
| Visualization | `geolattice.viz` | Static maps, choropleths, raster displays and interactive Folium maps |
| Distributed and GPU computing | `geolattice.distributed` | One API for chunked raster processing, partitioned vector joins, raster-vector operations, spatial statistics, clustering, networks, hydrology and machine learning on all CPU cores, a Dask cluster (local, multi-GPU, SLURM, PBS, Kubernetes), Spark with Apache Sedona, or CUDA GPUs |

Every subpackage is available after `import geolattice` (for example `geolattice.raster.open_raster` or `geolattice.geostatistics.Variogram`) and loads on first use, so `import geolattice` stays fast.

## Installation

GeoLattice needs Python 3.10 or newer (tested on 3.11 and 3.14; its dependencies need 3.10, for example libpysal 4.10). GDAL and PROJ must be installed first, with Python GDAL bindings that match the GDAL library; install them with conda or your system package manager.

Installing GeoLattice installs every runtime dependency listed in [`requirements.txt`](https://github.com/zia207/GeoLattice/blob/main/requirements.txt), whether you install from PyPI, the wheel or the sdist (`pip install dist/geolattice-0.3.49-cp314-cp314-linux_x86_64.whl` or `pip install dist/geolattice-0.3.49.tar.gz`). That list is the conflict-free set that installation option 6 (`geolattice[all]`) resolves to: about 80 packages, including PyTorch. `pip install -r requirements.txt` installs the same set without GeoLattice itself.

### Installation options

The option names below still work, and existing install commands keep working, but a plain install already includes all of them. Each option includes everything in the one above it.

| Option | Install | Adds |
|---|---|---|
| 1. Core | `geolattice[core]` | Vector and raster I/O including GeoParquet, CRS tools, maps and plots (rasterio, fiona, GeoPandas, pyarrow, matplotlib, folium, contextily, plotly) |
| 2. Spatial analysis | `geolattice[analysis]` | Terrain and hydrology, suitability, multidimensional rasters, network and segregation analysis (xarray, netCDF4, zarr, dask, networkx, OSMnx, libpysal, WhiteboxTools) |
| 3. Spatial statistics | `geolattice[statistics]` | ESDA, spatial weights, GWR, point patterns, spatial regression, and spatial causal inference (scikit-learn, joblib) |
| 4. Geostatistics | `geolattice[geostats]` | Variograms, kriging and simulation, with plotting helpers |
| 5. Remote sensing | `geolattice[remote-sensing]` | Optical, SAR, lidar, hyperspectral and UAV processing, STAC access, classification (rioxarray, scikit-image, pystac-client, laspy, h5py, OpenCV, xgboost, leafmap) |
| 6. All | `geolattice[all]` | Everything above plus web and cloud GIS, spatial databases, deep learning (PyTorch, torchgeo), Bayesian models (PyMC), boosting, JAX kriging, Earth Engine and distributed computing (Dask, dask-geopandas) |

```bash
python3 -m pip install "geolattice[core]"             # 1. core, vector, raster, CRS, visualization
python3 -m pip install "geolattice[analysis]"         # 2. core + spatial analysis
python3 -m pip install "geolattice[statistics]"       # 3. core + spatial analysis + spatial statistics
python3 -m pip install "geolattice[geostats]"         # 4. ... + geostatistics
python3 -m pip install "geolattice[remote-sensing]"   # 5. ... + remote sensing
python3 -m pip install "geolattice[all]"              # 6. all
```

A few groups need special hardware or conflict with other packages, so neither a plain install nor `geolattice[all]` includes them; add them by name when you need them: `compute`, `geostatistics-gpu` and `rsense-gpu` (CUDA GPUs), `geostatistics-h2o` and `geostatistics-tensorflow`, `rsense-uav-dl`, `rsense-vision` and `rsense-foundation` (large vision and foundation models), `rsense-biopar` (needs pandas below 3), `distributed-gpu` (CUDA GPUs), `distributed-hpc` (SLURM, PBS and Kubernetes clusters), `distributed-spark` (Apache Sedona, needs Java 17 or newer) and `dev`. When a function needs a library that is not installed, its error message names the extra and the installation option that contains it.

For a GPU, see [GPU support](#gpu-support) below.

### Install from source

GeoLattice includes a small C extension, so building it needs a C compiler and NumPy. From the repository root:

```bash
python3 -m pip install build
python3 -m build
python3 -m pip install dist/geolattice-0.3.49-cp314-cp314-linux_x86_64.whl   # installs every dependency in requirements.txt
```

`python3 -m build` writes an sdist and a wheel for the Python that ran it (`cp314` above). For another Python version, build a wheel from the sdist with that Python: `python3 -m pip wheel --no-deps -w dist dist/geolattice-0.3.49.tar.gz`. For development, install in editable mode with `python3 -m pip install -e ".[dev]"`.

The [user guide](https://github.com/zia207/GeoLattice/blob/main/docs/USER_GUIDE.md#installation) lists the 65 individual extras the installation options are built from and explains how to fix the common GDAL import errors (`libgdal.so` not found, `No module named '_gdal'`).

### Moving from PyGIS

The package was renamed from PyGIS to GeoLattice. Existing code keeps working for now, but should move to the new names:

| PyGIS | GeoLattice |
|---|---|
| `pip install pygis`, `pygis[all]` | `pip install geolattice`, `geolattice[all]` |
| `import pygis`, `from pygis.raster import ...` | `import geolattice`, `from geolattice.raster import ...` |
| `pygis.pygisdb`, `pygis.spatial_bd.pygisdb` | `geolattice.geolatticedb`, `geolattice.spatial_bd.geolatticedb` |
| `PYGIS_EXPLORER`, `PYGIS_FTW_CACHE`, `PYGIS_SEDONA_PACKAGES`, `PYGIS_UAV_WEIGHTS` | `GEOLATTICE_EXPLORER`, `GEOLATTICE_FTW_CACHE`, `GEOLATTICE_SEDONA_PACKAGES`, `GEOLATTICE_UAV_WEIGHTS` |
| Model cache `~/.cache/pygis/` | `~/.cache/geolattice/` |

- Uninstall the old package first (`python3 -m pip uninstall pygis`), because GeoLattice installs its own `pygis` alias.
- The alias makes `import pygis` and `from pygis.x import y` return the `geolattice` modules, with a `FutureWarning`. It will be removed in a future release.
- The old `PYGIS_` environment variables are no longer read; rename them in your shell profile or job scripts.
- To keep model weights you have already downloaded, move the cache folder: `mv ~/.cache/pygis ~/.cache/geolattice`.

## Quick start

Run these examples from the repository root. They use the sample data in `Data/00_shared` and need installation option 5 (`geolattice[remote-sensing]`).

```python
from pathlib import Path

DATA = Path("Data/00_shared")  # sample data in the repository

# Vector: read US counties, reproject New York to metres and buffer each county by 5 km
from geolattice.vector import buffer, read_vector_data

with read_vector_data(DATA / "vector_data/USA/US_COUNTY.shp") as layer:
    counties = layer.to_dataframe()  # GeoDataFrame with 3,108 counties
ny = counties[counties["STATE"] == "New York"].to_crs(5070)  # CONUS Albers, metres
zones = buffer(ny, 5_000)

# Raster and terrain: summary statistics, slope and hillshade of a DEM
from geolattice.raster import summarize_raster
from geolattice.spatial_analysis import hillshade, slope

dem = DATA / "raster_data/USA/Onondaga_DEM.tif"
print(summarize_raster(dem)["mean"])
slope(dem, "slope.tif", units="degrees", overwrite=True)
hillshade(dem, "hillshade.tif", azimuth=315, altitude=45)

# Geostatistics: variogram and ordinary kriging of log zinc in the Meuse data
import numpy as np
import pandas as pd
from geolattice.geostatistics import OrdinaryKriging, Variogram

meuse = pd.read_csv(DATA / "data_geostatistics/meuse.csv")
xy, z = meuse[["x", "y"]].to_numpy(), np.log(meuse["zinc"].to_numpy())
vgm = Variogram(xy, z, model="spherical", n_lags=12)
vgm.fit()
ok = OrdinaryKriging(vgm).fit(xy, z)
print(ok.predict(np.array([[179500.0, 331500.0]])))

# Remote sensing: NDVI from Landsat 9 surface reflectance
import xarray as xr
import geolattice.rsense as rs

scene = DATA / "data_remote_sensing/landsat9_vegas_20240708/LC09_L2SP_039035_20240708_02_T1"
bands = xr.Dataset({b: rs.read(scene / f"{b}.tif").squeeze("band", drop=True) for b in ("red", "nir")})
bands.attrs["pyrsense:sensor"] = "landsat"  # tells GeoLattice which scaling rules apply
ndvi = bands.rs.scale().rs.index("NDVI")  # scale to reflectance, then compute NDVI
print(float(ndvi.mean()))

# Foundation models: embed a raster with DOFA, then find chips that look like the first one
import geolattice.rsense.foundation_models as fm  # needs geolattice[rsense-foundation]

fm.recommend("soil")                          # AlphaEarth, Clay, Presto, SSL4EO
enc = fm.load_model("dofa-base", bands=["red", "nir"])
emb = enc.embed_raster(bands.rs.scale().to_dataarray("band"), chip_size=224)
sim = fm.similarity_map(emb, emb.isel(y=0, x=0))

# Evapotranspiration: METRIC on a Landsat scene (sr: scaled reflectance, lst: surface temperature in K)
import geolattice.rsense.surface_energy_balance as seb

ndvi, lai = seb.ndvi(sr.red, sr.nir), seb.leaf_area_index(seb.savi(sr.red, sr.nir, L=0.1))
alb, e0 = seb.albedo(sr, sensor="landsat8"), seb.surface_emissivity(lai, ndvi)
anchors = seb.select_anchors(ndvi, lst, albedo_=alb)          # hot and cold pixels (Allen et al. 2013)
rs_in = seb.incoming_shortwave(cos_theta=0.92, tau_sw=0.78)   # clear-sky shortwave at overpass
rl_in = seb.incoming_longwave(anchors["cold"]["lst"], seb.air_emissivity(tau_sw=0.78))
rn = seb.net_radiation(rs_in, alb, rl_in, seb.outgoing_longwave(lst, e0), e0)
g = seb.soil_heat_flux(rn, lst, lai=lai, method="metric")
et = seb.run_metric(lst, rn, g, seb.momentum_roughness(lai=lai), seb.wind_at_blending_height(2.5),
                    100.6, etr_inst=0.93, anchors=anchors, etr_daily=12.0)   # Dataset: h, le, etrf, et24

# Soil moisture physics: soil water limits, L-band permittivity, brightness temperature and its inversion
import geolattice.rsense.soil_moisture as sm

soil = sm.saxton_rawls(sand=0.40, clay=0.20)            # loam: WP 0.14, FC 0.28, saturation 0.46 m3/m3
eps = sm.mironov_dielectric(0.25, clay=0.20)             # 13.0 - 1.5j at 1.41 GHz
tb = sm.tau_omega(295.0, eps, 40.0, tau=0.3, pol="v")    # 260.7 K
theta = sm.invert_tau_omega(tb, 295.0, 40.0, clay=0.20, tau=0.3)   # back to 0.25 m3/m3
```

The [user guide](https://github.com/zia207/GeoLattice/blob/main/docs/USER_GUIDE.md) has worked examples for every module, including the full raster toolset, hydrology, suitability analysis, geostatistical simulation, SAR and InSAR processing, lidar, hyperspectral analysis, image classification, evapotranspiration from the surface energy balance and soil moisture physics.

## GPU support

GeoLattice runs on the CPU by default. On a machine with an NVIDIA GPU, the parts below can run on the GPU, and they fall back to the CPU when no usable GPU is found.

| Module | GPU library | How to use it |
|---|---|---|
| `geolattice.geostatistics`: variograms, kriging, cross-validation and sequential, turning bands, direct sequential and multiple-point simulation | CuPy | `use_gpu=True` on the class or function |
| `geolattice.geostatistics.jax_variogram_kriging`: simple, ordinary, universal and cokriging | JAX | `use_gpu="auto"` |
| `geolattice.rsense`: raster cubes, indices, composites and other array operations | CuPy (NVIDIA) or PyTorch MPS (Apple) | `rs.backend.set_backend("cuda")` or `"mps"` |
| `geolattice.rsense.dl`, `geolattice.rsense.classify`, `geolattice.rsense.foundation_models`: deep learning, image classification, segmentation, detection and foundation model embeddings | PyTorch | runs on the GPU when PyTorch sees one |
| `geolattice.spatial_statistics`: GNNWR and GTNNWR | PyTorch | `device="cuda"` or `"auto"` |
| `geolattice.distributed`: raster algebra, focal filters and terrain, vector measures, point-in-polygon joins, nearest neighbours, zonal statistics, spatial statistics, clustering, networks, flow direction and model prediction | CuPy, cuDF, cuML, cuGraph, PyTorch | `compute="gpu"` or `"auto"` on each function |

```python
import numpy as np
from geolattice.geostatistics import OrdinaryKriging, Variogram
from geolattice.geostatistics.utils.backend import cupy_gpu_usable

print(cupy_gpu_usable())  # True when CuPy can run a kernel on the GPU

rng = np.random.default_rng(0)
xy = rng.uniform(0, 100, size=(200, 2))
z = np.sin(xy[:, 0] / 20) + rng.normal(0, 0.1, size=200)
grid = np.stack(np.meshgrid(np.linspace(0, 100, 300), np.linspace(0, 100, 300)), -1).reshape(-1, 2)

vgm = Variogram(xy, z, model="spherical", n_lags=12, use_gpu=True)
vgm.fit()
pred = OrdinaryKriging(vgm, use_gpu=True).fit(xy, z).predict(grid)  # 90,000 cells on the GPU

import geolattice.rsense as rs

rs.backend.set_backend("cuda")  # rsense arrays now live on the GPU as CuPy arrays
print(rs.backend.get_backend())
rs.backend.set_backend("cpu")
```

The GPU extras (`compute`, `geostatistics-gpu` and `rsense-gpu`) install `cupy-cuda13x`, the CuPy build for CUDA 13. Check your CUDA version with `nvidia-smi`. For an older CUDA, install the matching CuPy yourself (`cupy-cuda12x` or `cupy-cuda11x`) together with `geolattice[geostats]` or `geolattice[remote-sensing]` instead of a GPU extra, and keep only one CuPy package in an environment, because they all provide the same `cupy` module. PyTorch and JAX choose their CUDA build at install time, so install them by following their own instructions; `geolattice[all]` installs the default PyTorch build from PyPI.

## Distributed computing

`geolattice.distributed` gives one API for spatial data that scales from all cores of a laptop to a cluster. Every function takes `compute="auto" | "cpu" | "gpu"` and returns the type and memory space it was given; Dask-backed input stays lazy. Without a cluster it runs on Dask's threads, so it already uses every CPU core.

```python
import geolattice.distributed as pdist

with pdist.start("cuda"):                                  # one Dask worker per GPU ("local" for CPU)
    dem = pdist.read_raster("dem.tif")                     # lazy and chunked
    slope = pdist.raster.slope(dem, compute="gpu")         # CuPy chunks with a 1-pixel halo
    stats = pdist.zonal_stats(parcels, slope)              # per-chunk partial sums, combined at the end
    hits = pdist.vector.sjoin(points, parcels, predicate="within")   # GPU point-in-polygon test
    w = pdist.analysis.weights(parcels, "queen")
    lisa = pdist.analysis.local_morans(stats["mean"], w)  # 999 permutations as batched matrix products
    pdist.write_raster(slope, "slope.zarr")
```

| Module | What it does |
|---|---|
| `raster` | Map algebra (`calc`, `where`, `reclassify`), focal filters, convolution and terrain (slope, aspect, hillshade, curvature, TPI, TRI, roughness), chunk by chunk with halos so results equal whole-array results |
| `vector` | Geometry operations, `clip`, `sjoin` on spatially partitioned data (Dask, GPU or Sedona engine), `knn` |
| `bridge` | `rasterize`, `zonal_stats`, `extract_values`, `polygonize` (polygons cut by chunk seams are merged) |
| `analysis` | Spatial weights, Moran's I, Geary's C, LISA, Getis-Ord G*, DBSCAN, HDBSCAN, k-means and kernel density |
| `network` | Graphs from lines, shortest paths, centrality and components (cuGraph or SciPy and NetworkX) |
| `hydrology` | Chunked D8 flow direction, depression filling and flow accumulation |
| `ml` | Model fitting, per-pixel raster prediction, tiled PyTorch inference over several GPUs and DDP training |
| `io` | Parallel GeoParquet and OGR reading and writing, rasters, Zarr and STAC |
| `diagnostics` | `benchmark`, `check_equivalence` (CPU against GPU), `explain`, `memory_report`, `profile` |

`pdist.start` also connects to SLURM, PBS and Kubernetes clusters (`geolattice[distributed-hpc]`) or an existing scheduler, and `vector.sjoin(..., engine="sedona")` runs the join as Spark SQL (`geolattice[distributed-spark]`). Results are checked against GeoPandas, rasterio, scipy.ndimage, libpysal, esda and NetworkX in the test suite. Measured on an RTX A5500 laptop GPU:

| Operation | CPU | GPU |
|---|---:|---:|
| Focal median 7 x 7, 8000 x 8000 DEM | 17.5 s | 0.24 s |
| Moran's I, 22,500 cells, 999 permutations | 0.71 s | 0.07 s |
| Local Moran's I, 22,500 cells, 999 permutations | 1.55 s | 0.25 s |
| Slope, 8000 x 8000 DEM | 0.82 s | 0.22 s |
| Point-in-polygon join, 2 million points, 2,000 polygons | 5.4 s (geopandas: 15.4 s) | 4.7 s |

Where the GPU version is slower on typical inputs (`rasterize`, `dbscan`), `compute="auto"` keeps the CPU; `pdist.explain("bridge.rasterize")` says which implementation runs and why. The [user guide](https://github.com/zia207/GeoLattice/blob/main/docs/USER_GUIDE.md#distributed-computing-geolatticedistributed) has worked examples.

## Tutorials

The notebooks in [`Tutorials/notebooks`](https://github.com/zia207/GeoLattice/tree/main/Tutorials/notebooks) are organized like a course. They explain the theory behind each method and work through examples on real data, and each notebook starts with a note that names the installation option it needs.

| Chapter | Notebooks | Topics |
|---|---:|---|
| [01 Vector data](https://github.com/zia207/GeoLattice/tree/main/Tutorials/notebooks/01_02_vector_raster/01_vector) | 6 | Reading and writing vector data, map projections, visualization, geoprocessing, geometry operations |
| [02 Raster data](https://github.com/zia207/GeoLattice/tree/main/Tutorials/notebooks/01_02_vector_raster/02_raster) | 4 | Reading and writing rasters, projections, basic raster operations |
| [03 Spatial analysis](https://github.com/zia207/GeoLattice/tree/main/Tutorials/notebooks/03_spatial_analysis) | 51 | Terrain and hydrology, multidimensional data, multi-criteria suitability, network analysis, segregation analysis, spatial causal inference, capstones |
| [04 Spatial statistics](https://github.com/zia207/GeoLattice/tree/main/Tutorials/notebooks/04_spatial_statistics) | 77 | Point patterns, spatial autocorrelation, spatial regression, spatial clusters, disease mapping, geographically weighted models, interpolation, sampling design, space-time analysis, capstones |
| [05 Geostatistics](https://github.com/zia207/GeoLattice/tree/main/Tutorials/notebooks/05_geostatistics) | 55 | Variograms, kriging, regression kriging, specialized and space-time kriging, Poisson kriging, simulation, Bayesian kriging, capstones |
| [06 Spatial databases](https://github.com/zia207/GeoLattice/tree/main/Tutorials/notebooks/06_spatialDB) | 15 | Spatial database concepts, spatial SQL, joins, indexing, PostGIS raster, pgRouting, DuckDB and GeoParquet, cloud engines, deployment |
| [07 Web and cloud GIS](https://github.com/zia207/GeoLattice/tree/main/Tutorials/notebooks/07_web_cloud_gis) | 12 | Cloud-native raster and vector data, spatial SQL, interactive web maps, map serving, geospatial APIs, web apps, scalable processing, cloud platforms |
| [08 Distributed spatial computing](https://github.com/zia207/GeoLattice/tree/main/Tutorials/notebooks/08_distributed_spatial) | 13 | Sessions and clusters, parallel I/O, rasters and vectors at scale, zonal statistics, spatial statistics and clustering, networks, hydrology, machine learning on GPUs, Apache Sedona, diagnostics, capstone |
| [09 Remote sensing](https://github.com/zia207/GeoLattice/tree/main/Tutorials/notebooks/09_remote_sensing) | 152 | Foundations, optical, radar, UAV, hyperspectral, lidar, texture analysis, super-resolution, image classification, object detection, foundation models, surface energy balance and evapotranspiration (SEBAL, METRIC, SSEBop, TSEB, seasonal crop water use), soil moisture (SMAP, ESA CCI, Sentinel-1 retrieval, downscaling), capstones |

The sample data the notebooks read (about 540 GB, organized by chapter) is too large for GitHub; download it from Dropbox and place it in a `Data/` folder at the repository root, as described on the [Data page](https://zia207.github.io/GeoLattice/data.html). HTML versions of the notebooks with all outputs are in [`docs/notebooks`](https://github.com/zia207/GeoLattice/tree/main/docs/notebooks) for every chapter, as Quarto sites published at [zia207.github.io/GeoLattice](https://zia207.github.io/GeoLattice/); each chapter folder's `_quarto.yml` builds its site.

## Documentation

- [User guide](https://github.com/zia207/GeoLattice/blob/main/docs/USER_GUIDE.md): features, installation and troubleshooting, the package layout and worked examples for every module.
- [API reference](https://github.com/zia207/GeoLattice/blob/main/docs/API_REFERENCE.md): every public class and function, grouped by module, with a one-line description.
- [CHANGELOG](https://github.com/zia207/GeoLattice/blob/main/CHANGELOG.md): changes in each release.
- [Module organization](https://github.com/zia207/GeoLattice/blob/main/docs/GeoLattice_modules_organization_and_rebuild.md): how the GeoLattice subpackages were assembled from earlier packages (PyRSense, pygstat and PySpatialCausal) and how to rebuild the package.
- [Data by chapter](https://github.com/zia207/GeoLattice/blob/main/Tutorials/DATA_BY_CHAPTER.md): the data files each tutorial notebook reads.

## Repository layout

```
GeoLattice/
├── src/          # the geolattice package (installed under the name geolattice); src/distributed/ is geolattice.distributed
├── compat/       # pygis: deprecated alias that forwards old imports to geolattice
├── tests/        # pytest suite
├── tools/        # make_requirements.py: regenerates requirements.txt from pyproject.toml
├── Tutorials/    # tutorial notebooks and the tools that maintain them
├── Data/         # sample data used by the tutorials
├── docs/         # user guide, notebook HTML pages and design notes
├── examples/     # standalone example scripts
├── Images/       # the GeoLattice logo, banners and figures used by the notebooks
├── requirements.txt   # every runtime dependency (read by pyproject.toml)
├── pyproject.toml
└── CHANGELOG.md
```

## Development

Install GeoLattice with the `dev` extra, then run the tests from the repository root:

```bash
python3 -m pytest
```

The tests import the installed package, so rebuild and reinstall the wheel after changing files in `src/`. After changing an extra in `pyproject.toml`, run `python3 tools/make_requirements.py` to regenerate `requirements.txt`; `tests/test_requirements.py` fails until the two agree. [CONTRIBUTING.md](https://github.com/zia207/GeoLattice/blob/main/CONTRIBUTING.md) describes how to propose changes.

## License

GeoLattice is released under the MIT License. See [LICENSE](https://github.com/zia207/GeoLattice/blob/main/LICENSE).
