651 questions
0
votes
0
answers
34
views
How can I mask unwanted data for a display_bins() function (using pPXF data)?
first time posting, I am currently working on making a velocity and dispersion array for the galaxy NGC 4684. I have run through all the steps to get a pPXF data, but there is a star (I'm assuming) ...
0
votes
0
answers
206
views
need help Replicating Stellarium-Style Constellation Maps with Python (Skyfield + Gaia) for given place time and date
I’m trying to plot constellations with Python using Gaia star data, but the constellation lines don’t look like they do in Stellarium. I’ve tried plotting in both Alt/Az and RA/Dec, even used a ...
1
vote
2
answers
138
views
Plot Matplotlib 2D patches with spherical projection
I am trying to create a slightly complex 2D plot with astronomical data, using Matplotlib, and Astropy. It involves a astronomical image, overlaid with a scatter plot, and Matplotlib patches. Using ...
2
votes
1
answer
91
views
How to scatter plot marker size based on astronomy image data?
For example, in this code I plot a astronomy FITS image:
import numpy as np
from astropy.io import fits
from astropy.visualization import simple_norm
from astropy.wcs import WCS
import matplotlib....
4
votes
1
answer
170
views
Identifying outliers from openCV contours based on curvature?
I'm processing a photo of the Earth from the Moon, as seen here.
What I want to do is get the contour points that correspond to the edge of the Earth that is not in shadow. (e.g., the areas that ...
0
votes
1
answer
195
views
Sunset/rise calculation
I'm using the suntime class that is based on: "Calculate sunrise and sunset times for a given GPS coordinate within PostgreSQL".
I'm struggling with the following:
At the end of the ...
0
votes
0
answers
65
views
How to use the B star term present in a Two Line Element data for extracting Ballistic Coefficient of a spacecraft?
I'm writing a Python script to calculate the effect of atmospheric drag on a spacecraft in LEO by evaluating the change in the square root of the semi-major axis over time. The governing equation I'm ...
1
vote
1
answer
41
views
Calculating relative position of JUICE for observer at given coordinates with SPICE
My antenna is at coordinates: LATITUDE = 47.397490, LONGITUDE = 8.550440
I want to calculate azimuth and elevation of JUICE with SPICE. This is what I have so far:
import os
import spiceypy as spice
...
0
votes
0
answers
26
views
How to use POLYGON command in ASQL on proper motion
I know you can't use the POLYGON command on proper motions for ASQL queries, but I need something that performs a similar role of only returning stars with proper motions that lie within a polygon ...
0
votes
0
answers
77
views
pyephem/ephem on esp32 micropython
I need astronomical calculations on an ESP-32 microcontroller with Micropython.
The only thing I found is https://github.com/peterhinch/micropython-samples/tree/...
0
votes
0
answers
63
views
Specific inputs giving anomalies in output function
I'm working on a project about AGNs where I'm simulating light curves and then applying the Structure Function (see Macleod 2012, Kozlowski 2017) to them, and coming across a problem when I input ...
-1
votes
1
answer
190
views
Constructing M-R diagram from TOV equations with Python
im trying to solve the modified TOV equations dP'(r)/dr = -1.474 ε'(r)M'(r)/r^2 (1+P'(r)/ε'(r))(1+11.210^-6 r^3 P'(r)/M'(r))[(1-2.948M'(r)/r)]^-1 dM'(r)/dr = bo * ε'(r) where M(r)=M'(r)Mo, ε(r)=ε'(r)...
0
votes
1
answer
77
views
Discrepancy in distances returned by astropy AltAz
I am writing some code dealing with an aircraft locations with respect to an observer located at ground and I got a discrepancy between the distance calculated directly from geocentric Cartesian ...
0
votes
1
answer
182
views
How to correctly make a 'rebinning' of a .fits file?
The thing is i'm working with two .fits images, but the pixscale of each one is different.
Let's say Image 1 has a
CDELT = +- 0.0013888888888889 [deg]
and Image 2 has a
CDELT = +- 0.00277778000000 [...
0
votes
2
answers
255
views
how to point to sun and moon in cesiumjs?
CesiumJS does properly simulatr both Sun and Moon positions in realtime, but for some reasons they are apparently not directly accessible: Moon object is just an ellipsoid, placed "somewhere"...