import java.io.*; class GreaterAat { // Copyleft Harvey Greenberg, UW hgreen@u.washington.edu Dec 18 1997 // This loads an ARC/INFO AAT file into an array of objects (see Aat.java), // and checks that one or more items increase as you go downstream. // Before invoking this class, we have built (in ARCINFO) a river network, // The first argument is the name of the stream cover. // Second argument = an item to check // The otional additional argumen: more itmes // // Remember, java defaults to a memory limit of 16 megs. Use the mx switch, // e.g. "java GreaterAat -mx200m mycover" for large data. public static void main (String args[]) throws IOException { Aat myatt; double value,upvalue; int maxid,nitems,itest1,itest2; int index[] = new int[10]; int type[] = new int[10]; String covername,item[] = new String[10]; System.out.println("checking aat, version 1.00"); if (args.length < 2){ System.out.println("The cover name and at least one item name are required arguments."); return; } else covername = args[0]; nitems = args.length - 1; for(int i=0;i