
Writing a new FITS file from old data with astropy
Dec 10, 2019 · 3 I have a very simple operation to perform on a FITS file (data is numpy array format) but I cannot get astropy to either save it as a new file or overwrite the existing one. I'm re-writing …
python - AstroPy to transform coordinates - Stack Overflow
Feb 21, 2024 · from astropy.coordinates import SkyCoord, ICRS ar = 243.90472242 dr = -8.36823651 c = SkyCoord(ar, dr, frame='icrs', unit='deg') print(c) print(c.transform_to(ICRS(equinox='J2016'))) I …
python - ERROR: Could not build wheels for astropy, which is required ...
Dec 2, 2023 · I checked the poliastro development version, and the pyproject.toml file there (from 8 months ago) fixes the Astropy version to >=5.0,<6. So you should definitely try and install Astropy 5 …
How to install Astropy 5.0 using pip? - Stack Overflow
Dec 30, 2021 · ERROR: No matching distribution found for astropy==5.0 It seems that pip is unaware of an 5.0 version of Astropy. I also do:
How do I convert MJD (julian date) to UTC using astropy?
Jun 13, 2022 · I've tried stuff on the astropy website but still need help. Anyone out there got a clue?
Astropy matplotlib and plot galactic coordinates - Stack Overflow
Oct 13, 2015 · Astropy matplotlib and plot galactic coordinates Ask Question Asked 10 years, 6 months ago Modified 10 years, 6 months ago
python - Astropy: using SkyCoord object to calculate the AltAz ...
Apr 13, 2024 · Astropy: using SkyCoord object to calculate the AltAz coordinates for an object in a time range, want to get the date of max altitude Asked 1 year, 11 months ago Modified 1 year, 10 months …
astropy - How can I get solar system body mass/radius in Python ...
Nov 18, 2023 · Can I use Astroquery/Astropy to get the radius and mass of solar system objects? Or another common library? I've been trying to use astroquery.horizons I've tried elements() and …
astropy - Error "buffer is too small for requested array" when modify a ...
Oct 31, 2017 · The fact that it allows you do break this at all is a bug in Astropy IMO. When the file is first opened it should save away all the correct structural keywords in the background, so that the data …
python - Creating Custom Complex Units with astropy.units and …
Sep 1, 2023 · Is there a more sophisticated or built-in approach in astropy.units to handle such conversions while taking into account pixel size in arcseconds? Is it possible to define custom units …