{ "info": { "author": "LM", "author_email": "louis.moresi@unimelb.edu.au", "bugtrack_url": null, "classifiers": [], "description": "# litho1pt0\n\nA Python interface to TRIPACK and STRIPACK Fortran code for (constrained) triangulation in Cartesian coordinates and on a sphere. Stripy is an object-oriented package and includes routines from SRFPACK and SSRFPACK for interpolation (nearest neighbor, linear and hermite cubic) and to evaluate derivatives (Renka 1996a,b and 1997a,b).\n\n`stripy` is bundled with `litho1pt0` which is a python interface to the _crust 1.0_ dataset and the lithospheric part of the _litho 1.0_ dataset (Laske et al, 2013 and Pasyanos et al, 2014) which both requires and demonstrates the triangulation / searching and interpolation on the sphere that is provided by `stripy`.\n\n\n![Examples](https://github.com/University-of-Melbourne-Geodynamics/stripy/blob/master/Notebooks/Images/Examples.png?raw=true)\n\n\n_Sample images created with `stripy` illustrating the meshing capability, the ability to refine meshes to match criteria such as data density, and the ability to create distance-weighted averages to meshes and continuous interpolating functions_\n\n#### binder\n\nLaunch the demonstration at [mybinder.org](https://mybinder.org/v2/gh/lmoresi/stripy-binder/master)\n\n[![Binder](https://mybinder.org/badge.svg)](https://mybinder.org/v2/gh/lmoresi/stripy-binder/master)\n\n\n## Navigation / Notebooks\n\n\nThere are two matching sets of `stripy` notebooks - one set for [Cartesian Triangulations](#Cartesian) and one for [Spherical Triangulations](#Spherical). For most geographical applications, the spherical triangulations are the natural choice as they expect longitude and latitude coordinates (admittedly in radians).\n\n\nNote: the Cartesian and Spherical notebooks can be obtained / installed from `stripy` itself as follows:\n\n```bash\n python -c 'import stripy; stripy.documentation.install_documentation(path=\"Notebooks\")' \n```\n\n### Cartesian\n\n - [Ex1-Cartesian-Triangulations.ipynb](CartesianTriangulations/Ex1-Cartesian-Triangulations.ipynb)\n - [Ex2-CartesianGrids.ipynb](CartesianTriangulations/Ex2-CartesianGrids.ipynb)\n - [Ex3-Interpolation.ipynb](CartesianTriangulations/Ex3-Interpolation.ipynb)\n - [Ex4-Gradients.ipynb](CartesianTriangulations/Ex4-Gradients.ipynb)\n - [Ex5-Smoothing.ipynb](CartesianTriangulations/Ex5-Smoothing.ipynb)\n - [Ex6-Scattered-Data.ipynb](CartesianTriangulations/Ex6-Scattered-Data.ipynb)\n - [Ex7-Refinement-of-Triangulations.ipynb](CartesianTriangulations/Ex7-Refinement-of-Triangulations.ipynb)\n\n### Spherical\n\n - [Ex1-Spherical-Triangulations.ipynb](SphericalTriangulations/Ex1-Spherical-Triangulations.ipynb)\n - [Ex2-SphericalGrids.ipynb](SphericalTriangulations/Ex2-SphericalGrids.ipynb)\n - [Ex3-Interpolation.ipynb](SphericalTriangulations/Ex3-Interpolation.ipynb)\n - [Ex4-Gradients.ipynb](SphericalTriangulations/Ex4-Gradients.ipynb)\n - [Ex5-Smoothing.ipynb](SphericalTriangulations/Ex5-Smoothing.ipynb)\n - [Ex6-Scattered-Data.ipynb](SphericalTriangulations/Ex6-Scattered-Data.ipynb)\n - [Ex7-Refinement-of-Triangulations.ipynb](SphericalTriangulations/Ex7-Refinement-of-Triangulations.ipynb)\n\n\n### Examples\n\nNote, these examples are the notebooks from `litho1pt0` which are installed from the\npackage itself:\n\n```bash\n python -c 'import litho1pt0; litho1pt0.documentation.install_documentation(path=\"Notebooks\")'\n```\n\nThe first three notebooks are an introduction to `litho1pt0` that does not explicitly mention `stripy` but\nthe next two worked examples show how to search, interpolate and plot with the help of `stripy` routines.\n\n - [Ex1-Litho1Layers.ipynb](litho1pt0/Ex1-Litho1Layers.ipynb)\n - [Ex2-Litho1Properties.ipynb](litho1pt0/Ex2-Litho1Properties.ipynb)\n - [Ex3-CrustalRegionalisation.ipynb](litho1pt0/Ex3-CrustalRegionalisation.ipynb)\n - [WorkEx1-CratonAverageProperties.ipynb](litho1pt0/WorkEx1-CratonAverageProperties.ipynb)\n - [WorkEx2-OceanDepthAge.ipynb](litho1pt0/WorkEx2-OceanDepthAge.ipynb)\n\n\n\n\n## Installation\n\nTo install ([numpy](http://numpy.org) and fortran compiler, preferably\n[gfortran](https://gcc.gnu.org/wiki/GFortran), required):\n\n```bash\npython setup.py build\n```\n - If you change the fortran compiler, you may have to add the\nflags `config_fc --fcompiler=` when setup.py is run\n(see docs for [numpy.distutils](http://docs.scipy.org/doc/numpy-dev/f2py/distutils.html)).\n```bash\npython setup.py install\n```\n\nAlternatively install using pip:\n\n```bash\npip install [--user] stripy\n```\n\n## Usage\n\nTwo classes are included as part of the Stripy package:\n\n- sTriangulation (Spherical coordinates)\n- Triangulation (Cartesian coordinates)\n\nThese classes share similar methods and can be easily interchanged.\nIn addition, there are many helper functions provided for building\n\nA series of tests are located in the *tests* subdirectory.\n\n\n## Docker\n\nA more straightforward installation which does not depend on specific compilers relies on the [docker](http://www.docker.com) virtualisation system.\n\nTo install the docker image and test it is working:\n\n```bash\n docker pull lmoresi/stripy:latest\n docker run --rm lmoresi/stripy:latest help\n```\n\nTo install the helper scripts for bash:\n\n```bash\n docker run --rm lmoresi/stripy:latest bash_utils > bash_utils.sh\n source bash_utils.sh\n```\n\n( you may find it helpful to move/rename this file and source it from\n your bash profile at login time )\n\nThe bash_utils.sh script installs the following functions which are\navailable through the bash command line:\n\n```bash\n stripy-docker-help\n stripy-docker-sh\n stripy-docker-nb\n stripy-docker-browse\n stripy-docker-serve\n stripy-docker-terminal\n```\n\nFor more information on these functions, run\n\n```bash\n source bash_utils.sh\n stripy-docker-help\n```\n\nTo use the docker version as you would, say, using ipython to type on the command line:\n\n```bash\n source bash_utils.sh # (only needs to be done once)\n stripy-docker-terminal\n ls\n ipython\n```\n\nTo use the docker version to run a script\n\n```bash\n source bash_utils.sh # (only needs to be done once)\n stripy-docker-sh my_python_script.py\n```\n\n\n\n## References\n\n 1. Laske, G., G. Masters, and Z. Ma (2013), Update on CRUST1. 0\u2014A 1-degree global model of Earth's crust, Geophys Research Abstracts, 15, EGU2013\u20132658.\n\n 1. Pasyanos, M. E., T. G. Masters, G. Laske, and Z. Ma (2014), LITHO1.0: An updated crust and lithospheric model of the Earth, Journal of Geophysical Research-Solid Earth, 119(3), 2153\u20132173, doi:10.1002/2013JB010626.\n\n 1. R. J. Renka, \"ALGORITHM 751: TRIPACK: A Constrained Two- Dimensional Delaunay Triangulation Package\" ACM Trans. Math. Software, Vol. 22, No. 1, 1996, pp. 1-8.\n\n 1. R. J. Renka, \"ALGORITHM 752: SRFPACK: Software for Scattered Data Fitting with a Constrained Surface under Tension\", ACM Trans. Math. Software, Vol. 22, No. 1, 1996, pp. 9-17.\n\n 1. R. J. Renka, \"ALGORITHM 772: STRIPACK: Delaunay Triangulation and Voronoi Diagram on the Surface of a Sphere\" ACM Trans. Math. Software, Vol. 23, No. 3, 1997, pp. 416-434.\n\n 1. R. J. Renka, \"ALGORITHM 773: SSRFPACK: Interpolation of Scattered Data on the Surface of a Sphere with a Surface under Tension\", ACM Trans. Math. Software, Vol. 23, No. 3, 1997, pp. 437-439.\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/underworldcode/litho1pt0", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "litho1pt0", "package_url": "https://pypi.org/project/litho1pt0/", "platform": "", "project_url": "https://pypi.org/project/litho1pt0/", "project_urls": { "Homepage": "https://github.com/underworldcode/litho1pt0" }, "release_url": "https://pypi.org/project/litho1pt0/0.7.0/", "requires_dist": [ "stripy" ], "requires_python": "", "summary": "Python interface to Litho 1.0 dataset - based on stripy", "version": "0.7.0" }, "last_serial": 4942664, "releases": { "0.2": [ { "comment_text": "", "digests": { "md5": "452bd81a41f49621d6b4a8c9ea628614", "sha256": "1024be1cd02e4deb9909710175e98c0a170f14c22241858a9c21a3f9e8df4e5d" }, "downloads": -1, "filename": "litho1pt0-0.2.tar.gz", "has_sig": false, "md5_digest": "452bd81a41f49621d6b4a8c9ea628614", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5670822, "upload_time": "2018-01-31T05:39:50", "url": "https://files.pythonhosted.org/packages/d8/88/bfee6e8f241fb48f343314fe6913e514b2bb4d1e75ea4dc5342626b66186/litho1pt0-0.2.tar.gz" } ], "0.4.1": [ { "comment_text": "", "digests": { "md5": "65159f2677f96200adc8cb8e44cd56e4", "sha256": "d7a68221113e596b17aab04d794822175788ba52d089a7b06fdccb3ba3224b3e" }, "downloads": -1, "filename": "litho1pt0-0.4.1.tar.gz", "has_sig": false, "md5_digest": "65159f2677f96200adc8cb8e44cd56e4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4639987, "upload_time": "2018-04-05T06:23:59", "url": "https://files.pythonhosted.org/packages/ba/dc/337c237188385afe4b63484c19045eb669f47bc4894c4b2d7b92ef32a01e/litho1pt0-0.4.1.tar.gz" } ], "0.4.2": [ { "comment_text": "", "digests": { "md5": "a9fa7ee66e8eb209ac21f125ef1eaac1", "sha256": "553659230822e023f1e455f7541020cfd9ed8ae9e7a515369a8e3819ad612f11" }, "downloads": -1, "filename": "litho1pt0-0.4.2.tar.gz", "has_sig": false, "md5_digest": "a9fa7ee66e8eb209ac21f125ef1eaac1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4640087, "upload_time": "2018-05-22T11:37:52", "url": "https://files.pythonhosted.org/packages/47/d0/7792f973228a42b254f531f9796466ef47a6bad2088a10549fae8986f384/litho1pt0-0.4.2.tar.gz" } ], "0.6.0": [ { "comment_text": "", "digests": { "md5": "2cd4413370caf91ee55f0d6502b975f5", "sha256": "74411f1f323c207dfea1c6c36cb009c62d74c0b3d2ecb22b7852c22b4b9231ab" }, "downloads": -1, "filename": "litho1pt0-0.6.0.tar.gz", "has_sig": false, "md5_digest": "2cd4413370caf91ee55f0d6502b975f5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4641884, "upload_time": "2018-09-19T13:28:07", "url": "https://files.pythonhosted.org/packages/24/27/f11cfd7dfd241e669169bc0ddd6458248bf3f91618844f5f195d60368142/litho1pt0-0.6.0.tar.gz" } ], "0.6.1": [ { "comment_text": "", "digests": { "md5": "6f5811e1695e69e8c8754d4268e7694d", "sha256": "bd0c08be4d3dd840029338bdf9012fda1694f892efb3faef778f952bc2f1b3f1" }, "downloads": -1, "filename": "litho1pt0-0.6.1.tar.gz", "has_sig": false, "md5_digest": "6f5811e1695e69e8c8754d4268e7694d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4642601, "upload_time": "2018-09-19T13:37:52", "url": "https://files.pythonhosted.org/packages/71/b1/a9c127a12c3e9fd80c7853bb08b808298c962cd5f4da5cbc951b1beffeaf/litho1pt0-0.6.1.tar.gz" } ], "0.6.2": [ { "comment_text": "", "digests": { "md5": "7c5f1f090aa7f60c8471779a92a946d4", "sha256": "c53a18dcb09fe57d0fd699186525947b61bcdd077b58250d2a6b113ab809f02f" }, "downloads": -1, "filename": "litho1pt0-0.6.2.tar.gz", "has_sig": false, "md5_digest": "7c5f1f090aa7f60c8471779a92a946d4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 28338807, "upload_time": "2018-09-19T13:51:55", "url": "https://files.pythonhosted.org/packages/4a/b0/9d96f1900ec640773b25066a97499803a8747bb12edc9b28d2df49db7651/litho1pt0-0.6.2.tar.gz" } ], "0.6.3": [ { "comment_text": "", "digests": { "md5": "53f3053660efb0650693731958eb2495", "sha256": "8538bc21df6b6c1719bf6e6a5c45f9240e7b9f1ca7ec7eacd7471ee0bf837203" }, "downloads": -1, "filename": "litho1pt0-0.6.3.tar.gz", "has_sig": false, "md5_digest": "53f3053660efb0650693731958eb2495", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 28338834, "upload_time": "2018-09-19T14:22:51", "url": "https://files.pythonhosted.org/packages/02/65/70eba2d8bcbb85d42ebda3550f5a8058fc94c346179932a9fd29a964b258/litho1pt0-0.6.3.tar.gz" } ], "0.6.4": [ { "comment_text": "", "digests": { "md5": "7dbaf29d1a11b225eb67471de38b151e", "sha256": "9a9be854c0f7269edb9d3a55aadd0dc3db0d227676f5c1189ccda7a78f0af704" }, "downloads": -1, "filename": "litho1pt0-0.6.4.tar.gz", "has_sig": false, "md5_digest": "7dbaf29d1a11b225eb67471de38b151e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 28338842, "upload_time": "2018-09-20T13:44:33", "url": "https://files.pythonhosted.org/packages/fc/e0/9a55354a6487f4864caeaf847687e543c03c5a52e151ab9865295e20022f/litho1pt0-0.6.4.tar.gz" } ], "0.6.5": [ { "comment_text": "", "digests": { "md5": "e667614779f9687a0af6849120d57adf", "sha256": "4a69b663cff3d71bff85f2859169a5ccf88fe602c8632993bc350167ed7454f2" }, "downloads": -1, "filename": "litho1pt0-0.6.5.tar.gz", "has_sig": false, "md5_digest": "e667614779f9687a0af6849120d57adf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 28339042, "upload_time": "2018-09-20T19:03:23", "url": "https://files.pythonhosted.org/packages/d7/71/cf056dd22f4bc43a2955f8bdcd3571b372c4721814d1fdf7e3c65f6af4b7/litho1pt0-0.6.5.tar.gz" } ], "0.7.0": [ { "comment_text": "", "digests": { "md5": "25e5221880e342d03cb06fc3207f8598", "sha256": "da537f8f978762d4752343b4c3bec032f090c9777a06da4d1d277e16d6134824" }, "downloads": -1, "filename": "litho1pt0-0.7.0-py3-none-any.whl", "has_sig": false, "md5_digest": "25e5221880e342d03cb06fc3207f8598", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 29347704, "upload_time": "2019-03-15T05:12:51", "url": "https://files.pythonhosted.org/packages/30/0d/fdf9c5aef8d0c07dc4e913317ad9a5c16f63864fda98664cb8dfcc08ff76/litho1pt0-0.7.0-py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "25e5221880e342d03cb06fc3207f8598", "sha256": "da537f8f978762d4752343b4c3bec032f090c9777a06da4d1d277e16d6134824" }, "downloads": -1, "filename": "litho1pt0-0.7.0-py3-none-any.whl", "has_sig": false, "md5_digest": "25e5221880e342d03cb06fc3207f8598", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 29347704, "upload_time": "2019-03-15T05:12:51", "url": "https://files.pythonhosted.org/packages/30/0d/fdf9c5aef8d0c07dc4e913317ad9a5c16f63864fda98664cb8dfcc08ff76/litho1pt0-0.7.0-py3-none-any.whl" } ] }