idsresample¶
idsresample Resample IDSs from a data-entry and save them into another data-entry based on PREVIOUS_INTERP method.. more about imas.ids_defs.PREVIOUS_INTERP: Interpolation method that returns the previous time slice if the requested time does not exactly exist in the original IDS
Syntax idsresample¶
$ idsresample -h Usage: idsresample [-h] -s SRC -d DEST [--dd-update] [--index-range INDEX_RANGE | --time-range TIME_RANGE] [-m {CLOSEST,PREVIOUS,LINEAR}] [-f] [ids ...] Resample IDSs from a data-entry and save them into another data-entry Positional Arguments: ids IDSs to resample (leave empty to resample all) 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) --dd-update Convert IDS to the default version of the data dictionary if enabledotherwise, use the original IDS stored on disk. --index-range INDEX_RANGE Specified range of slices index as 'start,stop,step'. If omitted, start=0, stop=len(timebase),step=1, e.g. '0,,10' to keep 1 every 10 slices. Works only for IDS with homogeneous timebase. (Default) --time-range TIME_RANGE Specified range of times as 'start,stop,step'. If omitted, start=time[0], stop=time[-1]), while omitting step will keep of slices between start and stop, e.g. '10.,50.,' to keep all times between 10. and 50. secondes). Works only for IDS with homogeneous timebase unless all three values are specified. -m, --slicingmethod {CLOSEST,PREVIOUS,LINEAR} Slicing method (default=CLOSEST) -f, --force Force the creation of destination data-entry (existing data will be lost)
Example idsresample¶
$ idsresample --src "imas:mdsplus?user=public;shot=131024;run=10;database=ITER;version=3" --dest "imas:mdsplus?user=$USER;shot=131024;run=5;database=ITER;version=3" --index-range 0,,10 resampling indices :core_profiles resampling indices :distribution_sources resampling indices :equilibrium resampling indices :pf_active resampling indices :summary