astronomy

Objective-C Astronomy Library

假如想象 提交于 2019-12-03 06:27:22
I need to do some moonrise azimuth and time calculations. Can anyone recommend a good astronomy library, preferably in Objective-C? I recommend PJ Naughter's AA+ library . It is based on the Astronomical Algorithms book by Meeus. The library is quite comprehensive and written in C++ (easily called from Objective-C). My iOS app Lúan uses this library. Maybe code of opensource projects could fit you? Recently on FLOSS-Weekly was a discussion about Stellarium . Disclaimer: I didn't look at that source of Stellarium so I have no idea if it is useful at all and unfortunately it is written in C/C++.

What are some algorithms that will allow me to simulate planetary physics?

♀尐吖头ヾ 提交于 2019-12-03 02:20:15
问题 I'm interested in doing a "Solar System" simulator that will allow me to simulate the rotational and gravitational forces of planets and stars. I'd like to be able to say, simulate our solar system, and simulate it across varying speeds (ie, watch Earth and other planets rotate around the sun across days, years, etc). I'd like to be able to add planets and change planets mass, etc, to see how it would effect the system. Does anyone have any resources that would point me in the right direction

What are some algorithms that will allow me to simulate planetary physics?

独自空忆成欢 提交于 2019-12-02 15:51:20
I'm interested in doing a "Solar System" simulator that will allow me to simulate the rotational and gravitational forces of planets and stars. I'd like to be able to say, simulate our solar system, and simulate it across varying speeds (ie, watch Earth and other planets rotate around the sun across days, years, etc). I'd like to be able to add planets and change planets mass, etc, to see how it would effect the system. Does anyone have any resources that would point me in the right direction for writing this sort of simulator? Are there any existing physics engines which are designed for this

Calculations of the path of the Sun

99封情书 提交于 2019-11-30 18:16:19
I'm writing several methods necessary to calculate the path of the Sun across a specific point. I have written the code using two different sources for my calculations and neither is producing the desired result. The sources are: http://www.pveducation.org/pvcdrom/properties-of-sunlight/suns-position and http://www.esrl.noaa.gov/gmd/grad/solcalc/solareqns.PDF Note: Degrees to arcminutes is Deg * 60 min. localSolartime: I have converted the longitude to 'minutes', the local standard time meridian(lstm) derived from the localStandardTimeMeridian method returns a value that is in 'minutes', and

Plotting elliptical orbits

只谈情不闲聊 提交于 2019-11-30 17:26:42
问题 I'm trying to write a code that plots the elliptical paths of an object using the equation for the ellipse r=a(1-e^2)/(1+e*cos(theta)). I'd also like this data to be put into an array for other use. from numpy import *#Imports Python mathematical functions library import matplotlib.pyplot as plt #Imports plot library from pylab import * a = 5 e = 0.3 theta = 0 while theta <= 2*pi: r = (a*(1-e**2))/(1+e*cos(theta)) print("r = ",r,"theta = ",theta) plt.polar(theta, r) theta += pi/180 plt.show()

ECEF from Azimuth, Elevation, Range and Observer Lat,Lon,Alt

随声附和 提交于 2019-11-30 15:49:46
I'm trying to write a basic python script that will track a given satellite, defined with tle's, from a given location. I'm not a asto/orbital person but am trying to become smarter on it. I am running into a problem when I try to convert the azimuth, elevation, range values to a ECEF position. I'm using PyEphem to get the observation values and spg4 to get the real location to verify. I'm also using the website, http://www.n2yo.com/?s=25544 , the verify the values. I'm getting the observed azimuth, elevation and range with: def get_ob(epoch, sv, obsLoc): site = ephem.Observer() site.lon = str

How to plot Gaia astrometry data to TESS images using Python?

安稳与你 提交于 2019-11-30 09:01:43
Long story short: I want to plot Gaia astrometry data to TESS imagery in Python. How is it possible? See below for elaborated version. I have 64x64 pixel TESS imagery of a star with Gaia ID 4687500098271761792 . Page 8 of the TESS Observatory Guide says 1 pixel is ~21 arcsec. Using the Gaia Archive , I search for this star (below top features , click Search .) and submit a query to see the stars within 1000 arcsec, roughly the radius we need. The name I use for the search is Gaia DR2 4687500098271761792 , as shown below: Submit Query, and I get a list of 500 stars with RA and DEC coordinates.

How do i fill “holes” in an image?

依然范特西╮ 提交于 2019-11-30 04:22:34
问题 I have photo images of galaxies. There are some unwanted data on these images (like stars or aeroplane streaks) that are masked out. I don't just want to fill the masked areas with some mean value, but to interpolate them according to surrounding data. How do i do that in python? We've tried various functions in SciPy.interpolate package: RectBivariateSpline, interp2d, splrep/splev, map_coordinates, but all of them seem to work in finding new pixels between existing pixels, we were unable to

Calculations of the path of the Sun

北城以北 提交于 2019-11-30 02:37:28
问题 I'm writing several methods necessary to calculate the path of the Sun across a specific point. I have written the code using two different sources for my calculations and neither is producing the desired result. The sources are: http://www.pveducation.org/pvcdrom/properties-of-sunlight/suns-position and http://www.esrl.noaa.gov/gmd/grad/solcalc/solareqns.PDF Note: Degrees to arcminutes is Deg * 60 min. localSolartime: I have converted the longitude to 'minutes', the local standard time

ECEF from Azimuth, Elevation, Range and Observer Lat,Lon,Alt

可紊 提交于 2019-11-29 23:11:21
问题 I'm trying to write a basic python script that will track a given satellite, defined with tle's, from a given location. I'm not a asto/orbital person but am trying to become smarter on it. I am running into a problem when I try to convert the azimuth, elevation, range values to a ECEF position. I'm using PyEphem to get the observation values and spg4 to get the real location to verify. I'm also using the website, http://www.n2yo.com/?s=25544, the verify the values. I'm getting the observed