bcgov / envair

BC ENV Air Quality Monitoring Data
Apache License 2.0
6 stars 4 forks source link

importBC_data() error: "DATE_PST" not found #26

Open GailR opened 3 months ago

GailR commented 3 months ago

importBC_data() is throwing an error "DATE_PST" not found. For example, importBC_data('Kamloops', 2015) results in:

image

I suspect the failure is occuring at line 740 because DATE_PST was removed from df_data earlier, on line 711.

image

ZoeGao218 commented 3 months ago

Hi Gail, as per users' request, a new column of DATETIME in time-beginning format was added into the data structure on 2024-03-14. You can re-install the envair (v. 0.4.2.000) to see the update.

I just tested the following scripts to download the 2015 PM2.5 data for Kamloops, all looks reasonable on my end.

PM2.5_Kamloops <- importBC_data('PM2.5', 2015) %>% dplyr::filter(STATION_NAME == "Kamloops Federal Building")