Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Running an Experiment

The examples in the CCLM starter package SPICE are built in a way that everything will be stored under the directory tree starting with $SPDIR and therefore will be on the same file system. This is often not convenient, it might be better to put scripts and I/O to different more appropriate file systems. This could be done by setting the main directory settings (see table) in the job_settings script accordingly. 

Before you run your own experiment it is recommended to run the test cases sp001 and sp002 as described in the Install section.

Creating the first new experiments by yourself

Downscaling simulation with GCM data (gcm2icon)

Make a copy of the template sp001 as starting point for your experiment (this is named exp001 in mytemplate1 in the following, but you can use choose a name by yourself).

Code Block
languagebash
cp -R $SPDIR${SPDIR}/chain/gcm2icon/sp001 yourpath/exp001mytemplate1


Change into the gcm_to_cclm/sp001 directory in the chain directory. sp001 is also the experiment name.

cd $SPDIR/chain/gcm_to_cclm/sp001

You may have to change paths in job_settings and in the files in the directory templates and the batch command.
Start the chain:yourpath/mytemplate1 directory and perform your modifications in the job_settings file and the other scripts. Then perform a clean to get rid of any unnecessary files that may have transferred during the copying of sp001.

Code Block
languagebash
cd yourpath/mytemplate1
./subchain clean

Now you are ready to start your experiment

Code Block
languagebash
./subchain start


If the cclm simulation is successful you can find the output data under the directories $SPDIR/chain/arch/sp001 and $ARCHIVE_OUTDIR and as post-processed time series under $SPDIRunder $WORKDIR/chainmytemplate1/work/sp001/post.

Nested simulation (icon2icon)

...

cd $SPDIR/chain/cclm_to_cclm/sp002

You may have to change paths in job_settings and in the files in the directory templates and the batch command.
Start the chain:Make a copy of the template sp002 as starting point for your experiment (this is named mytemplate2 in the following, but you can use a name by yourself).

Code Block
languagebash
cp -R ${SPDIR}/chain/icon2icon/sp002 yourpath/mytemplate2


Change into the yourpath/mytemplate2 directory and perform your modifications in the job_settings file and the other scripts. Then perform a clean to get rid of any unnecessary files that may have transferred during the copying of sp002.

Code Block
languagebash
cd yourpath/mytemplate2
./subchain clean

Now you are ready to start your experiment

Code Block
languagebash
./subchain start


If the cclm simulation is successful you can find the output data under the directories $SPDIR/chain/arch/sp002 and $ARCHIVE_OUTDIR and as post-processed time series under $SPDIR$WORKDIR/chain/work/sp002/postmytemplate2/post.

Creating any further experiments

After you have created an experiment as in the examples above (mytemplate1 or mytemplate2) you can use this experiment as a template (or as your new sp001 or sp002 so to speak) for your further experiments. This will save you some time since you have not to do a lot of basic changes again.