Laserfiche WebLink
.\" history: <br />.\" <br />.\" 1.0 (1-17-94)Steven A. Malers, RTi <br />.TH DBReadTS 3CRDSS "Read TS" <br />.SH NAME <br />DBReadTS - read a TS file and store in TS data structure <br />.SH SYNOPSIS <br />#include "DB.h" <br />int DBReadTS ( char *tsid, int *m1, int *y1, int *m2, int *y2, TimeSeries *ts ) <br />.SH DESCRIPTION <br />Given the identifier for a time series (TS), the <br />.I DBReadTS <br />function initializes a TS and fills its data structure with values read from <br />the database. Other TS data are also initialized at this time. The conventions <br />used to define the TS identifier are discussed in <br />.I TimeSeries(3). <br />All months and years are calendar values and not water year values (1=January, <br />12=December). <br />The following table summarizes function arguments: <br />.nf <br />.ta 1.0i 1.75i 3.5i <br />Input/ <br />VariableOutputTypeDescription <br />tsidIchar *TS identifier. <br />m1I/Oint *Pointer to first month to be read. <br />If zero, the returned value is <br />the first available month. <br />y1I/Oint *Pointer to first year to be read. <br />If zero, the returned value is <br />the first available year. <br />m2I/Oint *Pointer to last month to be read. <br />If zero, the returned value is <br />the last available month. <br />y2I/Oint *Pointer to last year to be read. <br />If zero, the returned value is <br />the last available year. <br />tsOTimeSeries *Pointer to TS data structure. <br />.ta <br />.fi <br />.SH LIMITATIONS <br />The only TS that the routine knows how to retrieve are streamflows, <br />temperatures, precipitations, and demands. <br />.SH DIAGNOSTICS <br />This routine returns STATUS_SUCCESS if successful, STATUS_BAD_ID <br />if the TS identifier cannot be resolved, <br />and STATUS_FAILURE if there are other errors. <br />.SH SEE ALSO <br />TimeSeries(3CRDSS) <br />.SH AUTHOR <br />Steven A. Malers, Riverside Technology, inc., Fort Collins, CO. <br />Figure 5. Typical library routine man page (source file) <br />17 <br />A275 06.29.94 1.05-12 Malers <br />