Code for formatting hourly and daily legacy data files for ingestion into the AZMet API database
Files:
air.toml: Config file indicating that this project uses theairformatterazmet-station-list.csv: a list of stations with legacy data to migrateazmet.schema.20250516-1222-1.sql: a SQL schema provided by Matt Harmonparsing_problems.R: script to (slowly) attempt scraping all data and saving out the result ofreadr::problems()in a named list to help troubleshoot parsing issuesrun.R: script to run functions to scrape all hourly and daily data for all stations and write to CSVsR/azmet_daily_datat_download.R: function for downloading all daily data for a single stationazmet_hourly_data_download.R: function for downloading all hourly data for a single stationutils.R: contains helper functions for unit conversions and dealing with the fact that AZMET uses 24:00:00 for midnight unlike R which rounds to the next day at 00:00:00. Mustsource()this for the data download functions to work.