EXERCISE 4

Exercise: Using the Global emissions data (anthropogenic, sea salt, biomass burning) emissions for your domain (RACM-KPP-GOCART option).

***************************************************************************

Purpose: To familiarize the user with the available global emissions data set. This data set uses a program called "prep_chem_sources" to read the emissions data and map it to the user specified simulation domain. The program is capable of mapping anthropogenic and biogenic emissions, sea salt as well as biomass burning (wildfire) and volcanic ash emissions to the user domain.

The use of the prep_chem_sources program is complex and requires the user to be familiar with the simulation domain mapping information, the location of various data sets and where they are obtained as well as located on their particular system. Also, the user needs to be very familiar with the WRF-Chem registry (WRFV3/Registry/registry.chem) as the conversion process for this data that relies on the correct specification of chemistry namelist options. See the WRF-Chem Quick_start guide, the User's guide as well as the WRF-Chem FAQ web page (https://ruc.noaa.gov/wrf/wrf-chem/FAQ.htm) for additional information.

This exercise demonstrates the methodology for making a WRF-Chem emissions input files. the process shown here is:

Generate emissions data file for the domain and chemical mechanism of interest and write them into an intermediate file.

Convert the emission into a WRF chemical emissions input file.

***************************************************************************

Be sure your environmental variables are set.

The Global Emissions data and the prep_chem_sources program are available from the WRF-Chem ftp site at: Global Emissions data . (You need to download the global_emissions_v3_24aug2015.tar.gz file and prep_chem_sources_v1.5_24aug2015.tar.gz)

cd PREP-CHEM-SRC-1.5/bin

edit the prep_sources_chem.inp input file settings:

grid_type= 'lambert', !

ihour=00,

iday=14,

imon=07,

iyear=2010,

use_retro=1,

use_edgar=3,

use_gocart=1,

use_bioge=1,

use_bbem=1,

use_bbem_plumerise=1,

use_gocart_bg=1,

use_volcanoes=0,

...

and the grid information

...

NGRIDS = 1, ! Number of grids to run

NNXP = 41 , ! Number of x gridpoints

NNYP = 41 ! Number of y gridpoints

NXTNEST = 0, ! Grid number which is the next coarser grid

DELTAX = 100000.,

DELTAY = 100000., ! X and Y grid spacing

! Nest ratios between this grid and the next coarser grid.

NSTRATX = 1, ! x-direction

NSTRATY = 1, ! y-direction

! For polar, polelat and polelon are the geographical coordinates of the point

! of tangency between the projection plane and the Earth surface.

! It will be coincide with the center of grid (nnxp/2,nnyp/2) if they are

! equal to centlat and centlon.

! For lambert, then polelat and polelon specify the grid center lat/lon

POLELAT = 35., !

POLELON = 25., !

STDLAT1 = 30., !

STDLAT2 = 40., !

CENTLAT = 35.,

CENTLON = 25.,

***************************************************************************

cd {your_prep_chem_dir}

cp prep_chem_sources.inp .

Now you can run prep_chem_sources_RADM_WRF_FIM.exe.

./prep_chem_sources_RADM_WRF_FIM_.exe < prep_chem_sources.inp

***************************************************************************

You should see the following message at the end of a successful run.

=> Gocart Background Section ---------------------------

writing spc = DMS 41 41 12

DMS for month = 7

gocart_bg_spc_name DMS

writing spc = EROD 41 41 3

writing spc = H2O2 41 41 55

writing spc = OH 41 41 55

writing spc = NO3 41 41 55

Verify that the emissions data exists in the prep_chem_sources directory and that their size is (approximately) correct. Depending upon your system and data used the file sizes could vary by a small fraction.

-rw-r--r-- 1 class140 cbet 181816 Jan 24 15:13 WRF-TUTORIAL-T-2010-07-14-000000-g1-ab.bin ! Emissions file

-rw-r--r-- 1 class140 cbet 235672 Jan 24 15:13 WRF-TUTORIAL-T-2010-07-14-000000-g1-bb.bin ! BB emissions

-rw-r--r-- 1 class140 cbet 1136624 Jan 24 15:13 WRF-TUTORIAL-T-2010-07-14-000000-g1-gocartBG.bin ! GOCART background

Link these files to the directory where convert_emiss.exe located (usually /WRF/test/em_real). It might be useful to look at the quick start guide (in User's Guide) to get the linked file names as well as to follow the shown methodology.

ln -s {your_prep_chem_dir}/WRF-Chem_tutorial-T-2010-07-14-000000-g1-ab.bin emissopt3_d01

ln -s {your_prep_chem_dir}/WRF-Chem_tutorial-T-2010-07-14-000000-g1-bb.bin emissfire_d01

ln -s {your_prep_chem_dir}/WRF-Chem_tutorial-T-2010-07-14-000000-g1-gocartBG.bin wrf_gocart_backg

cp namelist.input .

Next, set the correct options for emiss_opt (=5, RACM-KPP GOCART), io_style_emissions (2, date/time specific emissions data files used), emiss_inpt_opt=1, io_form_auxinput, etc. in the namelist.input file. In this exercise we will use the RACM-KPP gas and GOCART aerosol option (chem_opt=301) with anthropogenic and biogenic emissions, dust, sea salt, and DMS. Be sure to consider the update interval of the global emissions (monthly) as well as their vertical dimensions (kemit=1 as it is only surface data).

emiss_opt = 5

io_style_emissions = 2

emiss_inpt_opt = 1

chem_opt = 301

kemit = 1 ! Note, the global emissions datasets are for the surface only. But it's recommended to use the anthropogenic emissions with vertical distribution (e.g. NEI2011 for the US)

! Set the dates and run time in the namelist. For convert emiss you need to set these settings to the initial time only (run_days=0, for 00Z 07-14-2010), because the emission files for single data/time only.

run_days = ?,

run_hours = 0,

run_minutes = 0,

run_seconds = 0,

start_year = ?, 2010, 2000,

start_month = ?, 07, 01,

start_day = ?, 14, 24,

start_hour = 00, 00, 12,

start_minute = 00, 00, 00,

start_second = 00, 00, 00,

end_year = ?, 2010, 2000,

end_month = ?, 07, 01,

end_day = ?, 16, 25,

! Check this section of the namelist.input; You need to set up these settings correctly to read all the emission and GOCART background files

auxinput5_interval_m = ?,

auxinput7_interval_m = ?,

auxinput8_interval_m = ?,

io_form_auxinput5 = ?,

io_form_auxinput7 = ?,

io_form_auxinput8 = ?,

! Set all io_form* =2 (netcdf format)

! Set all auxinput*_interval_m to a large number, e.g. 100000 (these fields are read only at the start of your 2 day simulation)

! Set the following namelist options (=1) to simulate BB, dust, DMS and sea salt emissions.

biomass_burn_opt = ?,

dust_opt = ?,

dmsemis_opt = ?,

seas_opt = ?,

! The following options are for aerosol-radiation interactions, so for now set them =0.

aer_ra_feedback = ?,

aer_op_opt = ?,

opt_pars_out = ?,

! Note, climatological biogenic emissions are added to the anthropogenic emissions by prep_chem in this exercise, a simple approach. Check Exercise_megan_bio_emiss to use online biogenic emissions later.

***************************************************************************

! For reference these are the auxinput channels to read different emission files. Remember, in column 8 of the registry.chem file the auxiliary input port numbers are set and they have been assigned as:

auxinput_5 -> Anthropogenic emissions

auxinput_6 -> Biogenic emissions (BEIS, MEGAN)

auxinput_7 -> Surface biomass burning fields

auxinput_8 -> GOCART background fields

auxinput_12 -> Chemistry initial fields

auxinput_13 -> Volcanic ash emissions

auxinput_14 -> Aircraft emissions

auxinput_15 -> Green House Gas emissions

***************************************************************************

Now link the wrfinput_d01 and wrfbdy_d01 (meteorology only) from the previous dust exercise.

ln -s ../Exercise_dust/wrfinput_d01 .

ln -s ../Exercise_dust/wrfbdy_d01 .

With the updated namelist.input file you can now run convert_emiss.exe.

nohup mpirun -np 8 convert_emiss.exe &

The output files will be:

wrfchemi_d01 -> Anthropogenic emissions

wrffirechemi_d01 -> Surface biomass burning fields

wrfchemi_gocart_bg_d01 -> GOCART background fields

***************************************************************************

Did you get a run time error when running convert_emiss.exe? Perhaps something like:

READ GOCART BACKGROUND DATA

PGFIO-F-219/unformatted read/unit=19/attempt to read/write past end of record.

File name = wrf_gocart_backg unformatted, sequential access record = 2

Or maybe

READ GOCART BACKGROUND DATA

forrtl: severe (67): input statement requires too much data, unit 19, file

${your_directory_path}/wrf_gocart_backg

If so, then you might:

* have a bad link,

* a zero-size file, or

* a missing the GOCART backgroud file.

Make sure the file link is correct.

***************************************************************************

Use a netCDF data file viewer to examine your global emissions data. Does it look like it matches your domain (Europe), or a bunch of diagonal lines? It should look like the Mediterranean region. Is there fire emissions over Greece? Did you remember there were bad fires in Greece back in July of 2010?

If the global emissions, biomass burning, etc. files are correct, you will need to change the name of the wrfchemi_d01 file to include the initial date and time:

ln -s wrfchemi_d01 wrfchemi_d01_2010-07-14_00:00:00

Examine your namelist.input file making sure you have set the correct values of the proper vertical dimensions for global emissions (surface data only), auxiliary file update interval, etc. Be sure to turn on biomass burning, sea salt, DMS, etc. as the GOCART aerosol scheme is being used!

Also be sure to have the run time of 2 days as you will be making a WRF-Chem simulation and not building global emissions from data files that vary daily or monthly.

Make sure the met_em files is linked to the current directory.

ln -s {your_wps_path}/met_em.d01.2010-07-14_* .

ln -s {your_wps_path}/met_em.d01.2010-07-15_* .

ln -s {your_wps_path}/met_em.d01.2010-07-16_00:00:00.nc .

! For real.exe you need to set the run time and dates to run the model for two days (07/14/2010-07/16/2010)

! With the namelist.input file set you can now run your run real.exe to get the GOCART background fields and biomass burning emissions data input the wrfinput file. If you do not do this there will be zero fields entered for biomass burning, etc. when you run wrf.exe

nohup mpirun -np 4 ./real.exe &

Check that real.exe completely successfully:

tail rsl.out.0000

d01 2010-07-16_00:00:00 real_em: SUCCESS COMPLETE REAL_EM INIT

Examine the wrfinput data file. Do you see the GOCART background fields in the wrfinput_d01 file (e.g. backg_oh)? Do you see the biomass burning emissions (e.g., ebu_in_co) in the surface fields as well?

With the input and boundary conditions files (wrfinput and wrfbdy) built you can now run wrf.exe.

nohup mpirun -np 8 ./wrf.exe &

Once again, when finished you should examine results of your simulation. Verify that sea salt aerosols exist in the run. Does the sea salt match the fine coarse particulate matter fields (PM10)? Are the SO2 and fire emissions correct? Can you see the effects of the fire emissions in the PM, or CO fields above the surface?

Save your wrfout files (e.g. mv wrfout_d01_2010_07-14-00:00:00 wrfout_d01_2010-07-14_save).

If you've survived so far, the next stage is to test the same chemistry option with direct feedback (Relax, this is for the 2nd day of the tutorial:))

Finally, try turning aerosol direct feedback on in namelist.input (aer_ra_feedback, aer_op_opt, opt_pars_out, =1) and run again. Compare the results from this run with the wrfout file you saved from earlier (wrfout_d01_2010-07-14_save). The results should be different between the two output files. This difference is due to the radiative interactions with the aerosols. Looking at the last run's output, does the array related to extinction (EXTCOF55) have non-zero values? Compare these fields with the dust arrays. You should see there a locational relationship between dust and the optical properties.

You can use ncdiff to generate a netCDF file that shows the differences between specified fields (first file minus second file), e.g.:

ncdiff -v SWDOWN,RAINC,T2 wrfout_d01_2010-07-14_00:00:00 wrfout_d01_2010-07-14_00:00:00_save diff.out




Return to WRF-Chem Tutorial Page

Return to WRF-Chem Main Page