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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: astropandas-1.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 2f218358e53b89442599602d39a7233f7c9cf2c5f72a02988e01db930072f61e
MD5 0a5a417f02c312828c9bb6d9baa20d9f
BLAKE2b-256 ee48d4ec4f210bdfb6f4e441d84298b9f93a1646f18977bbce237dbadaff47e9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: astropandas-1.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a7127f576c99362ef01d30daaa1d22a28ed9dcaf81f43af431c37825811bc003
MD5 6954689e5807300aab4ef765658a374a
BLAKE2b-256 f994af03a2e85eb4d1f8f4af6a3b1b0b4005dc984892f370d30fdcbe0ee73b57

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