begin options
{% if fixed_cell is defined %}  fixed_cell
{% endif %}
{%- if auxiliary is defined %}  auxiliary{% for aux in auxiliary %} {{aux}}{% endfor %}{% endif %}
{%- if auxmultname is defined %}  auxmultname {{auxmultname}}{% endif %}
{%- if boundnames is defined %}  boundnames{% endif %}
{%- if print_input is defined %}  print_input{% endif %}
{%- if print_flows is defined %}  print_flows{% endif %}
{%- if save_flows is defined %}  save_flows{% endif %}
{%- if ts_filerecord is defined %}  ts6 filein {{ts6_filename}}{% endif %}
{%- if obs_filerecord is defined %}  obs6 filein {{obs6_filename}}{% endif %}
{%- if surf_rate_specified is defined %}  surf_rate_specified{% endif %}
end options

begin dimensions
  maxbound {{maxbound}}
{% if nseg is defined %}  nseg {{nseg}}{% endif %}
end dimensions

{% for i, path in periods.items() %}
begin period {{i}}
  open/close {{path}}{% if binary %} (binary){% endif %}
end period{% endfor %}