利用机器学习改善臭氧预测的综合指南
1 数据收集
1.1 AirNow O3 浓度
AirNow 观测网络能够提供每小时的地面 O3 浓度数据。大部分数据会在前一个小时的 30 分到达,并通过一系列数据质量检查流程进行质量保证,然后在该小时结束时发布。美国环境保护署(EPA)提供了易于使用的工具来访问历史和实时数据。
例如,可以通过 Python 客户端查询 AirNow API 来检索每日 O3 测量数据。具体步骤如下:
1. 获取 API 密钥:通过链接(https://docs.airnowapi.org/account/request/)设置 API 密钥。
2. 使用 Python 代码查询数据:以下是获取指定时间段内 O3、CO 和 NO2 值的代码:
from pyairnow.conv import aqi_to_concentration
import pandas
import requests
import json
# Latitude and Longitude location in Pima, AZ.
lat = '32.047501'
lon = '-110.773903'
# Add the API Key generated from airnowapi.org
API_KEY = '<API-KEY HERE>'
# distance is used when no reporting area is associated with the latitude/longitude provided.
# distance
超级会员免费看
订阅专栏 解锁全文
70

被折叠的 条评论
为什么被折叠?



