layup_cmdline.predict

Attributes

logger

UNIT_DICT

SEC_PER_DAY

Functions

main()

convert_input_to_JD_TDB(→ float)

Convert a string to a JD_TDB date. The string can be in the format of a

execute(args)

Module Contents

logger[source]
UNIT_DICT[source]
SEC_PER_DAY = 86400[source]
main()[source]
convert_input_to_JD_TDB(input_str: str, cache_path: pathlib.Path) float[source]

Convert a string to a JD_TDB date. The string can be in the format of a Julian date TDB for or a date string in the format YYYY-mm-dd.

Parameters:
  • input_str (str) – The input string to convert.

  • cache_path (Path, optional) – The path to the cache directory. If not provided, the default cache directory will be used.

Raises:

ValueError – If the input string is not in the expected format, YYYY-mm-dd

Returns:

The converted JD_TDB date.

Return type:

float

execute(args)[source]