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

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

Uploaded Python 3

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