|
BdsApi
2.2.5
This is the Blacknest BDS API.
|
Classes | |
| class | AccessGroup |
| This holds information on data access groups. More... | |
| class | AdminAccess |
| This is the AdminAccess Access API interface. More... | |
| class | ArrayChannel |
| This class defines an arrays channel. More... | |
| struct | BdsDataBlock |
| BdsDataFileBds: internal fixed size BDS Data Block. More... | |
| struct | BdsDataBlockHeader |
| BdsDataFileBds: internal fixed size BDS Data Block header. More... | |
| class | BdsDataBlockPos |
| BdsDataFileBds: internal file storage data block position. More... | |
| class | BdsDataPacket |
| BdsDataFileBds: internal file storage packet. More... | |
| struct | BdsDataPacketHeader |
| BdsDataFileBds internal file storage packet header. More... | |
| class | BdsDataSegment |
| BdsDataFileBds: internal file storage data segment. More... | |
| class | BdsDataStreamlet |
| BdsDataFileBds: internal file storage data streamlet. More... | |
| class | BdsSeedType |
| BdsDataFileSeed internal parent for all SEED types. More... | |
| class | Calibration |
| This class defines a calibration setting. More... | |
| struct | CdChannel_1v0 |
| BdsDataFile: Internal CD1.0 channel information. More... | |
| class | CdDataChannel |
| BdsDataFile: Internal CD channel information. More... | |
| struct | CdDataFormatFrame_1v0 |
| BdsDataFile: Internal CD1.0 frame information. More... | |
| class | CdFlag |
| BdsDataFile: Internal CD flag. More... | |
| class | CdPacketData |
| BdsDataFile: Internal CD data packet. More... | |
| class | Change |
| This holds information on a medatdata or sensor data change. More... | |
| class | ChangeGroup |
| This holds information on a set of Changes. More... | |
| class | Channel |
| This class defines a seismic data Channel. More... | |
| class | ChannelInfo |
| This class provides information on a channel. More... | |
| class | ChannelInfos |
| This class provides metadata information on a set of channels. More... | |
| class | ChannelInstrument |
| This class defines a Channel's instrument. More... | |
| class | ChannelName |
| This class defines a full channel name. More... | |
| class | CleanOptions |
| This defines the set of clean options used in the clean() function. More... | |
| class | CompressSteim1 |
| Steim1 un-compress class. More... | |
| class | DataAccess |
| This is the Data Access API interface. More... | |
| class | DataAddAccess |
| This is the DataAdd Access API interface. More... | |
| class | DataAvail |
| This class provides availability information on a particular period of data. More... | |
| class | DataAvailChan |
| This class defines avaiilablity information on a set of data. More... | |
| class | DataBlock |
| This class provides the acual seismic data values contained within a single data block. More... | |
| class | DataBlockPos |
| This defines the position of a data block in a file. It is used by the BDS data convertors to order blocks by time. More... | |
| class | DataChannel |
| This class defines information on a single channels set of data stored in a file. More... | |
| class | DataCollate |
| Not sure if this is used or what it does. More... | |
| class | DataError |
| This stores a data error. It includes and error number and a string as well as information on what seismic channel it is for. More... | |
| class | DataFile |
| This class defines the interface for generic data file access that all of the BDS data conterors share. More... | |
| class | DataFileAd22 |
| Data file convertor for AD22 format files. More... | |
| class | DataFileAscii |
| Data file convertor for ASCII format files. More... | |
| class | DataFileBdrs |
| Data file convertor for BDRS format files. More... | |
| class | DataFileBds |
| This class implements the BDS Data File/Stream access system. More... | |
| class | DataFileBknas |
| Data file convertor for BKNAS format files. More... | |
| class | DataFileCd |
| Data file convertor for CD1.0 and CD1.1 file formats. More... | |
| class | DataFileCss |
| Data file convertor for CSS format files. More... | |
| class | DataFileCssData |
| DataFileCss internal CSS data type. More... | |
| class | DataFileGcf |
| Data file convertor for GCF format files. More... | |
| class | DataFileIms |
| Data file convertor for IMS format files. More... | |
| class | DataFileInfo |
| This class defines information on a sensor data file. More... | |
| class | DataFileLac |
| Data file convertor for LAC format files. More... | |
| class | DataFileLog |
| Data file convertor for LOG format files. More... | |
| class | DataFileOptions |
| This defines a list of BDS data convtor options. More... | |
| class | DataFileResponse |
| This class defines the interface for generic response data file access. More... | |
| class | DataFileSac |
| Data file convertor for SAC format files. More... | |
| class | DataFileSeed |
| Data file convertor for SEED file formats. More... | |
| class | DataFileTapeDigitiser |
| This class implements the TapeDigitiser's file output conversion and storing system. More... | |
| class | DataFileWra |
| Data file convertor for WRA format files. More... | |
| class | DataFileWraAgso |
| Data file convertor for WRA AGSO format files. More... | |
| class | DataFormat |
| This holds information on a seismic data format. More... | |
| class | DataFormats |
| This class defines the interface for generic data file access. More... | |
| class | DataHandle |
| This defines a handle to a sensor data stream/file when opened for read or write. More... | |
| class | DataInfo |
| This class defines information on a set of data. More... | |
| class | Digitiser |
| This class defines a seismic Digitiser. More... | |
| class | Fap |
| This class defines an entry in an Amplitude/Phase Response table. More... | |
| class | Fir |
| This class defines an FIR response table. More... | |
| class | FirEntry |
| This class defines an entry in a FIR coefficient table. More... | |
| struct | GcfChannel |
| DataFileGcf internal GCF channel information. More... | |
| class | Group |
| This holds information on a user security group. More... | |
| class | ListRange |
| This class defines an integer based range. More... | |
| class | Location |
| This class defines the physical location of a Station. More... | |
| class | Log |
| This holds information on a Log entry. More... | |
| class | LogSelect |
| This defines the selection cirteria when requesting a set of log entries. More... | |
| class | Network |
| This class defines a seismic Network organisation. More... | |
| class | Note |
| This holds information on a Note for general information. More... | |
| class | Point |
| This class defines an X,Y location. More... | |
| class | PoleZero |
| This class defines a Pole/Zero Response. More... | |
| class | Response |
| This class defines a seismic Response characteristic. More... | |
| class | ResponseObj |
| Response object adding string conversion. More... | |
| class | Selection |
| This class defines a generic metadata or seismic data selection. More... | |
| class | SelectionChannel |
| This class defines a channel for selection. More... | |
| class | SelectionInfo |
| This class defines the set of metadata or siesmic data selected when getSelectionInfo() is use. More... | |
| class | Sensor |
| This class defines a seismic Sensor. More... | |
| class | Source |
| This class defines a seismic data Source. More... | |
| class | SourcePriority |
| This class defines a Source Priority entry. More... | |
| class | Station |
| This class defines a seismic station. More... | |
| class | TimePeriod |
| This class defines a TimePeriod. More... | |
| class | User |
| This holds information on a user. More... | |
Functions | |
| void | bdsDumpPoleZeros (PoleZero poleZeros) |
| Debug print out a PoleZeros object. More... | |
| void | bdsChannelGetTypeAux (BString name, BString &type, BString &aux) |
| Get the channel type and aux fields from a generic channel name. More... | |
| BString | bdsChannelGetName (BString type, BString aux) |
| Create a full channel name from a channels type and aux fields. More... | |
| BError | bdsDataInfoSetTimeRange (DataInfo &dataInfo) |
| Restricts the time tange of all of the DataInfo's channels to match the DataInfo's startTime/endTime fields. More... | |
| BError | bdsDataInfoFromInfo (BDictString info, DataInfo &dataInfo, Bool append) |
| Convert info to DataInfo. More... | |
| BError | bdsInfoFromDataInfo (const DataInfo &dataInfo, BDictString &info) |
| Converts a DataInfo object into a BDictString list of named strings. More... | |
| BError | bdsDataInfoFlatten (DataInfo &dataInfo) |
| Flattens a DataInfo to 1 segement per channel for use in dataOpen() calls. More... | |
| BError | bdsDataInfoMergeFlatten (DataInfo &dataInfo, const DataInfo &dataInfoAdd) |
| Merges a DataInfo into another flattening the segments to 1 for use in dataOpen() calls. More... | |
| BString | bdsStationAlias (Station station) |
| Returns the station alias if set else its name. More... | |
| void | bdsDumpSelection (Selection sel) |
| Debug print out a Selection object. More... | |
| void | bdsDumpDataInfo (DataInfo dataInfo, int includeInfo=0) |
| Debug print out a DataInfo object. More... | |
| void | bdsDumpChannelInfos (const ChannelInfos &channelInfos) |
| Debug print out a ChannelInfos object. More... | |
| void | bdsDumpData (const DataBlock &dataBlock, int nSamples=0) |
| Debug print out a DataBlock object. More... | |
| BString | bdsDataChannelInfo (const DataChannel &dataChannel) |
| Returns a string representation of a DataChannel object. More... | |
| BString | bdsDataChannelRef (const DataChannel &dataChannel) |
| Returns the string reference name of a DataChannel object. More... | |
| BString | bdsDataChannelRef (const ChannelInfo &channelInfo) |
| Returns the string reference name of a ChannelInfo object. More... | |
| BError | bdsDataChannelOverallResponse (const ChannelInfo &channelInfo, Response &response) |
| Returns the overal response from the list of responses in a ChannelInfo. More... | |
| BString | bdsSelectionChannelInfo (const Selection &selection, BUInt channel) |
| Returns a string describing the name and time period of a selection channel. More... | |
| double | bdsPoleZeroGain (const PoleZero &poleZero, double frequency) |
| Calculates the overal gain of the given PoleZero transfer function. More... | |
| void | bdsPoleZeroGainPhase (const PoleZero &poleZero, double frequency, double &gain, double &phase) |
| Calculates the overal gain and phase of the given PoleZero transfer function. More... | |
| void | bdsPoleZeroToFap (const PoleZero &poleZero, BUInt nPoints, double calibrationFrequency, double sampleFrequency, BArray< Fap > &fap) |
| Convert PoleZero to FAP. More... | |
| static BString | fileNameTime (BTimeStamp t) |
| BString | bdsFileNameExpand (BString fileName, ChannelInfo &channelInfo) |
| Default filename from a ChannelInfo. More... | |
| BString | bdsFileNameExpand (BString fileName, ChannelInfos &channelInfos) |
| Default filename from a list of ChannelInfo's. More... | |
| BError | bdsUnCompressCm8 (BUInt8 *buffer, BUInt n, BArray< BInt32 > &data) |
| Uncompress CM8 formatted data. More... | |
| BError | bdsUnCompressSteim1 (BUInt8 *buffer, BUInt n, BArray< BInt32 > &data) |
| Uncompress STEIM1 formatted data. More... | |
| static BString | nullString (BString s) |
| BUInt32 | crc (BUInt32 crc, void *data, int numBytes) |
| static void | crcInit () |
| static uint64_t | crc64 (const void *buffer, const uint32_t len) |
| BString | getHexString (char *data, int len) |
| int | duplicateDump (DataBlock &data1, DataBlock &data2, int channel) |
| static BError | fixedString (double v, int fieldWidth, int numDecimal, BString &str) |
| void | dataCalculateDifference (BInt32 &prevValue, BArray< BInt32 > &data) |
| void | dataCalculateUnDifference (BInt32 &prevValue, BArray< BInt32 > &data) |
| BInt32 | dataChecksum (BInt32 checksum, BArray< BInt32 > &data) |
| BError | dataCompressCm6 (int &prevValue1, int &prevValue2, BArray< BInt32 > &data, BString &d) |
| BError | dataDeCompressCm6 (int &prevValue1, int &prevValue2, BString &d, BArray< BInt32 > &data) |
| static void | dataConvert (const BArray< BFloat64 > &dataIn, BArray< BInt32 > &dataOut) |
| static BString | stringFormat (BTimeStamp t) |
| static BString | removeCR (BString str) |
| BString | fixedWidthValue (double v, int width) |
| This returns a double as a fixed width string truncating the data. More... | |
| static void | bdsDataFileSeedLogWarning (char *str) |
| static void | bdsDataFileSeedLogError (char *str) |
| static hptime_t | seedTime (BTimeStamp t) |
| static BString | seedTimeString (BTimeStamp t) |
| static void | dataConvert (const BArray< BFloat64 > &dataIn, BArray< BInt32 > &dataOut) |
| static void | dataConvert (const BArray< BFloat64 > &dataIn, BArray< BFloat32 > &dataOut) |
| static void | record_handler (char *record, int reclen, void *info) |
Variables | |
| const BUInt32 | apiVersion = 0 |
| const int | NetworkNameLen = 3 |
| Maximum Network name length. More... | |
| const int | StationNameLen = 5 |
| Maximum Station name length. More... | |
| const int | ChannelTypeLen = 3 |
| Maximum Channel type name length. More... | |
| const int | ChannelAuxLen = 2 |
| Maximum Channel Aux length. More... | |
| const int | SourceLen = 16 |
| Maximum Source length. More... | |
| const BString | BdsDataFileVersion = "1.2.0" |
| static uint64_t | crcVec [256] |
| static int | crcInitDone |
| static char | cm6Table [64] |
| static BUInt8 | cm6TableRev [128] |
| const double | Scale = 16777216.0 |
| DataFormats | dataFormats |
| enum Bds::AvailType |
| enum Bds::BdsDataType |
| enum Bds::DataFlags |
Flags when opening data files.
| enum Bds::Errors |
The System Error number list in addition to standard system error numbers.
| enum Bds::FileHeaderType |
| enum Bds::FileSampleType |
| enum Bds::Mode |
| enum Bds::Priority |
| enum Bds::SampleFormat |
The actual format of a data sample.
| enum Bds::SelectionGroup |
Create a full channel name from a channels type and aux fields.
Get the channel type and aux fields from a generic channel name.
| [in] | name | The channels full name |
| [out] | type | Returns the type component of the channel's name |
| [out] | aux | Returns the aux component of the channel's name |
| BString Bds::bdsDataChannelInfo | ( | const DataChannel & | dataChannel | ) |
Returns a string representation of a DataChannel object.
| BError Bds::bdsDataChannelOverallResponse | ( | const ChannelInfo & | channelInfo, |
| Response & | response | ||
| ) |
Returns the overal response from the list of responses in a ChannelInfo.
| BString Bds::bdsDataChannelRef | ( | const ChannelInfo & | channelInfo | ) |
Returns the string reference name of a ChannelInfo object.
| BString Bds::bdsDataChannelRef | ( | const DataChannel & | dataChannel | ) |
Returns the string reference name of a DataChannel object.
|
static |
|
static |
Flattens a DataInfo to 1 segement per channel for use in dataOpen() calls.
| BError Bds::bdsDataInfoFromInfo | ( | BDictString | info, |
| DataInfo & | dataInfo, | ||
| Bool | append | ||
| ) |
Merges a DataInfo into another flattening the segments to 1 for use in dataOpen() calls.
| void Bds::bdsDumpChannelInfos | ( | const ChannelInfos & | channelInfos | ) |
Debug print out a ChannelInfos object.
| void Bds::bdsDumpData | ( | const DataBlock & | dataBlock, |
| int | nSamples | ||
| ) |
Debug print out a DataBlock object.
| void Bds::bdsDumpPoleZeros | ( | PoleZero | poleZeros | ) |
Debug print out a PoleZeros object.
| BString Bds::bdsFileNameExpand | ( | BString | fileName, |
| ChannelInfo & | channelInfo | ||
| ) |
Default filename from a ChannelInfo.
| BString Bds::bdsFileNameExpand | ( | BString | fileName, |
| ChannelInfos & | channelInfos | ||
| ) |
Default filename from a list of ChannelInfo's.
| BError Bds::bdsInfoFromDataInfo | ( | const DataInfo & | dataInfo, |
| BDictString & | info | ||
| ) |
Converts a DataInfo object into a BDictString list of named strings.
| double Bds::bdsPoleZeroGain | ( | const PoleZero & | poleZero, |
| double | frequency | ||
| ) |
Calculates the overal gain of the given PoleZero transfer function.
| void Bds::bdsPoleZeroGainPhase | ( | const PoleZero & | poleZero, |
| double | frequency, | ||
| double & | gain, | ||
| double & | phase | ||
| ) |
Calculates the overal gain and phase of the given PoleZero transfer function.
| void Bds::bdsPoleZeroToFap | ( | const PoleZero & | poleZero, |
| BUInt | nPoints, | ||
| double | calibrationFrequency, | ||
| double | sampleFrequency, | ||
| BArray< Fap > & | fap | ||
| ) |
Convert PoleZero to FAP.
Returns a string describing the name and time period of a selection channel.
Uncompress CM8 formatted data.
Uncompress STEIM1 formatted data.
|
static |
|
static |
| BError Bds::dataCompressCm6 | ( | int & | prevValue1, |
| int & | prevValue2, | ||
| BArray< BInt32 > & | data, | ||
| BString & | d | ||
| ) |
|
static |
|
static |
|
static |
| BError Bds::dataDeCompressCm6 | ( | int & | prevValue1, |
| int & | prevValue2, | ||
| BString & | d, | ||
| BArray< BInt32 > & | data | ||
| ) |
|
static |
| BString Bds::fixedWidthValue | ( | double | v, |
| int | width | ||
| ) |
This returns a double as a fixed width string truncating the data.
| BString Bds::getHexString | ( | char * | data, |
| int | len | ||
| ) |
|
static |
|
static |
|
static |
|
static |
| const BUInt32 Bds::apiVersion = 0 |
| const BString Bds::BdsDataFileVersion = "1.2.0" |
| const int Bds::ChannelAuxLen = 2 |
Maximum Channel Aux length.
| const int Bds::ChannelTypeLen = 3 |
Maximum Channel type name length.
|
static |
|
static |
|
static |
|
static |
| DataFormats Bds::dataFormats |
| const int Bds::NetworkNameLen = 3 |
Maximum Network name length.
| const double Bds::Scale = 16777216.0 |
| const int Bds::SourceLen = 16 |
Maximum Source length.
| const int Bds::StationNameLen = 5 |
Maximum Station name length.