Table of contents
CSPICE_JYEAR returns the value for the number of seconds in a
Julian year.
Given:
No input required.
the call:
jyear = cspice_jyear
returns:
jyear the number of seconds per Julian year as a double precision
scalar.
[1,1] = size(jyear); double = class(jyear)
None.
Any numerical results shown for this example may differ between
platforms as the results depend on the SPICE kernels used as input
and the machine specific arithmetic implementation.
1) Display the number of seconds in a Julian year.
Example code begins here.
function jyear_ex1()
%
% Display the number of seconds in a Julian Year, in
% 16.3 floating point format
%
fprintf( 'Seconds per Julian year: %16.3f\n', cspice_jyear)
When this program was executed on a Mac/Intel/Octave6.x/64-bit
platform, the output was:
Seconds per Julian year: 31557600.000
The julian year is often used as a fundamental unit of time when
dealing with ephemeris data. For this reason its value in terms of
ephemeris seconds is recorded in this function.
Error free.
None.
None.
MICE.REQ
TIME.REQ
[1] P. Kenneth Seidelmann (Ed.), "Explanatory Supplement to the
Astronomical Almanac," Page 8, University Science Books,
1992.
J. Diaz del Rio (ODC Space)
E.D. Wright (JPL)
-Mice Version 1.1.0, 10-AUG-2021 (EDW) (JDR)
Edited the -Examples section to comply with NAIF standard. Added
example's problem statement and reformatted example's output.
Added -Parameters, -Exceptions, -Files, -Restrictions,
-Literature_References and -Author_and_Institution sections, and
completed -Particulars section.
Eliminated use of "lasterror" in rethrow.
Removed reference to the function's corresponding CSPICE header from
-Required_Reading section.
-Mice Version 1.0.1, 11-JUN-2013 (EDW)
-I/O descriptions edits to conform to Mice documentation format.
-Mice Version 1.0.0, 22-NOV-2005 (EDW)
Number of seconds per julian year
|