pyrad.io.read_lightning#

pyrad.io.read_lightning(fname, filter_data=True)[source]#

Reads lightning data contained in a text file. The file has the following fields:

flashnr: (0 is for noise) UTC seconds of the day Time within flash (in seconds) Latitude (decimal degrees) Longitude (decimal degrees) Altitude (m MSL) Power (dBm)

Parameters:
  • fname (str) – path of time series file

  • filter_data (Boolean) – if True filter noise (flashnr = 0)

Returns:

flashnr, time_data, time_in_flash, lat, lon, alt, dBm (tupple) – A tupple containing the read values. None otherwise