/** * Get a String of the parameters * * @return a String of the parameters */ public String paramsToString() { return "Center lon:" + Format.d(centerLon, 3); }
/** * Get a String of the parameters * * @return a String of the parameters */ public String paramsToString() { return "Center lon:" + Format.d(centerLon, 3); }
/** String representation. */ @Override public String toString() { return Format.d(value, 5) + " "+unitString; }
/** String representation. */ @Override public String toString() { return Format.d(value, 5) + " "+unitString; }
/** * Get a String of the parameters * * @return a String of the parameters */ public String paramsToString() { return "Center lon:" + Format.d(centerLon, 3); }
/** * Show the value of a double to the significant figures * * @param d double value * @param sigfig number of significant figures */ private static void show(double d, int sigfig) { System.out.println("Format.d(" + d + "," + sigfig + ") == " + Format.d(d, sigfig)); }
/** * Show the value of a double to the significant figures * * @param d double value * @param sigfig number of significant figures */ private static void show(double d, int sigfig) { System.out.println("Format.d(" + d + "," + sigfig + ") == " + Format.d(d, sigfig)); }
/** * Show the value of a double to the significant figures * * @param d double value * @param sigfig number of significant figures */ private static void show(double d, int sigfig) { System.out.println("Format.d(" + d + "," + sigfig + ") == " + Format.d(d, sigfig)); }
/** * Get the parameters as a String * * @return the parameters as a String */ public String paramsToString() { return " origin " + origin.toString() + " scale: " + Format.d(getScale(), 6); }
static public void copyURL2null(String url, int bufferSize) throws IOException { long start = System.currentTimeMillis(); long count = IO.copyUrlB(url, null, bufferSize); double len = (double) count / (1000 * 1000); double took = .001 * (System.currentTimeMillis() - start); double rate = len / took ; System.out.println(" copyURL2null (" + url + ") took = " + took + " sec; len= "+len+" Mbytes; rate = " + Format.d(rate, 3) + " Mb/sec"); }
static public void copyURL(String url, String filenameOut, int bufferSize) throws IOException { File outFile = new File(filenameOut); long start = System.currentTimeMillis(); String ok = IO.readURLtoFileWithExceptions(url, outFile, bufferSize); double took = .001 * (System.currentTimeMillis() - start); double len = (double) outFile.length() / (1000 * 1000); double rate = len / took ; System.out.println(" copyURL (" + url + ") took = " + took + " sec; len= "+len+" Mbytes; rate = " + Format.d(rate, 3) + "Mb/sec ok="+ok); }