irfpy.cy1orb.MoonPos
¶
Module for getting moon position w.r.t Earth. Database is from Par-Ola’s work.
Default database is from .irfpyrc. Specify [cy1orb] moongsebaseuri entry.
[cy1orb] moongsebaseuri=file:///Volumes/scidata/data/moon/support/peje/
- class irfpy.cy1orb.MoonPos.MoonGse(baseurl=None)[source]¶
Bases:
object
Class of Moon position in GSE coordinate system.
Constructor
@param[in] baseurl Set default URL base which contains the data. Default is in .irfpyrc [cy1orb] moongsebaseuri.
- getPosition(start=datetime.datetime(1, 1, 1, 0, 0), stop=datetime.datetime(9999, 12, 31, 23, 59, 59, 999999))[source]¶
Returns array of the position (Nx4 array) of the Moon in GSE system.
@param[in] start Start time of the data retrieval. Instance of datetime.datetime @param[in] stop Stop time of the data retrieval. Instance of datetime.datetime @retval Nx4 array of the position of the Moon in the GSE coordinates. N is the number of data, 4 is [jd,x,y,z]