JSPM

equatorial

1.1.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 4
  • Score
    100M100P100Q30565F
  • License BSD

degree <=> hms conversion functions for equatorial coordinates

Package Exports

  • equatorial

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (equatorial) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

equatorial

convert right ascension/declination values from the equatorial coordinate system (used in astronomy) between the HMS/DMS and Degrees formats

installation

npm install equatorial

usage

use in the browser with browserify

var eq = require('equatorial')
eq.decDeg2Hms(24.622590) // '24:37:21.32399999999592'
eq.decDeg2Hms(-24.622590) // '-24:37:21.32399999999592'
eq.decHms2Deg('24:37:21.324') // 24.62259
eq.decHms2Deg('-24:37:21.324') // -24.62259
eq.raDeg2Hms(66.918277) // '4:27:40.386480000000375'
eq.raDeg2Hms(-66.918277) // '-4:27:40.386480000000375'
eq.raHms2Deg('4:27:40.386') // 66.918275
eq.raHms2Deg('-4:27:40.386') // -66.918275