简体   繁体   English

pvlib:累积 GHI 的时间约定问题

[英]pvlib : time convention issue with cumulated GHI

I have a question regarding time conventions in pvlib.我对 pvlib 中的时间约定有疑问。

As far as I understand, all the computations are made using instantaneous timestep convention.据我了解,所有计算都是使用瞬时时间步长约定进行的。 Instant weather will produce instant electric power.即时天气将产生即时电力。

However, in the weather models like GFS, GHI parameter is cumulated over the last hour.然而,在像 GFS 这样的天气模型中,GHI 参数是在过去一小时内累积的。 This makes inconsitant the solar radiation and astronomical parameters (zenith, azimuth...).这使得太阳辐射和天文参数(天顶角、方位角……)变得不稳定。

For example, if I take a look at the ERBS function, used to compute DHI and DHI from GHI:例如,如果我看一下用于从 GHI 计算 DHI 和 DHI 的 ERBS function:

df_dni_dhi_kt = pvlib.irradiance.erbs(ghi, zenith, ghi.index)

Here, all parameters are hourly timeseries, but the because of the convention, the output may be inaccurate.这里,所有参数都是每小时时间序列,但由于约定,output 可能不准确。

  • ghi : cumulated radiation over last hour ghi :过去一小时的累积辐射
  • zenith : zenith angle at exact hour (instantaneous) zenith : 精确时间的天顶角(瞬时)
  • ghi.index : hourly DateTimeIndex ghi.index :每小时 DateTimeIndex

At the end of the power conversion process, a shift is observed between observations and model (please don't care about the amplitude difference, only time shift matters).在功率转换过程结束时,观测值与 model 之间存在偏移(请不要关心幅度差异,只关心时间偏移)。

在此处输入图像描述

Any idea about using cumulated GHI as input of the library?关于使用累积 GHI 作为库的输入有什么想法吗?

When using hourly data there definitely is a dilemma in how to calculate the solar position. The most common method is to calculate the solar position for the middle of the time step.当使用小时数据时,如何计算太阳能 position 肯定是一个难题。最常见的方法是计算时间步长中间的太阳能 position。 This is definitely an improvement to using either the start or end of the hour (as shown in your example).这绝对是对使用小时开始或结束的改进(如您的示例所示)。 However, around sunset and sunrise this poses an issue, as the sun may be below the horizon at the middle of the hour.然而,在日落和日出前后,这会带来一个问题,因为太阳可能在中午时分低于地平线。 Thus some calculate the sun position for the middle where the period is defined as the part of the hour where the sun is above the horizon - but that adds complexity.因此,有些人计算中间的太阳 position,其中周期定义为太阳在地平线以上的小时部分 - 但这增加了复杂性。

There's a good discussion on the topic here: https://pvlib-python.readthedocs.io/en/stable/gallery/irradiance-transposition/plot_interval_transposition_error.html这里有一个关于这个话题的很好的讨论: https://pvlib-python.readthedocs.io/en/stable/gallery/irradiance-transposition/plot_interval_transposition_error.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM