Tools to expand on pandas functionality for astronomical operations.
Project description
astropandas
Tools to expand on pandas functionality for astronomical applications.
Features
- directly read and write FITS table data, see
astropandas.read_fits
andastropandas.to_fits
- match based on sky coordinates, see
astropandas.match
Examples
Reading and writing FITS table files:
import astropandas as apd
data = apd.read_fits("myfile.fits", hdu=1)
# manipulate data ...
apd.to_fits(data, "mynewfile.fits")
Matching on angular coordinates:
import astropandas as apd
data1 = apd.read_fits("myfile1.fits")
data2 = apd.read_fits("myfile2.fits")
# Match within one arcsecond on right ascension (ra) and declination (dec),#
# labeled "RA" and "DEC" in the data.
# Here we assume that the column names are the same in both catalogues,
# otherwise specify with left_ra=, right_ra=, etc.
apd.match(
left=data1, right=data2,
ra="RA", dec="DEC",
threshold=1/3600)
# If no threshold is provided, it is computed automatically by finding the
# distance at which the number of matches is almost stationary.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
astropandas-1.2.tar.gz
(21.4 kB
view details)
Built Distribution
astropandas-1.2-py3-none-any.whl
(21.3 kB
view details)
File details
Details for the file astropandas-1.2.tar.gz
.
File metadata
- Download URL: astropandas-1.2.tar.gz
- Upload date:
- Size: 21.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9df0b6ca2b266a61207c1041d9afc98f8339ede171e23a62285464e9e651e7d7 |
|
MD5 | a25ddefb5fef2f8b8ae5b20646ec97a8 |
|
BLAKE2b-256 | 28263441c37b755e313313b88f5dce71e030090c865dd1f18d6e866177a7c09b |
File details
Details for the file astropandas-1.2-py3-none-any.whl
.
File metadata
- Download URL: astropandas-1.2-py3-none-any.whl
- Upload date:
- Size: 21.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d948ba87160f9a44262aa38e299ddc57e8e179ec8ebb0fc485b1147fe69406f |
|
MD5 | 7db40f27b52b4fa56863954c0fbc0c84 |
|
BLAKE2b-256 | 5c2f9e98745ce24f38f039a1e322aaff135b81d7f5e4ccbcf750304f894dc6d0 |