Versions Compared

Key

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

...

Code Block
> createpublicdb_imas --help

Example usage

Create description file

Create a text file with name description.txt that contains a plain-text description of the database you want to save - it can be arbitrary text, it is supposed to give basic information about your pulse file.

Use dry mode

Run the tool in dry mode first:

Code Block
# You have to provide basic information related to your pulse file
# createpublicdb_imas -n <USER> <TOKAMAK> <DATAVERSION> <SHOT> <RUN> description.txt

# example - for user g2dfigat - make sure to use your own user name and proper shot/run numbers;
#           version of database is also mandatory

> createpublicdb_imas -n g2dfigat jet 3 12 12 description.txt

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

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.

Code Block
> createpublicdb_imas g2dfigat jet 3 12 12 description.txt

Check the result

Check the output with imasdbs

...

 application

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

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

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.

...