My WebLink
|
Help
|
About
|
Sign Out
Home
Browse
Search
WSPC05429
CWCB
>
Water Supply Protection
>
Backfile
>
18000-18999
>
WSPC05429
Metadata
Thumbnails
Annotations
Entry Properties
Last modified
7/29/2009 11:10:30 AM
Creation date
10/9/2006 5:13:20 AM
Metadata
Fields
Template:
Water Supply Protection
File Number
8283.200
Description
Colorado River Basin-Colorado River Computer Models-Colorado River Decision Support System-Ray
State
CO
Water Division
5
Date
1/1/1996
Author
CADSWES
Title
South Platte Water Rights Management System-Programmers Manual
Water Supply Pro - Doc Type
Report/Study
There are no annotations on this page.
Document management portal powered by Laserfiche WebLink 9 © 1998-2015
Laserfiche.
All rights reserved.
/
51
PDF
Print
Pages to print
Enter page numbers and/or page ranges separated by commas. For example, 1,3,5-12.
After downloading, print the document using a PDF reader (e.g. Adobe Reader).
Show annotations
View images
View plain text
<br />OU0079 <br /> <br />25 <br /> <br />Saved Preferences <br /> <br />Data retrieval <br /> <br />The function SavePreferences () creates the file .rights.rc in the home direc- <br />tory of the user, storing all the information in the Preferences dialog. The format of <br />the preferences file is not presented here because it is not advised to modify the <br />contents of this file by editing it directly. <br /> <br />During system initialization, the function ReadPreferences () reads the saved <br />file and uses the contents to establish the initial state of preferences for the system. If <br />the file is not present in the home directory of the user, a default set of preferences is <br />used. The algorithm which parses the contents to the preferences file is unsophisti- <br />cated. so it is unwise to modify this file in any way. Corrupting the format of the pref- <br />erences file may prohibit the user from starting SPWRMS. <br /> <br />Hydrograph Data Retrieval <br /> <br />The following three DMI functions retrieve satellite-transmitted data from the data- <br />base and aggregate it according to the specified interval: <br /> <br />PLOT_DATA_PACKAGE *GetRealTimeStreamflow(char*station, <br />char*from_time,char*to_time) , <br /> <br />PLOT_DATA_PACKAGE *GetHourlyStreamflow(char*station,char* <br />from_time,char*to_time), <br /> <br />and <br /> <br />PLOT_DATA_PACKAGE *GetDailYStreamflow(char*station,cha~* <br />from_time,char*to_time) . <br /> <br />The following section describes the steps perfonned by these functions. <br /> <br />Retrieval of data for gauge(s) selected by the user is affected by the time interval indi- <br />cated in the Preferences dialog (and stored in the global variables start_date <br />and end_date), as well as by the averaging interval that the user has specified. <br /> <br />In all cases, the pair of functions <br /> <br />QueryStreamflowInit(char*station, char*from_date, <br />char*to_date) <br /> <br />and <br /> <br />QueryStreamflowNext(double*value, char*time) <br /> <br />are used to retrieve the raw data from the database_ The Ini t function checks to see <br />if any requested data is available in the database, and the Next function retrieves <br />these pieces of data, one per call to the function. All values present in the database <br />between from_date and to_date are retrieved for station. In all cases, the <br />time interval from the Preferences dialog is used as the base to construct <br />from_date and to_date. The averaging interval affects this in the following <br />ways: <br /> <br />1. If the user selected Real Time as the averaging interval, the s tart_da te and <br />end_date from the Preferences dialog are used for from_date and <br />
The URL can be used to link to this page
Your browser does not support the video tag.