Skip to main content

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 and astropandas.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


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.1.2a0.tar.gz (21.2 kB view details)

Uploaded Source

Built Distribution

astropandas-1.1.2a0-py3-none-any.whl (21.2 kB view details)

Uploaded Python 3

File details

Details for the file astropandas-1.1.2a0.tar.gz.

File metadata

  • Download URL: astropandas-1.1.2a0.tar.gz
  • Upload date:
  • Size: 21.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.4

File hashes

Hashes for astropandas-1.1.2a0.tar.gz
Algorithm Hash digest
SHA256 cec7bb5c46f7638354bcc164f6eb4d03d3ebadef29613d6635b8e1088fb52be0
MD5 d0eb6a3625008217a3d15ac975ebb9e1
BLAKE2b-256 87a97478b60bf367cb1b42a578e83b7537ab65c035688984fafc3403f9b74faf

See more details on using hashes here.

File details

Details for the file astropandas-1.1.2a0-py3-none-any.whl.

File metadata

File hashes

Hashes for astropandas-1.1.2a0-py3-none-any.whl
Algorithm Hash digest
SHA256 fc960f71fe8f0bd348e5399c4c953ee122f0098590a17bfd7138492c54ce9a4f
MD5 71ab857831016fb27779c1be3ea9bc47
BLAKE2b-256 bbe49d5f1a231a57eb25bb1eef990b1ed75547977d70dab5b249f42189d17d16

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