Using interpinic to interpolate initial conditions to different resolutions

"interpinic" is used to interpolate initial conditions from one resolution to another. In order to do the interpolation you must first run CLM to create a restart file to use as the "template" to interpolate into. Running from arbitrary initial conditions (i.e. finidat = ' ') for a single time-step is sufficient to do this. Make sure the model produces a restart file. You also need to make sure that you setup the same configuration that you want to run the model with, when you create the template file.

Command line options to interpinic:

-i = Input filename to interpolate from
-o = Output interpolated file, and starting template file

There is a sample template file in the models/lnd/clm/tools/clm4_5/interpinic directory and can be used to run interpolate to (as well as models/lnd/clm/tools/clm4_5/interpinic).. However, these files were created with older versions of CLM and hence we actually recommend that you would do a short run with CLM to create a template file to use.

Example 2-1. Example of running CLM to create a template file for interpinic to interpolate to

> cd scripts
> ./create_newcase -case cr_f10_TmpltI1850BGC -res f10_f10 -compset I1850CRUCLM45BGC \
-mach yellowstone_intel
> cd cr_f10_TmpltI1850BGC
# Set starting date to end of year, align to starting year, run a cold start, for one day
# Then setup, build and run as normal
> ./cesm_setup -case
> ./
> ./cr_f10_TmpltI1850BGC.submit
# And copy the resulting restart file to your interpinic directory
> cd ../models/lnd/clm/tools/clm4_5/interpinic
> cp /ptmp/$LOGIN/cr_f10_TmpltI1850BGC/run/ .

In the next example we build interpinic optimized with shared memory on for 64 threads so that it runs as fast as possible, to interpolate one of the standard 1-degree datasets to the above 10x15 template file that we created.

Example 2-2. Example of building and running interpinic to interpolate a 1-degree finidat dataset to 10x15

> cd models/lnd/clm/tools/clm4_5/interpinic
> env OMP_NUM_THREADS=32 ./interpinic -o /
-i /fs/cgd/csm/inputdata/ccsm4_init/b40.1850.track1.1deg.006/0863-01-01/

Tip: Running interpinic at high resolution can take a long time, so we recommend that you always build it optimized and with shared memory processing on, to cut down the run time as much as possible.


interpinic does NOT work for CNDV (bgc=cndv).


Because of bug 1634 (See models/lnd/clm/doc/KnownBugs) you need to use NetCDF4.3 in interpinic when your input template was created using pNetCDF.