ncconvert


Namencconvert JSON
Version 0.1.4 PyPI version JSON
download
home_page
SummaryConvert netCDF to other formats.
upload_time2023-09-26 18:11:31
maintainer
docs_urlNone
author
requires_python>=3.8
licenseSimplified BSD ____________________________________________ Copyright 2023 Battelle Memorial Institute Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
keywords netcdf cdf nc
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # nc-convert

[![main](https://github.com/tsdat/ncconvert/actions/workflows/pytest.yml/badge.svg)](https://github.com/tsdat/ncconvert/actions/workflows/pytest.yml)

Convert netCDF files to other formats

## Usage

```shell
pip install "ncconvert[cli]"
ncconvert to_csv data/*.nc --output-dir output_data/ --verbose
```

Formats other than csv are also supported. To see more information about supported formats, run

```shell
ncconvert --help
```

A python API is also available for each format, e.g.:

```python
import xarray as xr
from ncconvert import to_csv

ds = xr.open_dataset("netcdf-file.nc")

to_csv(ds, "output_folder/filename.csv")
```

## Developing

Create a python environment using at least python 3.8, then install the requirements:

```shell
pip install ".[dev,cli]"
```

Run `make coverage` to generate a report of test coverage.

Releasing the package is as simple as creating a tagged release in GitHub. Make sure to create a new tag using `vX.Y.Z`
format, where `X` is the major version, `Y` is the minor version, and `Z` is the micro version. Set the release title
to `X.Y.Z`.

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "ncconvert",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": "",
    "keywords": "netCDF,cdf,nc",
    "author": "",
    "author_email": "tsdat <tsdat@pnnl.gov>",
    "download_url": "https://files.pythonhosted.org/packages/74/2a/b8494d635d63fdaf33d03b87b15abf3a4ad1cdde534fc304f930230a4d45/ncconvert-0.1.4.tar.gz",
    "platform": null,
    "description": "# nc-convert\n\n[![main](https://github.com/tsdat/ncconvert/actions/workflows/pytest.yml/badge.svg)](https://github.com/tsdat/ncconvert/actions/workflows/pytest.yml)\n\nConvert netCDF files to other formats\n\n## Usage\n\n```shell\npip install \"ncconvert[cli]\"\nncconvert to_csv data/*.nc --output-dir output_data/ --verbose\n```\n\nFormats other than csv are also supported. To see more information about supported formats, run\n\n```shell\nncconvert --help\n```\n\nA python API is also available for each format, e.g.:\n\n```python\nimport xarray as xr\nfrom ncconvert import to_csv\n\nds = xr.open_dataset(\"netcdf-file.nc\")\n\nto_csv(ds, \"output_folder/filename.csv\")\n```\n\n## Developing\n\nCreate a python environment using at least python 3.8, then install the requirements:\n\n```shell\npip install \".[dev,cli]\"\n```\n\nRun `make coverage` to generate a report of test coverage.\n\nReleasing the package is as simple as creating a tagged release in GitHub. Make sure to create a new tag using `vX.Y.Z`\nformat, where `X` is the major version, `Y` is the minor version, and `Z` is the micro version. Set the release title\nto `X.Y.Z`.\n",
    "bugtrack_url": null,
    "license": "Simplified BSD ____________________________________________ Copyright 2023 Battelle Memorial Institute  Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ",
    "summary": "Convert netCDF to other formats.",
    "version": "0.1.4",
    "project_urls": null,
    "split_keywords": [
        "netcdf",
        "cdf",
        "nc"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "43936ffd374b655a06783f7be342b1aadf94f67053c419c154c31a30f7683d92",
                "md5": "18dce844c6170a3e385c589af1b66859",
                "sha256": "ae05b1eb88bf32518ce89faf4fa8a1ea87527d6af0472e3f6fb23576104b73b6"
            },
            "downloads": -1,
            "filename": "ncconvert-0.1.4-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "18dce844c6170a3e385c589af1b66859",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 10121,
            "upload_time": "2023-09-26T18:11:29",
            "upload_time_iso_8601": "2023-09-26T18:11:29.584950Z",
            "url": "https://files.pythonhosted.org/packages/43/93/6ffd374b655a06783f7be342b1aadf94f67053c419c154c31a30f7683d92/ncconvert-0.1.4-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "742ab8494d635d63fdaf33d03b87b15abf3a4ad1cdde534fc304f930230a4d45",
                "md5": "a6e7dd181041c6ec9a00d1dc121b7b7f",
                "sha256": "13bc81ca5ed65cb31d138f786f248d1fd340a0a798c3b77a7ac961ca4b1999f8"
            },
            "downloads": -1,
            "filename": "ncconvert-0.1.4.tar.gz",
            "has_sig": false,
            "md5_digest": "a6e7dd181041c6ec9a00d1dc121b7b7f",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 12921,
            "upload_time": "2023-09-26T18:11:31",
            "upload_time_iso_8601": "2023-09-26T18:11:31.441040Z",
            "url": "https://files.pythonhosted.org/packages/74/2a/b8494d635d63fdaf33d03b87b15abf3a4ad1cdde534fc304f930230a4d45/ncconvert-0.1.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-09-26 18:11:31",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "ncconvert"
}
        
Elapsed time: 0.11773s