#7493 Correct sampling direction (was flipped).

This commit is contained in:
Kristian Bendiksen 2021-03-26 15:31:49 +01:00
parent 25d7c6d30d
commit 49042f4a34
2 changed files with 4 additions and 2 deletions

View File

@ -85,7 +85,9 @@ void RifFractureGroupStatisticsExporter::appendPropertiesToStream( QTextStream&
CAF_ASSERT( statistics[s]->ny() == gridYs.size() );
for ( size_t i = 0; i < gridYs.size(); i++ )
// Need to write these in reverse because the depth tag is ignored in
// in the reader (depths from <grid><ys> are used).
for ( int i = static_cast<int>( gridYs.size() ) - 1; i >= 0; i-- )
{
stream << "<depth>" << gridYs[i] << "</depth>" << endl;
stream << "<data>[";

View File

@ -204,7 +204,7 @@ std::vector<QString> RimFractureGroupStatistics::computeStatistics()
for ( int y = 0; y < numSamplesY; y++ )
{
double posY = minY + y * sampleDistanceY;
gridYs[y] = referenceDepth + posY;
gridYs[y] = referenceDepth - posY;
}
for ( int x = 0; x < numSamplesX; x++ )