pvlib.iotools.parse_bsrn#

pvlib.iotools.parse_bsrn(fbuf, logical_records=('0100',))[source]#

Parse a file-like buffer of a BSRN station-to-archive file.

Parameters
  • fbuf (file-like buffer) – Buffer of a BSRN station-to-archive data file

  • logical_records (list or tuple, default: ('0100',)) – List of the logical records (LR) to parse. Options include: ‘0100’, ‘0300’, and ‘0500’.

Returns

  • data (DataFrame) – timeseries data from the BSRN archive, see pvlib.iotools.read_bsrn() for fields. An empty DataFrame is returned if the specified logical records were not found.

  • metadata (dict) – Dictionary containing metadata (primarily from LR0004).