{"success":true,"data":{"author":"David María-Arribas, Alejandra Abalo-García, Antonio S. Montemayor, Juan J. Pantrigo, Alfredo Cuesta-Infante (Universidad Rey Juan Carlos)","bucketAccessType":"public","bucketName":"dmariaa70/METRAQ-Air-Quality","bucketPrefix":"","category":"Environmental Science","cloudProvider":"huggingface","createdAt":"2026-11-16T15:39:56.077Z","description":"METRAQ is an hourly air-quality dataset for the city of Madrid, Spain, built from the Madrid City Council open data portal and aligned with meteorology and road traffic for forecasting and spatio-temporal imputation of pollutant concentrations. It holds measurements of up to 14 pollutants (including NO2, NO, NOx, O3, PM10, PM2.5, CO, SO2 and benzene) from the municipal monitoring network, with up to seven meteorological parameters since 2019 and three traffic metrics since 2015, interpolated to the monitoring stations with five methods. The enriched subset has 64,881,744 records over 210,384 hourly timestamps: 25.5 million air-quality, 8.8 million meteorological and 30.5 million traffic rows. Files are 24 yearly CSVs (metraq_aq-2001.csv to 2024, about 6 GB). The authors provide baseline forecasting and imputation models in the companion repository github.com/dmariaa/metraq-aq. Read with pandas. Released under the MIT License by David María Arribas (card and LICENSE file); cite María-Arribas et al. 2025 (doi:10.57967/hf/5519).","displayTitle":"METRAQ: Madrid Hourly Air Quality, Meteorology and Traffic Dataset (2001-2024)","doi":"10.57967/hf/5519","huggingFaceUrl":"https://huggingface.co/datasets/dmariaa70/METRAQ-Air-Quality","id":"b5fd4922-aa23-5075-a122-c0f7b4b94775","license":"MIT","licenseEvidenceUrl":"https://huggingface.co/datasets/dmariaa70/METRAQ-Air-Quality","objectCountEstimate":27,"probeStatus":"ok","region":"us","schemaCard":{"accessHints":[{"language":"python-datasets","snippet":"from datasets import load_dataset\nds = load_dataset(\"dmariaa70/METRAQ-Air-Quality\")"},{"language":"python-hub","snippet":"from huggingface_hub import snapshot_download\nsnapshot_download(repo_id=\"dmariaa70/METRAQ-Air-Quality\", repo_type=\"dataset\")"}],"caveats":["HuggingFace metadata: author=dmariaa70, license:cc-by-4.0, size_categories:10M<n<100M, format:csv, downloads=1467"],"format":"mixed","generatedAt":"2026-11-16T15:40:05.383Z","layout":{"example":"metraq_aq-2001.csv","pattern":"{repoId}/{filename}"},"mountPath":"/mnt/archive","sampleHeaders":[{"bytes":"sensor_id,sensor_name,utm_x,utm_y,magnitude_id,magnitude_name,entry_date,value,is_interpolated\n28079004,Plaza de España,439579.3291,4475049.263,1,SO2,2001-01-01 00:00:00,21.0,0\n28079004,Plaza de España,439579.3291,4475049.263,6,CO,2001-01-01 00:00:00,1.0,0\n28079004,Plaza de España,439579.3291,4475049.263,7,NO,2001-01-01 00:00:00,83.0,0\n28079004,Plaza de España,439579.3291,4475049.263,8,NO2,2001-01-01 00:00:00,50.0,0\n28079004,Plaza de España,439579.3291,4475049.263,12,NOX,2001-01-01 00:00:00,177.0,0\n280","encoding":"utf8","key":"metraq_aq-2001.csv","truncatedAt":512}],"sampleObjects":["metraq_aq-2001.csv","metraq_aq-2002.csv","metraq_aq-2003.csv","metraq_aq-2004.csv","metraq_aq-2005.csv"],"sidecars":[{"bytes":"MIT License\n\nCopyright (c) 2025 David María Arribas\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","encoding":"utf8","key":"LICENSE","name":"LICENSE","size":1076,"truncated":false},{"bytes":"---\nlicense: cc-by-4.0\ntask_categories:\n- time-series-forecasting\ntags:\n- environment\n- pollution\n- air-quality\n- meteorology\n- traffic\npretty_name: METRAQ air quality dataset\nsize_categories:\n- 10M<n<100M\ndataset_info:\n  features:\n  - name: sensor_id\n    dtype: string\n  - name: sensor_name\n    dtype: string\n  - name: utm_x\n    dtype: float64\n  - name: utm_y\n    dtype: float64\n  - name: magnitude_id\n    dtype: int32\n  - name: magnitude_name\n    dtype: string\n  - name: entry_date\n    dtype: timestamp[s]\n  - name: value\n    dtype: float64\n  - name: is_interpolated\n    dtype: bool\n---\n\n# The METRAQ air quality dataset\n\nThis is the official dataset repository for the METRAQ air quality dataset. \n\nMETRAQ air quality is an air quality dataset comprising hourly measurements of up to 14 pollutants from January 1, 2001, to December 31, 2024. In addition, the dataset has been spatially and temporally aligned with up to seven meteorological parameters (available since January 1, 2019) and three traffic monitoring metrics, aggregated using five different interpolation methods since January 1, 2015.\n\nThis enriched subset includes a total of 64,881,744 rows distributed as follows: 25,535,832 (39.36\\%) air quality data, 8,838,144 (13.62\\%) meteorological data and 30,507,768 (47.02\\%) traffic data.\n\nTo the best of our knowledge, METRAQ is the largest and most comprehensive dataset available to date in terms of covariates closely related to air quality. Furthermore, we provide baseline models for both forecasting and spatio-temporal imputation of air pollutant concentrations. METRAQ is a high-quality, multifaceted dataset designed to support the development of data-driven models that can inform public policy and regulatory decisions aimed at minimizing the impact of pollution on citizens' health and well-being.\n\n## 📊 Statistics\n\n- **Total number of timestamps**: 210,384 between 01/01/2013 00:00:00 and 31/12/2024 23:00:00\n- **Total number of records**: 64,881,744\n  - **Air quality**: 25,535,832 (39.36%) since 01/01/2013 00:00:00\n  - **Meteorology**: 8,838,144 (13.62%) since 01/01/2019 00:00:00\n  - **Traffic**: 30,507,768 (47.02%) since 01/01/2015 00:00:00\n\n## 🔧 Tools and Code\n\n- 📦 Dataset: [Hugging Face Dataset Page](https://huggingface.co/datasets/dmariaa70/METRAQ-Air-Quality)\n- 🛠️🧪 Source code and experiments: [Metraq source code](https://github.com/dmariaa/metraq-aq)\n\n## 💾 Data sources\n\nThe original data published in this dataset is available on the [Open Data Portal](https://datos.madrid.es/portal/site/egob/menuitem.9e1e2f6404558187cf35cf3584f1a5a0/?vgnextoid=374512b9ace9f310VgnVCM100000171f5a0aRCRD&vgnextchannel=374512b9ace9f310VgnVCM100000171f5a0aRCRD&vgnextfmt=default) of the City Council of Madrid (Spain). \n\n## 📄 License\n\nThis project is licensed under the **MIT License**.\n\nYou are free to:\n\n- ✅ Use the dataset for commercial and non-commercial purposes  \n- ✅ Modify, distribute, and build upon the dataset  \n- ✅ Incorporate it into your own models, research, or applications  \n\nAs long as you include the following notice in your work:\n\n> **Copyright © 2023 David María Arribas <david.maria@urjc.es>**  \n> This software and dataset are provided \"as is\", without warranty of any kind, express or implied.\n\nThe full license text is available [here](https://opensource.org/licenses/MIT).\n\n## 📚 Citation\n\nIf you use METRAQ Air Quality dataset in your research, please cite our work using the following format (citation will be updated upon paper publication):\n```bibtex\n@misc{david_maría-arribas_2025,\n\tauthor       = { David María-Arribas and Alejandra  Abalo-García and Antonio S. Montemayor and Juan J. Pantrigo and Alfredo Cuesta-Infante },\n\ttitle        = { METRAQ-Air-Quality },\n\tyear         = 2025,\n\turl          = { https://huggingface.co/datasets/dmariaa70/METRAQ-Air-Quality },\n\tdoi          = { 10.57967/hf/5519 },\n\tpublisher    = { Hugging Face }\n}\n```","encoding":"utf8","key":"README.md","name":"README.md","size":3941,"truncated":false}],"sourceObjectKey":"metraq_aq-2001.csv","starterCell":"import pandas as pd\ndf = pd.read_csv(\"hf://datasets/dmariaa70/METRAQ-Air-Quality/metraq_aq-2001.csv\")\ndf.head()","starterSamplePath":"metraq_aq-2001.csv","totalObjects":27},"summary":"METRAQ is an hourly air-quality dataset for the city of Madrid, Spain, built from the Madrid City Council open data portal and aligned with meteorology and road traffic for…","title":"METRAQ: Madrid Hourly Air Quality, Meteorology and Traffic Dataset (2001-2024)","updatedAt":"2026-11-17T17:09:02.702Z","visibility":"public","websiteUrl":"https://github.com/dmariaa/metraq-aq"}}