map_sonic2tracer.map_sonic2tracer

map_sonic2tracer.map_sonic2tracer(all_sonic_files_list, all_tracer_files_list)[source]

Filter sonic files to keep only those with matching tracer files.

This function examines sonic anemometer files and keeps only those that have corresponding tracer gas analyzer files within the same half-hour period. This ensures data synchronization for flux calculations.

Parameters:
  • all_sonic_files_list (dict) –

    Dictionary of sonic files containing: - name : list

    Filenames

    • pathlist

      Full paths to files

    • prefixlist

      File prefixes

    • datelist

      File dates

  • all_tracer_files_list (dict) – Dictionary of tracer files with same structure

Returns:

Filtered sonic files dictionary containing only entries with matching tracer files. Maintains same structure as input dictionary.

Return type:

dict

Notes

The matching process: 1. For sonic files at MM=00, looks for tracer files between MM=00-29 2. For sonic files at MM=30, looks for tracer files between MM=30-59 3. Files must match exactly in year, month, day, and hour