Skip to main content

Some quick astronomical utility functions.

Project description

qastutil

Author: Dr Jie Zheng v1.0 2023R

Introduction

Some quick astronomical functions.

Functions

  • dec2dms: transfer decimal to sexagesimal deg-min-sec, for Dec
  • dec2hms: transfer decimal to sexagesimal hour-min-sec, for RA
  • dms2dec: transfer sexagesimal deg-min-sec to decimal, for Dec
  • hms2dec: transfer sexagesimal hour-min-sec to decimal, for RA
  • coorddec2dms: transfer astropy.coord.dec to deg-min-sec
  • coordra2hms: transfer astropy.coord.ra to hour-min-sec
  • hour2str: transfer decimal hour to hour-min-sec
  • hourangle: computer hour angle between lst and ra
  • angle_dis: distance between two angles, result between -180 and +180
  • distance: distance between two sphere points
  • azalt: az & alt for object (ra, dec) at lat, lst
  • mjd: from y, m, d, h, s, s, tz to mjd
  • day_of_year: day serial number in given year
  • fmst: fast midnight sidereal time
  • mjd2: from y, m, d, h, s, s, tz to mjd
  • night_len: n of hours from sunset to sunrise
  • night_time: sunset and sunrise for given yr, mn, dy, lon, lat, tz
  • mjd_of_night: get 4-digit mjd code for the site, using local 18:00
  • mjd2hour: Extract hour part from mjd
  • sun_action: Get time of sun pass specified altitude, in this night
  • airmass: airmass from lat, lst, ra, dec
  • lst: get local sidereal time for longitude at mjd, no astropy
  • sun_pos: sun position of given mjd
  • moon_pos: moon position of given mjd
  • moon_phase: moon phase of given mjd, by sun-earth-moon angle
  • moon_phase2: moon phase by moon cycle

Project details


Release history Release notifications | RSS feed

This version

0.32

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

qastutil-0.32-py3-none-any.whl (14.0 kB view details)

Uploaded Python 3

File details

Details for the file qastutil-0.32-py3-none-any.whl.

File metadata

  • Download URL: qastutil-0.32-py3-none-any.whl
  • Upload date:
  • Size: 14.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.6

File hashes

Hashes for qastutil-0.32-py3-none-any.whl
Algorithm Hash digest
SHA256 899e1d22f88ee72d8361d05be8c92db2272e09a401cc24e4b9f8256f00a82dfc
MD5 06486ee1225c2bd464fa3c2fc4fbf320
BLAKE2b-256 01131a81fb01355b78610cb04aca98c92bb3ac7d0bd481faa257cca5680584c2

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