755 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
215
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 ...
4
votes
2
answers
102
views
How to save an Astropy QTable with a galactocentric skycoord to a FITS file?
Creating a SkyCoord object:
c_end = SkyCoord(
x=xf,
y=yf,
z=zf,
v_x=vxf,
v_y=vyf,
v_z=vzf,
frame='galactocentric'
)
and attempting to put this into an Astropy QTable with ...
1
vote
2
answers
142
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
95
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....
-1
votes
1
answer
66
views
Inserting a timestamp to a Data Frame in pandas
I've been working on this for two weeks. I have a data frame with 3,600 columns and 200 rows, which correspond to a frequency sweep performed with a detector. The file's original format is .fit, so I'...
0
votes
1
answer
31
views
KeyError using Astropy .differentials code
I keep getting KeyError: 'd_ρ' on my d_rho = ... line. I am trying to run the differentials so that I can put them in a table column (or single column per variable), to use for calculating velocity. ...
0
votes
1
answer
85
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 ...
1
vote
2
answers
114
views
Differences between transform_to(AltAz) between Astropy versions 4.0 and 5.3.1
I am trying to do the transfomation from ITRS to topocentric AltAz frame using SkyCoord.transform_to() functionality:
altazCoord = itrsCoord.transform_to(AltAz(obstime=time, location=obsGeoLocation)
...
0
votes
1
answer
65
views
change grid interval in astropy curved axis
import astropy.units as u
import numpy as np
from astropy.io import fits
from astropy.wcs import WCS
import matplotlib.pyplot as plt
from astropy.visualization import simple_norm
from astropy....
2
votes
1
answer
133
views
Scatter plot on a region of the sky with a circle
I am trying to do a scatter plot of a few data points on a region of the sky and then add a circle to the plot. Note, that I don't want a plot of the full sky, just of the region around the data ...
0
votes
1
answer
185
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 [...
1
vote
1
answer
93
views
Add "+" sign in positive values using astropy and matplotlib
I'm using astropy, matplotlib, skyfield and astroquery to create sky charts with Python. With skyfield I do the stereographic projection of the sky. With astropy I use WCS, something like this:
fig = ...
-1
votes
1
answer
329
views
Import python packages astropy occur issues, how can i handle it?
My Python script is:
import numpy as np
import matplotlib.pyplot as plt
import cv2
from fil_finder import FilFinder2D
from astropy import units
skeleton = cv2.imread("./zhang.png", 0)
fil = ...
1
vote
1
answer
96
views
Control how many digits are printed for an astropy quantity in a jupyter notebook
I use astropy to make calculations with units and I normally do these calculations in a jupyter notebook so the results are printed nicely. I would like to know how to control the number of digits ...
2
votes
2
answers
432
views
Querying data from Simbad using astroquery
I'm making a script in Python to get information for all objects from the NGC and IC catalogs. Actually, I already have this information from OpenNGC, however, coordinates don't have the same ...