承接 leonboot/ra-dec-to-alt-az 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

leonboot/ra-dec-to-alt-az

Composer 安装命令:

composer require leonboot/ra-dec-to-alt-az

包简介

A PHP Right Ascension and Declination to Altitude and Azimuth for the users current Earth Position and time

README 文档

README

This repository is a fork of Tom Gillespy's RA/Dec to Alt/Az repository, with the sole purpose of making the class composer installable. Some code refactoring was done, most importantly the class has been put into its own namespace.

This class converts celestial coordinates, along with the time, latitude and longditude to a altitude and azimuth for a telescope mount or camera.

##Installation

composer install leonboot/ra-dec-to-alt-az

##Usage

require 'vendor/autoload.php';

use Radec\Calculator as radec;

$radec = new radec(radec::decimaldegrees(latitude), radec::decimaldegrees(longditude));

$radec->setradec(radec::decimaldegrees(right_ascention), radec::decimaldegrees(declination));

$time = strtotime('now');

$azimuth = $radec->getAZ($time);
$altitude = $radec->getALT($time);

##Other Functions

####Radec\Calculator::daysbeforeJ2000($timestamp)

This gives the number of days between $timestamp and the J2000 epoch. Wikipedia Article

####Radec\Calculator::getdecimalUT($timestamp)

This gives the universitl time in decimal form. All calculations in this are performed using decimals from degrees, minutes and seconds and the time equivalent (hours, minuites and seconds).

####Radec\Calculator::fractionalday($timestamp)

This just divides the UT by 24 to get the fraction of a day.

####Radec\Calculator::getLST($timestamp)

This calculated Local Sidereal time for the latitude and longditude set in the constructor. The approximation is within 0.3 seconds of time for dates within 100 years of J2000.

####Radec\Calculator::getHA($timestamp)

Gets the current hour angle - the current angle of the observers location relative to the celestial sphere.

####Radec\Calculator::getALT($timestamp)

Returns the altitude of the specificed target at this time at a location.

####Radec\Calculator::getAZ($timestamp)

Returns the azimuth of the specified target at this time at a location.

统计信息

  • 总下载量: 675
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 2
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2016-08-02

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固