pycoast


Namepycoast JSON
Version 1.7.1 PyPI version JSON
download
home_pageNone
SummaryWriting of coastlines, borders and rivers to images in Python
upload_time2024-07-01 15:59:30
maintainerNone
docs_urlNone
authorEsben S. Nielsen
requires_python>3.9
licenseNone
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            PyCoast
=======

.. image:: https://github.com/pytroll/pycoast/workflows/CI/badge.svg?branch=main
    :target: https://github.com/pytroll/pycoast/actions?query=workflow%3A%22CI%22

.. image:: https://coveralls.io/repos/github/pytroll/pycoast/badge.svg?branch=main
    :target: https://coveralls.io/github/pytroll/pycoast?branch=main

.. image:: https://img.shields.io/pypi/v/pycoast.svg
        :target: https://pypi.python.org/pypi/pycoast

.. image:: https://results.pre-commit.ci/badge/github/pytroll/pycoast/main.svg
   :target: https://results.pre-commit.ci/latest/github/pytroll/pycoast/main
   :alt: pre-commit.ci status

Python package for adding coastlines, borders, rivers, lakes, cities, and other
overlays to raster images.

Installation
------------

PyCoast can be installed from PyPI using pip::

    pip install pycoast

Or with conda using the conda-forge channel::

    conda install -c conda-forge pycoast

Example
-------

::

    >>> from PIL import Image
    >>> from pycoast import ContourWriterAGG
    >>> img = Image.open('BMNG_clouds_201109181715_areaT2.png')
    >>> proj4_string = '+proj=stere +lon_0=8.00 +lat_0=50.00 +lat_ts=50.00 +ellps=WGS84'
    >>> area_extent = (-3363403.31,-2291879.85,2630596.69,2203620.1)
    >>> area_def = (proj4_string, area_extent)
    >>> cw = ContourWriterAGG('/home/esn/data/gshhs')
    >>> cw.add_coastlines(img, area_def, resolution='l', level=4)
    >>> cw.add_rivers(img, area_def, level=5, outline='blue')
    >>> cw.add_borders(img, area_def, outline=(255, 0, 0))
    >>> img.show()

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "pycoast",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">3.9",
    "maintainer_email": null,
    "keywords": null,
    "author": "Esben S. Nielsen",
    "author_email": "esn@dmi.dk",
    "download_url": "https://files.pythonhosted.org/packages/5b/ad/e97cb6bc778ea90b945c92a937081c06b5054fbc68a2d7bbd8fdc1a9394c/pycoast-1.7.1.tar.gz",
    "platform": null,
    "description": "PyCoast\n=======\n\n.. image:: https://github.com/pytroll/pycoast/workflows/CI/badge.svg?branch=main\n    :target: https://github.com/pytroll/pycoast/actions?query=workflow%3A%22CI%22\n\n.. image:: https://coveralls.io/repos/github/pytroll/pycoast/badge.svg?branch=main\n    :target: https://coveralls.io/github/pytroll/pycoast?branch=main\n\n.. image:: https://img.shields.io/pypi/v/pycoast.svg\n        :target: https://pypi.python.org/pypi/pycoast\n\n.. image:: https://results.pre-commit.ci/badge/github/pytroll/pycoast/main.svg\n   :target: https://results.pre-commit.ci/latest/github/pytroll/pycoast/main\n   :alt: pre-commit.ci status\n\nPython package for adding coastlines, borders, rivers, lakes, cities, and other\noverlays to raster images.\n\nInstallation\n------------\n\nPyCoast can be installed from PyPI using pip::\n\n    pip install pycoast\n\nOr with conda using the conda-forge channel::\n\n    conda install -c conda-forge pycoast\n\nExample\n-------\n\n::\n\n    >>> from PIL import Image\n    >>> from pycoast import ContourWriterAGG\n    >>> img = Image.open('BMNG_clouds_201109181715_areaT2.png')\n    >>> proj4_string = '+proj=stere +lon_0=8.00 +lat_0=50.00 +lat_ts=50.00 +ellps=WGS84'\n    >>> area_extent = (-3363403.31,-2291879.85,2630596.69,2203620.1)\n    >>> area_def = (proj4_string, area_extent)\n    >>> cw = ContourWriterAGG('/home/esn/data/gshhs')\n    >>> cw.add_coastlines(img, area_def, resolution='l', level=4)\n    >>> cw.add_rivers(img, area_def, level=5, outline='blue')\n    >>> cw.add_borders(img, area_def, outline=(255, 0, 0))\n    >>> img.show()\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Writing of coastlines, borders and rivers to images in Python",
    "version": "1.7.1",
    "project_urls": null,
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "136e234ba192727f584fdc9f643483c899d0e38f66d39bba0dd35e722b4fd0f7",
                "md5": "ee8a7def8e31b45d6dd38eb301b13167",
                "sha256": "f76f0c0421af5c544d2868bdd39f82018b5ff1c9f5ebe8ce897077628c3a8180"
            },
            "downloads": -1,
            "filename": "pycoast-1.7.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "ee8a7def8e31b45d6dd38eb301b13167",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">3.9",
            "size": 7414335,
            "upload_time": "2024-07-01T15:59:28",
            "upload_time_iso_8601": "2024-07-01T15:59:28.017549Z",
            "url": "https://files.pythonhosted.org/packages/13/6e/234ba192727f584fdc9f643483c899d0e38f66d39bba0dd35e722b4fd0f7/pycoast-1.7.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5bade97cb6bc778ea90b945c92a937081c06b5054fbc68a2d7bbd8fdc1a9394c",
                "md5": "1e6a6eab8113026cc02916f2cbb8a613",
                "sha256": "301d8fcf38805f23ddbcbfbf2e9bd6c466aaee92553ffceccee0f2b7ad7e3637"
            },
            "downloads": -1,
            "filename": "pycoast-1.7.1.tar.gz",
            "has_sig": false,
            "md5_digest": "1e6a6eab8113026cc02916f2cbb8a613",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">3.9",
            "size": 12666953,
            "upload_time": "2024-07-01T15:59:30",
            "upload_time_iso_8601": "2024-07-01T15:59:30.620522Z",
            "url": "https://files.pythonhosted.org/packages/5b/ad/e97cb6bc778ea90b945c92a937081c06b5054fbc68a2d7bbd8fdc1a9394c/pycoast-1.7.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-07-01 15:59:30",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "pycoast"
}
        
Elapsed time: 0.33229s