{ "info": { "author": "Mahe Perrette", "author_email": "mahe.perrette@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "Introduction\n============\n\n.. image:: https://travis-ci.org/perrette/dimarray.svg?branch=master\n :target: https://travis-ci.org/perrette/dimarray\n\nNumpy array with dimensions\n---------------------------\ndimarray is a package to handle numpy arrays with labelled dimensions and axes. \nInspired from pandas, it includes advanced alignment and reshaping features and \nas well as missing-value (NaN) handling.\n\nThe main difference with pandas is that it is generalized to N dimensions, and behaves more closely to a numpy array. \nThe axes do not have fixed names ('index', 'columns', etc...) but are \ngiven a meaningful name by the user (e.g. 'time', 'items', 'lon' ...). \nThis is especially useful for high dimensional problems such as sensitivity analyses.\n\nA natural I/O format for such an array is netCDF, common in geophysics, which relies on \nthe netCDF4 package, and supports metadata.\n\n\nLicense\n-------\ndimarray is distributed under a 3-clause (\"Simplified\" or \"New\") BSD\nlicense. Parts of basemap which have BSD compatible licenses are included.\nSee the LICENSE file, which is distributed with the dimarray package, for details.\n\nGetting started\n---------------\n\nA **``DimArray``** can be defined just like a numpy array, with\nadditional information about its dimensions, which can be provided\nvia its `axes` and `dims` parameters:\n\n>>> from dimarray import DimArray\n>>> a = DimArray([[1.,2,3], [4,5,6]], axes=[['a', 'b'], [1950, 1960, 1970]], dims=['variable', 'time']) \n>>> a\ndimarray: 6 non-null elements (0 null)\n0 / variable (2): 'a' to 'b'\n1 / time (3): 1950 to 1970\narray([[1., 2., 3.],\n [4., 5., 6.]])\n\nIndexing now works on axes\n\n>>> a['b', 1970]\n6.0\n\nOr can just be done **a la numpy**, via integer index:\n\n>>> a.ix[0, -1]\n3.0\n\nBasic numpy transformations are also in there:\n\n>>> a.mean(axis='time')\ndimarray: 2 non-null elements (0 null)\n0 / variable (2): 'a' to 'b'\narray([2., 5.])\n\nCan export to `pandas` for pretty printing:\n\n>>> a.to_pandas()\ntime 1950 1960 1970\nvariable \na 1.0 2.0 3.0\nb 4.0 5.0 6.0\n\n\n.. _links:\n\nUseful links\n------------\n================================ ====================================\nDocumentation http://dimarray.readthedocs.org\nCode on github (bleeding edge) https://github.com/perrette/dimarray\nCode on pypi (releases) https://pypi.python.org/pypi/dimarray\nMailing List http://groups.google.com/group/dimarray\nIssues Tracker https://github.com/perrette/dimarray/issues\n================================ ====================================\n\nInstall\n-------\n\n**Requirements**:\n\n- python >= 2.7, 3\n- numpy (tested with 1.7, 1.8, 1.9, 1.10.1, 1.15)\n\n**Optional**:\n\n- netCDF4 (tested with 1.0.8, 1.2.1) (netCDF archiving) (see notes below)\n- matplotlib 1.1 (plotting)\n- pandas 0.11 (interface with pandas)\n\nDownload the latest version from github and extract from archive\nThen from the dimarray repository type (possibly preceded by sudo):\n\n.. code:: bash\n\n python setup.py install \n\nAlternatively, you can use pip to download and install the version from pypi (could be slightly out-of-date):\n\n.. code:: bash\n\n pip install dimarray \n\n\nNotes on installing netCDF4\n^^^^^^^^^^^^^^^^^^^^^^^^^^^\n- On Ubuntu, using apt-get is the easiest way (as indicated at https://github.com/Unidata/netcdf4-python/blob/master/.travis.yml):\n\n\n.. code:: bash\n\n sudo apt-get install libhdf5-serial-dev netcdf-bin libnetcdf-dev\n\n- On windows binaries are available: http://www.unidata.ucar.edu/software/netcdf/docs/winbin.html\n\n- From source. Installing the netCDF4 python module from source can be cumbersome, because \nit depends on netCDF4 and (especially) HDF5 C libraries that need to \nbe compiled with specific flags (http://unidata.github.io/netcdf4-python). \nDetailled information on Ubuntu: https://code.google.com/p/netcdf4-python/wiki/UbuntuInstall\n\nContributions\n-------------\nAll suggestions for improvement or direct contributions are very welcome.\nYou can ask a question or start a discussion on the mailing list\nor open an `issue` on github for precise requests. See `links`_.\n\n\n", "description_content_type": "", "docs_url": "https://pythonhosted.org/dimarray/", "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/perrette/dimarray", "keywords": "labelled array,numpy,larry,pandas", "license": "BSD 3-Clause", "maintainer": "", "maintainer_email": "", "name": "dimarray", "package_url": "https://pypi.org/project/dimarray/", "platform": "", "project_url": "https://pypi.org/project/dimarray/", "project_urls": { "Homepage": "https://github.com/perrette/dimarray" }, "release_url": "https://pypi.org/project/dimarray/1.0/", "requires_dist": [ "numpy (>=1.7)", "future" ], "requires_python": "", "summary": "numpy array with labelled dimensions and axes, dimension, NaN handling and netCDF I/O", "version": "1.0" }, "last_serial": 4357668, "releases": { "0.1.1": [ { "comment_text": "", "digests": { "md5": "153f4437cef965e14a70ef50e3996e81", "sha256": "a7ddb548b0557f573b8c05e289e6c733b5a09838d762ad50ad747c831b3f3117" }, "downloads": -1, "filename": "dimarray-0.1.1.tar.gz", "has_sig": false, "md5_digest": "153f4437cef965e14a70ef50e3996e81", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 68998, "upload_time": "2014-02-03T04:54:16", "url": "https://files.pythonhosted.org/packages/a1/58/545ff35169e200f8f83edfe92f148c5e89f88b54700547b2d53416c059e2/dimarray-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "3aa78c0afd7c3218d743146ba379cbf7", "sha256": "5a5225fad07c105b00b8e9404c85d1ad568f6106090533d225a20bb5fbed79f4" }, "downloads": -1, "filename": "dimarray-0.1.2.tar.gz", "has_sig": false, "md5_digest": "3aa78c0afd7c3218d743146ba379cbf7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 74415, "upload_time": "2014-02-07T21:19:35", "url": "https://files.pythonhosted.org/packages/55/e0/efd3510742e3ae90b8ad918b9310b9da43de2bb420691489471a58836771/dimarray-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "34d52bb9dd9f02483feced5d6181331d", "sha256": "53b9062a159021a0dbef290581de7d90d3eb34312ab1af5f11950f40363b372e" }, "downloads": -1, "filename": "dimarray-0.1.3.tar.gz", "has_sig": false, "md5_digest": "34d52bb9dd9f02483feced5d6181331d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 80006, "upload_time": "2014-03-25T09:08:19", "url": "https://files.pythonhosted.org/packages/64/a9/c840ec06bb57d80119743f03434348f29c43be583eba77525292420049f0/dimarray-0.1.3.tar.gz" } ], "0.1.6": [ { "comment_text": "", "digests": { "md5": "77865ef95b3b9950e53df7b1430c41d9", "sha256": "7a80087d5b4aa1bc32a80f7e0f8049a9b8a1cc09cac1f80c430a0d5307a85c32" }, "downloads": -1, "filename": "dimarray-0.1.6.tar.gz", "has_sig": false, "md5_digest": "77865ef95b3b9950e53df7b1430c41d9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 83482, "upload_time": "2014-04-07T17:01:54", "url": "https://files.pythonhosted.org/packages/28/4a/ae1d53ac71bbe36e895fd2c8d5a8531a5948055b430c98866ede8dcc1eee/dimarray-0.1.6.tar.gz" } ], "0.1.7": [ { "comment_text": "", "digests": { "md5": "b86a5593511c400b43a11d531d4dc3e0", "sha256": "642ea18ec3cae0ee21e5155ff71f6eb9458a691cf528c49d1ea694e8beb30bb8" }, "downloads": -1, "filename": "dimarray-0.1.7.tar.gz", "has_sig": false, "md5_digest": "b86a5593511c400b43a11d531d4dc3e0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 84717, "upload_time": "2014-04-10T13:31:12", "url": "https://files.pythonhosted.org/packages/d0/d1/cc8dfa74576b57114bbe2c886655d635bd5acc9a2ee3f07a69f13f3be949/dimarray-0.1.7.tar.gz" } ], "0.1.8": [ { "comment_text": "", "digests": { "md5": "bb0ba833a6c436152d15483c536c59b9", "sha256": "541f646a4d6137a93b1a51eac3b5f91652e81371755c1f6fa192126ad85aaeb8" }, "downloads": -1, "filename": "dimarray-0.1.8.tar.gz", "has_sig": false, "md5_digest": "bb0ba833a6c436152d15483c536c59b9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 90515, "upload_time": "2014-06-22T00:14:52", "url": "https://files.pythonhosted.org/packages/ff/82/93862f425089e30c3bc9588e20b2c78c4d856b0c82a4be3f65b55f42de6c/dimarray-0.1.8.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "5a2baebbf7b4c6ed1b9ceb6e06944b7b", "sha256": "010b20c72035ee7f52e15af7b9f1e116562b7cf5ede2f064dc9a98fe1b729ecd" }, "downloads": -1, "filename": "dimarray-0.2.0.tar.gz", "has_sig": false, "md5_digest": "5a2baebbf7b4c6ed1b9ceb6e06944b7b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 109098, "upload_time": "2015-11-19T00:04:04", "url": "https://files.pythonhosted.org/packages/2f/a1/c65b24141b4841a56d2c73c48775aa5327374afea2a3de55d0886531f35a/dimarray-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "9ca32e3d4580bf21822df9a2f3a78f4a", "sha256": "86f08589729a9045d22f98cec35c13b6a0dc7d67328ba68badcd923b4a77ac64" }, "downloads": -1, "filename": "dimarray-0.2.1.tar.gz", "has_sig": false, "md5_digest": "9ca32e3d4580bf21822df9a2f3a78f4a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 260632, "upload_time": "2015-11-19T00:16:54", "url": "https://files.pythonhosted.org/packages/75/c5/8f8455077f330349887790501f63f1f9cb897765f5cdec53bc607f81404a/dimarray-0.2.1.tar.gz" } ], "0.2.3": [ { "comment_text": "", "digests": { "md5": "7da0bc817edaad9419748a88745dfe9c", "sha256": "1a08b3626eac6541edffcc7f364fe078ddd586f0c032b0f29d12cbab5c57cf6b" }, "downloads": -1, "filename": "dimarray-0.2.3.tar.gz", "has_sig": false, "md5_digest": "7da0bc817edaad9419748a88745dfe9c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 271352, "upload_time": "2015-11-19T01:41:26", "url": "https://files.pythonhosted.org/packages/3b/fd/cf8d7509475dd410a9ef9ffda043ab296cf6c85eb0afa22b59f05ea17fda/dimarray-0.2.3.tar.gz" } ], "0.2.4": [ { "comment_text": "", "digests": { "md5": "756c99aca719735094ca08e3c2257ff9", "sha256": "07536a223ffc8bd135c3ba589cc4c72abf0938b1f67b6dd87fb157964f16fdf6" }, "downloads": -1, "filename": "dimarray-0.2.4.tar.gz", "has_sig": false, "md5_digest": "756c99aca719735094ca08e3c2257ff9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 269705, "upload_time": "2016-06-02T17:46:58", "url": "https://files.pythonhosted.org/packages/35/08/a1cdb3dcb7309f822bafdb6a79b8637fe096111f16d7d4d7a6f8c8c21155/dimarray-0.2.4.tar.gz" } ], "0.2.5": [ { "comment_text": "", "digests": { "md5": "d002cbb456e3f108dd58e9c9571f13c4", "sha256": "0711a7c8beeacfcc01de6b9eb42def38ed360f1c176bf04ab8c1016b6d73e51a" }, "downloads": -1, "filename": "dimarray-0.2.5.tar.gz", "has_sig": false, "md5_digest": "d002cbb456e3f108dd58e9c9571f13c4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 269713, "upload_time": "2016-06-03T15:00:02", "url": "https://files.pythonhosted.org/packages/d8/c0/c5f7612d54d88808351ab30dd26ef1bf8ff34ca55fcca0eb79c2e08c071d/dimarray-0.2.5.tar.gz" } ], "1.0": [ { "comment_text": "", "digests": { "md5": "cd2ec733a42f305d0412b3e58f697a39", "sha256": "55216fc16668a31486512df210f1166347ddb39d201235dc437e4d6cd0ebf0d1" }, "downloads": -1, "filename": "dimarray-1.0-py2-none-any.whl", "has_sig": false, "md5_digest": "cd2ec733a42f305d0412b3e58f697a39", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 275714, "upload_time": "2018-10-09T21:28:28", "url": "https://files.pythonhosted.org/packages/6e/a9/c6fce8c84d6c1d7e85cf9f16e0d5a84a6d394854aa4db03ff4ae0110812d/dimarray-1.0-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "15b4fe800f689ea3063b009734cbd830", "sha256": "3284f8ba298e6d0abbe2589f2804995b4c5cac42990d9f008bd188f6516e0334" }, "downloads": -1, "filename": "dimarray-1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "15b4fe800f689ea3063b009734cbd830", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 275713, "upload_time": "2018-10-09T21:32:38", "url": "https://files.pythonhosted.org/packages/1f/64/4f909a34d62a87f038aaccedf84b734586dfc4294c9387b0e457b4e548fd/dimarray-1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "29d08a09f4b7fe5ce80d80a4de864218", "sha256": "13389fb71cb7739618bbf94fbc87f6ac02eaea8baad1b9101c0d721009498d80" }, "downloads": -1, "filename": "dimarray-1.0.tar.gz", "has_sig": false, "md5_digest": "29d08a09f4b7fe5ce80d80a4de864218", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 269077, "upload_time": "2018-10-09T21:32:40", "url": "https://files.pythonhosted.org/packages/bc/60/f307ba06468204e454716a1a99a2c10006efee579150a7ad65be3d36572a/dimarray-1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "cd2ec733a42f305d0412b3e58f697a39", "sha256": "55216fc16668a31486512df210f1166347ddb39d201235dc437e4d6cd0ebf0d1" }, "downloads": -1, "filename": "dimarray-1.0-py2-none-any.whl", "has_sig": false, "md5_digest": "cd2ec733a42f305d0412b3e58f697a39", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 275714, "upload_time": "2018-10-09T21:28:28", "url": "https://files.pythonhosted.org/packages/6e/a9/c6fce8c84d6c1d7e85cf9f16e0d5a84a6d394854aa4db03ff4ae0110812d/dimarray-1.0-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "15b4fe800f689ea3063b009734cbd830", "sha256": "3284f8ba298e6d0abbe2589f2804995b4c5cac42990d9f008bd188f6516e0334" }, "downloads": -1, "filename": "dimarray-1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "15b4fe800f689ea3063b009734cbd830", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 275713, "upload_time": "2018-10-09T21:32:38", "url": "https://files.pythonhosted.org/packages/1f/64/4f909a34d62a87f038aaccedf84b734586dfc4294c9387b0e457b4e548fd/dimarray-1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "29d08a09f4b7fe5ce80d80a4de864218", "sha256": "13389fb71cb7739618bbf94fbc87f6ac02eaea8baad1b9101c0d721009498d80" }, "downloads": -1, "filename": "dimarray-1.0.tar.gz", "has_sig": false, "md5_digest": "29d08a09f4b7fe5ce80d80a4de864218", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 269077, "upload_time": "2018-10-09T21:32:40", "url": "https://files.pythonhosted.org/packages/bc/60/f307ba06468204e454716a1a99a2c10006efee579150a7ad65be3d36572a/dimarray-1.0.tar.gz" } ] }