I used the fire_emis tool to prepare FINN emissions for a WRF-Chem simimulation. I got multiple wrffirechemi files (i.e. 'wrffirechemi_d01_2020-03-15_10:00:00') and I am trying to plot the pm2.5 variable. However, I am having trouble doing so. Has anyone mapped wrffirechemi files, either in python or ncl?
Thank you, Nafi
Not an expert in it but you can try doing this through
xarray,matplotlib, andcartopy. You need to first install these:Now you can use
xarrayto open thewrffirechemifile.xarraycan handle NetCDF files which are commonly used for atmospheric and oceanographic data.Once file will be loaded, you can check the variables available in the dataset. If you're not sure of the exact name of the PM2.5 variable, you can print all variables names:
This will help you identify the variable corresponding to PM2.5 emissions. I'm assuming that the variable is named
PM2_5.For a basic plot, you can use
xarray's plotting capabilities. For more advanced geographic plots, you may usecartopy.Untested but Hope it will help. Thanks