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.1.tar.gz
(21.4 kB
view hashes)
Built Distribution
Close
Hashes for astropandas-1.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 524d62eb04464c02fa65639482267b938d92e3e8b7aee3ca6866c9345d7040f0 |
|
MD5 | 8ef749b9b88f78aa780a98a7264b9b97 |
|
BLAKE2b-256 | 9a7284ef5ec4cee39c78f1ad984f33719dd1f4d7941d3fa7d2fd1d33690b5da7 |