Closed mirosaide closed 3 years ago
Hi,
This is not an astroplan problem, so I'm going to close this issue, but I'm happy to help you figure out how to make your plot! Could you explain what you're trying to do a bit more?
The following snippet:
data = np.random.randint(2,50,size=2013)
plt.scatter(star_rise_time,data)
will generate a vector of length 2013 points called data
. star_rise_time
is a single astropy Time
object. I think you're getting this error because (1) you can't plot a scalar time object against a vector numpy array (2) you should convert the Time
object to a numerical time, by calling star_rise_time.jd
, for example.
Hi, Thanks for your feedback,
I am trying to plot the rise and set time with respect to the value of the power transmitted by each location on earth when the star set and rise.
I have the locations in terms of latitude and longitude, the target ('star'), and the time of the year which I want to get the set and rise.
I will attach the code.
Ramiro Caisse Saide MPhil/PhD Research Student Department of Physics University of Mauritius Contact Number: +258 845672884
Brett M. Morris notifications@github.com escreveu no dia segunda, 1/02/2021 à(s) 08:44:
Hi,
This is not an astroplan problem, so I'm going to close this issue, but I'm happy to help you figure out how to make your plot! Could you explain what you're trying to do a bit more?
The following snippet:
data = np.random.randint(2,50,size=2013) plt.scatter(star_rise_time,data)
will generate a vector of length 2013 points called data. star_rise_time is a single astropy Time object. I think you're getting this error because (1) you can't plot a scalar time object against a vector numpy array (2) you should convert the Time object to a numerical time, by calling star_rise_time.jd, for example.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/astropy/astroplan/issues/500#issuecomment-770613316, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJZIERI4OW4MKMILMVL6UMTS4ZETHANCNFSM4W3X26FQ .
I have calculated the set and rise of a star from different locations on earth and I would like to plot the set and rise of the star against random values of a given range, when I tried:
import astropy.units as u
from astropy.time import Time
from astropy.coordinates import SkyCoord, EarthLocation, AltAz
from astroplan import download_IERS_A
download_IERS_A
from astroplan import Observer, FixedTarget
I am getting the following error:
Thanks in advance!