Logo coherent WaveBurst  
Library Reference Guide
Logo
Macros | Variables
TestFrame5.C File Reference

Macros

#define CHANNEL_NAME   "H1:LDAS-STRAIN"
 
#define FRLIST_NAME   "input/H1_LDAS_C02_L2.frl"
 

Variables

CWB::frame fr (FRLIST_NAME)
 
int nfiles =fr.getNfiles()
 
cout<< "nfiles : "<< nfiles<< endl;frfile FRF=fr.getFrList(start, stop, 0);fr.readFrames(FRF, const_cast< char * >CHANNEL_NAME), xx);fr.setSRIndex(12);fr.readFrames(FRF, const_cast< char * >CHANNEL_NAME), yy);cout<< "srate "<< yy.rate()<< endl;watplot plot(const_cast< char * >"plot"), 200, 20, 800, 500);char gtitle[256];sprintf(gtitle,"Original PSD (Black) Reasampled PSD (Red)");plot.gtitle(gtitle,"frequency (Hz)","strain/#sqrt{Hz}");plot.goptions(const_cast< char * >"alp logy"), 1, 0, 0, true, 0, xx.rate()/2., true, 32);xxplot
 
double sRate = 8192./2
 
double stop = start+600
 
wavearray< double > xx
 
wavearray< double > yy
 

Macro Definition Documentation

◆ CHANNEL_NAME

#define CHANNEL_NAME   "H1:LDAS-STRAIN"

◆ FRLIST_NAME

#define FRLIST_NAME   "input/H1_LDAS_C02_L2.frl"

Variable Documentation

◆ fr

◆ nfiles

int nfiles =fr.getNfiles()

Definition at line 18 of file TestFrame5.C.

◆ plot

yy plot

Definition at line 34 of file TestFrame5.C.

◆ sRate

double sRate = 8192./2

Definition at line 14 of file TestFrame5.C.

◆ stop

double stop = start+600

Definition at line 10 of file TestFrame5.C.

◆ xx

wavearray<double> xx

Definition at line 11 of file TestFrame5.C.

◆ yy

wavearray<double> yy

Definition at line 12 of file TestFrame5.C.