{ "info": { "author": "Tim Lin (S-Cube)", "author_email": "tlin@s-cube.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "License :: OSI Approved :: BSD License", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Topic :: Utilities" ], "description": "VTRTool\n=======\n\n[![PyPI Listing](https://img.shields.io/pypi/v/vtrtool.svg)](https://pypi.python.org/pypi/vtrtool)\n\nPython utilities for Fullwave3D VTR model files.\n\nThe package contains a `vtrtool` executable, as well as a `vtrtool.py` python package\n\n\nInstallation\n------------------------------------------\n\nThis tool can be obtained from PyPI. Simply do:\n\n```\npip install vtrtool\n```\n\n\n`vtrtool` executable quick usage\n------------------------------------------\n\n`vtrtool -h` to show usage information\n\n`vtrtool info my_model_file.vtr` shows metadata info for `my_model_file.vtr`\n\n`vtrtool info nx1 my_model_file.vtr` prints out just the size of the 1st (x) dimension for `my_model_file.vtr`\n\n`vtrtool to_binary --property=2 my_model_file.vtr my_model_file.bin` to dump the 2nd property from `my_model_file.vtr` to the float32 raw binary file `my_model_file.bin`\n\n`vtrtool to_stdout my_model_file.vtr` to pipe the 1st property (default) from `my_model_file.vtr` to `stdout` in raw float32 binary format\n\n\n`vtrtool.py` Python module quick usage\n------------------------------------------\n\nThe `vtrtool.VTRModel` class represents a vtr model that lives at a given filename. The file will be parsed on object initialization:\n\n```\nimport vtrtool\n\n# read the vtr file `my_model_file.vtr` and construct a new VTRModel object with it\nvtr_model = vtrtool.VTRModel(\"my_model_file.vtr\")\n\n# print model properties to stdout\nvtrtool.print_vtr_metadata(vtr_model)\n\n# model property 1 will be available as numpy ndarray in\nvtr_model.arrays[0]\n\n# model property 2 (if it exists) will be available as numpy ndarray in\nvtr_model.arrays[1]\n\n# etc...\n```\n\nSet the optional keyword `use_memmap=True` if you want the VTRModel object to use a [NumPy memmap](https://docs.scipy.org/doc/numpy-1.13.0/reference/generated/numpy.memmap.html) instead of in-memory representation for holding the model array.\n\nThe following instance properties exist for objects of the `VTRModel` class:\n\n- **file**: (str) the vtr filename referenced by the VTRModel object\n- **num_dimensions**: (int) number of dimensions in the model\n- **num_attributes**: (int) number of properties in the model\n- **shape**: (tuple of ints) shape (c-based) of numpy ndarray holding the models in the order `(nx1, nx2, nx3)`\n- **shape_fortran**: (tuple of ints) shape (fortran-based) of the models in the order `(nx3, nx2, nx1)`\n- **nx1**: (int) number of cells in the 1st (usually x) dimension\n- **nx2**: (int) number of cells in the 2nd (usually y) dimension\n- **nx3**: (int) number of cells in the 3rd (fastest, usually z) dimension\n- **arrays**: (list of ndarrays) holds the model property ndarrays, the length of the list correspond to the number of model properties (i.e., property 1 is in model[0]), and the shape of the ndarray will correspond to `shape` and with the number of dimensions in `num_dimensions`\n\n### Some convenience functions:\n\n- `vtrtool.vtrfile_to_ndarray(filename, prop_index=0)` quickly takes a vtr file and returns the property specified by `prop_index` as an ndarray\n- `vtrtool.print_vtr_metadata(vtrmodel_object)` takes a VTRModel object and prints dimension information to stdout\n\n\n**Maintained by**\n\nTim Lin , 2017\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://not-yet", "keywords": "fullwave3d vtr", "license": "3-clause BSD", "maintainer": "", "maintainer_email": "", "name": "vtrtool", "package_url": "https://pypi.org/project/vtrtool/", "platform": "", "project_url": "https://pypi.org/project/vtrtool/", "project_urls": { "Homepage": "http://not-yet" }, "release_url": "https://pypi.org/project/vtrtool/0.7.2/", "requires_dist": [ "future", "numpy", "docopt", "segyio (>=1.6)" ], "requires_python": "", "summary": "Python utilities for Fullwave3D VTR model files", "version": "0.7.2" }, "last_serial": 5387682, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "5da303a4baf303dfb24eaca2a3502cd2", "sha256": "fd488ff09b96fdedeadcb959a53d94b02872b255fcab0ac2f2dbae9adee30fac" }, "downloads": -1, "filename": "vtrtool-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "5da303a4baf303dfb24eaca2a3502cd2", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5785, "upload_time": "2017-05-09T15:43:04", "url": "https://files.pythonhosted.org/packages/98/df/6fedc1a4ef41782616c793ba00d549b0e19f5d33abd9b69af3e7abd598e1/vtrtool-0.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6f3fdab081a02c4640f1879f36164df7", "sha256": "8c94dcfd56a1261958cc763faa28392d23cdd78ef1ab6c3b6d98513a064eabd8" }, "downloads": -1, "filename": "vtrtool-0.1.0.tar.gz", "has_sig": false, "md5_digest": "6f3fdab081a02c4640f1879f36164df7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4588, "upload_time": "2017-05-09T15:43:05", "url": "https://files.pythonhosted.org/packages/3a/a9/04d23f5680caafc110814a91cd6648053641dfa463eb53e219b1c7710e66/vtrtool-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "e87b657b5a9f853b7d69748fb78caf0c", "sha256": "62178734128470872a9f72183f2748f13a7f7048e4146f265d0b2d6937a7d701" }, "downloads": -1, "filename": "vtrtool-0.1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "e87b657b5a9f853b7d69748fb78caf0c", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6861, "upload_time": "2017-05-09T16:01:00", "url": "https://files.pythonhosted.org/packages/44/e7/a91d7e05580482d1ad01cd350e62c925d8e6c5cfa5465cd9b46ddbfee3d3/vtrtool-0.1.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b8c415136a7d92f34fb7743524b186fe", "sha256": "1d6cd0d0b09c252f540723d9292f31004b01c6d4bb8033b88cdd9aad6c46f064" }, "downloads": -1, "filename": "vtrtool-0.1.1.tar.gz", "has_sig": false, "md5_digest": "b8c415136a7d92f34fb7743524b186fe", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5320, "upload_time": "2017-05-09T16:01:01", "url": "https://files.pythonhosted.org/packages/ce/6a/948d0aca23eec4b71846bc2ecdd01103195f9da5684a4ac0b94f97af64e3/vtrtool-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "d7e8abe685ca17958885c9218fa69097", "sha256": "c21582bdd3c494a7826e6cb88d4d382fde347e4cd45038fb41dac7fdb6c50e89" }, "downloads": -1, "filename": "vtrtool-0.1.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "d7e8abe685ca17958885c9218fa69097", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7047, "upload_time": "2017-05-09T16:30:56", "url": "https://files.pythonhosted.org/packages/f2/77/378409bb2fe3396142aaf5410a31030d9fd9901a1f4c33e4db392ecf8124/vtrtool-0.1.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "75efba1d256ac662d36647d21956e9c7", "sha256": "4a2ba7172efeb2f3953d239d6964d13cf72a6f68a227ceb65ceb0f204b8432a3" }, "downloads": -1, "filename": "vtrtool-0.1.2.tar.gz", "has_sig": false, "md5_digest": "75efba1d256ac662d36647d21956e9c7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5471, "upload_time": "2017-05-09T16:30:57", "url": "https://files.pythonhosted.org/packages/ae/91/c68999372862ce4007cd405dd28f8aeec22612d245b9086de55d589caf0b/vtrtool-0.1.2.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "ec66c11c752bbfd70393de646be2a4dd", "sha256": "f8457ee8807b2192c06f2d6ccf74412ac43defb0c1089a7050e5e4fdc2b16890" }, "downloads": -1, "filename": "vtrtool-0.2.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "ec66c11c752bbfd70393de646be2a4dd", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7060, "upload_time": "2017-05-09T16:52:02", "url": "https://files.pythonhosted.org/packages/dd/c1/13689000e6b16254293bb3a63f416a023dc2cb3e37ed9c9897913e73ae44/vtrtool-0.2.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "83561da88aea656b328b661cf4f636c4", "sha256": "cfde03f562096cb3abd665ebb23813c7f538958a691aa1b9bde113599f69d115" }, "downloads": -1, "filename": "vtrtool-0.2.0.tar.gz", "has_sig": false, "md5_digest": "83561da88aea656b328b661cf4f636c4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5469, "upload_time": "2017-05-09T16:52:04", "url": "https://files.pythonhosted.org/packages/88/db/6b1eadefd0e0dafb39689e16c0fbe0fff1aef37625960ca7b6da593004df/vtrtool-0.2.0.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "f31d5bbd0a581697c328748d26aecbd3", "sha256": "096b4348935ca4a15499bf06273a2677bdb224e215768e91f2e9546425e2aaa8" }, "downloads": -1, "filename": "vtrtool-0.3.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "f31d5bbd0a581697c328748d26aecbd3", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7442, "upload_time": "2017-12-02T21:50:29", "url": "https://files.pythonhosted.org/packages/96/84/a57422a334b975c2ab763425f7f77b76262c83b0643f0cd1c998beaaf66d/vtrtool-0.3.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7f7f75347d5b04ca9bc2956cd70a1a74", "sha256": "d97713b454415503677f2a9f383755430d18b6a181c6a702f088d70224ac9ba5" }, "downloads": -1, "filename": "vtrtool-0.3.0.tar.gz", "has_sig": false, "md5_digest": "7f7f75347d5b04ca9bc2956cd70a1a74", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5725, "upload_time": "2017-12-02T21:50:31", "url": "https://files.pythonhosted.org/packages/3f/7e/6f4f92ee92b2fe05aab2cd767527d6b5d2444cc71140c374a315638ac8d0/vtrtool-0.3.0.tar.gz" } ], "0.4.0": [ { "comment_text": "", "digests": { "md5": "fd9a2e6d254314428cd1f275a02617ac", "sha256": "51e75c505130387a42b9e8fd744b1c018900656e66a04ee8e7cde54c65ea0075" }, "downloads": -1, "filename": "vtrtool-0.4.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "fd9a2e6d254314428cd1f275a02617ac", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7478, "upload_time": "2017-12-08T18:17:08", "url": "https://files.pythonhosted.org/packages/05/6e/5ffb49529680bc92a2b3ecf03fce5fd4b4b99c3bb09638835ba92b0ec1fc/vtrtool-0.4.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ceef013210c2c09807169f6dbee7b69c", "sha256": "f6465f0306e37a300543c0972739246ae2ae8a2cee2ea881a0afce446c520653" }, "downloads": -1, "filename": "vtrtool-0.4.0.tar.gz", "has_sig": false, "md5_digest": "ceef013210c2c09807169f6dbee7b69c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5736, "upload_time": "2017-12-08T18:17:09", "url": "https://files.pythonhosted.org/packages/fa/91/0f87822cdd29979156b34ca7be524bff39d337cfa9c68e5f91b4e7ad1834/vtrtool-0.4.0.tar.gz" } ], "0.4.1": [ { "comment_text": "", "digests": { "md5": "da4632afb3cdf7f32097f322d9051369", "sha256": "0c5e97af9fb026f77297a98727a8b18bd2abb5c0bc9bb16e42eac89d2b5c1690" }, "downloads": -1, "filename": "vtrtool-0.4.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "da4632afb3cdf7f32097f322d9051369", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7503, "upload_time": "2017-12-08T18:25:22", "url": "https://files.pythonhosted.org/packages/66/64/93faf14b7ac223cac8399a89ddc55521156ccd5e887f093db3af6d404290/vtrtool-0.4.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5f6712a7b46c0c8f9221c447809e28c2", "sha256": "d3a9cc2d5b0f4ac0c2423cc627d76c86abcd22cefacbc6fb0d7bd2e32c758480" }, "downloads": -1, "filename": "vtrtool-0.4.1.tar.gz", "has_sig": false, "md5_digest": "5f6712a7b46c0c8f9221c447809e28c2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5752, "upload_time": "2017-12-08T18:25:25", "url": "https://files.pythonhosted.org/packages/d4/c8/671ce1ab080eabcafbe7a005d5068c84f38b456074f586876e1c8f94d840/vtrtool-0.4.1.tar.gz" } ], "0.5.0": [ { "comment_text": "", "digests": { "md5": "65fcfec35037c35a54ec395e0bbfd68a", "sha256": "9b8f919c383e6c72bec00d339cacf26353ed66413f230a9ea05720b500674a1c" }, "downloads": -1, "filename": "vtrtool-0.5.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "65fcfec35037c35a54ec395e0bbfd68a", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 10382, "upload_time": "2017-12-08T19:15:27", "url": "https://files.pythonhosted.org/packages/48/5c/3f638c49830b4f98445c2cbbd2c48860e56d456704eb8d12e9b6bf68c6c1/vtrtool-0.5.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "fef1e7854d17774aff88e4c2b4dcb5c7", "sha256": "15b7ac91b4cfa093f7dd82314c8652b8ca776e190294c40a996f1b6641021c16" }, "downloads": -1, "filename": "vtrtool-0.5.0.tar.gz", "has_sig": false, "md5_digest": "fef1e7854d17774aff88e4c2b4dcb5c7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5951, "upload_time": "2017-12-08T19:15:29", "url": "https://files.pythonhosted.org/packages/cd/81/6fc50bfba2e508e43ed2f026e1102c9f35274bd9b9c24eef85e610526408/vtrtool-0.5.0.tar.gz" } ], "0.5.1": [ { "comment_text": "", "digests": { "md5": "5273155ef4ab9c8e49f58ac2628df674", "sha256": "5e06360ec4a669c7feab139d45e335f0b0e61522bc4a9726b72a59a5d4492127" }, "downloads": -1, "filename": "vtrtool-0.5.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "5273155ef4ab9c8e49f58ac2628df674", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 8234, "upload_time": "2018-06-18T13:52:03", "url": "https://files.pythonhosted.org/packages/08/85/9ea3d38eb3e6751a116bef4899287f83e3249421e0606ae537d72284407a/vtrtool-0.5.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b7f84696eddce20d7399960999089fc3", "sha256": "40475c1576bfc293745a598c80f452b303baf229775097a41b65b98b126486eb" }, "downloads": -1, "filename": "vtrtool-0.5.1.tar.gz", "has_sig": false, "md5_digest": "b7f84696eddce20d7399960999089fc3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5987, "upload_time": "2018-06-18T13:52:05", "url": "https://files.pythonhosted.org/packages/64/5a/2f9a85167382cd0fa759a24768d46e9452427b7c540cbf9d33a6031a393a/vtrtool-0.5.1.tar.gz" } ], "0.7": [ { "comment_text": "", "digests": { "md5": "e689788fcaf0584e022ef70c4609b33f", "sha256": "ae76c27383c482957d73d6a5274ec3f26931750d0d2c09f09ef5a09ad13e3b4d" }, "downloads": -1, "filename": "vtrtool-0.7-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "e689788fcaf0584e022ef70c4609b33f", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 10923, "upload_time": "2018-09-19T21:05:37", "url": "https://files.pythonhosted.org/packages/1d/41/09ed368334d4486da5c96729cb8aa3fe89a31c491f68a083f7de20c6f7fc/vtrtool-0.7-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6310edb4b5966cf8d3e6d75b0ff0b40d", "sha256": "5c683cb3ddb957699000b6f7976d8527f0344cc02164085510e3257e302899bf" }, "downloads": -1, "filename": "vtrtool-0.7.tar.gz", "has_sig": false, "md5_digest": "6310edb4b5966cf8d3e6d75b0ff0b40d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8457, "upload_time": "2018-09-19T21:05:38", "url": "https://files.pythonhosted.org/packages/8d/1b/251ea8c0c63291cfbf42cddc70eea3cbdc42166bcd7cc90b178a4d70d820/vtrtool-0.7.tar.gz" } ], "0.7.1": [ { "comment_text": "", "digests": { "md5": "151407ac5c341776d37e629c6fa5562a", "sha256": "2c73c379a329671da7614c779cf722a2d0f70354d5265e359f83daaf57a9e910" }, "downloads": -1, "filename": "vtrtool-0.7.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "151407ac5c341776d37e629c6fa5562a", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 10955, "upload_time": "2018-09-19T21:08:45", "url": "https://files.pythonhosted.org/packages/aa/13/02dc198ccbd503973f460ee2d961dc88f561b18ab4b6824adb23723fc3fe/vtrtool-0.7.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "8dcc92b5fc2a0e2cfcca905256101f19", "sha256": "3c4040ade11af7f2018ce7c39c662b94ba23e5c16ea72125fd2b8416d3fb3c35" }, "downloads": -1, "filename": "vtrtool-0.7.1.tar.gz", "has_sig": false, "md5_digest": "8dcc92b5fc2a0e2cfcca905256101f19", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8479, "upload_time": "2018-09-19T21:08:47", "url": "https://files.pythonhosted.org/packages/78/0b/97644cf5970bf384df63e4535afc7ea0a73853aad86c6416444d254aabcc/vtrtool-0.7.1.tar.gz" } ], "0.7.2": [ { "comment_text": "", "digests": { "md5": "9479ca965e15a5c89f50600d60e933a0", "sha256": "60d14808f02764a9c215ff23c50064f6b3b4e5758d0d7461bedcd70ef5b145cf" }, "downloads": -1, "filename": "vtrtool-0.7.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "9479ca965e15a5c89f50600d60e933a0", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 10943, "upload_time": "2019-06-11T18:21:21", "url": "https://files.pythonhosted.org/packages/b3/71/eb2b2fa89700190099925527b15bf62bd16a37faefcb08b91c51fcfbb87e/vtrtool-0.7.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c28c8c0aaafa80047f9a2ea3f49b8ea0", "sha256": "db6569b87027d14da010c013197c9369dfe11d9a8a861827d779cf1b022ad86c" }, "downloads": -1, "filename": "vtrtool-0.7.2.tar.gz", "has_sig": false, "md5_digest": "c28c8c0aaafa80047f9a2ea3f49b8ea0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8476, "upload_time": "2019-06-11T18:21:23", "url": "https://files.pythonhosted.org/packages/63/65/025432f8c7cb36d9cd07e67eea27f796a6f67944007f6ae4b02a50a7df8a/vtrtool-0.7.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "9479ca965e15a5c89f50600d60e933a0", "sha256": "60d14808f02764a9c215ff23c50064f6b3b4e5758d0d7461bedcd70ef5b145cf" }, "downloads": -1, "filename": "vtrtool-0.7.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "9479ca965e15a5c89f50600d60e933a0", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 10943, "upload_time": "2019-06-11T18:21:21", "url": "https://files.pythonhosted.org/packages/b3/71/eb2b2fa89700190099925527b15bf62bd16a37faefcb08b91c51fcfbb87e/vtrtool-0.7.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c28c8c0aaafa80047f9a2ea3f49b8ea0", "sha256": "db6569b87027d14da010c013197c9369dfe11d9a8a861827d779cf1b022ad86c" }, "downloads": -1, "filename": "vtrtool-0.7.2.tar.gz", "has_sig": false, "md5_digest": "c28c8c0aaafa80047f9a2ea3f49b8ea0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8476, "upload_time": "2019-06-11T18:21:23", "url": "https://files.pythonhosted.org/packages/63/65/025432f8c7cb36d9cd07e67eea27f796a6f67944007f6ae4b02a50a7df8a/vtrtool-0.7.2.tar.gz" } ] }