ucar.nc2.util
Class CompareNetcdf2
java.lang.Object
ucar.nc2.util.CompareNetcdf2
public class CompareNetcdf2
- extends Object
Compare two NetcdfFile.
Dont use assert, place results in Formatter.
- Author:
- john
Method Summary |
static boolean |
closeEnough(double d1,
double d2)
|
static boolean |
closeEnough(double d1,
double d2,
double tol)
|
static boolean |
closeEnough(float d1,
float d2)
|
static boolean |
closeEnoughP(double d1,
double d2)
|
static boolean |
closeEnoughP(double d1,
double d2,
double tol)
|
static boolean |
closeEnoughP(float d1,
float d2)
|
boolean |
compare(NetcdfFile org,
NetcdfFile copy)
|
boolean |
compare(NetcdfFile org,
NetcdfFile copy,
boolean showCompare,
boolean showEach,
boolean compareData)
|
boolean |
compareData(String name,
Array data1,
Array data2,
boolean justOne)
|
static void |
compareFiles(NetcdfFile org,
NetcdfFile copy,
Formatter f)
|
static void |
compareFiles(NetcdfFile org,
NetcdfFile copy,
Formatter f,
boolean _compareData,
boolean _showCompare,
boolean _showEach)
|
boolean |
compareStructureData(StructureData sdata1,
StructureData sdata2,
double tol,
boolean justOne)
|
boolean |
compareVariable(Variable org,
Variable copy)
|
boolean |
compareVariables(NetcdfFile org,
NetcdfFile copy)
|
boolean |
compareVariables(Variable org,
Variable copy,
boolean compareData,
boolean justOne)
|
static double |
diff(double d1,
double d2)
|
static void |
main(String[] arg)
|
static double |
pdiff(double d1,
double d2)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CompareNetcdf2
public CompareNetcdf2()
CompareNetcdf2
public CompareNetcdf2(Formatter f,
boolean showCompare,
boolean showEach,
boolean compareData)
compareFiles
public static void compareFiles(NetcdfFile org,
NetcdfFile copy,
Formatter f)
compareFiles
public static void compareFiles(NetcdfFile org,
NetcdfFile copy,
Formatter f,
boolean _compareData,
boolean _showCompare,
boolean _showEach)
compare
public boolean compare(NetcdfFile org,
NetcdfFile copy)
compare
public boolean compare(NetcdfFile org,
NetcdfFile copy,
boolean showCompare,
boolean showEach,
boolean compareData)
compareVariables
public boolean compareVariables(NetcdfFile org,
NetcdfFile copy)
compareVariable
public boolean compareVariable(Variable org,
Variable copy)
compareVariables
public boolean compareVariables(Variable org,
Variable copy,
boolean compareData,
boolean justOne)
compareData
public boolean compareData(String name,
Array data1,
Array data2,
boolean justOne)
compareStructureData
public boolean compareStructureData(StructureData sdata1,
StructureData sdata2,
double tol,
boolean justOne)
closeEnoughP
public static boolean closeEnoughP(double d1,
double d2)
closeEnough
public static boolean closeEnough(double d1,
double d2)
closeEnough
public static boolean closeEnough(double d1,
double d2,
double tol)
closeEnoughP
public static boolean closeEnoughP(double d1,
double d2,
double tol)
diff
public static double diff(double d1,
double d2)
pdiff
public static double pdiff(double d1,
double d2)
closeEnough
public static boolean closeEnough(float d1,
float d2)
closeEnoughP
public static boolean closeEnoughP(float d1,
float d2)
main
public static void main(String[] arg)
throws IOException
- Throws:
IOException
Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.