pySLALIB v1.0.2 (Dec 2010)
---------------
This is archive contains new f2py-generated (and hand-tweaked to
eliminate unnecessary function/subroutine arguments) wrappers for the
Fortran version of P.T. Wallace's SLALIB positional astronomy library.
SLALIB used to be hosted by the STARLINK site, although that service
has been suspended. The version of SLALIB included here is 2.5-4
(with several additional tweaks) and is released under the GPL.
The python wrappers cover every function in SLALIB and a comprehensive
set of unit tests are available in the test/ directory. The only
external dependency is numpy (http://numpy.scipy.org). These wrappers
are not related to the older (and apparently abandoned) pySLALIB that
was once available on the Web (and which depended on Numeric as
opposed to numpy).
Installation
------------
Most users will only need to do:
> python setup.py install
to generate the wrappers, build, and install the library.
Once slalib.so has been installed in your PYTHONPATH, you can run the
unittests via:
> python test/test_slalib.py
Example Usage (using IPython)
-------------
In [1]: from pyslalib import slalib
In [2]: slalib.sla_veri()
Out[2]: 2005004
In [3]: slalib.sla_caldj(1999, 12, 31)
Out[3]: (51543.0, 0)
In [4]: slalib.sla_etrms(1976.9)
Out[4]: array([ -1.62161710e-06, -3.31007009e-07, -1.43529663e-07])
In [5]: slalib.sla_fk45z(1.234, -0.123, 1984)
Out[5]: (1.2446165107316911, -0.12141858395865548)
In [6]: slalib.sla_dafin("-00 03 34.6", 1)
Out[6]: (12, -0.0010404101596610642, 0)
In [7]: slalib.sla_obs(0, "GBT")
Out[7]:
('GBT',
'Green Bank Telescope ',
1.3934679949996727,
0.67078450520692623,
880.0)
If you import "sladoc" you can print the original Fortran doc
strings using something like:
In [1]: from pyslalib import slalib, sladoc
In [2]: print sladoc['sla_caldj']
"""
* - - - - - -
* C A L D J
* - - - - - -
*
* Gregorian Calendar to Modified Julian Date
*
* (Includes century default feature: use sla_CLDJ for years
* before 100AD.)
*
* Given:
* IY,IM,ID int year, month, day in Gregorian calendar
*
...
Thanks go to Prasanth for adding the docstring capabilities!
If you would like to build a shared library for linking with other
programs, a simple Makefile is also included that should work with
only minor tweaks for most Unix-like OSs.
Please let me know if you find any problems.
Scott
----------------------------------
Scott M. Ransom <sransom@nrao.edu>
http://www.cv.nrao.edu/~sransom
Metadata
Release files for pyslalib 1.0.10
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyslalib-1.0.10.tar.gz | 332.6 kB | Without provenance | Details for pyslalib-1.0.10.tar.gz |
Release files / pyslalib-1.0.10.tar.gz
| Download URL | pyslalib-1.0.10.tar.gz |
|---|---|
| Size | 332.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
da8663bdf9db51e345214a0add057ca7f52f7a892302044e8449b730dac1b085
|
|
BLAKE2b-256 checksum How to use checksums |
39839bd29e387de5a90f0704641ce97f0bddccf7c5835b0870451c6e87a50304
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.0
|
Security for pyslalib 1.0.10
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.