astronomy

Why is my astronomy simulation inaccurate?

余生颓废 提交于 2019-12-06 07:45:36
I've made a program that simulates movement of bodies in the solar system, however, I'm getting various inaccuracies in my results. I believe that it probably has something to do with my integration method. tl;dr there's a slight difference between the position and velocity of Earth between my simulation and NASA's data, if you could please look at my code below and tell me whether my math is wrong. The test I've ran is a 10 day long (864000 seconds) simulation, that starts at Thu Mar 13 18:30:59 2006 and ends at Thu Mar 23 18:30:59 2006 . After the simulation the program reported the

Is it possible to make a correlation between an image and a constellation?

左心房为你撑大大i 提交于 2019-12-05 23:47:32
What I'm trying to do is to create a relation between an image which has been taken by a mobile phone and a constellation. Let's suppose I've been given the whole coordinates of each constellations from NASA and I can recognize some specified objects as coordinate points on the image. How can I make a relation between those different coordinates? How can I point geometrical similarities between image and any constellation? What kind of an algorithm could help the situation? Spektre I think you would be better of with comparing star position,brightness,color The outline image and constellation

Slicing a circle in equal segments, Python

半城伤御伤魂 提交于 2019-12-05 08:13:43
I have a set of close of 10,000 points on the sky. They are plotted using the RA (right ascension) and DEC (declination) on the sky. When plotted, they take the shape of a circle. What I would like to do is to slice the circle into 8 equal parts and remove each part one at a time and do some calculations using the remaining parts. To do so I came up with this illustration in mind, i.e. slicing them using the arcs. I know that the equation of the arc is given by: S = r * theta where r --> radius theta --> angle (in our case 45 degrees) I would somehow like to do this like: slice1 = [] for a,b

Get longitude and latitude from the Globe in WebGL

泪湿孤枕 提交于 2019-12-05 06:49:03
问题 I'm using WebGL globe from http://workshop.chromeexperiments.com/globe/. If any point of the globe is clicked, I need to get the longitude and latitude of that point. These parameters are to be passed to the Google Maps for 2D map. How can I get the long. and lat. from the webgl globe? Through this function I'm getting the double clicked point, and through this point I'm finding the long. and lat. But the results are not correct. It seems that the clicked point is not determined properly.

Position of the sun given time of day, latitude and longitude - EDIT

半世苍凉 提交于 2019-12-05 04:10:05
问题 This question has been asked before two times. In 2012, Position of the sun given time of day, latitude and longitude, Josh O'Brien gave a new version of the function sunPosition: sunPosition <- function(year, month, day, hour=12, min=0, sec=0, lat=46.5, long=6.5) { twopi <- 2 * pi deg2rad <- pi / 180 # Get day of the year, e.g. Feb 1 = 32, Mar 1 = 61 on leap years month.days <- c(0,31,28,31,30,31,30,31,31,30,31,30) day <- day + cumsum(month.days)[month] leapdays <- year %% 4 == 0 & (year %%

Results for Observer() seemingly not accounting for elevation effects in PyEphem

陌路散爱 提交于 2019-12-05 03:42:52
I've a query on the results given by the PyEphem module relating to Observer() queries, and the effects of elevation. I understand from a couple of sources (such as http://curious.astro.cornell.edu/question.php?number=388 ) that the elevation of the observer has a marked effect on sunset time. However in the following code, I see next to no difference: import ephem emphemObj = ephem.Observer() emphemObj.date = '2011/08/09' emphemObj.lat = '53.4167' emphemObj.long = '-3' emphemObj.elevation = 0 ephemResult = ephem.Sun() ephemResult.compute(emphemObj) print "Sunset time @ 0m: " + str(emphemObj

Show where the sun is on the sky in real time - how?

夙愿已清 提交于 2019-12-04 17:12:26
I am using a function from mourner/suncalc that allows me to get the current position of our sun. With getPosition() , I want to create an animation on a image or with pure CSS (scaleable to different screen resolutions and orientations, of course), where you can see where the sun is right now in real time on the page. A totally unnecessary function but a fun function :) The image below illustrates how I am thinking. Like I said, I'll be using the getPosition() function from mourner's function which prints azimuth and altitude of the sun. The problem I am facing now, is to somehow convert this

Stacking star PSFs from an Image; aligning sub-pixel centers

痞子三分冷 提交于 2019-12-04 12:02:43
I have an (1727,1853) size array (image), in which I have identified stars to model a point-spread function. Each index of the array corresponds to an image coordinate, however, the centroid of each star is given by a sub-pixel coordinate. I must do the following Make a 2D slice of each star. I have done this using numpy's array slicing. However, it slices by index, and I have sub-pixel centroid coordinates, thus any kind of slice I make will place the star off-center. After I make a 2D slice of each star, I must stack these arrays on top of each other to make a model of the point-spread

Astronomy application

牧云@^-^@ 提交于 2019-12-04 07:59:59
I am trying to build an astronomy application where I should display the stars at and near zenith for a given latitude, longitude and time. I am aware of the basics of Positional astronomy, what is puzzling me is to create database out of huge set of data! My Queries are: Which catalogue to prerfer? Like Hipparcos catalogue or Henry Draper? What are its advantages and disadvantages? What fields are required? I have identified some, but what else should be added and why? Fields identified by me: Star name, Some Unique star ID, RA, Dec, Magnitude,Color of the star. I tried to figure out from

Position of the sun given time of day, latitude and longitude - EDIT

ⅰ亾dé卋堺 提交于 2019-12-03 21:57:10
This question has been asked before two times. In 2012, Position of the sun given time of day, latitude and longitude , Josh O'Brien gave a new version of the function sunPosition: sunPosition <- function(year, month, day, hour=12, min=0, sec=0, lat=46.5, long=6.5) { twopi <- 2 * pi deg2rad <- pi / 180 # Get day of the year, e.g. Feb 1 = 32, Mar 1 = 61 on leap years month.days <- c(0,31,28,31,30,31,30,31,31,30,31,30) day <- day + cumsum(month.days)[month] leapdays <- year %% 4 == 0 & (year %% 400 == 0 | year %% 100 != 0) & day >= 60 & !(month==2 & day==60) day[leapdays] <- day[leapdays] + 1 #