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
0
votes
1 answer

What IS a .fits file, as in, what is a .fits array?

I'm basically trying to plot some images based on a given set of parameters of a .fits file. However, this made me curious: what IS a .fits array? When I type in img[2400,3456] or some random values in the array, I get some output. I guess my…
vdogsandman
  • 5,289
  • 8
  • 21
  • 21
0
votes
1 answer

Trying to save fits files as images

This code is basically looping through the length of an array (ra_new), and creating plots of the images (given by the equations coded below). Because the array is really long (and thusly there are lots and lots of plots), I am trying to make Python…
vdogsandman
  • 5,289
  • 8
  • 21
  • 21
0
votes
1 answer

Display today's sunrise/sunset at Easter Island

I need to display today's sunrise and sunset at Easter Island in local Easter Island time. I'm implementing it to the sidebar at http://www.easterislandtraveling.com/easter-island/ I noticed the EarthTools…
Marcus Edensky
  • 924
  • 3
  • 13
  • 33
0
votes
1 answer

Astronomical altitude from iOS device

How can I retrieve the astronomical altitude that an iOS device is pointed towards? The goal is to be able to point the devices camera at the sky and have it display the altitude. Astronomical altitude is the angle between an object and the…
Dash
  • 17,188
  • 6
  • 48
  • 49
0
votes
2 answers

Howto automatically open FITS images and tables with different apps from the Mac OS X Finder?

FITS files can contain several images (or more generally n-dimensional arrays) and tables. Is there a way to automatically open images e.g. with the ds9 application and tables with the TOPCAT application when I double-click the FITS file in the Mac…
Christoph
  • 2,790
  • 2
  • 18
  • 23
-1
votes
1 answer

Is there code in Astropy or other library (any language) that can locate the centroid of a star in a .fits image to sub-pixel precision?

Is there any code available in a Python library such as Astropy or a library in any other language that can: Take the .fits image of a star as input Locate the centroid of the star on the .fits image to a sub-pixel precision. The sub-pixel…
Ed Mullen
  • 1
  • 1
-1
votes
2 answers

How to convert a FITS file to a numpy array

I'm trying to train an AI algorithm to determine photometric redshifts of galaxies, and to do so I have a FITS file which contains the training data. I need to convert this FITS file into a format which can be manipulated easily in Python,…
Lara
  • 33
  • 4
-1
votes
1 answer

How can I lay a circular region on my image in ds9?

I'm working in ds9 and I need to make a circular region on my image. Everything I can find says I should be able to just left click with my mouse on the region I want the circle to be and a green circle will appear that I can then adjust. When I…
-1
votes
1 answer

how to convert coordinates from azimuth/altitude to tilt-tilt

I'm trying to build a lightweight antenna tracker with two servos. For mechanical reasons, I'm first mounting servo1 on a base so that it tilts forward/backwards, then mount servo2 on it twisted 90˚so it can tilt left/right. I can basically use the…
-1
votes
2 answers

Astropy Spectrum1D recovering arrays from spectrum

I have to work with an Astropy Spectrum1D array: spectrum = Spectrum1D(spectral_axis= wavelength, flux = field_strength) I need to recover the wavelengths and field_strength to standard numpy arrays so that I can manipulate them (this has to be…
PeterD
  • 29
  • 5
-1
votes
1 answer

How to get WGS84 axes out of astropy erfa

Astropy uses the WGS84 ellipsoid for it's astropy.coordinates.EarthLocation.to_geodetic() function. I'd like to make other calculations that are consistent with that function and for that, I'd like to see astropy's WGS84 representation. It seems…
-1
votes
1 answer

Hough Transform Implementation for Set of Points

Trying to use the Hough transform to detect lines in what is effectively a scatterplot of thousands of points (detections in telescope exposures). All the available python modules I have found so far are for images. Perhaps, the only solution is to…
acwlgi
  • 11
  • 1
-1
votes
1 answer

Sorting large numbers of galaxies into spheres of a certain radius

I have a large number of galaxies. I need to sort these galaxies into a spheres of radius N, calculate the average numbers of galaxies in each sphere, and plot a graph of this against radius N. The galaxies are stored in a .fits file as radial…
-1
votes
1 answer

Remove noise, sky glow and vignetting in GIMP

I have an photo of a comet. I'm trying to use GIMP to improve it but it's like space shuttle to me. Can you please describe steps to get rid of or reduce vignetting in the corners of the image get rid of or reduce sky glow and make the sky darker…
-1
votes
2 answers

Trouble setting a function parameter with dictionary

I'm using a function called FellWalker to find clumps in a data cube. The documentation here http://pycupid.readthedocs.io/en/latest/pycupid.html says that config[“PARAMETER_NAME”] = PARAMETER_VALUE is the way to input it into the function (…