{"id":37841045,"url":"https://github.com/gitrust/scpinfo","last_synced_at":"2026-01-16T16:00:13.449Z","repository":{"id":204953358,"uuid":"252215724","full_name":"gitrust/scpinfo","owner":"gitrust","description":"A python command line tool to read an SCP-ECG file and print structure information","archived":false,"fork":false,"pushed_at":"2025-10-24T14:07:30.000Z","size":172,"stargazers_count":16,"open_issues_count":1,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-10-24T16:08:01.873Z","etag":null,"topics":["biosignal","biosignals","cardiology","ecg","ecg-signal","python","python3","scp-ecg"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gitrust.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-04-01T15:33:50.000Z","updated_at":"2025-10-24T14:07:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"f7b13967-2c3c-47f2-a68b-9ef64e151feb","html_url":"https://github.com/gitrust/scpinfo","commit_stats":null,"previous_names":["gitrust/scpinfo"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gitrust/scpinfo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitrust%2Fscpinfo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitrust%2Fscpinfo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitrust%2Fscpinfo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitrust%2Fscpinfo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gitrust","download_url":"https://codeload.github.com/gitrust/scpinfo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitrust%2Fscpinfo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28479450,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T11:59:17.896Z","status":"ssl_error","status_checked_at":"2026-01-16T11:55:55.838Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["biosignal","biosignals","cardiology","ecg","ecg-signal","python","python3","scp-ecg"],"created_at":"2026-01-16T16:00:10.332Z","updated_at":"2026-01-16T16:00:13.293Z","avatar_url":"https://github.com/gitrust.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Description\n\nA python command line tool to read an SCP-ECG (https://en.wikipedia.org/wiki/SCP-ECG) file and print structure information about ECG traces and metadata.\n\n# SCP-ECG Support\n\nCurrently following SCP sections can be read with this tool\n\n- Section0\n- Section1\n- Section2 (partly)\n- Section3\n- Section5 (partly)\n- Section6 (partly)\n- Section7 (partly)\n- Section8 (partly)\n\nSection2 (Huffman encoding) is not interpreted currently, so if Section2 is available  Section5 and Section6 samples would need recalculation using Huffman tables from Section2.\n\n# Command line usage\n\n```\nusage: scpinfo.py [-h] [--csv section_id] scpfile\n\npositional arguments:\n    scpfile           input SCP file\n\noptional arguments:\n    -h, --help        show this help message and exit\n    --csv section_id  print leads in CSV format for section 5 or 6, specify here\n                    a section id\n```\n\n# Docker\n\nThere is a python based Docker image [gitrust/scpinfo](https://hub.docker.com/r/gitrust/scpinfo) to run scpinfo.\n\nRun examples \n\n```\ndocker run --rm -it -v $(pwd):/home/docker   gitrust/scpinfo example.scp\n\ndocker run --rm -it -v $(pwd):/home/docker   gitrust/scpinfo --csv 5 example.scp\n\n# under Windows\ndocker run --rm -it -v %cd%:/home/docker   gitrust/scpinfo example.scp\n\n```\n\nOn Windows OS use `%cd%` instead of `$(pwd)` for volume binding.\n\n\n# Example usage\n\n```\npython scpinfo.py example/example.scp\n```\n\n```\n--ScpRec--                     ----\nCRC                            1643\nRecLen                         34144\n--Section0--                   ----\n--SectionHeader--              ----\nCRC                            21978\nId:                            0\nLength                         136\nVersionNr                      20\nProtocolNr                     20\nReserved                       SCPECG\n----                           ----\nPointer Count                  12\nPointers                       0(136), 1(168), 2(18), 3(126), 4(22), 5(3342), 6(30084), 7(242), 8(0), 9(0), 10(0), 11(0)\n\n--Section1--                   ----\n--SectionHeader--              ----\nCRC                            24375\nId:                            1\nLength                         168\nVersionNr                      20\nProtocolNr                     20\nReserved                       \n----                           ----\nRes                            \nTags                           12\nLastName                       Clark\nFirstName                      \nPat Id                         SBJ-123\nSecond LastName                \nAge                            \nDateOfBirth                    1953/5/8\nHeight                         \nWeight                         \nSex                            Male\nRace                           Caucasian\nSys (mmHg)                     \nDia (mmHg)                     \nAcq. Device MachineID          ----\nInstNr                         0\nDepNr                          11\nDevId                          0\nDevType                        0\nModel                          LI250\n                               ----\nAcq. Institution Desc          \nAcq. Institution Desc          \nAcq. Department Desc           \nAnal. Department Desc          \nReferring Physician            \nLatest Confirm. Phys           \nTechnician Physician           \nRoom Description               \nStat Code                      \nDate of Acquis.                2002/11/22\nTime of Acquis.                09:10:00\nBaseline Filter                0\nLowPass Filter                 0\nOther Filters                  \nEcg Seq.                       \n\n--Section2--                   ----\n--SectionHeader--              ----\nCRC                            22179\nId:                            2\nLength                         18\nVersionNr                      20\nProtocolNr                     20\nReserved                       \n----                           ----\n\n--Section3--                   ----\n--SectionHeader--              ----\nCRC                            -19898\nId:                            3\nLength                         126\nVersionNr                      20\nProtocolNr                     20\nReserved                       \n----                           ----\nRefBeatSet                     False\nSim-rec Leads                  12\nLeadCount                      12\nLeads                          I, II, V1, V2, V3, V4, V5, V6, III, aVR, aVL, aVF\nSampleCount                    I (5000), II (5000), V1 (5000), V2 (5000), V3 (5000), V4 (5000), V5 (5000), V6 (5000), III (5000), aVR (5000), aVL (5000), aVF (5000)\n\n--Section4--                   ----\n--SectionHeader--              ----\nCRC                            4777\nId:                            4\nLength                         22\nVersionNr                      20\nProtocolNr                     20\nReserved                       \n----                           ----\n\n--Section5--                   ----\n--SectionHeader--              ----\nCRC                            -22034\nId:                            5\nLength                         3342\nVersionNr                      20\nProtocolNr                     20\nReserved                       \n----                           ----\nAVM (nV)                       2500\nSampleTime (µs)                2000\nSample Encoding                Second difference\nRefBeat 0, Bytes               272, 270, 258, 282, 266, 270, 260, 276, 322, 242, 288, 290\n\n--Section6--                   ----\n--SectionHeader--              ----\nCRC                            -4046\nId:                            6\nLength                         30084\nVersionNr                      20\nProtocolNr                     20\nReserved                       \n----                           ----\nAVM (nV)                       2500\nSampleTime (µs)                2000\nSample Encoding                Second difference\nBimodal compression            False\nLead Samples, Bytes            2510, 2426, 2354, 2468, 2412, 2356, 2450, 2634, 3002, 2162, 2668, 2596\n\n--Section7--                   ----\n--SectionHeader--              ----\nCRC                            26535\nId:                            7\nLength                         242\nVersionNr                      20\nProtocolNr                     20\nReserved                       \n----                           ----\n```\n\n# Example CSV usage\n\n```\npython scpinfo.py --csv 6 example/example.scp | head\n```\n\t\n\n```\n      I     II     V1     V2     V3     V4     V5     V6    III    aVR    aVL    aVF\n  11229     -2 -29953 -29185 -29953 -30721 -31233 -16897  -2821 -15629 -20080   -515\n -27845  28480  -7425  -7169  -7617  -7873  -7681 -23553  -6515 -22956  -4764  19237\n -27977  13979  25265 -17327  -4222  -9791 -14734   7543  -1545   9590  18382 -13345\n  -8387  -6161 -26641 -28022 -14789  22981  -5134  26312 -17545  -9242  -1571  30587\n -19694   4974  15163  -8985 -18067  -9177   1591 -10096  -3905  11541  26469  -8452\n -25271  22905  23490  -6514  15955 -17305   7029 -18795  -1195 -27291 -26267  15329\n  -9838  30646 -14314  -3722  15843   1775 -28789 -16525  20374  21798  28334  19941\n  19666  28307  19422 -27796  26564  14199  10617  -8402  21630  22238  29415  -7109\n  13033  22946  19062  14947 -26199  21013  15219  -2101   7927  25326 -25143 -11028\t\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgitrust%2Fscpinfo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgitrust%2Fscpinfo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgitrust%2Fscpinfo/lists"}