The Stepwise Changer®
Home
Solutions
Software
Technologies
Services
Case Studies
QITeam Software Development Kits  
  Development Kits - You can develop your own technology!

Qiteam development kits enable the deployment of new technology/algorithm, faster and easily.

Example - Define the Seismic Phase Rotation (Interface)

SeismicPhaseRotationConfig::SeismicPhaseRotationConfig()
{
    ProcessParameter *mInputSeismicParameter = new ProcessParameter(
                "InputSeismic",
                "Input seismic",
                "Input seismic data.",
                "Seismic",
                SeismicBlockParameter,
                In,
                "mInputTabPageA");
    mInputSeismicParameter->setInternalConfig(new Sic);
    mParameters.push_back(mInputSeismicParameter);

    float phaseShiftRange[PLUGIN_RANGE_NUMBER] =
    {-180.0f, 180.0f, 0.0f, 5.0f, 5.0f, 1.0f, 0.0f, 0.0f, 0.0f, 0.0f};
    ProcessParameter *PhaseShiftParameter = new ProcessParameter(
                "PhaseShift",
                "Phase shift",
                "Phase shift",
                "180.0",
                FloatParameter,
                In,
                "mParameterTabPageA",
                false,
                phaseShiftRange);
}

Example - Implement the Seismic Phase Rotation (Algorithm)

void SeismicPhaseRotation::execute(IProcessConfig *c)
{
    float *inputSeismic  = (float *)GetParameter("InputSeismic")->memoryAddress();
    float *outputSeismic = (float *)GetParameter("OutputSeismic")->memoryAddress();
    float phaseShift  = (*((float *)GetParameter("PhaseShift")->memoryAddress()));  

    phaseShift =  phaseShift / 180.0 * M_PI;

    for (int j = 0; j < nTraces; ++j)
    {
        QiLib::computeFreSpectra(fftArray, amplitude, phase, nfft);

        for (int i = 1; i < nfft / 2; ++i)
        {
            phase[i] =  phase[i]  + phaseShift;
        }

        QiLib::computeTimeCurve(amplitude, phase, fftArray, nfft);

        for (int i = 0; i < traceSamples; ++i)
        {
            outputSeismic[traceStart + i] = fftArray[i];
        }
    }
}



News & Events Feedback Partnership Human Resource Careers Contact Us
© 2011-2014 Qiteam International Pte Ltd, All Rights Reserved. Contact: info@qiteam.com