===========
Software 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).
Usage
-----
An excerpt from [cthulhu](https://github.com/cjordan/cthulhu):
grid_x, grid_y = np.meshgrid(np.linspace(-self.radius, self.radius, resolution),
np.linspace(-self.radius, self.radius, resolution))
self.grid_dra = np.flipud(np.fliplr(griddata(np.vstack((ra, dec)).T, ra_shifts,
(grid_x, grid_y), method=interp_method, fill_value=0)))
self.grid_ddec = np.flipud(np.fliplr(griddata(np.vstack((ra, dec)).T, dec_shifts,
(grid_x, grid_y), method=interp_method, fill_value=0)))
self.tec = np.flipud(g2s_method(grid_x[0, :], grid_y[:, 0], self.grid_dra, self.grid_ddec))
where ```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.
Limitations
-----------
A 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.
Contact
-------
christopherjordan87 -at- gmail.com
Dependencies
------------
- python 2.7.x
- numpy
- scipy
Metadata
Release files for pyGrad2Surf 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyGrad2Surf-0.1.0-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for pyGrad2Surf-0.1.0-py2.py3-none-any.whl |
Release files / pyGrad2Surf-0.1.0-py2.py3-none-any.whl
| Download URL | pyGrad2Surf-0.1.0-py2.py3-none-any.whl |
|---|---|
| Size | 9.8 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
13159db4f4a4f41db35e8ffa302f32c247704ef659f9b65577962402c610203b
|
|
BLAKE2b-256 checksum How to use checksums |
fc00b29a2eb3ecbcab16f36fd0f24ca31cd8a8920bd48a5a55d57bd9e61d5876
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for pyGrad2Surf 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.