geomaster
Skill này làm gì
GeoMaster là công cụ phân tích dữ liệu địa lý. Nó giúp làm việc với ảnh vệ tinh, bản đồ (vector và raster), thống kê không gian và học máy để tìm hiểu Trái Đất.
Khi nào nên dùng
- ✓Khi xử lý ảnh vệ tinh.
- ✓Khi kết hợp hoặc so sánh bản đồ từ các nguồn khác nhau.
- ✓Khi phân tích các mẫu trong dữ liệu vị trí.
Liên kết skill
https://github.com/K-Dense-AI/scientific-agent-skills/blob/main/skills/geomaster/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Phân tích ảnh vệ tinh này để xác định các khu vực bị phá rừng.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
GeoMaster sắp xếp dữ liệu địa lý, kiểm tra thông tin nguồn và đảm bảo các bản đồ được căn chỉnh đúng trước khi thực hiện phân tích phức tạp.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
GeoMaster
Geospatial analysis across vector/raster GIS, remote sensing, spatial ML, terrain, networks, and scientific applications. Start with the relevant workflow, inspect input provenance, and load only the reference needed for the task.
Tested scope and installation
The local recipe suite targets GeoPandas 1.2.0, Rasterio 1.5.2, Shapely 2.1.2, PyProj 3.8.0, Rioxarray 0.23.0, Xarray 2026.9.0, OSMnx 2.1.1 and PySTAC Client 0.9.0. See review and source ledger for execution limits. Examples requiring actual input files are templates; authenticated Earth Engine/CDS/commercial services, desktop GIS and GPU training remain illustrative.
# In a dedicated environment; install only the workflow's optional dependencies.
uv venv --python 3.13
uv pip install geopandas==1.2.0 rasterio==1.5.2 shapely==2.1.2 pyproj==3.8.0
uv pip install rioxarray==0.23.0 xarray==2026.9.0 'dask[array]' scikit-learn==1.9.1
uv pip install pystac-client==0.9.0 planetary-computer==1.0.0 odc-stac
# For osgeo/native CLI or PDAL, use a separate conda-forge environment:
# conda create -n geo-native -c conda-forge python=3.13 gdal pdal python-pdal
Install TorchGeo/PyTorch, RSGISLib, Py6S/6S, ArcPy, QGIS or other specialist
runtimes separately when required. A Rasterio wheel includes its own GDAL library;
it does not install osgeo or the GDAL command-line programs.
Workflow
- Record product/collection ID, acquisition time, processing baseline, license, band names, scale/offset, QA meaning, horizontal/vertical CRS and units.
- Verify CRS from authoritative metadata.
set_crslabels coordinates;to_crstransforms them. Never infer an unknown CRS from plausible bounds. - Align extent, affine transform, dimensions, pixel registration and resolution. Reproject categorical masks with nearest-neighbor resampling; choose an appropriate resampler for continuous data. Matching array shape alone does not prove alignment.
- Preserve nodata, clouds, shadows and saturation masks. Convert unsigned integers to floating point before differences; apply the provider's radiometric transform once.
- Run the analysis at a defensible support/resolution. Keep training labels and validation blocks separate. Terrain elevation and horizontal units must agree.
- Export CRS, transform, valid-data mask, units, model settings and provenance. Check numeric expectations on a small known fixture before scaling up.
Local raster recipes
Import the bundled raster helper from its directory
(add that directory to PYTHONPATH or run from it). It implements small in-memory
recipes; use windows/Dask for larger data. Writers require a new output path. It does not infer band identities or masks.
NDVI
from raster_workflows import write_ndvi
# This example assumes a VERIFIED four-band B02/B03/B04/B08 stack whose mask
# already excludes clouds/shadows, and harmonized DN reflectance = DN * 0.0001.
write_ndvi('s2_masked_stack.tif', 'ndvi.tif', red_band=3, nir_band=4,
scale=0.0001, offset=0.0)
Do not use those indices or calibration for an arbitrary sentinel2.tif.
SAFE products and STAC assets are often separate single-band rasters. Additive
radiometric offsets affect even NDVI. EVI/SAVI require physical reflectance.
normalized_difference keeps undefined ratios and invalid cells as NaN, not zero.
Terrain
import rasterio
from raster_workflows import terrain_metrics
with rasterio.open('dem_metres.tif') as src:
slope_deg, aspect_deg, shade = terrain_metrics(
src.read(1, masked=True), src.transform, src.crs)
The helper requires a north-up projected metric grid and elevations in metres. Aspect points downslope clockwise from north; it is undefined for flat cells. Slope is resolution-aware; nodata contaminating a derivative stencil stays invalid. Hillshade is an illumination visualization, not hydrological flow or exposure risk.
Classification
import geopandas as gpd
from raster_workflows import classify_imagery
training = gpd.read_file('training.gpkg') # polygons with class_id in 1..65534
model = classify_imagery('masked_features.tif', training, 'classified.tif')
The helper checks CRS, geometry, labels, valid training pixels and overlapping labels, then preserves nodata in a uint16 output. It fits a small demonstration model; it does not measure accuracy. Use spatial/temporal holdouts at the field,
…
Câu hỏi thường gặp
Dữ liệu vector và raster là gì?
Dữ liệu raster giống như ảnh, gồm các điểm ảnh trong lưới, ví dụ ảnh vệ tinh. Dữ liệu vector giống như hình vẽ, gồm điểm, đường và đa giác, ví dụ ranh giới thành phố hoặc sông.
CRS là gì?
CRS là viết tắt của Coordinate Reference System (hệ quy chiếu tọa độ). Nó giống như địa chỉ của dữ liệu địa lý, cho biết vị trí của dữ liệu trên thế giới và cách đo khoảng cách, diện tích.
Tôi có thể dùng với mọi ảnh vệ tinh không?
GeoMaster hoạt động tốt nhất với dữ liệu từ các nguồn cụ thể và cần ảnh ở định dạng tương thích, có thông tin rõ ràng về tọa độ và cách xử lý.
Chi tiết
Mô tả gốc của tác giả
Supports geospatial research workflows for remote sensing, vector and raster GIS, spatial statistics, terrain and network analysis, and machine learning for Earth observation. Use when processing satellite imagery, aligning coordinate systems and raster grids, accessing STAC catalogs, analyzing geospatial time series, or implementing scientific GIS workflows in Python, R, Julia, JavaScript, C++, J
Độ phổ biến
- Sao GitHub
- 51k
- Vị trí xếp hạng
- #3469
- Giấy phép
- MIT
- Cập nhật
- 15/10/2026
Bình luận
- …
Thêm skill từ kho mã này
13c-metabolic-flux
51kƯớc tính thông lượng chuyển hóa bằng dữ liệu theo dõi đồng vị carbon-13. Hữu ích để phân tích chuyển hóa tế bào và các con đường sinh hóa.
adaptyv
51kThiết kế thí nghiệm đặc trưng protein bằng Adaptyv API. Hỗ trợ ước tính chi phí, gửi trình tự và theo dõi kết quả phòng thí nghiệm.
aeon
51kThực hiện các tác vụ học máy trên dữ liệu chuỗi thời gian. Hữu ích để phân loại, dự báo, phát hiện bất thường và tìm mẫu trong dữ liệu tuần tự.
alphagenome
51kTra cứu các tác động di truyền đã được tính trước cho biến thể gen. Cung cấp điểm số và giải thích để hiểu ảnh hưởng của biến thể lên bộ gen.
Skill tương tự
gitcrawl
394kCho phép agent của bạn tìm trong kho lưu trữ issue và pull request GitHub, gom các mục trùng lặp và kiểm tra trạng thái hiện tại trên GitHub.
slacrawl
394kCho phép agent của bạn tìm và đếm tin nhắn trong kho lưu trữ Slack cục bộ, kiểm tra kho đó mới đến mức nào và làm mới khi cần.
goplaces
394kGiúp agent của bạn tìm địa điểm, lấy chi tiết và đánh giá, và xác định tên địa điểm bằng Google Places, với đầu ra JSON cho script.