The function reads information from Maturity_parameters to identify the reproductive period (spawning season) of each species and sex. It then compares each record in TC or TE with these periods:
Immature individuals (maturity codes 0, 1, 2A) are flagged if they are captured during the spawning period and have lengths exceeding the bibliographic threshold (maximum L50 + 20%).
Mature individuals are checked to verify whether they were caught outside the defined spawning period.
Among mature individuals outside the spawning period, those with lengths smaller than the smallest mature specimen reported in literature are additionally flagged.
Warnings are written both to a .dat logfile and to a CSV file for easier downstream analysis. The CSV output includes details on GSA, year, haul number, species, sex, length class, spawning period months, month of capture, and type of warning.