1. Setting up environment
Setting up Catalog QT environment
> module load imasenv # Remember to set the name of database (I am using 'test') > imasdb test # Make sure to load catalog QT module > module load imas-catalogqt
2. Populating Catalog with data
There are two options to populate Catalog database with input data
- populating whole machine
- populating single pulse file
These are available once you load imas-catalogqt
module. You can use two commands: store_data.sh
and store_machine.sh
.
2.1. Populating single pulse file
Storing single pulse file can be done using store_data.sh
script.
> ./store_data.sh --help Usage: store_data.sh [OPTIONS] -help, --help= print this messageMandatory options: -shot=, --shot= shot number -run=, --run= run number -file=, --file= location of derivation file location of derivation file must be provided as explicit path Optional options: -user=, --user= user name -machine=, --machine= tokamak name -version=, --version= database version In case you don't provide optional options, their values will be taken from environment variables
Assuming that you want to store shot=1000
, run=100
for machine test
and data dictionary release 3
(we are focusing only on major release of dictionary), you can use following command
> ./store_data.sh -shot=1000 \ -run=100 \ -machine=test \ -version=test \ -file=$SWIMASDIR/extra/catalogqt/$CATALOG_QT_RELEASE/examples/derivation_files/derivation.xml