nsrdb.utilities.extract_surfrad.extract_all

extract_all(root_dir, dir_out, years=range(1998, 2018), file_flag='.dat', site_codes=('bon', 'dra', 'fpk', 'gwn', 'psu', 'sxf', 'tbl'))[source]

Extract all surfrad measurement data into h5 files.

Parameters:
  • root_dir (str) – Root directory containing surfrad ground measurement data. Directory containing data files is:

    /root_dir/site_code/year/

  • dir_out (str) – Target path to save surfrad h5 data.

  • years (iterable) – Years to process for.

  • site_codes (list | tuple) – Sites codes that makeup directory names.