Skip to main content

Clip & Mosaic multiple TIFF Images with shapefiles.

Project description

Clip Mosaic

Clip & Mosaic multiple TIFF Images with shapefiles.

Python>=3.10

GDAL, rasterio and geopandas must be installed before using

It is recommended that all the tifs to be mosaiced have the same projection, resolution and other metadata. Otherwise, uncertain errors may occur or undesired results may be obtained.

Usage:

# testdata is the folder containing the tif images
from clip_mosaic import ClipMosaic
clipper = ClipMosaic('testdata', True)
clipper.clip_by_shp('testdata/testrange.shp', 'test_clip.tif')

Please read the source code (which is clearly written and easily understood) for more usage. :D

Project details


Download files

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

Source Distribution

clip_mosaic-0.1.0.tar.gz (2.6 kB view hashes)

Uploaded Source

Built Distribution

clip_mosaic-0.1.0-py3-none-any.whl (3.1 kB view hashes)

Uploaded Python 3

Supported by

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