sasze  0.0-0.dev0.dirty.el6
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Groups
sas_utils.c File Reference

SAS Ingest Utility Functions. More...

#include <math.h>
#include "sas_utils.h"

Go to the source code of this file.

Functions

int sas_add_file_to_list (SasFileList *list, const char *file_name)
 Add a file to a SasFileList structure.
void sas_clear_file_list (SasFileList *list)
 Reset a SasFileList structure back to 0 files.
SasFileListsas_create_file_list (void)
 Create a new SasFileList structure.
time_t sas_conf_file_name_time (const char *file_name)
 Get the time from a SASHE or SASZE config file name.
int sas_conf_file_name_time_compare (const void *str1, const void *str2)
 Function used to sort a list of config file names by file name time.
int sas_find_nearest_double (int n, double *x, double v)
 Find the index of a value in an array of doubles.
int sas_find_nearest_float (int n, float *x, float v)
 Find the index of a value in an array of floats.
void sas_free_config_table (SasConfigTable *table)
 Free the memory used by a SasConfigTable.
void sas_free_file_list (SasFileList *list)
 Free the memory used by a SasFileList structure.
void sas_free_raw_data (SasRawData *raw)
 Free the memory used by a SasRawData structure.
DirListsas_get_config_dirlist (const char *conf_dir, const char *pattern)
 Function used to get a list of configuration files.
void sas_get_config_values_double (SasConfigTable *table, int x_col, size_t x_nvals, double *x_vals, int y_col, double *y_vals)
 Get values from a configuration table.
void sas_get_config_values_float (SasConfigTable *table, int x_col, size_t x_nvals, float *x_vals, int y_col, float *y_vals)
 Get values from a configuration table.
void sas_get_config_values_interp_double (SasConfigTable *table, int x_col, size_t x_nvals, double *x_vals, int y_col, double *y_vals)
 Get values from a configuration table using interpolation.
void sas_get_config_values_interp_float (SasConfigTable *table, int x_col, size_t x_nvals, float *x_vals, int y_col, float *y_vals)
 Get values from a configuration table using interpolation.
SasRawDatasas_init_raw_data (SasFileType type)
 Initialize a new SasRawData structure.
SasConfigTablesas_load_config_table (const char *conf_dir, const char *conf_file, size_t ncols, SasConfigTable *table)
 Read in the values from a SAS configuration table file.
int sas_print_config_table (const char *file, SasConfigTable *table)
 Print a configuration table.
time_t sas_raw_file_name_time (const char *file_name)
 Get the time from a SASHE or SASZE raw data file name.
int sas_raw_file_name_time_compare (const void *str1, const void *str2)
 Function used to sort a list of raw file names by file name time.
int sas_set_default_att_values (CDSGroup *dataset)
 Set the default attribute values in an output dataset.
int sas_string_to_doubles (char *string, int buflen, double *buffer)
 Parse a string into an array of doubles.

Detailed Description

SAS Ingest Utility Functions.

Definition in file sas_utils.c.