개발자/C#

wfdisc 파일정보 보여주는 프로그램

지구빵집 2011. 12. 30. 13:30
반응형


신호파일 저장 포맷의 한 종류인 wfdisc 파일을 읽어 정보를 보여주는 프로그램.

wfdisc 파일이 가지고 있는 정보형태는

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
  public string sta;    // station code
  public string chan;    // channel code
  public double time;    // epoch time of first sample in file - 기준시점
  public int wfid;    // waveform identifier
  public int chanid;    // channel operation identifier
 
  public int jdate;    // Julian date
  public double endtime;   // time + (nsamp-1)/samprate
  public int nsamp;    // number of samples
  public double samprate;   // sampling rate in sampling/sec
  public double calib;    // nominal calibration
 
  public double calper;   // nominal calibration period
  public string instype;   // instrument code
  public string segtype;   // indexing method
  public string datatype;   // numeric storage
  public string clip;    // clipped flag
 
  public string dir;    // directory
  public string dfile;   // datafile
  public int foff;    // byte offset of data segment within file
  public int commid;    // comment identifier
  public string lddate;    // load date
 
cs


스펙에 나오는 정보들을 가지고 디렉토리와 파일을 열어서 w 파일의 파형을 보여줄 수 있도록 만드는중인데
현재 파일의 정보만을 보여준다.

Wfdscshow.exe

반응형