cdm/src/main/java/ucar/nc2/iosp/nids/Nidsheader.java
public int[] getTDWRLevels(int nlevel, short[] th) {
        int [] levels = new int[ nlevel]; //th[2]+2 ];
        int inc = th[1];
        levels[0] = -9866;
        levels[1] = -9866;
        for ( int i = 2; i < nlevel; i++ ) {    /* calibrated data values        */
            levels[i] = th[0] + (i-2) * inc;
        }

        return levels;
    }
public int[] getTDWRLevels(int nlevel, short[] th) {
        int [] levels = new int[ nlevel]; //th[2]+2 ];
        int inc = th[1];
        levels[0] = -9866;
        levels[1] = -9866;
        for ( int i = 2; i < nlevel; i++ ) {    /* calibrated data values        */
            levels[i] = th[0] + (i-2) * inc;
        }

        return levels;
    }
public int [ ] getTDWRLevels ( int nlevel , short [ ] th ) { int [ ] levels = new int [ nlevel ] ; //th[2]+2 ];
 int inc = th [ 1 ] ; levels [ 0 ] = - 9866 ; levels [ 1 ] = - 9866 ; for ( int i = 2 ; i < nlevel ; i ++ ) { /* calibrated data values        */ levels [ i ] = th [ 0 ] + ( i - 2 ) * inc ; } return levels ; }
get the calibrate data values for TDWR data
@param nlevel
@param th
@return
get the calibrate data values for TDWR data