New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@behaver/basic-star-coordinate

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@behaver/basic-star-coordinate

This pkg is builded for calculating basic stars celestial coordinate.

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

BasicStarCoordinate

GitHub license npm version PRs Welcome

简介

BasicStarCoordinate 是一个关于基础星体天文坐标的计算组件。其中包含了对太阳、月球、太阳系八大行星和冥王星的天文坐标计算,同时提供了计算精度的控制接口。

计算组件

BasicStarCoordinate 依赖使用了底层的星体坐标计算模块,其中包括了SolarPlanetsHECCELP2000MoonGECCPluto99HECC。它们被封装在星体坐标实例的 Calculator 属性中,用户可以直接通过更改这些计算模块的计算设定,来实现坐标计算过程相关的控制。

用例

const { JupiterCoordinate } = require('@behaver/basic-star-coordinate');
const { JDateRepository } = require('@behaver/jdate');

// 实例化儒略时间
let jdate = new JDateRepository(2448908.5, 'jde');

// 实例化木星坐标对象
let JupCoord = new JupiterCoordinate(jdate);

// 获取木星黄道坐标对象
let JupECC = JupCoord.get();

// 获取木星黄经,单位:度
let JupL = JupECC.l.getDegrees();

// 设置木星坐标计算精度为低
JupCoord.Calculator.accuracy = 'low';

// 获取低精度木星黄道坐标对象
let JupECCLow = JupCoord.get();

// 获取低精度木星黄经,单位:弧度
let JupBLow = JupECCLow.b.getRadian();

API

constructor(jdate)

构造函数

set jdate(value)

设置参考时间属性

get jdate()

获取参考时间属性

get()

获取计算结果

许可证书

The MIT license.

Keywords

FAQs

Package last updated on 04 Mar 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc