public class CDF2Times
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private static java.lang.String |
cdfFileName |
private static eu.deepen.cdf.library.CDFLibrary |
cdfLibrary |
private static int[] |
data_dimensions |
private static java.lang.String |
DATASETNAME_DIMENSION |
private static java.lang.String |
GROUPNAME |
private static java.lang.String |
KEY_NL |
private static java.lang.String |
KEY_NR |
private static java.lang.String |
KEY_NW |
private static java.lang.String |
templateFileName |
private static java.lang.String |
timesFileName |
| Constructor and Description |
|---|
CDF2Times() |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(java.lang.String[] args)
Usage: CDF2Times cdf_filename times_filename template_filename
|
private static java.lang.StringBuffer |
readTemplateFile()
Read and parse the content of template file
|
static void |
toTimes(java.lang.String cdf_filename,
java.lang.String times_filename,
java.lang.String template_filename)
Read CDF file, read and parse template file, insert data from CDF into template and then save TiMeS input file
|
private static void |
writeTimesFile()
Write on disk the input file for TiMeS
|
private static java.lang.String timesFileName
private static java.lang.String cdfFileName
private static java.lang.String templateFileName
private static final java.lang.String GROUPNAME
private static final java.lang.String DATASETNAME_DIMENSION
private static int[] data_dimensions
private static final java.lang.String KEY_NL
private static final java.lang.String KEY_NR
private static final java.lang.String KEY_NW
private static eu.deepen.cdf.library.CDFLibrary cdfLibrary
public static void toTimes(java.lang.String cdf_filename,
java.lang.String times_filename,
java.lang.String template_filename)
cdf_filename - File name of CDF filetimes_filename - File name of TiMeS input file based on template template_filenametemplate_filename - File name of template file used to generate times_filename fileprivate static java.lang.StringBuffer readTemplateFile()
private static void writeTimesFile()
public static void main(java.lang.String[] args)
args - cdf_filename, times_filename, template_filename