{ "info": { "author": "Eloy Adonis Colell", "author_email": "gersolar.dev@gmail.com", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Science/Research", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Scientific/Engineering :: Atmospheric Science", "Topic :: Scientific/Engineering :: Bio-Informatics", "Topic :: Scientific/Engineering :: GIS", "Topic :: Scientific/Engineering :: Information Analysis", "Topic :: Scientific/Engineering :: Physics" ], "description": "netcdf\n======\n\n[![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/gersolar/netcdf?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)\n\n[![License](https://img.shields.io/pypi/l/netcdf.svg)](https://raw.githubusercontent.com/gersolar/netcdf/master/LICENSE) [![Downloads](https://img.shields.io/pypi/dm/netcdf.svg)](https://pypi.python.org/pypi/netcdf/) [![Build Status](https://travis-ci.org/gersolar/netcdf.svg?branch=master)](https://travis-ci.org/gersolar/netcdf) [![Coverage Status](https://coveralls.io/repos/gersolar/netcdf/badge.png)](https://coveralls.io/r/gersolar/netcdf) [![Code Health](https://landscape.io/github/gersolar/netcdf/master/landscape.png)](https://landscape.io/github/gersolar/netcdf/master) [![PyPI version](https://badge.fury.io/py/netcdf.svg)](http://badge.fury.io/py/netcdf)\n[![Stories in Ready](https://badge.waffle.io/gersolar/netcdf.png?label=ready&title=Ready)](https://waffle.io/gersolar/netcdf)\n\n\nA python library that allow to use one or multiple NetCDF files in a transparent way through polimorphic methods.\n\n\nRequirements\n------------\n\nIf you want to use this library on any GNU/Linux or OSX system you just need to execute:\n\n $ pip install netcdf\n\nIf you want to improve this library, you should download the [github repository](https://github.com/gersolar/netcdf) and execute:\n\n $ make deploy\n\nThis library is builded over two **C libraries** (named **libhdf5** and **libnetcdf** in *aptitude*). To provide a cross-platform installation, the [setup.py](https://github.com/gersolar/netcdf/blob/master/setup.py) is going to require the **sudo** password to automate the installation of these two libraries.\n\nOn Ubuntu Desktop there are some other libraries not installed by default (zlibc curl libssl0.9.8 libbz2-dev libxslt*-dev libxml*-dev) which may need to be installed to use these library. Use the next command to automate the installation of the additional C libraries:\n\n $ make ubuntu deploy\n\n\nTesting\n-------\n\nTo test all the project you should use the command:\n\n $ make test\n\nIf you want to help us or report an issue join to us through the [GitHub issue tracker](https://github.com/gersolar/netcdf/issues).\n\n\nExample\n--------\n\nIt can open one or multiple files with the same statement. You can use a **pattern**:\n\n```python\nfrom netcdf import netcdf as nc\nroot, is_new = nc.open('file_*.nc')\nprint root.files\n\ndata = nc.getvar(root, 'data')\nprint \"Matrix shape: \", data.shape\nprint \"Matrix values: \", data[:]\n\nnc.close(root)\n```\n\nOr you can open a **list of files**:\n\n```python\nfrom netcdf import netcdf as nc\nroot, is_new = nc.open(['file01.nc', 'file02.nc', 'file03.nc'])\nnc.close(root)\n```\n\nAlso, it is compatible with **numpy**:\n\n```python\nfrom netcdf import netcdf as nc\nimport numpy as np\nroot, is_new = nc.open('file_*.nc')\ndata = nc.getvar(root, 'data')\n\ndata[:] = data[:] + 3.\nprint \"Matrix values: \", data[:]\n# Bulk the data variable into the files.\nnc.sync(root)\n\n# Set to zero all the values of the matrix.\ndata[:] = np.zeros(data.shape)\nprint data[:]\n\nnc.close(root)\n```\nIt also can **join a variable distributed in multiple files** and save it in a single file:\n\n```python\nfrom netcdf import netcdf as nc\nroot, is_new = nc.open('file_*.nc')\nprint root.files\ndata = nc.getvar(root, 'data')\nprint \"Matrix shape: \", data.shape\n\njoined_root, is_new = nc.open('new_file.nc')\nprint joined_root.files\njoined_data = nc.getvar(joined_root, 'copied_data', source=data)\nprint \"Matrix shape: \", joined_data.shape\n\nnc.close(joined_root)\nnc.close(root)\n```\n\nAlso, it can use a **with** statement to reduce the code and guarantee the call to the close function to save changes:\n\n```python\nfrom netcdf import netcdf as nc\nimport numpy as np\nwith nc.loader('new_file.nc') as joined_root:\n with nc.loader(['file01.nc', 'file02.nc', 'file03.nc']) as root:\n data = nc.getvar(root, 'data')\n joined_data = nc.getvar(joined_root, 'copied_data', source=data)\n joined_data[:] = joined_data[:] ** 3 + np.cos(joined_data[:]) * 2\n```\n\nLast, it can use a tiled access to the data through:\n\n```python\nfrom netcdf import netcdf as nc\nimport numpy as np\ndims = {\n 'xc': [20,-20],\n 'yc': [10,50],\n 'time': [-30, None]\n}\n\nwith nc.loader('file0*.nc', dimensions=dims) as root:\n data = nc.getvar(root, 'data')\n print data.shape\n```\n\n\nAbout\n-----\n\nThis software is developed by [GERSolar](http://www.gersol.unlu.edu.ar/). You can contact us to [gersolar.dev@gmail.com](mailto:gersolar.dev@gmail.com).", "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/gersolar/netcdf", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "netcdf", "package_url": "https://pypi.org/project/netcdf/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/netcdf/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/gersolar/netcdf" }, "release_url": "https://pypi.org/project/netcdf/0.2.1/", "requires_dist": null, "requires_python": null, "summary": "A python library that allow to use one or multiple NetCDF files in a transparent way through polimorphic methods.", "version": "0.2.1" }, "last_serial": 1849252, "releases": { "0.0.25": [ { "comment_text": "", "digests": { "md5": "3d6fa5e3130c70ee304807074dab5f52", "sha256": "b15997d554f973c8baccd6bf8ae373d08495f8ddc33e02035a34fcb7ca438bef" }, "downloads": -1, "filename": "netcdf-0.0.25.tar.gz", "has_sig": false, "md5_digest": "3d6fa5e3130c70ee304807074dab5f52", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9549, "upload_time": "2014-07-23T19:40:46", "url": "https://files.pythonhosted.org/packages/1a/ae/fd44797a5fd01e5ab50a1c40762d7ccdd487e07ae2486d3f6d5ce13a5bcc/netcdf-0.0.25.tar.gz" } ], "0.0.25-3-g0246ea3": [], "0.0.26": [], "0.0.27": [ { "comment_text": "", "digests": { "md5": "8ebdd1f830fbeb85e676980f00070806", "sha256": "d38739b1cce9e20abd310e651ea70182eab8b7f867c184f32cb8b4d293d8caf1" }, "downloads": -1, "filename": "netcdf-0.0.27.tar.gz", "has_sig": false, "md5_digest": "8ebdd1f830fbeb85e676980f00070806", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11378, "upload_time": "2014-07-25T14:45:51", "url": "https://files.pythonhosted.org/packages/48/ff/6398b80959829aaf64f7ba684cd004e96e5468d1a20f0b3c40904e33f599/netcdf-0.0.27.tar.gz" } ], "0.0.28": [ { "comment_text": "", "digests": { "md5": "e1eab3f3d4d63df3b301919937db7fd7", "sha256": "1a04c83dddc13bbf1ce7298655e58fcdbbaf39077f505590154441dc6ee1b851" }, "downloads": -1, "filename": "netcdf-0.0.28.tar.gz", "has_sig": false, "md5_digest": "e1eab3f3d4d63df3b301919937db7fd7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12097, "upload_time": "2014-08-23T18:05:46", "url": "https://files.pythonhosted.org/packages/57/f6/38c15286d35257453ac0bdd0a78df022e96df0465d5284485e1a08d4fee5/netcdf-0.0.28.tar.gz" } ], "0.0.29": [ { "comment_text": "", "digests": { "md5": "faaf5cbc84d3fee3240196f39af30d27", "sha256": "972d0204d569ccb71a79e154ecd312ae0ab50c0f359bfdf5ea6f6acf6d1e4ef3" }, "downloads": -1, "filename": "netcdf-0.0.29.tar.gz", "has_sig": false, "md5_digest": "faaf5cbc84d3fee3240196f39af30d27", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12288, "upload_time": "2014-11-14T16:23:38", "url": "https://files.pythonhosted.org/packages/fb/47/c5a01276df1bdc99e2408ca3ed75ca6ee91ba6d47d71ddc1965155823819/netcdf-0.0.29.tar.gz" } ], "0.0.30": [ { "comment_text": "", "digests": { "md5": "f80bfe4bce046c810c8b062cc62ecfdc", "sha256": "ea62425e14a7c84037a862a1b671724b51155759abf790fe2b3cf7fd803bbb91" }, "downloads": -1, "filename": "netcdf-0.0.30.tar.gz", "has_sig": false, "md5_digest": "f80bfe4bce046c810c8b062cc62ecfdc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12499, "upload_time": "2015-01-06T04:00:49", "url": "https://files.pythonhosted.org/packages/2e/c6/ad0f237d6aa5c7666fb15c0c081fbc18793f75ecbb836b60eaaa218e7b3e/netcdf-0.0.30.tar.gz" } ], "0.0.31": [ { "comment_text": "", "digests": { "md5": "6f6298373affb92b69910290c663cff6", "sha256": "a3d3f000a110d62be08a7efbecb008893ed91b1435ac08a894faf04524d88c5c" }, "downloads": -1, "filename": "netcdf-0.0.31.tar.gz", "has_sig": false, "md5_digest": "6f6298373affb92b69910290c663cff6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12495, "upload_time": "2015-04-09T16:14:06", "url": "https://files.pythonhosted.org/packages/a8/e8/41cf0dfbf1c8220cb62b6113391400be08ac7b880a669be06e9e3bd50264/netcdf-0.0.31.tar.gz" } ], "0.0.32": [ { "comment_text": "", "digests": { "md5": "9cb4ccd9863e005bbdf523922a6859f5", "sha256": "6ee040715743a01b368aeb5b3ec803e8a3c23bec5cd49457d56b7b00c1956881" }, "downloads": -1, "filename": "netcdf-0.0.32.tar.gz", "has_sig": false, "md5_digest": "9cb4ccd9863e005bbdf523922a6859f5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16507706, "upload_time": "2015-04-11T19:13:34", "url": "https://files.pythonhosted.org/packages/74/a4/8fceac58f4bc85f8e199cf5943b66a3e28b7f0fc25f9cab58491025935a1/netcdf-0.0.32.tar.gz" } ], "0.1.0": [ { "comment_text": "", "digests": { "md5": "643be40fe257c872ec27c61ff1b9f0fe", "sha256": "2cbd2fad7dc6eec255f08b5b70f9f77e55aeff97c2cc714268df2cedf8c58fc8" }, "downloads": -1, "filename": "netcdf-0.1.0.tar.gz", "has_sig": false, "md5_digest": "643be40fe257c872ec27c61ff1b9f0fe", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16509883, "upload_time": "2015-07-05T02:18:43", "url": "https://files.pythonhosted.org/packages/97/4d/bedced5c1ef0488833a03064005e519e5c3d4ddca70e2c5590809daab3b4/netcdf-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "4edd73e65d693935cb98e27636083ffd", "sha256": "0dc3f7555f2082d27d108f693afd99642d4e505f675e27500fa1533af9f0dc04" }, "downloads": -1, "filename": "netcdf-0.1.1.tar.gz", "has_sig": false, "md5_digest": "4edd73e65d693935cb98e27636083ffd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16510420, "upload_time": "2015-07-09T21:47:09", "url": "https://files.pythonhosted.org/packages/f4/d9/4cb66132d008748a674dfe3c0c712c99c4eb8e4208f7b5e183107788f8b9/netcdf-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "7591ace7200a182a760d3ef18abcb405", "sha256": "f4e3cab8b451a216753805898236aaa32277a3bc1123876d6fe5024cfaa18237" }, "downloads": -1, "filename": "netcdf-0.1.2.tar.gz", "has_sig": false, "md5_digest": "7591ace7200a182a760d3ef18abcb405", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16510525, "upload_time": "2015-07-10T11:52:41", "url": "https://files.pythonhosted.org/packages/13/ca/a250e35326e04e87fd5f6e99cde73b3115cdbe0ae390f5658555eb8609c1/netcdf-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "7fc0714c3a6bf880cd9d12247125c785", "sha256": "876b9256000ae82579339bf071c4fe01fafba2c2c8a3bcbe773b3def6e01783e" }, "downloads": -1, "filename": "netcdf-0.1.3.tar.gz", "has_sig": false, "md5_digest": "7fc0714c3a6bf880cd9d12247125c785", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16510557, "upload_time": "2015-07-10T12:54:27", "url": "https://files.pythonhosted.org/packages/c5/da/1ce5f19891497da9617a8d38827d83a4f8c1296b8f64632b6d4546cab387/netcdf-0.1.3.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "5d703891c5af353a80210dca759ab142", "sha256": "cd7435e636aa8d031547f9c3d73895f16bf3af117f883ed96f25bd1d460f2b0e" }, "downloads": -1, "filename": "netcdf-0.1.4.tar.gz", "has_sig": false, "md5_digest": "5d703891c5af353a80210dca759ab142", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16510562, "upload_time": "2015-09-24T22:13:06", "url": "https://files.pythonhosted.org/packages/56/e2/053e562eee7dcdbdae2d5ff133c6a3abe5e29b9108068015eff888c5630f/netcdf-0.1.4.tar.gz" } ], "0.1.5": [ { "comment_text": "", "digests": { "md5": "ccb5ab0eac0a8a6592b34d5859361b26", "sha256": "f61f1b256fcb078e76f5fcf3bb512775e0cd193de3c97bfecd5e782a87d0be7f" }, "downloads": -1, "filename": "netcdf-0.1.5.tar.gz", "has_sig": false, "md5_digest": "ccb5ab0eac0a8a6592b34d5859361b26", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16510589, "upload_time": "2015-10-01T19:12:12", "url": "https://files.pythonhosted.org/packages/fa/77/27be4b6ca78e40079c62fb964ce4117cf0eb164bfdf3bd1dc7c1f3a62c51/netcdf-0.1.5.tar.gz" } ], "0.1.6": [ { "comment_text": "", "digests": { "md5": "cbfe981f93d0aaa7f33c913320ffca5c", "sha256": "67fb72df8cf01f9aed9c960e505b0960c10848134b5bb6c60da50ce3bdd96f44" }, "downloads": -1, "filename": "netcdf-0.1.6.tar.gz", "has_sig": false, "md5_digest": "cbfe981f93d0aaa7f33c913320ffca5c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16510773, "upload_time": "2015-10-08T17:22:21", "url": "https://files.pythonhosted.org/packages/2d/92/37b105a01399b4d2e86f649f02ba242d5d90364b0d94e284b804cc5254f1/netcdf-0.1.6.tar.gz" } ], "0.1.7": [ { "comment_text": "", "digests": { "md5": "cb000e7a75a06619926f6ab414669545", "sha256": "bdcdac3d523a175ce10cf2a75741bbf79d69e0f5fee0a29d573f9d2d10d1da80" }, "downloads": -1, "filename": "netcdf-0.1.7.tar.gz", "has_sig": false, "md5_digest": "cb000e7a75a06619926f6ab414669545", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16510911, "upload_time": "2015-10-10T11:53:02", "url": "https://files.pythonhosted.org/packages/c0/27/4dcbf047a9b3d53a32743a4ccb4b2b595925acc912c2842b42b32b333799/netcdf-0.1.7.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "5d53f9a52e427a9dd58049159e0a2398", "sha256": "046cbecfb29b24ace9b795b3c215e4ee92790bc757c54ec9594b112b35b1e3d0" }, "downloads": -1, "filename": "netcdf-0.2.0.tar.gz", "has_sig": false, "md5_digest": "5d53f9a52e427a9dd58049159e0a2398", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16510702, "upload_time": "2015-10-31T21:53:22", "url": "https://files.pythonhosted.org/packages/3c/23/b7587e6396f4b0d13cd46c4a019f0d870131eb66a69765e5d36d81543f3d/netcdf-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "87a12daa3abecc6f647a8d4429e40e84", "sha256": "7a993a97da791efb96fa59a665280a61fca64cdf735e3e31e8c1e727f8a16550" }, "downloads": -1, "filename": "netcdf-0.2.1.tar.gz", "has_sig": false, "md5_digest": "87a12daa3abecc6f647a8d4429e40e84", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16510791, "upload_time": "2015-12-06T22:44:54", "url": "https://files.pythonhosted.org/packages/dc/86/8f8e1b532a24f18d0487cd2a95c50ca7f1c41bc58bbba2d4bd6a9ce0fac9/netcdf-0.2.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "87a12daa3abecc6f647a8d4429e40e84", "sha256": "7a993a97da791efb96fa59a665280a61fca64cdf735e3e31e8c1e727f8a16550" }, "downloads": -1, "filename": "netcdf-0.2.1.tar.gz", "has_sig": false, "md5_digest": "87a12daa3abecc6f647a8d4429e40e84", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16510791, "upload_time": "2015-12-06T22:44:54", "url": "https://files.pythonhosted.org/packages/dc/86/8f8e1b532a24f18d0487cd2a95c50ca7f1c41bc58bbba2d4bd6a9ce0fac9/netcdf-0.2.1.tar.gz" } ] }