项目作者: k0swe

项目描述 :
JSON reference for amateur radio DXCC entities
高级语言: Python
项目地址: git://github.com/k0swe/dxcc-json.git
创建时间: 2021-01-14T18:23:25Z
项目社区:https://github.com/k0swe/dxcc-json

开源协议:Apache License 2.0

下载


DXCC JSON

This repository contains a JSON reference for amateur radio
DX Century Club (DXCC) entities as maintained by the
Amateur Radio Relay League (ARRL). This is intended for consumption by other
amateur radio software.

The reference data started from the
ARRL Country Lists & Prefixes page, specifically the
February 2020 text listing. That
document was imported into a
Google Spreadsheet
for formatting and cleansing. I added country codes, unicode flag glyphs and callsign prefix regular
expressions (regexes), and exported the spreadsheet as the CSV contained in this repository.
Finally, the included python script generates the JSON file.

One simple way to generate a smaller file with just what you need is to use the jq utility.

  1. $ < dxcc.json jq -c '{dxcc: [ .dxcc[] | select( .deleted==false ) |
  2. {id: .entityCode, name: .name, prefixRegex: .prefixRegex, flag: .flag} ]}' > dxcc-filter.json
  3. {
  4. "dxcc": [
  5. {
  6. "id": 1,
  7. "name": "Canada",
  8. "prefixRegex": "^V[A-GOY][A-Z0-9/]*$",
  9. "flag": "🇨🇦"
  10. },
  11. {
  12. "id": 3,
  13. "name": "Afghanistan",
  14. "prefixRegex": "^(YA|T6)[A-Z0-9/]*$",
  15. "flag": "🇦🇫"
  16. },
  17. ...
  18. {
  19. "id": 522,
  20. "name": "Kosovo",
  21. "prefixRegex": "^Z6[A-Z0-9/]*$",
  22. "flag": "🇽🇰"
  23. }
  24. ]
  25. }