Questions tagged [astronomy]

Astronomy is the study of celestial objects, such as planets, stars, and galaxies. Any astronomy question on this site should be programming related; other astronomy questions should be asked on our sister site Astronomy Stack Exchange.

Astronomy is the study of celestial objects, such as planets, stars, and galaxies. Any astronomy question on this site should be programming related; other astronomy questions should be asked on our sister site Astronomy Stack Exchange.

619 questions
-1
votes
2 answers

Picking out a single row in a FITS table with Astropy

I "simply" want to read in an (Astronomy) FITS table, and pick out all the information on one object via its name:: from astropy.io import fits dr7q = fits.open('Shen_dr7_bh_May_2010.fits') tbdata = dr7q[1].data w = tbdata[tbdata['SDSS_NAME'] ==…
npross
  • 1,756
  • 6
  • 19
  • 38
-1
votes
1 answer

I have here a block of code that finds when two particles have a close encounter with each other. What about 5 particles?

The reason for this code is to find the time it takes for a planetary system with 2 planets(particles) to have a close encounter between each other. I, however, would like to solve that time for a planetary system with 5 particles. This will be…
dlsj
  • 41
  • 9
-1
votes
1 answer

Extra stars created, most efficient way to get rid of them?

I have created a program to locate stars from a BW picture, but unfortunately on long exposure times the star becomes smeared causing the program to create a duplicate star next to the star (see image). What is the best way to remove the unwanted…
-1
votes
1 answer

Direction from current location on Google Maps to the Sun

I currently am able to calculate the Altitude and Azimuth of the Sun on a given Datetime, now I would like to be able to point an arrow from any current position on Google Map towards the direction of the Sun (based on Altitude coordinates and…
Toothfairy
  • 383
  • 1
  • 6
  • 24
-1
votes
1 answer

Swift - how can i correct sky map according to current time and location?

i'm new to Swift, and now i'm trying to build sky map app like the application "star chart". i already got a sky map image from NASA and cover it on SCNsphere, also already set camera node in the center of this sphere to make it looks like 360…
NaiYu
  • 23
  • 2
-1
votes
1 answer

L-shaped Gridspec using matplotlib gs.update

This one is a quick and easy one for the matplotlib community. I was looking to plot an L-shaped gridspec layout, which I have done: Ignoring a few layout issues I have for the moment, what I have is that the x-axis in the gs[0] plot (top left)…
GCien
  • 2,221
  • 6
  • 30
  • 56
-1
votes
1 answer

How to read and process .fits files

I want to work and analysis some .fits (flexible image transport system) files but I do not know what to do. Can anybody suggest me a library for c++ to work with such files?
aref
  • 7
  • 2
-1
votes
2 answers

Application for Prayer Time need help in programming language and calculation

I want to make an Android application for an university project which calculates prayer times. The first line in the code is: d = jd - 2451545.0; // jd is the given Julian date How can I obtain a Julian date? Also, in the code RA = arctan2(cos(e)*…
-2
votes
1 answer

Can't read real numbers from Yale Bright Star Catalog

I'm currently trying to read some star data from the BSC. I've managed to read in the header and that shows up more or less correct, but I'm having trouble reading in the star data itself. The specification states that values are stored as 4/8-byte…
-2
votes
2 answers

Standard deviation in python

This is the spectra I want to analyze. How do I measure the standard deviation excluding the channel where the peak is present? Lets say the peak is present between 30,000m/s and 90,000m/s.
Lidia
  • 27
  • 5
-2
votes
1 answer

Sunset in C language

I want to calculate the sunset for specific localization (latitude, longtitude) in C. I modeled on: http://edwilliams.org/sunrise_sunset_algorithm.htm For the given model I tried to calculate the sunrise - this value was good. I still get the…
maghost
  • 39
  • 1
  • 7
-2
votes
1 answer

While Loop Issues - Python 3.6.4

I'm trying to write an azimuth/elevation calculator as an exercise to explore the astropy libraries. I'm quite new to Python and have run into trouble with a basic while loop within my programme: LATLONGALT = eci2lla(x,y,z,dt) lon_sub =…
Lorcank11
  • 137
  • 8
-2
votes
3 answers

How to accept and display images in java swing with (.fits) extension and perform blob detection?

(.fits) Flexible Image Transport System (FITS) is an open standard defining a digital file format useful for storage, transmission and processing of scientific and other images. FITS is the most commonly used digital file format in astronomy.
-2
votes
1 answer

Convert from ITRS to ICRS using astropy

Say pleases is it possible using AstroPy to transform ITRS(International Terrestrial Reference System) to ICRS(International Celestial Reference System)? I have read the documentation and understand how to do ICRS to ITRS conversions, but not sure…
-2
votes
3 answers

C++ Program to Simulate Kepler's Equations

So I am trying to make a basic C++ program that calculates the mean, eccentric, and true anomalies as well as the radial distance and velocity of a planet. This is one of my first programs I have worked on, so I know it's not as concise as it could…
peasqueeze
  • 121
  • 2
  • 10
1 2 3
41
42