|CESM Research Tools: CLM4 in CESM1.1.1 User's Guide Documentation|
|Prev||Chapter 2. Using the CLM tools to create your own input datasets||Next|
"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/interpinic directory and can be used to run interpolate to. However, this file was created with an older version 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_TmpltI1850CN -res f10_f10 -compset I1850CN \ -mach yellowstone_intel > cd cr_f10_TmpltI1850CN # Set starting date to end of year, align to starting year, run a cold start, for one day > ./xmlchange RUN_STARTDATE=1948-12-31,DATM_CLMNCEP_YR_ALIGN=1948,CLM_FORCE_COLDSTART=on,STOP_N=1 # Then setup, build and run as normal > ./cesm_setup -case > ./cr_f10_TmpltI1850CN.build > ./cr_f10_TmpltI1850CN.submit # And copy the resulting restart file to your interpinic directory > cd ../models/lnd/clm/tools/interpinic > cp /ptmp/$LOGIN/cr_f10_TmpltI1850CN/run/cr_f10_TmpltI1850CN.clm2.r.1949-01-01-00000.nc .
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/interpinic > gmake OPT=TRUE SMP=TRUE > env OMP_NUM_THREADS=64 ./interpinic -o cr_f10_TmpltI1850CN.clm2.r.1949-01-01-00000.nc / -i /fs/cgd/csm/inputdata/ccsm4_init/b40.1850.track1.1deg.006/0863-01-01/b40.1850.track1.1deg.006.clm2.r.0863-01-01-00000.nc
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).