mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-26 15:10:22 -05:00
#14889: RFT Ensemble: Additional UI fixes
* #14889: Do not change main window when importing well picks * #14889: Fix clipped bottom of plots in dock windows * #14889: Add Create RFT Correlation Report to Ensemble Correlation Plots menu * #14889: Show imported observed FMU RFT data as table * #14889: Use time step from source RFT plot in RFT correlation report * #14889: Show observed data in RFT cross plot when no RFT samples are available * #14889: Keep RFT plot zoom when toggling formation in RFT correlation report * #14889: Do not change main window when importing formations * #14889: Use general delete for observed data and improve FMU RFT data name
This commit is contained in:
1 parent
fb566f112c
commit
c57864df51
36 files changed
+373
-319
No files matched your search
@@ -284,6 +284,27 @@ void RifReaderFmuRft::importData()
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
QString RifReaderFmuRft::csvText() const
|
||||
{
|
||||
QString text;
|
||||
QTextStream stream( &text );
|
||||
|
||||
stream << "WELL,DATE,MEASUREMENT_ID,UTM_X,UTM_Y,MD,TVD,ZONE,PRESSURE,PRESSURE_ERROR\n";
|
||||
for ( const auto& obs : m_observations )
|
||||
{
|
||||
stream << obs.wellDate.wellName << "," << obs.wellDate.dateTime.toString( "yyyy-MM-dd" ) << "," << obs.wellDate.measurementId << ","
|
||||
<< QString::number( obs.location.utmx, 'f', 2 ) << "," << QString::number( obs.location.utmy, 'f', 2 ) << ","
|
||||
<< QString::number( obs.location.mdrkb, 'f', 2 ) << "," << QString::number( obs.location.tvdmsl, 'f', 2 ) << ","
|
||||
<< obs.location.formation << "," << QString::number( obs.pressure, 'f', 2 ) << ","
|
||||
<< QString::number( obs.pressureError, 'f', 2 ) << "\n";
|
||||
}
|
||||
|
||||
return text;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -81,6 +81,9 @@ public:
|
||||
|
||||
void importData();
|
||||
|
||||
// Imported observations as comma separated text with a header row
|
||||
QString csvText() const;
|
||||
|
||||
private:
|
||||
static std::vector<WellDate> importWellDates( const QString& fileName );
|
||||
static std::vector<Location> importLocations( const QString& fileName );
|
||||
|
||||
Reference in new issue
Block a user