private float[] ReadDataSetAttrToFloat(AbstractWarpDataset srcbandpro, string dataSetName, string attrName, int length) { float[] value = new float[length]; IDictionary <string, string> dsAtts = srcbandpro.GetDatasetAttributes(dataSetName); string refSbCalStr = dsAtts[attrName]; string[] refSbCals = refSbCalStr.Split(','); if (refSbCals.Length >= length) { for (int i = 0; i < length; i++) { value[i] = float.Parse(refSbCals[i]); } return(value); } else { return(null); } }