Previous topic

Module correlationsWriter

Next topic

Module correlationsUtil

This Page

Classes and methods to load the traces.

Module correlationsLoader

Inheritance diagram of LoaderTrace, LoaderOneTraceNpy, LoaderOneTraceMat

class correlations.correlationsLoader.LoaderTrace(param)

Provide a method getDirAndFileLoadTrace() to get the path directory and the file name for loading the traces.

Parameter :

param : obj

Object with attributes FormatTrace, LoadDirectory.

getDirAndFileLoadTrace(Component, Date, Station)

Return a path directory dependent of the component and the date and a file name dependent of the station.

loadOneTrace(DirTrace, FileTrace)

Abstract method, not implemented.

class correlations.correlationsLoader.LoaderOneTraceNpy(param)

Class to load traces with numpy format.

Base class:

LoaderTrace Inherits all attibutes of the base class.

Parameter :

param : obj

Object with attributes FormatTrace, LoadDirectory.

loadOneTrace(DirTrace, FileTrace)

Load a trace with the file path given and the format numpy (.npy).

Parameters :
DirSave: str

Directory name to load the trace.

FileSave: str

File name of the trace loaded.

class correlations.correlationsLoader.LoaderOneTraceMat(param)

Class to load traces with matlab format.

Base class:

LoaderTrace Inherits all attibutes of the base class.

Parameter :

param : obj

Object with attributes FormatTrace, LoadDirectory.

loadOneTrace(DirTrace, FileTrace)

Load a trace with the file path given and the format matlab (.mat).

Parameters :
DirSave: str

Directory name to load the trace.

FileSave: str

File name of the trace loaded.

Note

Requirement: The field in the matlab structure for the array of the trace is ‘trace’.


Whisper project: FP7 ERC Advanced grant 227507 (WHISPER).
Codes are develop for the Whisper project (Seismic ambient noise).
If you use this code, specify it is provide by: Whisper project FP7 ERC Advanced grant 227507 (WHISPER).
Author: Xavier Briand. For questions, send email to xav.briand.whisper@gmail.com with subject begin exactly with [whisper].