mlclouds.utilities.get_valid_surf_sites

get_valid_surf_sites(sites, fp_surfrad_data, data_file)[source]

Get surfrad sites available for the given data file. This is determined from the year in the data file name.

Parameters:
  • sites (list) – List of surfrad gids to check. Considered valid if there exist files for these sites.

  • fp_surfrad_data (str) – File path pattern for surfrad data files. Must include {year} and {code} format keys, where “code” is the string identifier for a given surfrad site.

Returns:

valid_sites (list) – List of surfrad site gids with existing data files.