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

Uploaded Source

Built Distribution

astropandas-1.1.3-py3-none-any.whl (21.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: astropandas-1.1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 7f9ab37557c5e16f07cb43de0d24cff7101375d79f8e1e02be784d9b1f99cd47
MD5 59719174caf49ab563df3487bf6a8fbc
BLAKE2b-256 4c6d1c9a4769d73a963690431b1a5ecef7e7372510faa7df0e8c46698b8b2a91

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for astropandas-1.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 daa7b5c77925586df970fa0b254ca73d3a7f2810b27a1b7e6bcd28572050eb5f
MD5 aeefbb95c210219d8633dd7e2cbad57b
BLAKE2b-256 4e9a10f927f34906ed277062cc69402cdecba953718bf6ebaaee08d8c0bb37e4

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