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:
- Returns:
Filtered sonic files dictionary containing only entries with matching tracer files. Maintains same structure as input dictionary.
- Return type:
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