nsrdb.tmy.qa.run_checks

run_checks(fp, i0, iend, interval=1, step=1000)[source]

Run various checks on TMY files.

Checks:
  • attributes (psm_scale_factor and psm_units)

  • data range min/max (compare to physical expected values)

  • Check for full timeseries of 0’s

Parameters:
  • fp (str) – Filepath to .h5 file.

  • i0 (int) – Starting site index.

  • iend (int) – Ending site index.

  • interval (int) – Interval to spot check instead of check everything from i0 to iend

  • step (int) – Chunk size to read at once.