Skip to main content

rms-starcat

GitHub release; latest by date GitHub Release Date Test Status Documentation Status Code coverage
PyPI - Version PyPI - Format PyPI - Downloads PyPI - Python Version
GitHub commits since latest release GitHub commit activity GitHub last commit
Number of GitHub open issues Number of GitHub closed issues Number of GitHub open pull requests Number of GitHub closed pull requests
GitHub License Number of GitHub stars GitHub forks DOI

Introduction

starcat is a set of classes for reading and searching star catalogs. Currently NAIF SPICE star catalogs, the Yale Bright Star Catalog (YBSC), and UCAC4 are supported.

starcat is a product of the PDS Ring-Moon Systems Node.

Installation

The starcat module is available via the rms-starcat package on PyPI and can be installed with:

pip install rms-starcat

Getting Started

The starcat module provides the StarCatalog class, which is the superclass for classes that handle specific star catalogs. Each star catalog class takes an optional directory path to point at the root of the star catalog data; if no directory path is provided, the contents of an environment variable is used instead. Each path can be a full URL as supported by rms-filecache, allowing the catalog data to be downloaded (and cached locally) at runtime.

  • SpiceStarCatalog
    • The dir argument, if specified, must point to a directory containing NAIF SPICE kernels.
    • Otherwise, the environment variable SPICE_PATH, if defined, must contain a Stars subdirectory with NAIF SPICE kernels.
    • Otherwise, the environment variable OOPS_RESOURCES must contain a SPICE/Stars subdirectory.
  • YBSCStarCatalog
    • The dir argument, if specified, must point to a directory containing the file catalog.
    • Otherwise, the environment variable YBSC_PATH must point to that directory.
  • UCAC4StarCatalog
    • The dir argument, if specified, must point to a directory containing the directory u4b.
    • Otherwise, the environment variable UCAC4_PATH must point to that directory.

Each star catalog returns stars as a class that is a subclass of Star. Each subclass contains the attributes provided by that star catalog, and none are guaranteed to be filled in for all stars:

  • SpiceStar
  • YBSCStar
  • UCAC4Star

Details of each class are available in the module documentation.

Basic operation is as follows:

from starcat import YBSCStarCatalog
import numpy as np
cat = YBSCStarCatalog()
ra_vega = 279.2333
dec_vega = 38.7836
vega_list = list(cat.find_stars(ra_min=np.radians(ra_vega-0.1),
                                ra_max=np.radians(ra_vega+0.1),
                                dec_min=np.radians(dec_vega-0.1),
                                dec_max=np.radians(dec_vega+0.1)))

assert len(vega_list) == 1
print(vega_list[0])

yields:

UNIQUE ID 7001 | RA 279.2345833° (18h36m56.300s) | DEC 38.7836111° (+038d47m1.000s)
VMAG  0.030  | PM RA 259.135 mas/yr  | PM DEC 286.000 mas/yr
TEMP 10800 | SCLASS A0Va
Name "3Alp Lyr" | Durch "BD+38 3238" | Draper 172167 | SAO 67174 | FK5 699
IR 1 Ref NASA | Multiple " " | Aitken 11510 None | Variable "Alp Lyr"
SCLASS Code   | Galactic LON 67.44 LAT 19.24
B-V 0.0 | U-B -0.01 | R-I -0.03
Parallax TRIG 0.1230000 arcsec | RadVel -14.0 km/s V  | RotVel (v sin i) 15.0 km/s
Double mag diff 10.40 Sep 62.80 arcsec Components AB # 5

Contributing

Information on contributing to this package can be found in the Contributing Guide.

Links

Licensing

This code is licensed under the Apache License v2.0.

Metadata

Release files for rms-starcat 1.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rms-starcat 1.2.0
File Size Uploaded Provenance Actions
rms_starcat-1.2.0.tar.gz 130.8 kB Without provenance Details for rms_starcat-1.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for rms-starcat 1.2.0
File Interpreter ABI Platform Actions
rms_starcat-1.2.0-py3-none-any.whl Python 3 none any Details for rms_starcat-1.2.0-py3-none-any.whl

Total release size: 166.7 kB

Release files / rms_starcat-1.2.0.tar.gz

Download URL rms_starcat-1.2.0.tar.gz
Size 130.8 kB
Tags Source
SHA-256 checksum
How to use checksums
6265397f9ce0b4ce2eabb963e1dd3b56381b09340bf5d38bd4c7ced2e83d2cf7
BLAKE2b-256 checksum
How to use checksums
a0de94947c9f847f0d33e00ddc38f16a43b029d09f26fa772239c550a3f2bd8c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / rms_starcat-1.2.0-py3-none-any.whl

Download URL rms_starcat-1.2.0-py3-none-any.whl
Size 35.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
79d631bc82ac8710979917dc7fd183dfc01fc52327c02974aa0ffef6c97faba3
BLAKE2b-256 checksum
How to use checksums
eb09cc05dc29184343fccecced3e856fd142790ba295dea170244b6d72d3d5fc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for rms-starcat 1.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page