Datasets:
The dataset viewer is not available for this split.
Error code: StreamingRowsError
Exception: ValueError
Message: Dataset 'station_mask' has length 140 but expected 1
Traceback: Traceback (most recent call last):
File "/src/services/worker/src/worker/utils.py", line 149, in get_rows_or_raise
return get_rows(
dataset=dataset,
...<4 lines>...
column_names=column_names,
)
File "/src/libs/libcommon/src/libcommon/utils.py", line 272, in decorator
return func(*args, **kwargs)
File "/src/services/worker/src/worker/utils.py", line 129, in get_rows
rows_plus_one = list(itertools.islice(safe_iter(ds, dataset=dataset), rows_max_number + 1))
File "/src/services/worker/src/worker/utils.py", line 544, in safe_iter
yield from ds.decode(False) if ds.features else ds
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 3052, in __iter__
for key, example in ex_iterable:
^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2559, in __iter__
for key, pa_table in self._iter_arrow():
~~~~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2584, in _iter_arrow
for key, pa_table in self.ex_iterable._iter_arrow():
~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 558, in _iter_arrow
for key, pa_table in iterator:
^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 440, in _iter_arrow
for key, pa_table in self.generate_tables_fn(**gen_kwags):
~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/hdf5/hdf5.py", line 76, in _generate_tables
num_rows = _check_dataset_lengths(h5, self.info.features)
File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/hdf5/hdf5.py", line 353, in _check_dataset_lengths
raise ValueError(f"Dataset '{path}' has length {dset.shape[0]} but expected {num_rows}")
ValueError: Dataset 'station_mask' has length 140 but expected 1Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
AQBench: Benchmarking Neural Surrogates for Air Quality Forecasting
AQBench supports the evaluation of neural surrogate models for air quality forecasting over the Indian subcontinent. It combines hourly simulations from the Weather Research and Forecasting model coupled with Chemistry (WRF-Chem), meteorological and emissions fields, and gridded ground station observations. Both data products use a 140 Γ 124 grid with 25 km Γ 25 km cells.
The simulation release contains 32 stored months across 2016β2019. The 2019 simulation file ends in May. Coverage is discontinuous, and some stored months have missing hours. Use the stored timestamps to identify gaps and construct contiguous forecasting windows.
Prediction targets
| Task | Targets |
|---|---|
| Single pollutant | PMβ.β |
| Multiple pollutants | PMβ.β , NOβ, CO |
Dataset structure
AQBench/
βββ wrfchem_simulations/
β βββ wrfchem_2016.h5
β βββ wrfchem_2017.h5
β βββ wrfchem_2018.h5
β βββ wrfchem_2019.h5
βββ ground_station_observations/
βββ ground_station_2018.h5
βββ ground_station_2019.h5
WRF-Chem simulations
wrfchem_YYYY.h5
βββ feature_names # (26,), in stored channel order
βββ audit_json # Build audit, including missing hours
βββ month_XX/
βββ data # (timesteps, 140, 124, 26), float32
βββ time # (timesteps,), one timestamp per data row
| Feature | Description |
|---|---|
pm25, no2, co |
Simulated pollutant concentrations used as prediction targets |
q2, t2 |
Water vapor mixing ratio and temperature at 2 m |
u10, v10 |
Eastward and northward wind components at 10 m |
rainc, rainnc |
Convective and nonconvective precipitation |
swdown |
Downward shortwave flux at the surface |
pblh |
Planetary boundary layer height |
psfc |
Surface pressure |
NOx_e, NH3_e, PM25_e, NMVOC_e, SO2_e |
Anthropogenic emissions by species |
NOx_finn, NH3_finn, PM25_finn, NMVOC_finn, SO2_finn |
Fire emissions by species |
bio |
Biogenic isoprene emissions |
Kyy |
Diffusivity coefficient used in the advectionβdiffusion residual |
no, pm10 |
Additional stored concentrations excluded from the modeling inputs and targets |
Ground station observations
The station files contain hourly PMβ.β
observations from 55 monitoring stations, mapped to the simulation grid. Use station_mask to identify station cells and account for missing observations when evaluating predictions.
ground_station_YYYY.h5
βββ feature_names # (1,), pm25
βββ station_mask # (140, 124), bool
βββ month_XX/
βββ data # (timesteps, 140, 124, 1), float32
βββ time # (timesteps,), one timestamp per data row
Read a simulation month
import h5py
from huggingface_hub import hf_hub_download
path = hf_hub_download(
repo_id="m3rg-iitd/AQBench",
repo_type="dataset",
filename="wrfchem_simulations/wrfchem_2018.h5",
)
with h5py.File(path, "r") as file:
features = file["feature_names"].asstr()[:].tolist()
month = file["month_01"]
times = month["time"].asstr()[:]
pm25_first_hour = month["data"][0, :, :, features.index("pm25")]
- Downloads last month
- 70