Sample R code for reading EQUATES CMAQ output (netcdf files)

Attached is some sample R code for accessing the 2017 EQUATES CMAQ daily average output netcdf file located in this Google Drive folder. The script shows how to:

  • open the netcdf file
  • extract the variable names and units, as well as the date and model grid information
  • read in the daily average PM2.5 data and calculate the annual mean PM2.5 for each grid cell
  • plot the annual average PM2. 5 data on a map

sample_Rcode_for_EQUATES_CMAQ_data.txt (5.0 KB)

2 Likes