Skip to main content

Common Routines of OCA Observatory and Araucaria Project

Project description

Common Routines of OCA Observatory and Araucaria Project

This library is intended to group various common routines and commandline tools used in Araucaria Project and OCA observatory software.

Routines of this library should contain external dependencies as limited as possible. Requires Python 3.10+.

Installation

Basic install:

pip install git+https://github.com/araucaria-project/pyaraucaria.git

Developer install

git clone https://github.com/araucaria-project/pyaraucaria.git
cd pyaraucaria
uv sync --all-extras

Usage in your project

Add to your pyproject.toml dependencies:

dependencies = [
    "pyaraucaria @ git+https://github.com/araucaria-project/pyaraucaria.git",
]

Routines

Coordinates

coordinates.py contains dependency-free fast routines to parse/format sexagesimal coordinates.

Lookup Objects

Lookup for objects/targets parameters using one of its aliases. Uses Objects.database nad TAB.ALL files.

Example

>>> from pyaraucaria.lookup_objects import ObjectsDatabase
>>> od = ObjectsDatabase()
>>> od.lookup_object('lmc105_8_11987')
{'name': 'CEP25', 
 'ra': '05:18:12.8', 
 'dec': '-71:17:15.4', 
 'per': 3.4050955, 
 'hjd0': 2160.55457, 
 'aliases': ['LMC-T2CEP-085', 'lmc105.8_11987', 'lmc105_8_11987', 'cepii_lmc105_8_11987'], 
 'hname': 'LMC-T2CEP-085'
}

Command Line

$ lookup_objects -j hd167003
{"hd167003": {"name": "HIP37", "ra": "18:14:43.3", "dec": "-33:08:41.8", "aliases": ["hd_167003", "hd167003"]}}

See also

$ lookup_objects --help

Optional dependencies

For YAML output (-y option), some yaml python package should be installed.

Star Object Data Library

Set of routines for parsing TAB.ALL-like files

Example

>>> from pyaraucaria import libobject
>>> ol = libobject.ObjectList('TAB.ALL')
>>> ol.get_object('AL_Dor').data
{'I': None,
 'K': None,
 'V': 7.8,
 'aop': 1.8771,
 'band': 'V',
 'comment': None,
 'dec': '-60:36:14',
 'ecc': 0.1952,
 'file': None,
 'group': 'hipp',
 'hjd0': 2452764.100149,
 'k1': 57.477,
 'k2': 57.253,
 'lc': 'I',
 'obstype': None,
 'per': 14.90519957,
 'phext': None,
 'ra': '04:46:52.2',
 'status': None,
 'v0': 11.836}

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

pyaraucaria-2.11.0.tar.gz (201.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyaraucaria-2.11.0-py3-none-any.whl (202.3 kB view details)

Uploaded Python 3

File details

Details for the file pyaraucaria-2.11.0.tar.gz.

File metadata

  • Download URL: pyaraucaria-2.11.0.tar.gz
  • Upload date:
  • Size: 201.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.7

File hashes

Hashes for pyaraucaria-2.11.0.tar.gz
Algorithm Hash digest
SHA256 7f028db68193c7653e6b8179116891fc24fac3d4348a67acc7fbe1a8ae227f95
MD5 3c2d15940fb1f98252a602e0aa545e26
BLAKE2b-256 4ed962342a1e5f46e16734e39740878a4ec52d143297ac56eb95db0a08e37a85

See more details on using hashes here.

File details

Details for the file pyaraucaria-2.11.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pyaraucaria-2.11.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c27d26ca59caefaf7c11d27b185c867fa35b48654374b527b3673d2f4417e119
MD5 1f4714d8200c766372f985488d7aeb1b
BLAKE2b-256 2826800225ca266fb95663282ef16338dd2e3ce9d58d206e95e0b2286e59de94

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page