-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDiplomka.java
76 lines (61 loc) · 3.21 KB
/
Diplomka.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
import hdf5.Export;
import java.io.IOException;
import ncsa.hdf.hdf5lib.exceptions.HDF5Exception;
/**
* class for testing
* @author vanek2
*
*/
public class Diplomka {
private final static String USER = "[email protected]";
private final static String PASS = "6RY45MFVDQF5Qp";
private final static String END = "http://eeg2.kiv.zcu.cz:8080/webservice/UserDataService?wsdl";
/*
static String headerFile = "E:\\!skola\\diplomka\\stimulation\\data_mereni\\10-6_driver.vhdr";
static String stimuliFile = "E:\\!skola\\diplomka\\stimulation\\data_mereni\\10-6_driver.vmrk";
static String dataFile = "E:\\!skola\\diplomka\\stimulation\\data_mereni\\10-6_driver.eeg";
static String headerFile = "E:\\!skola\\diplomka\\stimulation\\Data\\11_01_120041.vhdr";
static String dataFile = "E:\\!skola\\diplomka\\stimulation\\Data\\11_01_120041.eeg";
static String stimuliFile = "E:\\!skola\\diplomka\\stimulation\\Data\\11_01_120041.vmrk";
static String headerFile = "E:\\!skola\\diplomka\\stimulation\\divis\\08-Divis.vhdr";
static String dataFile = "E:\\!skola\\diplomka\\stimulation\\divis\\08-Divis.eeg";
static String stimuliFile = "E:\\!skola\\diplomka\\stimulation\\divis\\08-Divis.vmrk";
static String headerFile = "E:\\!skola\\diplomka\\stimulation\\it\\lt.vhdr";
static String dataFile = "E:\\!skola\\diplomka\\stimulation\\it\\lt.eeg";
static String stimuliFile = "E:\\!skola\\diplomka\\stimulation\\it\\lt.vmrk";
static String headerFile = "E:\\!skola\\diplomka\\stimulation\\06\\06.vhdr";
static String dataFile = "E:\\!skola\\diplomka\\stimulation\\06\\06.eeg";
static String stimuliFile = "E:\\!skola\\diplomka\\stimulation\\06\\06.vmrk";
*/
/*
static String headerFile = "E:\\!skola\\diplomka\\stimulation\\05\\05.vhdr"; static
String dataFile = "E:\\!skola\\diplomka\\stimulation\\05\\05.eeg"; static
String stimuliFile = "E:\\!skola\\diplomka\\stimulation\\05\\05.vmrk";
*/
static String headerFile = "E:\\!skola\\diplomka\\stimulation\\led\\LED_20_10_2011_66.vhdr"; static
String dataFile = "E:\\!skola\\diplomka\\stimulation\\led\\LED_20_10_2011_66.eeg"; static
String stimuliFile = "E:\\!skola\\diplomka\\stimulation\\led\\LED_20_10_2011_66.vmrk";
static String filename = "hdfsoubor.h5";
static String path = "E:\\temp\\";
public static void main(String[] args) {
//callWebService();
try { hdfFile(headerFile,dataFile,stimuliFile,filename,path,10);
} catch (IOException e) { e.printStackTrace(); }
}
public static void hdfFile(String headerFile, String dataFile,
String stimuliFile, String filename, String path, int experiment)
throws IOException {
long startTime = System.currentTimeMillis();
Export export = new Export();
try {
/*export.hdfFilWithoutMeta(headerFile, dataFile, stimuliFile, "64", path, 64);
export.hdfFilWithoutMeta(headerFile, dataFile, stimuliFile, "512", path, 512);
export.hdfFilWithoutMeta(headerFile, dataFile, stimuliFile, "1024", path, 1024);*/
export.hdfFile(headerFile, dataFile, stimuliFile, filename, path, experiment, 256);
} catch (Exception e) {
e.printStackTrace();
}
long endTime = System.currentTimeMillis();
System.out.println("cas vytvoreni: " + (endTime - startTime));
}
}