Chemical boundary and initial conditions from CAM Chem to WRF Chem - adelgadop/SOPRO GitHub Wiki

  1. Download CAM-Chem data from https://www.acom.ucar.edu/cam-chem/cam-chem.shtml
  2. Download MOZBC program from https://www.acom.ucar.edu/wrf-chem/download.shtml
  3. Install MOZBC in the Linux server. Consider suggestions to avoid errors with netCDF when compiling WRF-Chem tools
  4. Create mozcart_camchem.inp (credits: thank you, Noelia) to map species' emission from CAM-Chem:
&control
do_bc   = .false.
do_ic   = .true.
domain  = 2
dir_wrf = '/home/alejandro/WRF-4.2.1/test/em_real/'
dir_moz = '/home/alejandro/data/cbc/camchem/'
fn_moz  = 'camchem-20220808151436463722.nc'
moz_var_suffix = ''

spc_map = 'o3 -> O3',
          'n2o -> N2O',
          'no -> NO',
          'no2 -> NO2',
          'nh3 -> NH3',
          'hno3 -> HNO3',
          'hno4 -> HO2NO2',
          'n2o5 -> N2O5',
          'h2o2 -> H2O2',
          'ch4 -> CH4',
          'co -> CO',
          'ch3ooh -> CH3OOH',
          'ch3oh -> CH3OH',
          'c2h4 -> C2H4',
          'acet -> CH3COCH3',
          'pan -> PAN',
          'mpan -> MPAN',
          'macr -> MACR',
          'mvk -> MVK',
          'c2h6 -> C2H6',
          'c3h6 -> C3H6',
          'c3h8 -> C3H8',
          'c2h5oh -> C2H5OH',
          'onitr -> ONITR',
          'acetol -> HYAC',
          'mek -> MEK',
          'bigene -> BIGENE',
          'bigalk -> BIGALK',
          'tol -> TOLUENE+BENZENE+XYLENES',
          'cres -> CRESOL',
          'so2 -> SO2',
!         'sulf-> 0.3*so4_a1+0.3*so4_a2+0.3*so4_a3;1e6',
          'BC1 -> 1.0*bc_a4;1.e9',
          'BC2 -> 1.0*bc_a1;1.e9',
          'OC1 -> 1.0*pom_a4;1.e9',
          'OC2 -> 1.0*pom_a1;1.e9',
          'SEAS_1 -> 1.0*ncl_a1+1.0*ncl_a2;1.e9',
          'SEAS_2 -> 0.5*ncl_a3;1.e9',
          'SEAS_3 -> 0.5*ncl_a3;1.e9',
          'SEAS_4 -> 0.0*ncl_a3;1.e9'
/
  1. Ensure that met_em files are in the WRF-Chem path when you run the model.
  2. Finally, in the Linux terminal, write ./mozbc < mozcart_camchem.inp changing the mozcart_camchem.inp if you have two or more domains:
do_bc   = .true.
do_ic   = .true.
domain  = 1
do_bc   = .false.
do_ic   = .true.
domain  = 2

That's all folks!