SuperNOVAS v1.5
The NOVAS C library, made better
Loading...
Searching...
No Matches
parse.c File Reference

Various functions to parse string specifications of angles, time, dates, and coordinate epochs. More...

Functions

double novas_dms_degrees (const char *restrict dms)
 Returns the decimal degrees for a DMS string specification.
 
double novas_epoch (const char *restrict system)
 Returns the Julian day corresponding to an astronomical coordinate epoch.
 
double novas_hms_hours (const char *restrict hms)
 Returns the decimal hours for a HMS string specification.
 
double novas_parse_date (const char *restrict date, char **restrict tail)
 Parses an astronomical date/time string into a Julian date specification.
 
double novas_parse_date_format (enum novas_calendar_type calendar, enum novas_date_format format, const char *restrict date, char **restrict tail)
 Parses a calendar date/time string, expressed in the specified type of calendar, into a Julian day (JD).
 
double novas_parse_degrees (const char *restrict str, char **restrict tail)
 Parses an angle in degrees from a string that contains either a decimal degrees or else a broken-down DMS representation.
 
double novas_parse_dms (const char *restrict dms, char **restrict tail)
 Parses the decimal degrees for a DMS string specification.
 
double novas_parse_hms (const char *restrict hms, char **restrict tail)
 Parses the decimal hours for a HMS string specification.
 
double novas_parse_hours (const char *restrict str, char **restrict tail)
 Parses a time or time-like angle from a string that contains either a decimal hours or else a broken-down HMS representation.
 
double novas_parse_iso_date (const char *restrict date, char **restrict tail)
 Parses an ISO 8601 timestamp, converting it to a Julian day.
 
enum novas_timescale novas_parse_timescale (const char *restrict str, char **restrict tail)
 Parses the timescale from a string containing a standard abbreviation (case insensitive), and returns the updated parse position after the timescale specification (if any).
 
double novas_str_degrees (const char *restrict str)
 Returns an angle parsed from a string that contains either a decimal degrees or else a broken-down DMS representation.
 
double novas_str_hours (const char *restrict str)
 Returns a time or time-like angleparsed from a string that contains either a decimal hours or else a broken-down HMS representation.
 
enum novas_timescale novas_timescale_for_string (const char *restrict str)
 Returns the timescale constant for a string that denotes the timescale in with a standard abbreviation (case insensitive).
 

Detailed Description

Various functions to parse string specifications of angles, time, dates, and coordinate epochs.

Date
Created on Mar 2, 2025
Author
Attila Kovacs
See also
target.c, observer.c, timescale.c