The following example contains the steps used by Mariana Vertenstein to create a new regional grid for running WRF-CLM within the CESM framework, June, 2012. 0) The following instructions assume that the following grid files have already been created, and are in the directory given by the shell variable wrfclm: remap_grid_nwAtl_12km_5m_ocn.nc remap_grid_nwAtl_12km_5m_atm.nc These are both SCRIP grid files. In this case, the two files are identical except for the grid_imask. The atm grid_imask is 1 everywhere; the ocn grid_imask is either 0 or 1. In addition, the shell variable YYMMDD should give the date at which these scripts were run (e.g., YYMMDD=120606) 1) generate atm/ocn mapping files cd $CCSMROOT/mapping/gen_mapping_files ./gen_cesm_maps.sh --fileocn $wrfclm/remap_grid_nwAtl_12km_5m_ocn.nc \ --fileatm $wrfclm/remap_grid_nwAtl_12km_5m_atm.nc \ --typeocn regional --typeatm regional \ --nameocn nwAtl_12km_5m_ocn --nameatm nwAtl_12km_5m_atm This generates 5 mapping files, including: map_nwAtl_12km_5m_ocn_TO_nwAtl_12km_5m_atm_aave.$YYMMDD.nc 2) generate (atm/lnd) and (ocn/ice) domain files cd $CCSMROOT/mapping/gen_domain_files [Note: you may need to build this tool... see INSTALL for instructions] ./gen_domain -m ../gen_mapping_files/map_nwAtl_12km_5m_ocn_TO_nwAtl_12km_5m_atm_aave.$YYMMDD.nc \ -o nwAtl_12km_5m_ocn -l nwAtl_12km_5m_lnd This generates 3 domain files, including: domain.lnd.nwAtl_12km_5m_lnd_nwAtl_12km_5m_ocn.$YYMMDD.nc domain.ocn.nwAtl_12km_5m_lnd_nwAtl_12km_5m_ocn.$YYMMDD.nc 3) Generate mapping files for clm surface dataset (since this is a non-standard grid) cd $CCSMROOT/models/lnd/clm/tools/mkmapdata ./mkmapdata.sh --gridfile $wrfclm/remap_grid_nwAtl_12km_5m_atm.nc \ --res nwAtl_12km_5km --gridtype regional This generates many mapping files 4) Generate clm surface dataset cd $CCSMROOT/models/lnd/clm/tools/mksurfdata_map ./mksurfdata.pl -res usrspec -usr_gname nwAtl_12km_5km -usr_gdate $YYMMDD \ -y 2000 This creates: surfdata_nwAtl_12km_5km_simyr2000_c$YYMMDD.nc 5) create grid file needed for create_newcase cd $CCSMROOT/scripts create nwatl_12km5km_grid_file.xml with the following contents, being sure to replace $CCSMROOT and $YYMMDD with the values of these variables: 6) Create first case datm, clm, docn, dice cd $CCSMROOT/scripts ./create_newcase -case pi_nwatl -compset PI_2000 -res nwatl1205_nwatl1205 \ -grid_file nwatl_12km5km_grid_file.xml -mach bluefire cd pi_nwatl ./cesm_setup edit user_nl_cpl and add the following line at the end: vect_map = 'none' edit user_nl_clm and add the following lines at the end, being sure to replace $CCSMROOT and $YYMMDD with the values of these variables: fatmlndfrc = '$CCSMROOT/mapping/gen_domain_files/domain.lnd.nwAtl_12km_5m_lnd_nwAtl_12km_5m_ocn.$YYMMDD.nc' fsurdat = '$CCSMROOT/models/lnd/clm/tools/mksurfdata_map/surfdata_nwAtl_12km_5km_simyr2000_c$YYMMDD.nc' edit env_run.xml to change the following ./preview_namelists ./pi_nwatl.build bsub < pi_nwatl.run 7) Create second case wrf, clm, docn, dice *** cd $CCSMROOT/scripts ./create_newcase -case pk_nwatl -compset PK_2000 -res nwatl1205_nwatl1205 -grid_file nwatl_12km5km_grid_file.xml -mach bluefire ./cesm_setup cp user_nl_clm from (5) cp user_nl_cpl from (5) edit env_run.xml to change the following ./preview_namelists