Skip to main content

channels4world library

The environment is part of the channel. Channels4World pairs outdoor RF scenes with stored channels across 100,000 environments. This Python library helps you select, read and prepare those records locally. It plans downloads, reads values and dtypes as read-only NumPy arrays, and can extract subsets or build memory-mapped caches; it performs no network transfers.

Dataset card · Download helper · Guide · API and CLI

Install

Requires Python 3.11+, NumPy 1.26+ and PyArrow 14+. PyTorch is optional.

python -m pip install channels4world
python -m pip install "channels4world[torch]"   # with the optional PyTorch adapter
python -m pip install huggingface_hub           # the hf command, for the downloads below

Hugging Face's hf command or snapshot_download fetches the planned files; then open the local folder with the library.

Quick start: download and read one scene

The examples follow one link throughout: base station 0 and UE 14 of urban_scene_019234 at 3.5 GHz, the same link the project website shows. Download BS 0 of that Tiny scene with the metadata the library needs (about 26 MB):

hf download Intelligence-Networking-Lab/Channels4World --repo-type dataset \
  --revision v1.0.0 --local-dir c4w \
  --include 'tiny/c4w-root.json' --include 'tiny/c4w-root/*' --include 'tiny/schema/*' \
  --include 'tiny/groups/test-urban-g00000/catalog/members.parquet' \
  --include 'tiny/groups/test-urban-g00000/snapshot.json' \
  --include 'tiny/records/scene=urban_scene_019234/positions.npz' \
  --include 'tiny/records/scene=urban_scene_019234/geometry.zip' \
  --include 'tiny/records/scene=urban_scene_019234/band_hz=*/component=*/bs00000.npz'

For all 32 BSs of the scene (about 418 MB), replace the last three --include patterns with 'tiny/records/scene=urban_scene_019234/*'. Then read the link:

import channels4world as c4w

ds = c4w.open("c4w/tiny")
scene = ds.scene("urban_scene_019234")
record = scene.frequencies[3_500_000_000].base_stations[0].read()
positions = scene.read_positions()

print(scene.split, scene.profile, scene.tier)   # test urban tiny
link = record.get_link(14)                      # This example has a retained link
assert link is not None
print(link.n_paths, link.core["tau"])           # 16 retained paths and their delays, s

The hierarchy is dataset → scene → carrier → base station → UE link → paths. Scenes also belong to a split (ds.splits), and ds.scene(id) works across splits. Scene IDs are strings, carriers are integer Hz, and BS and UE IDs are integers. A UE ID is a row of positions.ue; it is not the link's row in the record. Collections iterate over objects; .ids gives their keys.

Select what to read

Small and larger tiers are TAR archives. Download the release catalog, then choose scenes, carriers, BSs and components:

hf download Intelligence-Networking-Lab/Channels4World --repo-type dataset \
  --revision v1.0.0 --local-dir c4w --include 'c4w-root.json' --include 'c4w-root/*'
import channels4world as c4w
from huggingface_hub import snapshot_download

ds = c4w.open("c4w")
selection = ds.select(tier="small", profile="urban", frequencies_hz=[3_500_000_000],
                      components=("core", "positions"))
report = selection.missing()
print(report)  # files to download and their total size; check it before downloading

if report.files:
    snapshot_download("Intelligence-Networking-Lab/Channels4World", repo_type="dataset",
                      revision="v1.0.0", local_dir=report.local_dir,
                      allow_patterns=report.repo_files)
assert selection.missing().complete
for record in selection.records():
    print(record.scene_id, record.frequency_hz, record.bs_id, record.n_paths)

missing() plans TAR downloads from the catalog before any group metadata is local, and report.hf_command(revision="v1.0.0") prints the same plan as an hf download command. Requested items the release does not host, such as detail outside the Medium tier, are listed as unpublished rather than dropped. Use .local() only to narrow a selection deliberately to what is downloaded.

Save a selection as a small JSON recipe to share it or to rerun it later. A recipe records the request, not file paths, so each user plans from their own catalog:

recipe = selection.to_recipe(revision="v1.0.0")
same = ds.select_recipe(recipe)            # or the path of a saved recipe file
c4w recipe c4w --tier small --profile urban --frequency 3500000000 \
  --components core,positions --revision v1.0.0 -o small-urban.json
c4w missing c4w --recipe small-urban.json --revision v1.0.0

Prepare, transform and train

Downloaded TARs can be read directly. For repeated access, make a loose subset or an NPY cache:

c4w.extract(selection, "small-loose")
c4w.to_cache(selection, "small-npy")
cache = c4w.open("small-npy")

Every root opens with the same API. Optional transforms give complex gains, path powers, delay spreads, baseband coefficients, frequency responses and fixed-size padded arrays. A thin PyTorch adapter turns a selection into a dataset for DataLoader.

Documentation

The dataset card holds the full schema, the catalogs and NumPy-only instructions. The library version, the root format (version 1) and the dataset release are separate identifiers.

Help and contributing

For usage questions and bug reports, use the GitHub issues page. Contributors can start with the Development guide listed under Documentation.

Maintainer, licenses and citation

Copyright 2026 Joonkyu Jang. Maintained by Joonkyu Jang; see COPYRIGHT.

The software is Apache-2.0; see LICENSE. The Channels4World data is separately CC BY 4.0. For data attribution and the submitted dataset-paper citation (arXiv preprint pending), see the dataset card.

Metadata

Release files for channels4world 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for channels4world 1.0.0
File Size Uploaded Provenance Actions
channels4world-1.0.0.tar.gz 83.3 kB Without provenance Details for channels4world-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for channels4world 1.0.0
File Interpreter ABI Platform Actions
channels4world-1.0.0-py3-none-any.whl Python 3 none any Details for channels4world-1.0.0-py3-none-any.whl

Total release size: 135.5 kB

Release files / channels4world-1.0.0.tar.gz

Download URL channels4world-1.0.0.tar.gz
Size 83.3 kB
Tags Source
SHA-256 checksum
How to use checksums
0a3635b1787642ce48faf1d189e8c08a011c569ffea9ce57114c0a4ca82f19fc
BLAKE2b-256 checksum
How to use checksums
afc05697ffbb94ae9289e272cacd98144dbd4eb465ba1313ea7e8801dcab04a3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.15

Release files / channels4world-1.0.0-py3-none-any.whl

Download URL channels4world-1.0.0-py3-none-any.whl
Size 52.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f359bada58e8cd4ea297494fc5e95ca3574ce276fc5fdb062e32e61c6c02cd1e
BLAKE2b-256 checksum
How to use checksums
be90bbcf5a40d063a90943bf6bd2b806abaf38f597034ff22b5b6f25ba0a40f0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.15

Security for channels4world 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page