#include <stdio.h>
#include <glib.h>
#include <utils/utils.h>
Go to the source code of this file.
Classes | |
struct | daily_val_st |
struct | daily_cdn_val_st |
Defines | |
#define | METERS_PER_FOOT ( 0.3048 ) |
#define | KG_PER_TONNE_LONG ( 1.016260162601626e+03 ) |
#define | KG_PER_TONNE_SHORT ( 9.090909090909090e+02 ) |
#define | SECONDS_PER_DAY ( 86400. ) |
#define | NO_CONVERSION ( 1. ) |
Functions | |
int | read_usgs_daily_value_record (daily_val_st *rec, FILE *fp, int byte_order) |
int | read_cdn_daily_value_record (daily_val_st *rec, FILE *fp, int byte_order) |
int | main (int argc, char *argv[]) |
gfloat | gfloat_from_le (gfloat a) |
#define KG_PER_TONNE_LONG ( 1.016260162601626e+03 ) |
Definition at line 109 of file read_usgs.c.
#define KG_PER_TONNE_SHORT ( 9.090909090909090e+02 ) |
#define METERS_PER_FOOT ( 0.3048 ) |
#define NO_CONVERSION ( 1. ) |
#define SECONDS_PER_DAY ( 86400. ) |
gfloat gfloat_from_le | ( | gfloat | a | ) |
Definition at line 265 of file read_usgs.c.
Referenced by read_cdn_daily_value_record(), and read_usgs_daily_value_record().
int main | ( | int | argc, | |
char * | argv[] | |||
) |
Definition at line 117 of file read_usgs.c.
References eh_check_opts(), eh_data_record_add_label(), eh_data_record_add_row(), eh_data_record_new(), eh_data_record_print(), eh_exit(), eh_get_opt_bool(), eh_get_opt_dbl(), eh_get_opt_int(), eh_get_opt_key(), eh_get_opt_str(), eh_opts_init(), help_msg, KG_PER_TONNE_SHORT, daily_val_st::latitude, daily_val_st::longitude, METERS_PER_FOOT, NO_CONVERSION, daily_val_st::novalue_mark, daily_val_st::parameter, read_cdn_daily_value_record(), read_usgs_daily_value_record(), SECONDS_PER_DAY, daily_val_st::sitecode, daily_val_st::staname, daily_val_st::start_month, daily_val_st::statistic, and daily_val_st::year.
int read_cdn_daily_value_record | ( | daily_val_st * | rec, | |
FILE * | fp, | |||
int | byte_order | |||
) |
Definition at line 300 of file read_usgs.c.
References daily_val_st::flows, gfloat_from_le(), daily_val_st::parameter, daily_val_st::staname, and daily_val_st::year.
Referenced by main().
int read_usgs_daily_value_record | ( | daily_val_st * | rec, | |
FILE * | fp, | |||
int | byte_order | |||
) |
Definition at line 272 of file read_usgs.c.
References daily_val_st::cont_area, daily_val_st::drain_area, daily_val_st::flows, gfloat_from_le(), daily_val_st::hydro_unit, daily_val_st::novalue_mark, daily_val_st::parameter, daily_val_st::retrieval, daily_val_st::sample_depth, daily_val_st::sample_xsecloc, daily_val_st::start_month, daily_val_st::statistic, daily_val_st::well_depth, and daily_val_st::year.
Referenced by main().