...
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.
Load environment
Code Block |
---|
> module load imasenv
> module load imas-publicdb/rc |
Tip | ||
---|---|---|
| ||
$IMASPUBLICDBHOME points to /gw/swimas/shared/imasdb |
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: Please run: |
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.
...
This should now list the shot (in this case 12
)
Tip |
---|
Content of |
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. |
...
Warning |
---|
IMPORTANT: If you don't check this, you risk overwriting the real public database! |
Run the tool
Code Block |
---|
bin/createpublicdb_imas --help |
...
Code Block |
---|
createpublicdb_imas <USER> <TOKAMAK> <DATAVERSION> <SHOT> <RUN> description.txt |
Note that in case you are trying to populate non existing database it might be required to create database inside publicly available space.
Tip |
---|
In case of error: Please run: |
check the results
Make sure to 5. check that the public database is populated correctly:was correctly published in public area
Code Block |
---|
ls -l $IMASPUBLICDBHOME/<TOKAMAK>/3/0/ |
or
Code Block |
---|
bin/publicIMASdbimasdbs -u public |
...
-t <TOKAMAK> -v 3 |