过滤波列数据的无效值-9999
This commit is contained in:
parent
108c753eb5
commit
ff01421a87
|
|
@ -804,8 +804,7 @@ void FormDraw::initWave(QMyCustomPlot *widget, QString strSlfName, QString strWa
|
||||||
logio->CloseWave(index);
|
logio->CloseWave(index);
|
||||||
delete logio;
|
delete logio;
|
||||||
|
|
||||||
|
float vmax = 0;//(float)_wave.TimeSamples;
|
||||||
float vmax = (float)_wave.TimeSamples;
|
|
||||||
float vmin = 0;
|
float vmin = 0;
|
||||||
//
|
//
|
||||||
double** wavedata;
|
double** wavedata;
|
||||||
|
|
@ -825,8 +824,8 @@ void FormDraw::initWave(QMyCustomPlot *widget, QString strSlfName, QString strWa
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
//
|
//
|
||||||
// if(vmax<val)vmax=val;
|
if(vmax<val)vmax=val;
|
||||||
// if(vmin>val)vmin=val;
|
if(vmin>val)vmin=val;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
delete[] value;
|
delete[] value;
|
||||||
|
|
@ -867,8 +866,13 @@ void FormDraw::initWave(QMyCustomPlot *widget, QString strSlfName, QString strWa
|
||||||
{
|
{
|
||||||
// colorMap->data()->cellToCoord(xIndex, yIndex, &x, &y);
|
// colorMap->data()->cellToCoord(xIndex, yIndex, &x, &y);
|
||||||
// double r = 3*qSqrt(x*x+y*y)+1e-2;
|
// double r = 3*qSqrt(x*x+y*y)+1e-2;
|
||||||
// z = 2*x*(qCos(r+2)/r-qSin(r+2)/r); // the B field strength of dipole radiation (modulo physical constants)
|
// z = 2*x*(qCos(r+2)/r-qSin(r+2)/r); // the B field strength of dipole radiation (modulo physical constants);
|
||||||
colorMap->data()->setCell(xIndex, yIndex, wavedata[yIndex][xIndex]);
|
|
||||||
|
if(wavedata[yIndex][xIndex]==-9999)
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
colorMap->data()->setCell(xIndex, yIndex, wavedata[yIndex][xIndex]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -916,7 +920,7 @@ void FormDraw::initWave(QMyCustomPlot *widget, QString strSlfName, QString strWa
|
||||||
double width=2;
|
double width=2;
|
||||||
QString strScaleType = "";
|
QString strScaleType = "";
|
||||||
//道-对象
|
//道-对象
|
||||||
m_formTrack->Add(strSlfName, m_strWellName, m_strTrackName, strWaveName, strAliasName, strUnit, newlineColor, width, vmax, vmin, strScaleType, "waveObject");
|
m_formTrack->Add(strSlfName, m_strWellName, m_strTrackName, strWaveName, strAliasName, strUnit, newlineColor, width, _wave.TimeSamples, 0, strScaleType, "waveObject");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user