Versions Compared

Key

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

...

Code Block
languagebash
titleSetting 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

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.

Populating single pulse file

Storing single pulse file can be done using store_data.sh script.

Code Block
languagebash
> ./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=1000run=100 for machine test and data dictionary release 3 (we are focusing only on major release of dictionary), you can use following command

Code Block
> ./store_data.sh -shot=1000 \
-run=100 \
-machine=test \
-version=test \
-file=$SWIMASDIR/extra/catalogqt/$CATALOG_QT_RELEASE/examples/derivation_files/derivation.xml