Skip to contents

This function download the main meteorological parameters from one air quality station (AQS) of Monitor Ar network. It will pad out the date with missing data with NA.

Usage

monitor_ar_retrieve_met(
  start_date,
  end_date,
  aqs_code,
  verbose = TRUE,
  to_local = TRUE,
  to_csv = FALSE,
  csv_path = ""
)

Arguments

start_date

Date to start downloading in dd/mm/yyyy.

end_date

Date to end downloading in dd/mm/yyyy.

aqs_code

Code of AQS. See monitor_ar_aqs.

verbose

Print query summary.

to_local

Date information in local time. TRUE by default.

to_csv

Create a csv file. FALSE by default.

csv_path

Path to save the csv file.

Value

data.frame with Temperature (c), Relative Humidity (%), Wind speed (m/s) and direction (degrees) and Pressure information.

Examples

if (FALSE) { # \dontrun{
# Downloading meteorological data from CENTRO AQS
# from January first to 7th of 2020
start_date <- "01/01/2020"
end_date <- "07/01/2020"
ca_met <- monitor_ar_retrieve_met(start_date, end_date, "CA")
} # }