技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
rasterio【数据与研究】Routes Rasterio dataset I/O, windowed processing, in-memory files, raster/vector feature workflows, reprojection and mosaicking, and rio CLI tasks.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Rasterio reads and writes geospatial raster data with a NumPy-friendly API and a rio command-line interface.
Start here when a user wants to open a raster, inspect metadata, crop or mask by geometry, reproject into a new CRS, merge overlapping scenes, process a raster in windows, or choose the right rio command.
For a local checkout, install from the repository root:
python -m pip install -e .
For a released environment, install the package directly:
python -m pip install rasterio
Rasterio 1.5.x requires Python 3.12+ and a working GDAL/PROJ-backed build or wheel. Optional extras exist for cloud access, plotting, and IPython-based inspection.
Minimal verification:
python -I -c "import rasterio; print(rasterio.__version__)"
rio --help
For a repo-independent smoke check, use scripts/check_install.py.
Read references/repo-provenance.md when you need to confirm whether this skill still matches the current checkout.
sub-skills/dataset-io-profiles/.Window, block reads/writes, MemoryFile, ZIP/VSI paths, or custom openers, start with sub-skills/windows-memory-vsi/.sub-skills/features-masks/.WarpedVRT, merge, or stack, start with sub-skills/reprojection-merge-vrt/.rio command syntax, safe flags, or Click-style parse troubleshooting, start with sub-skills/rio-cli/.If a request spans several topics, pick the most specific sub-skill first and then follow the cross-links inside that sub-skill.
dataset-io-profilesUse this for ordinary raster inspection and creation tasks:
rasterio.openDatasetReader / DatasetWriterprofile / metawindows-memory-vsiUse this for data that should be processed in chunks, kept in memory, or opened through archive/path abstractions:
Windowblock_windowsMemoryFileZipMemoryFilezip:// / file:// / GDAL VSI path handlingfeatures-masksUse this for geometry-driven raster/vector conversion and mask cleanup:
shapesrasterizesievegeometry_windowmask / raster_geometry_maskreprojection-merge-vrtUse this for CRS changes and mosaics:
transform / transform_geom / transform_boundscalculate_default_transformreprojectWarpedVRTmerge / stackrio-cliUse this for shell workflows:
rio info, bounds, transform, clip, warp, mask, rasterize, shapes, merge, stack, create, convert, env, and inspreferences/troubleshooting.md — cross-cutting install/import, driver, and optional-extra failures.scripts/check_install.py — safe install/import/CLI smoke helper that does not depend on the original checkout.rasterio[s3] for cloud/object storage access.rasterio[plot] for plotting helpers.rasterio[ipython] for rio insp --ipython.examples/, tests/, or docs/ in the original checkout at runtime.If the repo commit, public package version, or CLI/API surface changes, refresh this skill before relying on it.