1.1. Prepare your environment
$ module load imasenv/3.24.0/rc $ imasdb test # Setting up working directory with databases $ echo $MDSPLUS_TREE_BASE_0 # Variable containing the path to the database directory /afs/eufus.eu/user/g/g2dfigat/public/imasdb/test/3/0/
Before proceeding any further, make sure you have configured your Kepler environment. Take a look here 00. Initial setup or here 05.3. IMAS - basic topics - environment set-up(POZ'19Oct)
1.2. Sample codes of accessing IDS
Prepare example:
$ cd ./core_profiles_in__distribution_sources_out/fortran $ module load imasenv/3.24.0/rc # load environment if not set $ tree . ├── core_profiles_2_distribution_sources_fc2k_slice.xml ├── core_profiles_2_distribution_sources_fc2k.xml ├── core_profiles_2_distribution_sourcesF.f90 ├── core_profiles_2_distribution_sources_workflow_slice.xml ├── core_profiles_2_distribution_sources_workflow.xml ├── database │ ├── ids_1110010000.characteristics │ ├── ids_1110010000.datafile │ └── ids_1110010000.tree ├── Makefile └── run_test.sh
Run example:
$ ./run_test.sh --force Compilation - OK Skipping log removal FC2K build for core_profiles_2_distribution_sources_fc2k.xml - OK Skipping log removal FC2K build for core_profiles_2_distribution_sources_fc2k_slice.xml - OK Skipping log removal Workflow execution: core_profiles_2_distribution_sources_workflow.xml - OK Skipping log removal Checking output data inside DB: no-slices 111001/999 - OK Skipping log removal Workflow execution: core_profiles_2_distribution_sources_workflow_slice.xml - OK Skipping log removal Checking output data inside DB: slices 111001/999 - OK Skipping log removal
The same example in Kepler: