Hey EPA,
I have noticed that the pyaqsapi monitor service, bystate.monitors(), does not return the same results as a similar call from RAQSAPI, an API call to the web or an AMP500 report.
This is the query for pyaqsapi: df = pd.DataFrame(aqs.bystate.monitors("88101", datetime.date(1950, 1, 1), datetime.date(2024, 12, 31), "41"))
This is the query for the web: https://aqs.epa.gov/data/api/monitors/byState?email=my_email&key=my_key¶m=88101&bdate=19500101&edate=20241231&state=41
I have attached the results from both and an AMP500 report. I couldn't specify dates in the AMP500 report, so I queried back to 1950 through the web and pyaqsapi. I only have checked for the prescence of a specific site, 410310133. It also takes at least three minutes for pyaqsapi to complete the process and it also just seems to repeat the first 21 items.
Can you verify this is a bug and fix it? I'm happy to help out with more troubleshooting or diagnostics.
Thanks!
Ryan Porter
Oregon DEQ
pyaqsapi_monitors_1950.csv
AMP500_monitors.csv
AMP500_monitors.txt
APM500_monitors.pdf
API_monitors_1950.json
Hey EPA,
I have noticed that the pyaqsapi monitor service, bystate.monitors(), does not return the same results as a similar call from RAQSAPI, an API call to the web or an AMP500 report.
This is the query for pyaqsapi: df = pd.DataFrame(aqs.bystate.monitors("88101", datetime.date(1950, 1, 1), datetime.date(2024, 12, 31), "41"))
This is the query for the web: https://aqs.epa.gov/data/api/monitors/byState?email=my_email&key=my_key¶m=88101&bdate=19500101&edate=20241231&state=41
I have attached the results from both and an AMP500 report. I couldn't specify dates in the AMP500 report, so I queried back to 1950 through the web and pyaqsapi. I only have checked for the prescence of a specific site, 410310133. It also takes at least three minutes for pyaqsapi to complete the process and it also just seems to repeat the first 21 items.
Can you verify this is a bug and fix it? I'm happy to help out with more troubleshooting or diagnostics.
Thanks!
Ryan Porter
Oregon DEQ
pyaqsapi_monitors_1950.csv
AMP500_monitors.csv
AMP500_monitors.txt
APM500_monitors.pdf
API_monitors_1950.json