tmy2_reader Class Reference
[Weather (climate)]

List of all members.

Detailed Description

This implements a Gridlab-D specific TMY2 data reader.

It was implemented to pull specific information from the TMY2 raw format, including latitude information contained in the TMY2 header. Header information will be maintained for the lifetime of the reader, as it may be needed to populate columns of the TMY2 structure for later use.

Definition at line 57 of file climate.h.

Public Member Functions

double calc_solar (COMPASS_PTS cpt, short doy, double lat, double sol_time, double dnr, double dhr, double vert_angle)
void close ()
int header_info (char *city, char *state, int *degrees, int *minutes, int *long_deg, int *long_min)
 Populate the given arguments with data from the tmy2 file header.
int next ()
 Store the current line in a buffer for later reading by read_data.
int open (const char *file)
 Open the file for reading.
int read_data (double *dnr, double *dhr, double *tdb, double *rh, int *month, int *day, int *hour)
 Populate the given arguments with data from the buffer.
 tmy2_reader ()

Public Attributes

int tz_offset


The documentation for this class was generated from the following files:
GridLAB-DTM Version 1.0
An open-source project initiated by the US Department of Energy