Find Docs

Astronomical Applications Department, U.S. Naval Observatory - novas c 2 doc (Page 33)

Wodocs >> Science : Astronomy >> Astronomical Applications Department, U.S. Naval Observatory novas c 2 doc Page 33
Astronomical Applications Department, U.S. Naval Observatory - novas c 2 doc
33
4.18
EPHEMERIS
short int ephemeris (double tjd, body *cel_obj, short int origin,
double *pos, double *vel)
PURPOSE:
Retrieves the position and velocity of a body from a fundamental
ephemeris.
INPUT
ARGUMENTS:
tjd (double)
TDB Julian date.
*cel_obj (struct body)
Pointer to structure containing the designation of the body
of interest (defined in novas.h).
origin (int)
Origin code; solar system barycenter = 0,
center of mass of the Sun = 1.
OUTPUT
ARGUMENTS:
pos[3] (double)
Position vector of 'body' at tjd; equatorial rectangular
coordinates in AU referred to the mean equator and equinox
of J2000.0.
vel[3] (double)
Velocity vector of 'body' at tjd; equatorial rectangular
system referred to the mean equator and equinox of J2000.0,
in AU/Day.
RETURNED
VALUE:
(short int)
0 ... Everything OK.
1 ... Invalid value of 'origin'.
2 ... Invalid value of 'type' in 'cel_obj'.
3 ... Unable to allocate memory.
10+n ... where n is the error code from 'solarsystem'.
20+n ... where n is the error code from 'readeph'.
Discussion:
This function serves as the interface between NOVAS-C and ephemerides of solar
system bodies. The version of ephemeris that ships with NOVAS-C directly supports an
ephemeris of major solar system bodies (such as JPL's DE200, DE405, or DE406), and
the USNO minor planet ephemerides (USNO/AE98). The ephemeris of the major bodies
is accessed via a call to function solarsystem from within function ephemeris. The minor
planet ephemerides are accessed via a call to readeph. (Note: both the USNO minor
planet ephemerides and the JPL ephemerides are not part of NOVAS-C and must be
obtained elsewhere).
It is relatively easy to modify function ephemeris to support ephemerides other than
the two mentioned above. In function ephemeris, there is a
switch
structure controlled

<< Previous       1 .. 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40       Next >>



Other Documents:
Beam Comp Example, moonpoly 2002, Newcomb, Newcomb Manual, Data Flow Diagrams, participant list, vondrak, zacharias, curvpath, pm AAS poster, Gaussian Distribution, Linear Least Squares, Sensitivity Integral, 3 D plot fits, lyap2, NAO 150, Rotate Vector, lyapcalc, wedges, Scifull, Precession Memo, Precession Maple, Curves 3 D, NOVAS 2004 Overview, NOVAS 2006 Overview, thesis, Ranson,


WODocs | |
All rights reserved. wodocs.com© 2009
WODocs


New Docs

Documents Category:
Arts (Design, Movies, Music, Radio, Television)
Automotive (Cars, Marine, Motorcycle, ATV, Snowmobiles)
Business (Biotechnology and Pharmaceuticals, Chemicals, Construction and Maintenance, Materials, Real Estate, Services)
Electronics (Computers, Motion Control, Power Supply)
Games (Board, Family, Party, Card, Construction, RC Toys)
Health (Animalm, Beauty, Healthcare, Medicine, Pharmacy, Surgery, Weight Loss)
Home (Accessories, Cooking, Decor and Design, Electrical, Family, Pets)
News (Newspapers, Sports, Television)
Recreation (Collecting, Hiking, Scouting, Survival, Travel)
Reference (Education, Libraries and Archives, Museums)
Science (Agriculture, Astronomy, Biology, Chemistry)
Shopping (Antiques and Collectibles, Clothing, Flowers, Food, Home and Garden)
Sports (Bicycle, Snowboard, Skiing, Other)