idscp¶
idscp tool helps you to copy ids from one pulse to another
Syntax idscp¶
22:18:26 INFO Parsing data dictionary version 4.1.1 [90m@dd_zip.py:89[0m Usage: idscp [-h] -s SRC -d DEST [-f] [--set-dataset-version] [-i] [-a | -o OUTPUT_OCCURRENCE] [--dd-update] [ids ...] Copy IDSs from a data-entry into another one Positional Arguments: ids IDSs to copy (leave empty to select all IDSs with default occurrence,or append "/n" to copy a specific occurrence "n") Options: -h, --help show this help message and exit -s, --src SRC source uri (e.g. imas:hdf5?path=./testdb1 or ./testpulse1.nc) -d, --dest DEST destination uri (e.g. imas:hdf5?path=./testdb2 or ./testpulse2.nc) -f, --force Force the creation of destination data-entry (existing data will be lost) --set-dataset-version (DEPRECATED) Store current DD version into dataset_description IDS if it exists. This option is deprecated and may be removed in the next major version. -i, --interactive Prompt the user to overwrite the ids (Default is to overwrite the ids without asking) -a, --all-occurrences Copy all occurrences available in the source into the destination -o, --output-occurrence OUTPUT_OCCURRENCE Copy the selected source into the specified occurrence at the destination --dd-update Convert IDS to the default Data Dictionary version (=4.1.1, otherwise use the original version stored on disk)
Example idscp¶
$ idscp --src "imas:mdsplus?user=public;pulse=131024;run=10;database=ITER;version=3" --dest "imas:mdsplus?user=username;pulse=145000;run=5;database=ITER;version=3"