Themis::utils Namespace Reference

Defines a set of general utility functions. More...

Functions

double time_J2000 (int year, int day, int hour, int min, double sec)
 
std::string get_file_extension (std::string file_name)
 Strips off and returns file extension. More...
 
std::string global_path (std::string file_name)
 
std::vector< std::string > station_codes (std::string listname="Two-letter 2017")
 

Detailed Description

Provides implementations of utility functions that centralizes this functionality for Themis.

Function Documentation

std::string get_file_extension ( std::string  file_name)
Warning
File names limited to 4096 characters.
std::string global_path ( std::string  file_name)

Prepends global path to the Themis directory tree to file names to give global behavior while permiting relative naming conventions

Here is the caller graph for this function:

std::vector< std::string > station_codes ( std::string  listname = "Two-letter 2017")

Returns a vector of station codes. Takes a name, which currently is "Two-letter 2017" or "HOPS 2017" or "uvfits 2017"

Here is the caller graph for this function:

double time_J2000 ( int  year,
int  day,
int  hour,
int  min,
double  sec 
)

Generates the time in seconds since 00:00, Jan 1, 2000. Takes year, days since Jan 1, and hour in 2400 clock.

Bug:
Daylight saving time not properly handled

Here is the caller graph for this function: