Account
| BdsApi 4.0.1 This is the Blacknest BDS API. |
Loading...
Searching...
No Matches
BdsLib.h
Go to the documentation of this file.
38 DataError(int errorNumber, BString title, BString filename, BTimeStamp startTime, BTimeStamp endTime, DataInfo& dataInfo, BUInt channel, BString description, BString user = "");
39 DataError& set(int errorNumber, BString title, BString importFilename, BTimeStamp startTime, BTimeStamp endTime, DataInfo& dataInfo, BUInt channel, BString description, BString user = "");
86BError bdsMetadataImportFix(ChannelInfos& channelInfos, BString& changedMessage, Bool stageRenumber);
87BError bdsMetadataExportFix(ChannelInfos& channelInfos, BString& changedMessage, Bool singleResponse, Bool stageRenumber, Bool changeUnits, Bool stageGains, Bool decimation, Bool toDisplacement, Bool toNm);
111void bdsPoleZeroGainPhase(const PoleZero& poleZero, double frequency, double& gain, double& phase);
112void bdsPoleZeroToFap(const PoleZero& poleZero, BUInt nPoints, double calibrationFrequency, double sampleFrequency, BArray<Fap>& fap);
BUInt32 BUInt
bool Bool
int32_t BInt32
BOAP data class definitions for: Bds.
This class provides Metadata information on a set of channels.
Definition BdsD.h:566
This class provides the actual Sensor data values contained within a single data block.
Definition BdsD.h:710
This class defines information on a single channel's set of data stored in a file.
Definition BdsD.h:607
This stores a data error. It includes and error number and a string as well as information on what se...
Definition BdsLib.h:35
BError setStringUser(BString str, BString user)
Set from string given by user on command line.
Definition BdsLib.cpp:145
DataError & set(int errorNumber, BString title, BString importFilename, BTimeStamp startTime, BTimeStamp endTime, DataInfo &dataInfo, BUInt channel, BString description, BString user="")
Definition BdsLib.cpp:49
int getErrorNumber() const
Get The error number.
Definition BdsLib.cpp:99
void mergeDataInfo(const DataInfo &dataInfo, BUInt channel)
Definition BdsLib.cpp:67
This class defines the set of Metadata or Siesmic sensor data to be selected when getSelectionInfo() ...
Definition BdsD.h:483
Definition BdsC.cc:8
BString bdsUnitsConvert(BString units)
Tidy up units name to standard SI units format.
Definition BdsLib.cpp:593
BString bdsDataChannelInfo(const DataChannel &dataChannel)
Returns a string representation of a DataChannel object.
Definition BdsLib.cpp:1133
BString bdsUnitCase(BString unit)
Converts character case of units.
Definition BdsLib.cpp:1508
void bdsPoleZeroGainPhase(const PoleZero &poleZero, double frequency, double &gain, double &phase)
Calculates the overall gain and phase of the given PoleZero transfer function.
Definition BdsLib.cpp:1193
Bool bdsSpecialChannelIgnore(BString network, BString station, BString channel)
Check if channel should be ignored.
Definition BdsLib.cpp:1411
BError bdsDataInfoFlatten(DataInfo &dataInfo)
Flattens a DataInfo to 1 segement per channel for use in dataOpen() calls.
Definition BdsLib.cpp:502
BError bdsLibInit(DataAccess &bds)
Initialise the bdsLib with settings from the BdsServer.
Definition BdsLib.cpp:171
BString bdsChannelGetName(BString type, BString aux)
Create a full channel name from a channels type and aux fields.
Definition BdsLib.cpp:217
BString seedChannelDataType(BString channel)
Returns dataType from channel name based on SEED channel name convention.
Definition BdsLib.cpp:1476
BString bdsDataChannelRef(const DataChannel &dataChannel)
Returns the string reference name of a DataChannel object.
Definition BdsLib.cpp:1138
BError bdsDataChannelOverallResponse(const ChannelInfo &channelInfo, Response &response)
Returns the overal response from the list of responses in a ChannelInfo.
Definition BdsLib.cpp:1146
BError bdsMetadataImportFix(ChannelInfos &channelInfos, BString &changedMessage, Bool stageRenumber)
Fix up ChannelInfos from import. Mainly making sure response stages and their units are correct.
Definition BdsLib.cpp:658
void bdsSpecialChannelsSet(const BList< SpecialChannel > specialChannels)
Set the special channels list.
Definition BdsLib.cpp:1395
BString bdsSelectionChannelInfo(const Selection &selection, BUInt channel)
Returns a string describing the name and time period of a selection channel.
Definition BdsLib.cpp:1169
void bdsDumpDataInfo(DataInfo dataInfo, int includeInfo)
Debug print out a DataInfo object.
Definition BdsLib.cpp:1021
BError bdsDataInfoMergeFlatten(DataInfo &dataInfo, const DataInfo &dataInfoAdd)
Merges a DataInfo into another flattening the segments to 1 for use in dataOpen() calls.
Definition BdsLib.cpp:523
BString bdsFileNameExpand(BString fileName, ChannelInfo &channelInfo)
Default filename from a ChannelInfo.
Definition BdsLib.cpp:1251
BString bdsStationAlias(Station station)
Returns the station alias if set else its name.
Definition BdsLib.cpp:949
void bdsDumpLocation(Location location)
Debug printout location.
Definition BdsLib.cpp:1129
void bdsDumpPoleZeros(PoleZero poleZeros)
Debug print out a PoleZeros object.
Definition BdsLib.cpp:201
BError bdsMetadataExportFix(ChannelInfos &channelInfos, BString &changedMessage, Bool singleResponse, Bool stageRenumber, Bool changeUnits, Bool stageGains, Bool decimation, Bool toDisplacement, Bool toNm)
Fix up ChannelInfos for export. Mainly making sure response stages and their units are correct.
Definition BdsLib.cpp:730
void bdsPoleZeroToFap(const PoleZero &poleZero, BUInt nPoints, double calibrationFrequency, double sampleFrequency, BArray< Fap > &fap)
Convert PoleZero to FAP.
Definition BdsLib.cpp:1213
BError bdsDataInfoFromInfo(BDictString info, DataInfo &dataInfo, Bool append)
Convert info to DataInfo.
Definition BdsLib.cpp:247
void bdsDumpSelectionInfo(SelectionInfo sel)
Debug print out a SelectionInfo object.
Definition BdsLib.cpp:982
void bdsChannelGetTypeAux(BString name, BString &type, BString &aux)
Get the channel type and aux fields from a generic channel name.
Definition BdsLib.cpp:210
BList< SpecialChannel > bdsSpecialChannels()
Return list of special channels.
Definition BdsLib.cpp:1399
void bdsDumpSelection(Selection sel)
Debug print out a Selection object.
Definition BdsLib.cpp:956
BError bdsDataInfoSetTimeRange(DataInfo &dataInfo)
Restricts the time tange of all of the DataInfo's channels to match the DataInfo's startTime/endTime ...
Definition BdsLib.cpp:225
void bdsDumpChannelInfos(const ChannelInfos &channelInfos)
Debug print out a ChannelInfos object.
Definition BdsLib.cpp:1071
BError bdsInfoFromDataInfo(const DataInfo &dataInfo, BDictString &info)
Converts a DataInfo object into a BDictString list of named strings.
Definition BdsLib.cpp:372
BError bdsDataInfoFromChannelInfos(const ChannelInfos &channelInfos, DataInfo &dataInfo)
Sets up a Datainfo object from ChannelInfos.
Definition BdsLib.cpp:614
void bdsDumpData(const DataBlock &dataBlock, int nSamples)
Debug print out a DataBlock object.
Definition BdsLib.cpp:1105
char seedChannelInstrumentCode(BString dataType)
Returns SEED instrument code from dataType.
Definition BdsLib.cpp:1463
double bdsPoleZeroGain(const PoleZero &poleZero, double frequency)
Calculates the overall gain of the given PoleZero transfer function.
Definition BdsLib.cpp:1176
Generated by
