nsrdb.solar_position.spa
NREL’s solar position algorithm (SPA)
Usage: with h5py.File(nsrdb_file, ‘r’) as f:
time_index = f[‘time_index’][…] # (t) likely 8760, 17520, 105120 meta = f[‘meta’][site_gids] lat_lon = meta[[‘latitude’, ‘longitude’]] # (n, 2) elev = meta[‘elevation’] # (n) P = f[‘pressure’][:, site_gids] # (t, n) T = f[‘air_temperature’][:, site_gids] # (t, n)
- apparent_zenith_angle = SPA.zenith(time_index, lat_lon, elev=elev,
pressure=P, temperature=T)
Classes
|
Solar position algorithm |