|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectutil.CommandLineParser
util.IsoMaker
public class IsoMaker
A class for extracting a single line out of an ascii-column file. If one has a block-ascii file of numbers and wants to extract the line of this file where the value of a specific column is closest to a specified value, this class does the job for you. The impuls for writing this class came from the problem of having a bunch of stellar-evolution tracks giving luminosity, temperature and age for a certain mass, but wanting to extract isochrones out of it.
The class takes command-line arguments as follows:
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class util.CommandLineParser |
|---|
CommandLineParser.Test |
| Field Summary | |
|---|---|
private static String |
FOOT
The footer message. |
static String |
ONESWITCH
The one-argument switches. |
private static Map<String,String> |
USE
The usage map. |
| Constructor Summary | |
|---|---|
IsoMaker()
Creates a new iso-maker. |
|
| Method Summary | |
|---|---|
static void |
main(String[] arg)
Scans a list of block-ascii files for the closest occurence of a specified value in a specified column. |
boolean |
process()
Processes the command line arguments. |
private static void |
scanFile(File scan,
double val,
int nr,
PrintWriter dump,
int[] specified)
Scans a single block-ascii file. |
| Methods inherited from class util.CommandLineParser |
|---|
getArguments, getCommandLine, getCommands, getRegisteredSwitches, hasAnySwitch, hasSwitch, hasSwitch, haveAllSwitches, parse, printCommandLine, registerLine, registerSwitches, setCommands, staticUsage, usage |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String ONESWITCH
private static final Map<String,String> USE
private static final String FOOT
| Constructor Detail |
|---|
public IsoMaker()
| Method Detail |
|---|
public boolean process()
throws IOException
IOException
private static final void scanFile(File scan,
double val,
int nr,
PrintWriter dump,
int[] specified)
throws IOException
IOException
public static void main(String[] arg)
throws ParseException,
IOException
ParseException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||