astropy

Astroscrappy not working on multiprocessing Jupyter

Astroscrappy not working on multiprocessing Jupyter Question: I have some multiprocessing code here that tries to run multiple astroscrappy processes at once. However, everything stops when it actually has to call astroscrappy. I am running this in a jupyter notebook. def a_test(i, q): import astroscrappy print(1) path = i s = fits.getdata(path) print(2) print(2.5) a …

Total answers: 3

How to get earth vector data from jpl horizons in python?

How to get earth vector data from jpl horizons in python? Question: I am trying to get the vector data for Earth using Astroquery’s Horizons Class. I have the following code: from astroquery.jplhorizons import Horizons import numpy as np earth = Horizons(id=399, epochs = {‘start’:’2005-06-20′, ‘stop’:’2005-06-21′,’step’:’1d’}) earthVectors = earth.vectors() earthX = earthVectors[‘x’].data # X is …

Total answers: 2

Can't update module astropy in an environment

Can't update module astropy in an environment Question: I’m running Anaconda with an environment phd, and I’m trying to update astropy to the current version (5.0.4, same as in my base environment). >>> conda activate phd >>> python Python 3.7.1 (default, Oct 28 2018, 08:39:03) [MSC v.1912 64 bit (AMD64)] :: Anaconda, Inc. on win32 …

Total answers: 1

Astropy cross-matching unusall coordinates

Astropy cross-matching unusall coordinates Question: I want to cross-match two catalogs. But the Dec and RA coordinate data of these two catalogs are written as "h m s" and "d m s" (instead of being separated by a ":" a space separates them). RAJ2000 ———– 00 32 41.56 00 32 41.55 … That’s why I …

Total answers: 1

What does it mean that a card is fixed to meet FITS standard?

What does it mean that a card is fixed to meet FITS standard? Question: I am trying to use a FITS file. I have the following code: from astropy.io import fits from astropy.wcs import WCS hdul = fits.open(fitsfilename)[0] wcs = WCS(hdul.header) It gives me these warnings: WARNING: VerifyWarning: Verification reported errors: [astropy.io.fits.verify] WARNING: VerifyWarning: Card …

Total answers: 1

How to convert Earth Centered Inertial (ECI) coordinates to Earth Centered Earth Fixed (ECEF) AstroPy? Other?

How to convert Earth Centered Inertial (ECI) coordinates to Earth Centered Earth Fixed (ECEF) AstroPy? Other? Question: I have position (x,y,z) and velocity (Vx,Vy,Vz) vectors in Earth Centered Inertial Coordinates (ECI) for a satellite orbit, and ultimately want to end up with geodetic coordinates (Latitude, Longitude, & Altitude). According to this other Stack Overflow question …

Total answers: 2