bsrn.archive.get_azimuth_elevation#

bsrn.archive.get_azimuth_elevation(azimuth=None, elevation=None)[source]#

Format horizon azimuth/elevation lists for LR0004.

Builds fixed-width az el rows (11 pairs per line, -1 padding) for the BSRN archive layout. 按 BSRN 存档布局生成定宽 az el 行(每行 11 对,不足填 -1)。

Parameters:
  • azimuth (str or sequence of float, optional) – Comma-separated string A1,A2,... or sequence of degrees from north. 逗号分隔字符串 A1,A2,... 或从正北起算的方位角序列。

  • elevation (str or sequence of float, optional) – Comma-separated string E1,E2,... or sequence of elevation angles. 逗号分隔字符串 E1,E2,... 或高度角序列。

Returns:

Fixed-width lines of az el pairs, or `` -1 -1`` when inputs are absent. 固定宽度 az el 行;无输入时为 `` -1 -1``。

Return type:

str

Raises:

ValueError – If azimuth and elevation lengths differ. azimuthelevation 长度不一致时。