@BeginModule
@NewPage
@Name      = Splitsel
@Title     = Split selected time steps
@Section   = File operations
@Arguments = ifile oprefix
@Operators = splitsel

@C @BeginDescription
@C This module splits time steps of a dataset to several files with names
@C formed from the field header information and @file{oprefix}.
@C @EndDescription
@EndModule


@BeginOperator_splitsel
@Title     = Split time selection
@Parameter = nsets [noffset] [nskip]

@BeginDescription
@IfMan
This operator splits a dataset into pieces, one for each adjacent
sequence t1, ...., tn of time steps of the same selected time range.
Appends six digits with the sequence number to @file{oprefix} to 
form the output file names.
@EndifMan
@IfDoc
This operator splits a dataset into pieces, one for each adjacent
sequence \begin{math}t_1, ...., t_n\end{math} of time steps of the same selected time range.
Appends three digits with the sequence number to @file{oprefix} to 
form the output file names.
@EndifDoc
@EndDescription
@EndOperator


@BeginParameter noffset
@Item = nsets
INTEGER  Number of input time steps for each output file
@Item = noffset
INTEGER  Number of input time steps skipped before the first time step range (optional)
@Item = nskip
INTEGER  Number of input time steps skipped between time step ranges (optional)
@EndParameter
