Skip to main content

An advanced geospatial data extraction and processing toolkit for Earth observation datasets.

Project description

🌍 MapMiner

Open in Colab Python Xarray Dask Numba Selenium

MapMiner is a geospatial tool designed to efficiently download and process geospatial data and metadata from various sources. It leverages powerful Python libraries like Selenium, Dask, Numba, and Xarray to provide high-performance data retrieval and processing capabilities for geospatial analysis and visualization.


🚀 Key Features

  • 🌐 Selenium: Automated web interactions for metadata extraction.
  • ⚙️ Dask: Distributed computing to manage large datasets.
  • 🚀 Numba: JIT compilation for accelerating numerical computations.
  • 📊 Xarray: Multi-dimensional array data handling for seamless integration.

📚 Supported Datasets

MapMiner supports a variety of geospatial datasets across multiple categories:

Category Datasets
🌍 Satellite Sentinel-2, Sentinel-1, MODIS, Landsat
🚁 Aerial NAIP
🗺️ Basemap Google, ESRI
📍 Vectors Google Building Footprint, OSM
🏔️ DEM (Digital Elevation Model) Copernicus DEM 30m, ALOS DEM
🌍 LULC (Land Use Land Cover) ESRI LULC
🌾 Crop Layer CDL Crop Mask
🕒 Real-Time Google Maps Real-Time Traffic

🛠 Installation

Ensure you have the necessary dependencies installed:

pip3 install mapminer

📝 Usage

MapMiner provides multiple classes to fetch and process different types of geospatial data:

1️⃣ GoogleBaseMapMiner

from mapminer.miners import GoogleBaseMapMiner
miner = GoogleBaseMapMiner()
ds = miner.fetch(lat=40.748817, lon=-73.985428, radius=500)

2️⃣ CDLMiner

from mapminer.miners import CDLMiner
miner = CDLMiner()
ds = miner.fetch(lon=-95.665, lat=39.8283, radius=10000, daterange="2024-01-01/2024-01-10")

3️⃣ GoogleBuildingMiner

from mapminer.miners import GoogleBuildingMiner
miner = GoogleBuildingMiner()
ds = miner.fetch(lat=34.052235, lon=-118.243683, radius=1000)

4️⃣ NAFNet Model

You can import and use NAFNet directly for downstream tasks like denoising, enhancement, etc.:

from mapminer.models import NAFNet
model = NAFNet(in_channels=12, dim=32,)
output = model(input_tensor)

🖼 Visualizing the Data

You can easily visualize the data fetched using hvplot:

import hvplot.xarray
ds.hvplot.image(title=f"Captured on {ds.attrs['metadata']['date']['value']}")

📦 Dependencies

MapMiner relies on several Python libraries:

  • Selenium: For automated browser control.
  • Dask: For distributed computing and handling large data.
  • Numba: For accelerating numerical operations.
  • Xarray: For handling multi-dimensional array data.
  • EasyOCR: For extracting text from images.
  • HvPlot: For visualizing xarray data.

🛠 Contributing

Contributions are welcome! Fork the repository and submit pull requests. Include tests for any new features or bug fixes.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mapminer-0.1.53.tar.gz (42.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mapminer-0.1.53-py3-none-any.whl (47.8 kB view details)

Uploaded Python 3

File details

Details for the file mapminer-0.1.53.tar.gz.

File metadata

  • Download URL: mapminer-0.1.53.tar.gz
  • Upload date:
  • Size: 42.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.5

File hashes

Hashes for mapminer-0.1.53.tar.gz
Algorithm Hash digest
SHA256 cd737203fe5cfa6ef9a3f92009c2c6cf70892affe2b8f82b507d851ccf5a9972
MD5 3c1e7d70c1cef471c1ff79de4a6866f5
BLAKE2b-256 1a3d7749ae3f8dfc9636ceb76ea2b1d484c779a0f97d767610f7d6e68ae5054a

See more details on using hashes here.

File details

Details for the file mapminer-0.1.53-py3-none-any.whl.

File metadata

  • Download URL: mapminer-0.1.53-py3-none-any.whl
  • Upload date:
  • Size: 47.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.5

File hashes

Hashes for mapminer-0.1.53-py3-none-any.whl
Algorithm Hash digest
SHA256 6ede4d889368350418f1179aa5c822d1821ec198954e5108d95cdcd40e7ed5f6
MD5 2ccf1a4266dd0cbbf7936e48238695b4
BLAKE2b-256 0697ce67b361215da0d5b215645150c14b7eec77b61766c75ff800bf4f5fb225

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page