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

Uploaded Source

Built Distribution

astropandas-1.1-py3-none-any.whl (21.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: astropandas-1.1.tar.gz
  • Upload date:
  • Size: 20.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.13

File hashes

Hashes for astropandas-1.1.tar.gz
Algorithm Hash digest
SHA256 01bc3ad416f6c6a0e4bdafe30ab66091fd8f53055c8cdf77fc612fbe469cc0bc
MD5 61731571a512daeaec4d5f7e48f2f39a
BLAKE2b-256 d4dc1b8ab72d09c19b5cfd8668772a92e1b5f6cb45948507c2f384c7a5b0759d

See more details on using hashes here.

File details

Details for the file astropandas-1.1-py3-none-any.whl.

File metadata

  • Download URL: astropandas-1.1-py3-none-any.whl
  • Upload date:
  • Size: 21.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.13

File hashes

Hashes for astropandas-1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1459b2cbb7d51bc4b7513fad6ae09c3edd0b501688849831e4c81cbb2a46a874
MD5 ca274827e04b6d54ddf933bd7728aaa7
BLAKE2b-256 15af8c68f8774bd3bad6eba6f0141c40b628cf1ec014a529c60a0b43caf842f4

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