过滤波列数据的无效值-9999

This commit is contained in:
jiayulong 2025-11-20 09:42:22 +08:00
parent 108c753eb5
commit ff01421a87

View File

@ -804,8 +804,7 @@ void FormDraw::initWave(QMyCustomPlot *widget, QString strSlfName, QString strWa
logio->CloseWave(index);
delete logio;
float vmax = (float)_wave.TimeSamples;
float vmax = 0;//(float)_wave.TimeSamples;
float vmin = 0;
//
double** wavedata;
@ -825,8 +824,8 @@ void FormDraw::initWave(QMyCustomPlot *widget, QString strSlfName, QString strWa
continue;
}
//
// if(vmax<val)vmax=val;
// if(vmin>val)vmin=val;
if(vmax<val)vmax=val;
if(vmin>val)vmin=val;
}
}
delete[] value;
@ -867,7 +866,12 @@ void FormDraw::initWave(QMyCustomPlot *widget, QString strSlfName, QString strWa
{
// colorMap->data()->cellToCoord(xIndex, yIndex, &x, &y);
// 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);
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;
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");
}