Laserfiche WebLink
<br />00003[) <br /> <br />. s egmen t_l i s t: A linked list of segments, or contiguous points of data. Seg- <br />ments are determined as described in the next section, 'Data Display'. <br /> <br />The CELL_PTR holds the actual data points: <br /> <br />typedef struct plot_data_cell <br />double *xdataptr; <br />double *ydataptr; <br />int npoints; <br />struct plot_data_cell *next; <br />CELL PTR <br /> <br />Where: <br /> <br />. xdataptr: A pointer to the first of an array ofx values (time) for the segment. X <br />values are in hours since the beginning of 1990. <br /> <br />. ydataptr: A pointer to the first of an array ofy values (measured values) for the <br />segment. The units of the y values vary depending on the type of data represented. <br /> <br />. npoin ts: The number of points in the data arrays. <br /> <br />Diversion Data Retrieval <br /> <br />Retrieving diversion data uses the same procedures and structures as retrieval of <br />gauged data. However. this data is never aggregated; it is always requested in a daily <br />interval. which is the interval of the raw data from the Water Information Sheet. <br /> <br />The OMI function <br /> <br />PLOT_DATA_PACKAGE *GetDailyDiversion(int wd, int sid, <br />char*from_time, char*to_time) <br /> <br />returns the fetched diversion data. This function calls two embedded SQL functions <br />GetTotalDiversionlnit() andGetTotalDiversionNext{) w <br />fetch the data from the database. <br /> <br />Water Information Sheet <br /> <br />The general design of the Water Information Sheet data structure is as follows: <br /> <br />. There is one piece of header information for each sheet. This header, the <br />info_sheet_header_rec, contains information about the edit status ofthe <br />sheet, some display parameters, some source information, the date of the sheet. <br />overlay information, and the water district to which it belongs. <br /> <br />. Each Water Information Sheet consists of many rows of data. Each row is repre- <br />sented by an instance of the info_sheet_record structure, which contains <br />an identifier, a type, and several types of flows which may be recorded with each <br />row. <br /> <br />27 <br />