{
"info": {
"author": "Virginia Ng",
"author_email": "virginia@mapbox.com",
"bugtrack_url": null,
"classifiers": [],
"description": "==============\nrio-pansharpen\n==============\n.. image:: https://img.shields.io/pypi/v/rio-pansharpen.svg\n :target: https://img.shields.io/pypi/v/rio-pansharpen.svg\n\n.. image:: https://circleci.com/gh/mapbox/rio-pansharpen.svg?style=shield&circle\n :target: https://circleci.com/gh/mapbox/rio-pansharpen\n\npansharpens Landsat 8 scenes.\n\nWhat is pansharpening?\n======================\nPansharpening is a process of using the spatial information in the high-resolution grayscale band (panchromatic, or pan-band) and color information in the multispectral bands to create a single high-resolution color image.\n\n::\n \n P pan-pixel cluster + M single multispectral pixel = M pan-sharpened pixel\n\nFind more examples and information in the `Mapbox pansharpening blog post `_.\n\nInstall\n=======\n\nWe highly recommend installing in a virtualenv. Once activated,\n::\n\n pip install -U pip\n pip install rio-pansharpen\n\nOr install from source\n::\n\n git checkout https://github.com/mapbox/rio-pansharpen.git\n cd rio-pansharpen\n pip install -U pip\n pip install -r requirements.txt\n pip install -e .\n\n\n\nPython API\n==========\n\npansharpen.worker\n-----------------\nThe ``worker`` module pansharpens Landsat 8. Visit the `USGS Landsat page `_ page for more information on Landsat 8 band designations.\n\n1. ``worker.pansharpen``\n------------------------\nThe ``worker.pansharpen`` function accepts the following as inputs:\n\n- numpy 3D array with shape == (3, vis_height, vis_width)\n- affine transform defining the georeferencing of the vis array \n- numpy 2D array with shape == (pan_height, pan_width)\n- affine transform defining the georeferencing of the pan array \n- pansharpening method\n\nand outputs:\n\n- numpy 3D array with shape == (3, pan_height, pan_width)\n\n::\n\n >>> from pansharpen import worker\n >>> from pansharpen.methods import Brovey\n ...\n >>> pansharpened = worker.pansharpen(vis, vis_transform, pan, pan_transform,\n pan_dtype, r_crs, dst_crs, weight,\n method=\"Brovey\", src_nodata=0)\n\n\n\n2. ``worker.calculate_landsat_pansharpen``\n------------------------------------------\n::\n\n >>> from pansharpen import worker\n >>> from pansharpen.utils import _calc_windows\n >>> import riomucho\n ...\n >>> worker.calculate_landsat_pansharpen(src_paths, dst_path, dst_dtype,\n weight, verbosity, jobs, half_window,\n customwindow)\n\n\n\nCLI\n===\n\n\npansharpen\n----------\n\n\n::\n\n Usage: rio pansharpen [OPTIONS] [SRC_PATHS]... DST_PATH\n\n Pansharpens a landsat scene. Input is a panchromatic band (B8), plus 3 color\n bands (B4, B3, B2)\n\n rio pansharpen B8.tif B4.tif B3.tif B2.tif out.tif\n\n Or with shell expansion\n\n rio pansharpen LC80410332015283LGN00_B{8,4,3,2}.tif out.tif\n\n Options:\n --dst-dtype [uint16|uint8]\n -w, --weight FLOAT Weight of blue band [default = 0.2]\n -v, --verbosity\n -j, --jobs INTEGER Number of processes [default = 1]\n --half-window Use a half window assuming pan in aligned with\n rgb bands, default: False\n -c, --customwindow INTEGER Specify blocksize for custom windows >\n 150[default=src_blockswindows]\n --help Show this message and exit.\n --help Show this message and exit.\n\n\n\n\nComparison of Different Pansharpening Methods\n---------------------------------------------\nWe've implemented the Weighted Brovey Transform for pansharpening, which is appropriate for data like Landsat where the panchromatic band is relatively similar in resolution to the color bands.\n\nFor more information on other pansharpening methods such as IHS, PCA, P+XS, Wavelet, VWP, Wavelet with Canny Edge Detector etc, please read our notes `here `_.\n",
"description_content_type": null,
"docs_url": null,
"download_url": "UNKNOWN",
"downloads": {
"last_day": -1,
"last_month": -1,
"last_week": -1
},
"home_page": "https://github.com/mapbox/rio-pansharpen",
"keywords": "",
"license": "MIT",
"maintainer": null,
"maintainer_email": null,
"name": "rio-pansharpen",
"package_url": "https://pypi.org/project/rio-pansharpen/",
"platform": "UNKNOWN",
"project_url": "https://pypi.org/project/rio-pansharpen/",
"project_urls": {
"Download": "UNKNOWN",
"Homepage": "https://github.com/mapbox/rio-pansharpen"
},
"release_url": "https://pypi.org/project/rio-pansharpen/0.2.0/",
"requires_dist": null,
"requires_python": null,
"summary": "rio-pansharpen",
"version": "0.2.0"
},
"last_serial": 2331941,
"releases": {
"0.1.0": [
{
"comment_text": "",
"digests": {
"md5": "28098baa8b20cd37d2f7da55d8cadcfc",
"sha256": "76db161face5b52c379ae92d0a73e017c237572adddd950e02921c849adf951d"
},
"downloads": -1,
"filename": "rio-pansharpen-0.1.0.tar.gz",
"has_sig": false,
"md5_digest": "28098baa8b20cd37d2f7da55d8cadcfc",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 6376,
"upload_time": "2016-08-05T22:09:29",
"url": "https://files.pythonhosted.org/packages/68/f5/52c3a898627801971c08ed532d83d2366407c70016d27bca88d0abaefcd9/rio-pansharpen-0.1.0.tar.gz"
}
],
"0.1.1": [
{
"comment_text": "",
"digests": {
"md5": "52500751f05402551cd3e1128bd5416e",
"sha256": "229d57ed3983698a6943851fe8943f5d7a7de6aebdeed7c7f0094f971757f37d"
},
"downloads": -1,
"filename": "rio-pansharpen-0.1.1.tar.gz",
"has_sig": false,
"md5_digest": "52500751f05402551cd3e1128bd5416e",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 5348,
"upload_time": "2016-08-05T22:42:01",
"url": "https://files.pythonhosted.org/packages/0c/6d/2bb888fad64f43e6b9f9dcfeff61e674c49e402c3bbc14a54bb13553659a/rio-pansharpen-0.1.1.tar.gz"
}
],
"0.2.0": [
{
"comment_text": "",
"digests": {
"md5": "530d6b53eab95720bb9df3a73b7e6a27",
"sha256": "e9e9cf3515e0302e0842a30888c0ed9b026cb97a616df6e463286a937372f25a"
},
"downloads": -1,
"filename": "rio-pansharpen-0.2.0.tar.gz",
"has_sig": false,
"md5_digest": "530d6b53eab95720bb9df3a73b7e6a27",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 6552,
"upload_time": "2016-09-08T17:36:58",
"url": "https://files.pythonhosted.org/packages/ac/2c/403daf21023a61a8a2a4993f04377707074c4492dc5ee893698b594dfad2/rio-pansharpen-0.2.0.tar.gz"
}
]
},
"urls": [
{
"comment_text": "",
"digests": {
"md5": "530d6b53eab95720bb9df3a73b7e6a27",
"sha256": "e9e9cf3515e0302e0842a30888c0ed9b026cb97a616df6e463286a937372f25a"
},
"downloads": -1,
"filename": "rio-pansharpen-0.2.0.tar.gz",
"has_sig": false,
"md5_digest": "530d6b53eab95720bb9df3a73b7e6a27",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 6552,
"upload_time": "2016-09-08T17:36:58",
"url": "https://files.pythonhosted.org/packages/ac/2c/403daf21023a61a8a2a4993f04377707074c4492dc5ee893698b594dfad2/rio-pansharpen-0.2.0.tar.gz"
}
]
}