Laserfiche WebLink
<br />~' )"":!'7 G <br />.." ;.. '" ~I. .. <br />",. v" <br /> <br />Retrieving a water <br />information sheet <br /> <br />19 <br /> <br />This display is created by calls to create_plot_window () and <br />add_data_to_row_column (). The graphical display is produced by creating <br />a special fonnat file which is used to spawn an instance of the XMGR graphing tool. <br />The XMGR fonnat file is created by repeated calls to <br />add_data_to_xmgr_file(). <br /> <br />The data is broken into separate vectors, or segments, when it is displayed in graphical <br />fonnat and when data is missing from the record. Data averaged over a daily or hourly <br />interval is broken into separate segments when there is no data available for an entire <br />interval. For example, real-time data is broken when no data is available for a tWQ- <br />hour period (this is an arbitrary length of time agreed upon as being long enough to <br />warrant making the missing data obvious to those using the system). <br /> <br />When the user displays data in a graph, the function add_data_to_xmgr <br />_f i le ( ) creates a file which provides XMGR with instructions to fonnat the graph. <br />A brief description of that process is included here. See the XMGR documentation for <br />a detailed description of formatting commands. add_data_ to_xmgr _f i 1 e ( ) <br />is called repeatedly (once for each gauge) if the user has selected more than one <br />gauge. The first time the function is called, a temporary file is created and a header is <br />added to the file. The header provides a title for the graph and a fonnat for the axes. <br />The portion of the header that is the same for all graphs is read in from the file <br />$SPLA1TE_D lRlxmgr_fmt/header.fmt. <br /> <br />add_data_to_xmgr_file () then converts the x values (which represent time) <br />in the PLOT _DATA_PACKAGE, from hours since the beginning of 1990 to julian <br />dates. Because XMGR uses julian dates for absolute time values, this conversion is <br />necessary. After conversion, the points are added to the format file. <br /> <br />'. <br /> <br />Subsequent calls to add_data_to_xmgr_file () append data to the fonnat file <br />without the header infonnation. <br /> <br />Diversion Plotting <br /> <br />Plotting of diversion data uses the same procedures and structures as plotting of <br />gauged data. Some differences are present because the diversion data is available only <br />at a daily interval, so no averaging is available for this type of data. In addition, the <br />data associated with diversion is always of type FLOW, as elevation and storage data <br />does not apply to diversions. <br /> <br />The OMI function which returns the diversion data is <br /> <br />PLOT_DATA_PACKAGE * Get DailyDiversion {int wd, int sid, <br />cfhar*from_time, char*to_tirne <br /> <br />Water Information Sheet <br /> <br />The Water Information Sheet, which is the primary mechanism for users to enter data, <br />is stored on a daily interval (one per day) for each of the twelve water districts. <br /> <br />When the user chooses a Water Infonnation Sheet to edit, the application creates a <br />new sheet and initializes it with values. A caB to the OMI function LoadlnfoS- <br />heet(int wd, char*date) returns the requested sheet. <br />