layup_cmdline.predict
Attributes
Functions
|
|
|
Convert a string to a JD_TDB date. The string can be in the format of a |
|
Module Contents
- 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