| Prototype: |
|
| Source File: |
src/oracle/schema-working/src/parametric/ewdb_internal_CreatePeakAmp.c |
| Description: |
Inserts the following information from a StationMag structure into the Database: the Channel from which the amplitude was recorded(idChan), the first amplitude measurement(dAmp1), the time of the first amplitude measurement(tAmp1), the wave period of the first amplitude measurement (tPeriod1), the second amplitude measurement(dAmp2), the time of the second amplitude measurement(tAmp2), the wave period of the second amplitude measurement(tPeriod2), and the Magnitude type associated with the amplitude. All other fields from the EWDB_StationMagnitudeStruct are ignored. Upon Successfull completion, the DB ID of the new Peak Amplitude record is written back to pPeakAmp->idDatum and pPeakAmp->StaMagUnion.PeakAmp.idPeakAmp. |
RETURN CODE INFO |
| Return Type: |
int |
|
PARAMETER INFO |
| Parameter |
Type |
Description |
| pPeakAmp |
EWDB_StationMagStruct * |
Pointer to the Station Magnitude structure filled with Peak Amplitude information to be inserted into the DB. |
|
|
| Group: |
EWDB_API_LIB |
| Sub Group: |
PARAMETRIC-INTERNAL |
| Language: |
C |
| Location: |
./src/oracle/schema-working/src/include/internal/ewdb_internal_functions.h |
| Prototype: |
| int ewdb_internal_GetStaMagsForCodaDur( |
EWDBid idMagnitude, EWDB_StationMagStruct * pStaMags, int * pNumStaMagsFound, int * pNumStaMagsRetrieved, int BufferLen); |
|
| Source File: |
src/oracle/schema-working/src/parametric/ewdb_internal_GetStaMagsForCodaDur.c |
| Description: |
The function retrieves a list of "Coda Duration" based station magnitudes that support a single summary duration magnitude(Md) for an Event. See EWDB_StationMagStruct for a description of the information retrieved for each associated stamag. Because this function deals with only duration measurements, it will never fill in the StaMagUnion.PeakAmp information |
RETURN CODE INFO |
| Return Type: |
int |
|
PARAMETER INFO |
| Parameter |
Type |
Description |
| idMagnitude |
EWDBid |
DB ID of the summary magnitude for which the caller wants to retrieve associated station magnitudes. (The caller wants to retrieve station magnitudes for this summary magnitude.) |
| pStaMags |
EWDB_StationMagStruct * |
|
| pNumStaMagsFound |
int * |
Pointer to an integer where the function will write the number of station magnitudes found. |
| pNumStaMagsRetrieved |
int * |
Pointer to an integer where the function will write the number of station magnitudes placed in the callers buffer(pStaMags). |
| BufferLen |
int |
Size of the pStaMags buffer as a multiple of EWDB_StationMagStruct. (example: 15 structs) |
|
|
| Group: |
EWDB_API_LIB |
| Sub Group: |
PARAMETRIC-INTERNAL |
| Language: |
C |
| Location: |
./src/oracle/schema-working/src/include/internal/ewdb_internal_functions.h |