Overview
This workflow was tested using QGIS Version 3.22.5. See the "Additional Info" section for special guidance for Non-Gridded data.
Example
The example data used in this tutorial is an hourly, time-averaged 2-dimensional data collection in NetCDF for the Modern-Era Retrospective analysis for Research and Applications, version 2 (MERRA-2). More specifically, the data collection longname and shortname are defined as, respectively: "MERRA-2 tavg1_2d_aer_Nx: 2d,1-Hourly,Time-averaged,Single-Level,Assimilation,Aerosol Diagnostics V5.12.4 (M2T1NXAER)" and "M2T1NXAER_5.12.4". The time slice used in this workflow is September 1, 2021. The filename for this time slice is "MERRA2_401.tavg1_2d_aer_Nx.20210901.nc4."
The MERRA-2 "M2T1NXAER_5.12.4" data collection also contains several variables that you can choose to plot as a raster directly from the NetCDF4 (*.nc4) file that is subsetted and downloaded. For this example, the variable "BCCMASS" will be plotted for the example time slice (referenced above). "BCCMASS" is "Black Carbon Column Mass Density" in units of "kg m-2".
More information on the variables associated with these data can be found in the MERRA-2: File Specification document. NetCDF files can also be expressed with the file extension of *.nc (the example data is .nc4, or NetCDF4). They can be plotted in the same fashion.
Prerequisites
Software Requirements: QGIS Version 3.44.9* or above. Python workflow tested in Jupyter Notebook.
*QGIS is an open-source GIS software, and can be downloaded via the web.
Estimated Completion Time: 15 minutes
Procedure
1) Download the example data (or desired NetCDF or NetCDF4/*.nc or *.nc4 granule and data collection). The example data are available and are also referenced above: MERRA2_401.tavg1_2d_aer_Nx.20210901.nc4.
2) Open the QGIS application on your desktop, and create and save a new project to your desired directory. Your blank QGIS project should look similar to Figure 1, below.