USGSCSM
U.S. flag

An official website of the United States government

Official websites use .gov
A .gov website belongs to an official government organization in the United States.

Secure .gov websites use HTTPS
A lock ( ) or https:// means you’ve safely connected to the .gov website. Share sensitive information only on official, secure websites.

date.julian2ls — Conversion from Julian to LsubS

The date.julian2ls module provides functionality for the conversion between Julian date and LsubS

New in version 0.1.0.

plio.date.julian2ls.julian2ls(date, marsyear=None, reverse=False)[source]

Original IDL from Hugh Keiffer

Parameters:
  • date (numeric) – Scalar or NumPy ndarray or dates

  • marsyear (float) – Mars year for use in reverse

  • reverse (bool) – Reverse conversion from L_{s} to julian

Returns:

  • out (numeric) – float or array of float LsubS or Julian dates

  • myn (float) – If LsubS to Mars year, return the Mars year

References

[1] M. Allison and M. McEwen.’ A post-Pathfinder evaluation of areocentric solar coordinates with improved timing recipes for Mars seasonal/diurnal climate studies’. Plan. Space Sci., 2000, v=48, pages = {215-235},

[2] http://www.giss.nasa.gov/tools/mars24/help/algorithm.html

plio.date.julian2ls.zero360(angles, rad=False)[source]

Convert angle to base 0-360

Parameters:
  • angles (float) – a scalar angle to convert

  • rad (boolean) – flag whether angles are in radians

Returns:

bb – converted angle

Return type:

float