read_sawd

Author:

 Keith Cherkauer

Date:

 July 25, 1996

Description:

 This routine reads in meteorological data from NCDC surface airways gridded hourly data files. Originally this subroutine was written to skip data if the time step was greater then hourly, but currently the routine assumes that the data is provided in the correct time step. If the atmos_data_struct has been defined (as in read_atmosdata.c), then this routine simply reads the surface airways data into the structure array, otherwise it determines the number of records, and allocates the structure.

References:

 

Input Variables:

Variable

Type

Units

Description

 temp

atmos_data_struct **

N/A

Structure contains all atmospheric forcing data

sawdf

FILE *

N/A

File pointer to surface airways data file

nrecs

int *

N/A

Number of records or time steps for which the model will be run

dt

int

hours

Model time step

prec

int

N/A

Flag indicating whether hourly precipitation is read from the surface airways data file

 

Output Variables:

Variable

Type

Units

Description

 temp

atmos_data_struct **

N/A

 Structure contains all atmospheric forcing data

  • air_temp - air temperature [C]
  • rel_humid - relative humidity [%]
  • tskc - total sky coverage [%] -> [fraction]
  • wind - wind speed [m/s]
  • pressure - air pressure [Pa] -> [kPa]
  • prec - total precipitation [mm]

nrecs

int *

N/A

Number of records or time steps for which the model will be run

 

Subroutines Called:

 

Modifications and Limitations:

 


VIC Home Page

VIC Code Page

Page Last Modified on 2/9/98