Versions Compared

Key

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

...

Code Block
> module load imasenv
> module load imas-publicdb/rc


Tip
titleEnvironment variables

$IMASPUBLICDBHOME points to /gw/swimas/shared/imasdb
$IMASPUBLICDBMETADATA points to /gw/swimas/shared/metadata/

Use dry mode

Run the tool in dry mode first:

...

This will output the actions that will be taken and the metadata file that will be created on stdout.

Tip

In case of error: 
ERROR - Public database not set up for tokamak <TOKAMAK>and data version <DATAVERSION>
ERROR - You have to run
create_public_imas_dir <TOKAMAK> <DATAVERSION>


Please run:
create_public_imas_dir <TOKAMAK> <DATAVERSION>

Run the tool

Once you are ready to run the tool (everything what you have seen in dry-mode  seems to be fine) you can perform actual copy of data.

...

Check the output with imasdbs application

Code Block
> publicIMASdbimasdbs -u public -t jet -v 3


This should now list the shot (in this case 12)

Tip

Content of description.txt is stored in $IMASPUBLICDBMETADATA in a file created according to the scheme: <DATAVERSION>_<TOKAMAK>_<SHOT>_<RUN>.
It contains the section: DATABASE DESCRIPTION. The description content is saved there.

Test environment

Warning

Please note that for now we are working with artificially created environment - to make sure we don't access public database location yet.

...

Code Block
ls -l $IMASPUBLICDBHOME/<TOKAMAK>/3/0/

or

Code Block
bin/publicIMASdbimasdbs -u public -t <TOKAMAK> -v 3

please report any problems you find.

...