{"_id":"@behaver/fixed-star-locator","_rev":"1-8b4f9d186ec48a97d4acea1bc3305996","name":"@behaver/fixed-star-locator","dist-tags":{"latest":"1.1.0"},"versions":{"1.1.0":{"name":"@behaver/fixed-star-locator","version":"1.1.0","description":"This pkg is builded for calculating the position of fixed star.","main":"index.js","directories":{"test":"test"},"scripts":{"test":"mocha test"},"repository":{"type":"git","url":"git+https://github.com/behaver/fixed-star-locator.git"},"keywords":["fixed","star"],"author":{"name":"Sanwan, Dong"},"license":"ISC","bugs":{"url":"https://github.com/behaver/fixed-star-locator/issues"},"homepage":"https://github.com/behaver/fixed-star-locator#readme","dependencies":{"@behaver/celestial-coordinate":"^1.9.1","@behaver/fixed-star-calculator":"^1.1.0","@behaver/jdate":"^2.3.2"},"devDependencies":{"chai":"^4.2.0","mocha":"^6.1.4"},"gitHead":"65d75073c67aab418b334f9c3d64f82ee1fb6d4f","_id":"@behaver/fixed-star-locator@1.1.0","_npmVersion":"5.6.0","_nodeVersion":"9.6.1","_npmUser":{"name":"behaver","email":"qianxing@yeah.net"},"dist":{"integrity":"sha512-eOcqpiu3lVVDTFHrhSwep81EABmEtkdX5U+BhfsC0zgxU7NSWoDMCurzFoWNgwwlndrUatJUT/dJbfZ0tOfJPA==","shasum":"9b53e164ccf513fe45598639fa11a4cf254ab247","tarball":"https://registry.npmjs.org/@behaver/fixed-star-locator/-/fixed-star-locator-1.1.0.tgz","fileCount":3,"unpackedSize":11252,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdDMFiCRA9TVsSAnZWagAAO5EP/1THUbZ2l7niVonQ11ya\nlzZQrFrDgTnxU1JmhXkarqpOlos02R//FCJkM6hbcLaQDRr+B0iLrlyM/4gI\ngOf+WPntkTGJpMLMpfyId9kd/YWkOtYt7rL/JUY8nZyacuML4TeupS974Auw\nIbGCkRkAYGLaOWCb/Iqd3aUgrUbLWe1Naj+vb5J5Fncz/3wajQB9CN3NTDiS\nxuszde2gmsMhK1BcLHP/oCCi09iZYTSWfY8aVen9eTfHr/fxx5ry0xCk8SKp\nZi0tzRlBUh2BshxAQcznst5GLZjTM6yeeavPs0u7Q4xmVQZx3EtMZoR/rQOJ\nMKMiSS+39+L6vHxrYDwhTxTvJqqogegrb1oELFpkfVRHXGIlCHoEYDkfy91E\nJsubhfwgp1z4BE+4dRlaXdMr34rCquHtTRz8Do0r5ajJDu079DVpVmAyy61z\nI4YGZDEWuFESccLRHxSQRg681KJvOOo09/z+zI6kdig4OEYj4iGNn67PrNmE\nyO8XfJWHwJ1Y6r9/n6BUfa1jvavTMGSYi8SgNjBMfAS+oI64OSUDBWb2doJE\n8yKygV0vZBvpwyGC2EeQILGZmwkuZSIXnYGfK+X0u91mee8sPA5zaJr8tFFs\np8r0Yd4uaB6eqipRPIUWPj9hwx3ioxCVjwG80l5tA5tB5Va9RO/v6VjqinQT\n/XEX\r\n=6gbB\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFbW3GHKB9nqVG9uLKCkL3X8O/JQIL4MebtIMGgnFWipAiEAsu5PZyOFMHJZZ1tEP8dTVMWDQHtKyo5pgoLfXv/fUg0="}]},"maintainers":[{"name":"behaver","email":"qianxing@yeah.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fixed-star-locator_1.1.0_1561117025862_0.688627095778447"},"_hasShrinkwrap":false}},"time":{"created":"2019-06-21T11:37:05.818Z","1.1.0":"2019-06-21T11:37:06.017Z","modified":"2022-04-04T18:12:38.947Z"},"maintainers":[{"name":"behaver","email":"qianxing@yeah.net"}],"description":"This pkg is builded for calculating the position of fixed star.","homepage":"https://github.com/behaver/fixed-star-locator#readme","keywords":["fixed","star"],"repository":{"type":"git","url":"git+https://github.com/behaver/fixed-star-locator.git"},"author":{"name":"Sanwan, Dong"},"bugs":{"url":"https://github.com/behaver/fixed-star-locator/issues"},"license":"ISC","readme":"# FixedStarLocator\n[![GitHub license](https://img.shields.io/badge/license-ISC-brightgreen.svg)](#) [![npm version](https://img.shields.io/npm/v/react.svg?style=flat)](https://www.npmjs.com/package/@behaver/fixed-star-locator) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](#)\n\n## 简介\n\nFixedStarLocator 是一个用于计算恒星赤道坐标的天文组件，计算的结果最终将以 `EquinoctialCoordinate` 实例返回。\n\n## 安装\n\n通过 npm 安装，在你的 node 项目目录下执行：\n\n`npm install @behaver/fixed-star-locator`\n\n安装完成后，调用即可：\n\n`const FixedStarLocator = require('@behaver/fixed-star-locator');`\n\n## 用例\n\n```js\nconst { JDateRepository } = require('@behaver/jdate');\nconst FixedStarLocator = require('@behaver/fixed-star-locator');\n\n// 实例化儒略时间对象\nlet jdate = new JDateRepository(2462088.69, 'jde');\n\n// 实例化恒星赤道坐标计算组件\nlet FSC = new FixedStarLocator;\n\n// 获取赤道坐标组件\nlet res = FSC.get({\n  time: jdate,\n  ra: 41.0500,\n  dec: 49.2283,\n  pmra: 0.336,\n  pmdec: -0.089,\n  radvel: 25,\n  parallax: 0.089,\n});\n\nlet eqc = res.coord;\n\n// 输出赤经，单位：°\nconsole.log(eqc.longitude.getDegrees());\n\n// 输出赤纬，单位：°\nconsole.log(eqc.latitude.getDegrees());\n\n// 输出赤地心距，单位：AU\nconsole.log(eqc.radius);\n```\n\n## API\n\n`constructor(options)`\n\n构造函数\n\n`options(options)`\n\n设置定位参数项：\n\n* options.id       位置id\n* options.ra       J2000 平赤经，单位：°\n* options.dec      J2000 平赤纬，单位：°\n* options.parallax 周年视差，单位：角秒\n* options.pmra     赤经自行，单位：角秒每儒略年\n* options.pmdec    赤纬自行，单位：角秒每儒略年\n* options.radvel   日心视向速度，单位：km/s\n* options.time     儒略时间对象\n* options.model    计算模型字串\n\n`get(options)`\n\n获取恒星赤道坐标对象\n\n`set id(value)`\n\n设定 位置id\n\n`get id()`\n\n获取 位置id\n\n`set time(value)`\n\n设置 儒略时间对象\n\n`get time()`\n\n获取 儒略时间对象\n\n`set model(value)`\n\n设置 计算模型\n\n`get model()`\n\n获取 计算模型\n\n`set ra(value)`\n\n设定 恒星 J2000 平赤经（单位：°）\n\n`get ra()`\n\n获取 恒星 J2000 平赤经（单位：°）\n\n`set dec(value)`\n\n设定 恒星 J2000 平赤纬（单位：°）\n\n`get dec()`\n\n获取 恒星 J2000 平赤纬（单位：°）\n\n`set parallax(value)`\n\n设定 周年视差（单位：角秒）\n\n`get parallax()`\n\n获取 周年视差（单位：角秒）\n\n`set pmra(value)`\n\n设定 赤经自行（单位：角秒每儒略年）\n\n`get pmra()`\n\n获取 赤经自行（单位：角秒每儒略年）\n\n`set pmdec(value)`\n\n设定 赤纬自行（单位：角秒每儒略年）\n\n`get pmdec()`\n\n获取 赤纬自行（单位：角秒每儒略年）\n\n`set radvel(value)`\n\n设定 日心视向速度（单位：km/s）\n\n`get radvel()`\n\n获取 日心视向速度（单位：km/s）\n\n## 许可证书\n\nThe ISC license.","readmeFilename":"readme.md"}