public double Caldj(int iy, int im, int id) throws palError {
        int ny;
        double d = 0.0;

        TRACE("Caldj");
        /* Default century if appropriate */
        if ((iy >= 0) && (iy <= 49)) {
            ny = iy + 2000;
        } else if ((iy >= 50) && (iy <= 99)) {
            ny = iy + 1900;
        } else {
            ny = iy;
        }

        ENDTRACE("Caldj");
        /* Modified Julian Date */
        try {
            return Cldj(ny, im, id);
        } catch (palError e) {
            throw e;
        }
    }