{ "info": { "author": "Christopher Jordan", "author_email": "christopherjordan87@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "pyGrad2Surf\n===========\n\nSoftware that effectively integrates two vector fields to obtain a scalar field. Example usage can be seen at [cthulhu](https://github.com/cjordan/cthulhu). This repo merely reflects a python translation of the MATLAB code supplied by Harker & O'Leary: [paper](https://arxiv.org/abs/1308.4292) and [code](http://www.mathworks.com/matlabcentral/fileexchange/43149-surface-reconstruction-from-gradient-fields--grad2surf-version-1-0).\n\nUsage\n-----\nAn excerpt from [cthulhu](https://github.com/cjordan/cthulhu):\n\n grid_x, grid_y = np.meshgrid(np.linspace(-self.radius, self.radius, resolution),\n np.linspace(-self.radius, self.radius, resolution))\n self.grid_dra = np.flipud(np.fliplr(griddata(np.vstack((ra, dec)).T, ra_shifts,\n (grid_x, grid_y), method=interp_method, fill_value=0)))\n self.grid_ddec = np.flipud(np.fliplr(griddata(np.vstack((ra, dec)).T, dec_shifts,\n (grid_x, grid_y), method=interp_method, fill_value=0)))\n self.tec = np.flipud(g2s_method(grid_x[0, :], grid_y[:, 0], self.grid_dra, self.grid_ddec))\n\nwhere ```grid_dra``` and ```grid_ddec``` are generated from griddata from scipy.interpolate. Put simply, the gradient values (```ra_shifts``` and ```dec_shifts```) at the spatial positions (```ra``` and ```dec```) are gridded to form vector fields, which are then integrated by pyGrad2Surf.\n\nLimitations\n-----------\nA number of g2s methods are detailed by Harker & O'Leary, however, only the basic g2s method is available here. The other methods require some work to translate, thanks to syntactic and functional differences between python and MATLAB. These may or may not be completed in the future, but pull requests are welcome.\n\nContact\n-------\nchristopherjordan87 -at- gmail.com\n\nDependencies\n------------\n- python 2.7.x\n- numpy\n- scipy\n\n\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/cjordan/pyGrad2Surf", "keywords": "signal processing", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "pyGrad2Surf", "package_url": "https://pypi.org/project/pyGrad2Surf/", "platform": "", "project_url": "https://pypi.org/project/pyGrad2Surf/", "project_urls": { "Homepage": "https://github.com/cjordan/pyGrad2Surf" }, "release_url": "https://pypi.org/project/pyGrad2Surf/0.1.0/", "requires_dist": [ "numpy", "scipy" ], "requires_python": "", "summary": "A python translation of the Grad2Surf software provided by Harker & O'Leary", "version": "0.1.0" }, "last_serial": 3274257, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "f827ca8835dcc12d998f377dfc5065c9", "sha256": "13159db4f4a4f41db35e8ffa302f32c247704ef659f9b65577962402c610203b" }, "downloads": -1, "filename": "pyGrad2Surf-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "f827ca8835dcc12d998f377dfc5065c9", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 9778, "upload_time": "2017-10-24T06:35:08", "url": "https://files.pythonhosted.org/packages/fc/00/b29a2eb3ecbcab16f36fd0f24ca31cd8a8920bd48a5a55d57bd9e61d5876/pyGrad2Surf-0.1.0-py2.py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "f827ca8835dcc12d998f377dfc5065c9", "sha256": "13159db4f4a4f41db35e8ffa302f32c247704ef659f9b65577962402c610203b" }, "downloads": -1, "filename": "pyGrad2Surf-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "f827ca8835dcc12d998f377dfc5065c9", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 9778, "upload_time": "2017-10-24T06:35:08", "url": "https://files.pythonhosted.org/packages/fc/00/b29a2eb3ecbcab16f36fd0f24ca31cd8a8920bd48a5a55d57bd9e61d5876/pyGrad2Surf-0.1.0-py2.py3-none-any.whl" } ] }