How to use mini-CSEP distribution
This page provides detailed instructions on how to use a so-called mini-CSEP distribution of the CSEP Testing Center software.
External Packages
CSEP V11.7.0 software depends on the following external packages that are part of FC14 distribution as of 2011-07-05:
- Python Version 2.7 2.7 (r27:82500, Sep 16 2010, 18:02:00) http://www.python.org
- matplotlib Version 1.0.0 http://matplotlib.sourceforge.net
- numpy Version 1.4.1 http://numpy.scipy.org
- scipy Version 0.7.2 http://www.scipy.org
- basemap Version 0.99.4 http://matplotlib.sourceforge.net/basemap/doc/html/index.html
- java Version 1.6.0_10 http://www.java.com
- GMT Version 4.5.5 http://gmt.soest.hawaii.edu
- R Version 2.11.1 (2010-05-31) http://www.r-project.org
CSEP Environment Variables
For convenience, we use CSEP environment variable that points to the top level directory with all CSEP related files: configuration files, source code directory, log files, etc. This is not a requirement, and mentioned files can be located anywhere on your file system.
[csep@csep-op ~]$ cd $HOME [csep@csep-op ~]$ mkdir miniCSEP [csep@csep-op ~]$ setenv CSEP $HOME/miniCSEP
Please refer to the CSEP environment variables for the description of all required variables.
If using mini-CSEP distribution on the CSEP development server at SCEC (csep-devel.usc.edu, accessible through motion.usc.edu), it's recommended to copy environment variables of csep user account from /home/csep/.tcshrc into your ~/.tcshrc resource file. Please make sure that CENTERCODE environment variable points to the CSEP distribution you intend to use (/usr/local/csep or $HOME/miniCSEP/csep or some other directory you have placed the CSEP codes to).
Getting the Source Code
- Current distribution archive is available at http://cseptesting.org/downloads/CodeDistribution/miniCSEP
- Please validate downloaded file by comparing it's md5sum value against the one posted in csep.tar.gz.meta file available at the same location.
[csep@csep-op ~]$ md5sum /download/location/csepmini-12.4.0.tar.gz >> /download/location/md5.txt [csep@csep-op ~]$ diff /download/location/md5.txt /download/location/csepmini-12.4.0.tar.gz.meta
- Please extract files from miniCSEP distribution archive to the $CSEP directory
[csep@csep-op ~]$ tar zxvf /download/location/csepmini-12.4.0.tar.gz -C $CSEP
Building the miniCSEP
ATTENTION: Please ignore this section if using /usr/local/csep installation on the CSEP development server at SCEC (csep-devel.usc.edu).
Before invoking the CSEP code, please make sure that you build the binaries, and pass acceptance tests defined for the mini-CSEP distribution.
By default, runtime directories generated by acceptance tests are placed under $CENTERCODE/src/generic/test directory (results-* sub-directory for each test). To change the default location, please update your environment to set up a top-level runtime directory for the tests:
setenv CSEP_RESULTS_DIR /home/csep/path/to/CSEPTestsRuntimeDirs
Please use Makefile rules to build, install and test the distribution:
[csep@csep-op csep]$ cd $CENTERCODE [csep@csep-op csep]$ make [csep@csep-op csep]$ make install [csep@csep-op csep]$ make distcheck |& tee testlog.txt
Using the miniCSEP
Default geographical region within CSEP testing framework is set to California. The selection of geographical region controls (with provided examples for California):
- GMT map script (source:trunk/src/GMTScripts/forecast.gmt or $CENTERCODE/src/GMTScripts/forecast.gmt) to be used for spacial forecast distribution (i.e., map plot of the forecast)
- Test area file (source:trunk/data/areas/RELMTestArea.mat or $CENTERCODE/data/areas/RELMTestArea.mat) to be used for preparation of observation catalog for evaluation tests
- Collection area file (source:trunk/data/areas/RELMCollectionArea.mat or $CENTERCODE/data/areas/RELMCollectionArea.mat) to be used for preparation of input catalog used by forecasts models to generate forecasts
Other testing regions, that are part of the distribution, are SWPacific, NWPacific and Global. Geographical region of interest and corresponding catalog filtering settings (aka post-processing) can be specified through following command-line options to the Python's processing module:
Geographical Region Selection
[csep@csep-op csep]$ python ProcessingModule --geographicalRegion=Global
--postProcessFactory=$CENTERCODE/configuration/testing-regions/Global/cronjobs/PostProcessFactory.init.xml
GeographicalRegions.py Module
GeographicalRegions Python module is used to create:
- A plot of the spatial distribution of the forecast (i.e., map-view of the forecast)
Forecast.py Module
Forecast Python module is used to create:
- A plot of the magnitude distribution of the forecast (i.e., magnitude versus normalized probability)
CSEPXMLGeneric.py Module
CSEPXMLGeneric Python module is used for forecasts conversions:
- ASCII to XML
- XML to ASCII
EvaluationTest.py Module
EvaluationTest Python module represents any evaluation test that is defined within CSEP testing framework and used to invoke any combination of:
- Number (N) test
- Log-likelihood (L) test
- Ratio log-likelihood (R) test
- Space (S) test
- Magnitude (M) test
![(please configure the [header_logo] section in trac.ini)](http://cseptesting.org/themes/a3_atlantis/trac-logo.jpg)