3 pfd@sHddlTddlmZddZedkrDddlmZeedZeedS) )*) CCSDS_readerc Cs>t|dd}t| }dd|D}tt|WdQRXdS)Nz swa-pas-tmbincSsg|]}|jdkr|jqS))Zsid).0Zpacketr>/ROSINA_B1/SOLAR/WWW/documents/ISSUES/COMPRESSION/count_sid.py szcount_sid..)Zget_L0_filenamerprintlen)dayfilenamestreamxrrr count_sids  r__main__)argvN) ZsolarZCCSDSrr__name__sysrZ str_to_dater rrrrs