Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@behaver/annual-aberration

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@behaver/annual-aberration

The pkg is used to calculate annual aberration

  • 1.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6
increased by50%
Maintainers
1
Weekly downloads
 
Created
Source

AnnualAberration

GitHub license npm version PRs Welcome

简介

AnnualAberration 是一个用于计算天体周年光行差的组件。

本组件计算支持的坐标系统有:赤道坐标和黄道坐标,计算结果的历元标准为 J2000 历元,单位为:弧度。

安装

通过 npm 安装,在你的 node 项目目录下执行:

npm i --save @behaver/annual-aberration

安装完成后,调用即可:

const AnnualAberration = require('@behaver/annual-aberration');

用例

const AnnualAberration = require('@behaver/annual-aberration');
const { JDateRepository } = require("@behaver/jdate");
const { SphericalCoordinate3D } = require('@behaver/coordinate');

let AA = new AnnualAberration({
  time: new JDateRepository(18, 'j2000'),
  sc: new SphericalCoordinate3D(1, 1.123, 1.55),
  system: 'ecliptic',
});

let res = AA.get();

API

constructor(options)

构造函数:

  • options.time 计算时间
  • options.sc 天体球坐标
  • options.system 坐标系统

get()

获取周年光行差

get time()

获取计算时间

set time(time)

设置计算时间

许可证书

The MIT license.

Keywords

FAQs

Package last updated on 24 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