This takes the input schedule, and returns a new schedule, trimmed to the right length for mdl. Schedule steps are taken from the input schedule in order, finishing when the first step with a residue range greater than or equal to the number of residues in mdl is reached, unless the range is 9999. The value of last_scales for the input schedule is also considered; the last last_scales entries in the new schedule will always have the same scaling factors as the last last_scales entries in the input schedule, even if trimming occurred.
The scaling factors for all physical restraint groups, in all schedule steps, are usually multiplied by the corresponding scalar in schedule_scale (1 by default). This is useful when template-derived fold restraints have to be weakened relative to some external restraints, so that the fold can actually reflect these external restraints, even when they are quite different from the template-derived restraints.
Example: See schedule() command.