Unless otherwise noted:
This program reads files in the raw data format, and writes out files in filled binary format. Output files have the extension ".out".
At this time the long and short wave radiation is calculated when the gridded files are read into the model.
The following files must be present in the directory from which you run interp:
| Field Name | Description | Offset | Length | Type |
|---|---|---|---|---|
| state | P. O. Code | 0 | 2 | char |
| wban | WBAN # | 2 | 4 | long |
| name | Station Name | 6 | 24 | char |
| par_code | Parameter Code | 30 | 4 | char |
| month | Month number | 34 | 2 | char |
| day | Day | 36 | 2 | char |
| year | Year | 38 | 4 | char |
| hr_val | Hourly Values | 42 | 4x24 | long |
| hr_mflg | Hourly Measurements | 138 | 24 | char |
| hr_qflg | Hourly Quality flags | 162 | 24 | char |
| Total bytes per record | 186 |
Parameters normally used with the VIC hydrologic model:
| Parameter | Name | Units |
|---|---|---|
| PRES | Station Pressure | inches of Hg |
| RHUM | Relative Humidity | percent |
| TMPD | Dry Bulb Temperature | degrees F |
| TSKC | Total Sky Cover | percent |
| WIND | Wind | 360 degrees in knots |
nstations = x
startdate = month/day/year
enddate = month/day/year
parameter = parameter-code
filename latitude longitude elevation --------------------------------------------------- infilename1 stat1.lat stat1.lon stat1.ele . . . . . . . . infilenamex statx.lat statx.lon statx.ele
Note: latitude and longitude are in decimal degrees, not degree.minutes, as provided by the CDROMs. North and east are positive values, south and west are negative (eg. 45 degrees 50 minutes West, is entered as -45). Elevations are in integer meters.
The possible parameter-codes are:
Each line contains data for a different station type name offset size ---------------------------------------------------------------------- char Filename 0 27 char "station name:" 27 13 char Station Name 40 20 float latitude 60 7(.2) float longitude 67 8(.2)
First a 68 byte header, with: Description length type ------------------------------------------------------------------- state 2 char station name 24 char wban code 4 long latitude 4 float longitude 4 float elevation 2 short int parameter 4 char units 4 char time interval 4 char starting date of file: month 2 short int day 2 short int year 2 short int ending date of file: month 2 short int day 2 short int year 2 short int ------------------------------------------------------------------- Total 62 Followed by 54 byte records with the following format: Description length type ------------------------------------------------------------------- date: month 2 short int day 2 short int year 2 short int I_PER_DAY times the following two values nhourly value 4 float quality flags 2 short int ------------------------------------------------------------------- Total 6+5*I_PER_DAYIf the quality flag <= nhourly, then it indicates how many values during the interval were averaged to calculate this value. QUALITY FLAGS 97, 98, and 99 ARE ADDED TO INDICATE A MISSING VALUE ESTIMATED BY THIS PROGRAM. A 97-flag indicates that the value is estimated using information from the same station, i.e. previous and next n-hourly time interval. A 98-flag indicates that the value is estimated using the nearest station for which this value is not missing. A 99-value means that the previous value is repeated.
Header:
state : e.g.(TX) station name: e.g.(LONGVIEW WSMO ) wban : e.g.(3951) latitude : e.g.(32.350 ) longitude : e.g.(94.650 ) elevation : e.g.(95 ) parameter : e.g.(RHUM) units : e.g.(% ) interval : e.g.(1 HR) start date : e.g.(01/01/1972) end date : e.g.(12/31/1991)Each day is a record of:
Description length type ------------------------------------------------------------------- month 2 char "\" 1 char day 2 char "\" 1 char year 4 char24 Hourly Records per Day:
Description length type ------------------------------------------------------------------- data flag 4 int data value 8(.2) float Total Daily Record Length: 298
Each line is in the following format:
Description length type ------------------------------------------------------------------- time step 2 char "/" 1 char month 2 char "\" 1 char day 2 char "\" 1 char year 4 char TMPD 8(.2) float blank 2 char PRES 8(.2) float blank 2 char WIND 8(.2) float blank 2 char RHUM 8(.2) float blank 2 char TSKC 8(.2) float blank 2 char