@Override
        public void writeParameterFile(Step.Data step) {
            ParameterData[] paramData = step.paramData;
            for (int i = 0; i < paramData.length; i++) {
                String name = paramData[i].getName();
                int calibType = paramData[i].getCalibrationType();
               // System.out.println("****** " + name + " is ctype " + calibType);
                double[] val = paramData[i].getDataValue();
                if (calibType == ParameterData.BINARY) {
                  int [] ival = new int[val.length];
                  
                    for (int j=0; j< val.length; j++) {
                        ival[j] = (int) val[j];
                    }
                    parameter.put(name, toValueI(name,ival));
                }
                else {      
                    parameter.put(name, toValue(name, val));
                }
            }
        }