#
#     Copyright (C) 1999-2004  Liz Potterton, Peter Briggs
#
#     This code is distributed under the terms and conditions of the
#     CCP4 Program Suite Licence Agreement as a CCP4 Library.
#     A copy of the CCP4 licence can be obtained by writing to the
#     CCP4 Secretary, Daresbury Laboratory, Warrington WA4 4AD, UK.
#
#CCP4i_cvs_Id $Id$
#CCP4I VERSION CCP4Interface 0.2
#CCP4I SCRIPT DEF cad
#CCP4I DATE  25/06/97 16:05:30
#CCP4I USER lizp

INPUT_FILES		_list_of_text		"HKLIN,1"
OUTPUT_FILES		_list_of_text		HKLOUT
HKLOUT			_MTZ_file		""
DIR_HKLOUT		_default_dirs		""

NFILES			_positiveint		1
AUTO_REINDEX		_logical		0

HKLIN,0			_MTZ_file		""
DIR_HKLIN,0		_default_dirs		""
LABIN_MODE,0		_cad_labin_mode		ALL
NLABIN,0		_positiveint		1
LABIN,0			_mtz_label		""
LABOUT,0		_mtz_label_out		""
CTYPIN,0        _MTZ_data_type_names       "H index"
INCLUDE_COLUMN,0        _logical                1
E_LABEL,0               _text                   ""
INPUT_RESOLUTION,0	_logical		0
INPUT_RESOLUTION_MIN,0	_resolution		""
INPUT_RESOLUTION_MAX,0	_resolution		""
INPUT_SCALE,0            _logical           	0
INPUT_SCALE_FACTOR,0	_positivereal		1.0
INPUT_SPACE_GROUP,0	_space_group		""
INPUT_SORT_ORDER,0	_sort_order		"H K L"

HKLIN,1                 _MTZ_file               ""
DIR_HKLIN,1             _default_dirs           ""
LABIN_MODE,1            _cad_labin_mode         ALL
NLABIN,1                _positiveint            1
LABIN,1_1               _mtz_label              ""
LABOUT,1_1              _mtz_label_out          ""
CTYPIN,1_1              _MTZ_type               H
INPUT_RESOLUTION,1      _logical                0
INPUT_RESOLUTION_MIN,1  _resolution           ""
INPUT_RESOLUTION_MAX,1  _resolution           ""
INPUT_SCALE,1            _logical               0
INPUT_SCALE_FACTOR,1    _positivereal           1.0
INPUT_SPACE_GROUP,1     _space_group            ""
INPUT_SORT_ORDER,1      _sort_order             "H K L"


OVERRIDE_SPACE_GROUP	_logical		0
SPACE_GROUP      	_space_group    	""

CELL			_logical		0
CELL_1                  _cell_length    	""
CELL_2                  _cell_length    	""
CELL_3                  _cell_length    	""
CELL_4                  _cell_angle     	""
CELL_5                  _cell_angle     	""
CELL_6                  _cell_angle     	""

CENTRIC			_logical		0
SYSAB_KEEP		_logical		0
MNF_VALUE		_text			"NaN"
EXCLUDE_NODATA		_logical		0
EXCLUDE_RESOLUTION	_logical		0
EXCLUDE_RESOLUTION_MIN	_resolution		""
EXCLUDE_RESOLUTION_MAX	_resolution		""
OVERRIDE_SORT_ORDER     _logical                0
SORT_ORDER              _sort_order             "H K L"
OUTLIM_MODE             _cad_outlim_mode        SPACE_GROUP
OUTLIM_SPACE_GROUP	_space_group            ""
HKL_LIMITS		_logical		0
HKLLIM_1		_int			""
HKLLIM_2		_int			""
HKLLIM_3		_int			""
HKLLIM_4		_int			""
HKLLIM_5		_int			""
HKLLIM_6		_int			""

TITLE			_title_text		""

MONITOR			_cad_monitor		BRIEF
REFMONITOR		_positiveint		0

FREER_FILE		_positiveint		1

@ [FileJoin [GetEnvPath CCP4I_TOP] tasks uniqueify.def]

# Over-ride the value set in uniqueify.def
UNIQUEIFY               _logical                0
