Skip to main content

PAL -- A Positional Astronomy Library

Project description

PALpy - Python positional astronomy library
===========================================

PALpy is a python interface to the PAL positional astronomy library
(<https://github.com/Starlink/pal>). All source code is included with
the distribution via git submodules.

To build the python interface from the git repository::

git submodule init
git submodule update
python setup.py build
python setup.py install
python test_pal.py

Requires that Cython and numpy are installed.

The interface uses the same names as the C interface with the pal
prefix missing::

import palpy as pal

djm = pal.caldj( 1999, 12, 31 )
(r2000, d2000) = pal.fk45z( 1.2, -0.3, 1960 )

All arguments modified by the C API are returned. No arguments
are modified. The one routine that is different is palObs which
returns a simple dict that can be searched using standard python.
The keys to the dict are the short names and the values are another
dict with keys name, long, lat and height.

See ``test_pal.py`` for detailed examples of all functions.

Documentation:
--------------

The module provides documentation on how to use the perl interface
to PAL. It does not contain information on how to use
PAL itself.

The basic PAL documentation can be found at

http://www.starlink.ac.uk/star/docs/sun267.htx/sun267.html

For more information the SLA documentation provides much more
detail:

http://www.starlink.ac.uk/star/docs/sun67.htx/sun67.html

A description paper for PAL was published in the ADASS XXII
conference proceedings:

http://adsabs.harvard.edu/abs/2013ASPC..475..307J

Please consider citing this if you use PAL or palpy in your
research.

Further Work
----------

Documentation is missing from the Python description. Please
look at the PAL C code for now but the intent is to add the
API descriptions to the source (preferably dynamically).

Not all the SLALIB routines are available from PAL.

Author
------

Copyright (C) 2012, 2014
Tim Jenness (tim.jenness@gmail.com).
All Rights Reserved.

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
published by the Free Software Foundation; either version 2 of
the License, or (at your option) any later version.

This program is distributed in the hope that it will be
useful, but WITHOUT ANY WARRANTY; without even the implied
warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02110-1301, USA.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

palpy-1.1.tar.gz (434.9 kB view details)

Uploaded Source

File details

Details for the file palpy-1.1.tar.gz.

File metadata

  • Download URL: palpy-1.1.tar.gz
  • Upload date:
  • Size: 434.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for palpy-1.1.tar.gz
Algorithm Hash digest
SHA256 e9c1e3b817376bfa7de250d7051b2cdf05253bb71ec1bbf33d6e4ee855672cb1
MD5 75a71cbe02f47b7b7ec4bbd5dab5670a
BLAKE2b-256 faca4b6ff2ce789d4b60af9cbfb249dc00d63fc3bf7aaabe71262840f61bc491

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page