This implements a Gridlab-D specific TMY2 data reader. More...
Public Member Functions | |
double | calc_solar (COMPASS_PTS cpt, short doy, double lat, double sol_time, double dnr, double dhr, double ghr, double gnd_ref, double vert_angle) |
obtain records | |
void | close () |
Closes the readers internal file pointer. | |
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 *ghr, double *tdb, double *rh, int *month, int *day, int *hour, double *wind=0, double *winddir=0, double *precip=0, double *snowDepth=0, double *pressure=0, double *extra_terr_dni=0, double *extra_terr_ghi=0, double *tot_sky_cov=0, double *opq_sky_cov=0) |
Populate the given arguments with data from the buffer. |
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. Leap years are handled by treating February 29th and March 1 as numerically equivalent. IE on a leap year, March 1 data is repeated for February 29th.
Definition at line 87 of file climate.h.