mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
590 lines
48 KiB
HTML
590 lines
48 KiB
HTML
<!DOCTYPE html>
|
||
<html lang="en-us" dir="ltr" itemscope itemtype="http://schema.org/Article" data-r-output-format="html">
|
||
<head>
|
||
<meta charset="utf-8">
|
||
<meta name="viewport" content="height=device-height, width=device-width, initial-scale=1.0, minimum-scale=1.0">
|
||
<meta name="generator" content="Hugo 0.142.0">
|
||
<meta name="generator" content="Relearn 7.3.2+7b470298046df2c96c0da9da07a54572b7c4e1b0">
|
||
<meta name="description" content="ResInsight supports several command line parameters that can be used to automate some tasks using shell scripts.
|
||
Command line parameters are prefixed using a double dash. This convention is used on all platforms to make it possible to reuse scripts across different platforms. See GNU Standards for Command Line Interfaces.
|
||
Examples on how command line options are used are given below
|
||
Command line options General Parameter Description --help, --? Displays help text and version info --project <filename> Open project file <filename>. --last Open last used project. --size <width> <height> Set size of the main application window. --console Launch as a console application without graphics --server [<portnumber>] Launch as a GRPC server. Default port is 50051 --startdir <folder> Set startup directory. Command files Parameter Description --commandFile <commandFile> Execute a command file. See command file documentation. --commandFileProject <filename> Project to use if performing case looping for command file. Used in conjunction with commandFileReplaceCases. Snapshots Parameter Description --savesnapshots all|views|plots| Save snapshot of all views or plots to project file location sub folder ‘snapshots’. Option ‘all’ will include both views and plots. Application closes after snapshots have been written. --multiCaseSnapshots <gridListFile> For each grid file listed in the <gridListFile> file, replace the first case in the project and save snapshot of all views. Case handling Parameter Description --case <casename|filename> [<casename|filename>] Imports the Eclipse cases specified by case name with or without extension.If <casename>, import the corresponding grid file and summary file. If <filename> has extension .GRRID/.EGRID, import the grid file and corresponding summary file. If <filename> has extension .SMSPEC, import the summary file (does not open the grid file) --replaceCase [<caseId>] <newGridFile> Replace grid in <caseId> or first case with <newGridFile>. Repeat parameter for multiple replace operations. --replaceSourceCases [<caseGroupId>] <gridListFile> Replace source cases in <caseGroupId> or first grid case group with the grid files listed in the <gridListFile> file. Repeat parameter for multiple replace operations. --commandFileReplaceCases [<caseId>] <caseListFile> Supply list of cases to replace in project, performing command file for each case. Project to replace cases must be set with commandFileProject. If caseId is not supplied, first case is replaced. When supplying caseId, multiple cases may be replaced at once, by supplying several caseIds and a file containing a list of grid-files to replace with for each caseId. Note
|
||
Reduce project load time using –replaceSourceCases ResInsight stores data computed by statistics calculation in a cache file. When a project file is loaded, data from this cache is also imported. For large cases, the cached data can be large. When replacing source cases during batch, this data is never used and can be removed from the cache using the following workaround:">
|
||
<meta name="author" content="">
|
||
<meta name="twitter:card" content="summary">
|
||
<meta name="twitter:title" content="Command Line Interface :: ResInsight">
|
||
<meta name="twitter:description" content="ResInsight supports several command line parameters that can be used to automate some tasks using shell scripts.
|
||
Command line parameters are prefixed using a double dash. This convention is used on all platforms to make it possible to reuse scripts across different platforms. See GNU Standards for Command Line Interfaces.
|
||
Examples on how command line options are used are given below
|
||
Command line options General Parameter Description --help, --? Displays help text and version info --project <filename> Open project file <filename>. --last Open last used project. --size <width> <height> Set size of the main application window. --console Launch as a console application without graphics --server [<portnumber>] Launch as a GRPC server. Default port is 50051 --startdir <folder> Set startup directory. Command files Parameter Description --commandFile <commandFile> Execute a command file. See command file documentation. --commandFileProject <filename> Project to use if performing case looping for command file. Used in conjunction with commandFileReplaceCases. Snapshots Parameter Description --savesnapshots all|views|plots| Save snapshot of all views or plots to project file location sub folder ‘snapshots’. Option ‘all’ will include both views and plots. Application closes after snapshots have been written. --multiCaseSnapshots <gridListFile> For each grid file listed in the <gridListFile> file, replace the first case in the project and save snapshot of all views. Case handling Parameter Description --case <casename|filename> [<casename|filename>] Imports the Eclipse cases specified by case name with or without extension.If <casename>, import the corresponding grid file and summary file. If <filename> has extension .GRRID/.EGRID, import the grid file and corresponding summary file. If <filename> has extension .SMSPEC, import the summary file (does not open the grid file) --replaceCase [<caseId>] <newGridFile> Replace grid in <caseId> or first case with <newGridFile>. Repeat parameter for multiple replace operations. --replaceSourceCases [<caseGroupId>] <gridListFile> Replace source cases in <caseGroupId> or first grid case group with the grid files listed in the <gridListFile> file. Repeat parameter for multiple replace operations. --commandFileReplaceCases [<caseId>] <caseListFile> Supply list of cases to replace in project, performing command file for each case. Project to replace cases must be set with commandFileProject. If caseId is not supplied, first case is replaced. When supplying caseId, multiple cases may be replaced at once, by supplying several caseIds and a file containing a list of grid-files to replace with for each caseId. Note
|
||
Reduce project load time using –replaceSourceCases ResInsight stores data computed by statistics calculation in a cache file. When a project file is loaded, data from this cache is also imported. For large cases, the cached data can be large. When replacing source cases during batch, this data is never used and can be removed from the cache using the following workaround:">
|
||
<meta property="og:url" content="https://resinsight.org/scripting/commandlineinterface/index.html">
|
||
<meta property="og:site_name" content="ResInsight">
|
||
<meta property="og:title" content="Command Line Interface :: ResInsight">
|
||
<meta property="og:description" content="ResInsight supports several command line parameters that can be used to automate some tasks using shell scripts.
|
||
Command line parameters are prefixed using a double dash. This convention is used on all platforms to make it possible to reuse scripts across different platforms. See GNU Standards for Command Line Interfaces.
|
||
Examples on how command line options are used are given below
|
||
Command line options General Parameter Description --help, --? Displays help text and version info --project <filename> Open project file <filename>. --last Open last used project. --size <width> <height> Set size of the main application window. --console Launch as a console application without graphics --server [<portnumber>] Launch as a GRPC server. Default port is 50051 --startdir <folder> Set startup directory. Command files Parameter Description --commandFile <commandFile> Execute a command file. See command file documentation. --commandFileProject <filename> Project to use if performing case looping for command file. Used in conjunction with commandFileReplaceCases. Snapshots Parameter Description --savesnapshots all|views|plots| Save snapshot of all views or plots to project file location sub folder ‘snapshots’. Option ‘all’ will include both views and plots. Application closes after snapshots have been written. --multiCaseSnapshots <gridListFile> For each grid file listed in the <gridListFile> file, replace the first case in the project and save snapshot of all views. Case handling Parameter Description --case <casename|filename> [<casename|filename>] Imports the Eclipse cases specified by case name with or without extension.If <casename>, import the corresponding grid file and summary file. If <filename> has extension .GRRID/.EGRID, import the grid file and corresponding summary file. If <filename> has extension .SMSPEC, import the summary file (does not open the grid file) --replaceCase [<caseId>] <newGridFile> Replace grid in <caseId> or first case with <newGridFile>. Repeat parameter for multiple replace operations. --replaceSourceCases [<caseGroupId>] <gridListFile> Replace source cases in <caseGroupId> or first grid case group with the grid files listed in the <gridListFile> file. Repeat parameter for multiple replace operations. --commandFileReplaceCases [<caseId>] <caseListFile> Supply list of cases to replace in project, performing command file for each case. Project to replace cases must be set with commandFileProject. If caseId is not supplied, first case is replaced. When supplying caseId, multiple cases may be replaced at once, by supplying several caseIds and a file containing a list of grid-files to replace with for each caseId. Note
|
||
Reduce project load time using –replaceSourceCases ResInsight stores data computed by statistics calculation in a cache file. When a project file is loaded, data from this cache is also imported. For large cases, the cached data can be large. When replacing source cases during batch, this data is never used and can be removed from the cache using the following workaround:">
|
||
<meta property="og:locale" content="en_us">
|
||
<meta property="og:type" content="article">
|
||
<meta property="article:section" content="Scripting">
|
||
<meta itemprop="name" content="Command Line Interface :: ResInsight">
|
||
<meta itemprop="description" content="ResInsight supports several command line parameters that can be used to automate some tasks using shell scripts.
|
||
Command line parameters are prefixed using a double dash. This convention is used on all platforms to make it possible to reuse scripts across different platforms. See GNU Standards for Command Line Interfaces.
|
||
Examples on how command line options are used are given below
|
||
Command line options General Parameter Description --help, --? Displays help text and version info --project <filename> Open project file <filename>. --last Open last used project. --size <width> <height> Set size of the main application window. --console Launch as a console application without graphics --server [<portnumber>] Launch as a GRPC server. Default port is 50051 --startdir <folder> Set startup directory. Command files Parameter Description --commandFile <commandFile> Execute a command file. See command file documentation. --commandFileProject <filename> Project to use if performing case looping for command file. Used in conjunction with commandFileReplaceCases. Snapshots Parameter Description --savesnapshots all|views|plots| Save snapshot of all views or plots to project file location sub folder ‘snapshots’. Option ‘all’ will include both views and plots. Application closes after snapshots have been written. --multiCaseSnapshots <gridListFile> For each grid file listed in the <gridListFile> file, replace the first case in the project and save snapshot of all views. Case handling Parameter Description --case <casename|filename> [<casename|filename>] Imports the Eclipse cases specified by case name with or without extension.If <casename>, import the corresponding grid file and summary file. If <filename> has extension .GRRID/.EGRID, import the grid file and corresponding summary file. If <filename> has extension .SMSPEC, import the summary file (does not open the grid file) --replaceCase [<caseId>] <newGridFile> Replace grid in <caseId> or first case with <newGridFile>. Repeat parameter for multiple replace operations. --replaceSourceCases [<caseGroupId>] <gridListFile> Replace source cases in <caseGroupId> or first grid case group with the grid files listed in the <gridListFile> file. Repeat parameter for multiple replace operations. --commandFileReplaceCases [<caseId>] <caseListFile> Supply list of cases to replace in project, performing command file for each case. Project to replace cases must be set with commandFileProject. If caseId is not supplied, first case is replaced. When supplying caseId, multiple cases may be replaced at once, by supplying several caseIds and a file containing a list of grid-files to replace with for each caseId. Note
|
||
Reduce project load time using –replaceSourceCases ResInsight stores data computed by statistics calculation in a cache file. When a project file is loaded, data from this cache is also imported. For large cases, the cached data can be large. When replacing source cases during batch, this data is never used and can be removed from the cache using the following workaround:">
|
||
<meta itemprop="wordCount" content="1191">
|
||
<title>Command Line Interface :: ResInsight</title>
|
||
<link href="/css/fontawesome-all.min.css?1739538141" rel="stylesheet" media="print" onload="this.media='all';this.onload=null;"><noscript><link href="/css/fontawesome-all.min.css?1739538141" rel="stylesheet"></noscript>
|
||
<link href="/css/auto-complete.css?1739538141" rel="stylesheet" media="print" onload="this.media='all';this.onload=null;"><noscript><link href="/css/auto-complete.css?1739538141" rel="stylesheet"></noscript>
|
||
<link href="/css/perfect-scrollbar.min.css?1739538141" rel="stylesheet">
|
||
<link href="/css/theme.min.css?1739538141" rel="stylesheet">
|
||
<link href="/css/format-html.min.css?1739538141" rel="stylesheet" id="R-format-style">
|
||
<script>
|
||
window.relearn = window.relearn || {};
|
||
window.relearn.relBasePath='..\/..';
|
||
window.relearn.relBaseUri='..\/..';
|
||
window.relearn.absBaseUri='https:\/\/resinsight.org';
|
||
window.relearn.min = `.min`;
|
||
window.relearn.disableAnchorCopy=false;
|
||
window.relearn.disableAnchorScrolling=false;
|
||
// variant stuff
|
||
window.relearn.themevariants = [ 'relearn' ];
|
||
window.relearn.customvariantname = "my-custom-variant";
|
||
window.relearn.changeVariant = function(variant) {
|
||
var oldVariant = document.documentElement.dataset.rThemeVariant;
|
||
window.localStorage.setItem(window.relearn.absBaseUri + "/variant", variant);
|
||
document.documentElement.dataset.rThemeVariant = variant;
|
||
if (oldVariant != variant) {
|
||
document.dispatchEvent( new CustomEvent('themeVariantLoaded', { detail: { variant, oldVariant } }) );
|
||
}
|
||
}
|
||
window.relearn.markVariant = function() {
|
||
var variant = window.localStorage.getItem(window.relearn.absBaseUri + "/variant");
|
||
var select = document.querySelector("#R-select-variant");
|
||
if (select) {
|
||
select.value = variant;
|
||
}
|
||
}
|
||
window.relearn.initVariant = function() {
|
||
var variant = window.localStorage.getItem(window.relearn.absBaseUri + "/variant") ?? "";
|
||
if( variant == window.relearn.customvariantname ){
|
||
}else if( !variant || !window.relearn.themevariants.includes(variant) ){
|
||
variant = window.relearn.themevariants[0];
|
||
window.localStorage.setItem(window.relearn.absBaseUri + "/variant", variant);
|
||
}
|
||
document.documentElement.dataset.rThemeVariant = variant;
|
||
}
|
||
window.relearn.initVariant();
|
||
window.relearn.markVariant();
|
||
// translations
|
||
window.T_Copy_to_clipboard = `Copy to clipboard`;
|
||
window.T_Copied_to_clipboard = `Copied to clipboard!`;
|
||
window.T_Copy_link_to_clipboard = `Copy link to clipboard`;
|
||
window.T_Link_copied_to_clipboard = `Copied link to clipboard!`;
|
||
window.T_Reset_view = `Reset view`;
|
||
window.T_View_reset = `View reset!`;
|
||
window.T_No_results_found = `No results found for "{0}"`;
|
||
window.T_N_results_found = `{1} results found for "{0}"`;
|
||
</script>
|
||
<script type="text/javascript" async
|
||
src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.6/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
|
||
MathJax.Hub.Config({
|
||
tex2jax: {
|
||
inlineMath: [['$','$'], ['\\(','\\)']],
|
||
displayMath: [['$$','$$'], ['\\[','\\]']],
|
||
processEscapes: true,
|
||
processEnvironments: true,
|
||
skipTags: ['script', 'noscript', 'style', 'textarea', 'pre'],
|
||
TeX: { equationNumbers: { autoNumber: "AMS" },
|
||
extensions: ["AMSmath.js", "AMSsymbols.js"] }
|
||
},
|
||
|
||
menuSettings: { renderer: "CommonHTML" }
|
||
});
|
||
MathJax.Hub.Queue(function() {
|
||
|
||
|
||
|
||
var all = MathJax.Hub.getAllJax();
|
||
while(jax = all.pop()) {
|
||
jax.SourceElement().parentNode.className += ' has-jax';
|
||
}
|
||
});
|
||
|
||
MathJax.Hub.Config({
|
||
|
||
TeX: { equationNumbers: { autoNumber: "AMS" } }
|
||
});
|
||
</script>
|
||
|
||
</head>
|
||
<body class="mobile-support html" data-url="/scripting/commandlineinterface/index.html">
|
||
<div id="R-body" class="default-animation">
|
||
<div id="R-body-overlay"></div>
|
||
<nav id="R-topbar">
|
||
<div class="topbar-wrapper">
|
||
<div class="topbar-sidebar-divider"></div>
|
||
<div class="topbar-area topbar-area-start" data-area="start">
|
||
<div class="topbar-button topbar-button-sidebar" data-content-empty="disable" data-width-s="show" data-width-m="hide" data-width-l="hide"><button class="topbar-control" onclick="toggleNav()" type="button" title="Menu (CTRL+ALT+n)"><i class="fa-fw fas fa-bars"></i></button>
|
||
</div>
|
||
<div class="topbar-button topbar-button-toc" data-content-empty="hide" data-width-s="show" data-width-m="show" data-width-l="show"><button class="topbar-control" onclick="toggleTopbarFlyout(this)" type="button" title="Table of Contents (CTRL+ALT+t)"><i class="fa-fw fas fa-list-alt"></i></button>
|
||
<div class="topbar-content">
|
||
<div class="topbar-content-wrapper">
|
||
<nav class="TableOfContents">
|
||
<ul>
|
||
<li>
|
||
<ul>
|
||
<li><a href="#command-line-options">Command line options</a>
|
||
<ul>
|
||
<li><a href="#general">General</a></li>
|
||
<li><a href="#command-files">Command files</a></li>
|
||
<li><a href="#snapshots">Snapshots</a></li>
|
||
<li><a href="#case-handling">Case handling</a></li>
|
||
<li><a href="#summary-plotting">Summary plotting</a></li>
|
||
<li><a href="#testing">Testing</a></li>
|
||
</ul>
|
||
</li>
|
||
<li><a href="#examples">Examples</a>
|
||
<ul>
|
||
<li><a href="#create-snapshots-of-all-views-for-multiple-cases">Create snapshots of all views for multiple cases</a></li>
|
||
<li><a href="#replace-a-single-case-and-take-snapshots-of-all-views">Replace a single case and take snapshots of all views</a></li>
|
||
<li><a href="#replace-source-cases-in-a-case-group-and-create-snapshot">Replace source cases in a case group and create snapshot</a></li>
|
||
<li><a href="#replace-source-cases-in-multiple-case-groups-and-create-snapshots">Replace source cases in multiple case groups and create snapshots</a></li>
|
||
<li><a href="#summary-plotting-1">Summary plotting</a></li>
|
||
</ul>
|
||
</li>
|
||
</ul>
|
||
</li>
|
||
</ul>
|
||
</nav>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<ol class="topbar-breadcrumbs breadcrumbs highlightable" itemscope itemtype="http://schema.org/BreadcrumbList"><li
|
||
itemscope itemtype="https://schema.org/ListItem" itemprop="itemListElement"><a itemprop="item" href="/index.html"><span itemprop="name">ResInsight</span></a><meta itemprop="position" content="1"> > </li><li
|
||
itemscope itemtype="https://schema.org/ListItem" itemprop="itemListElement"><a itemprop="item" href="/scripting/index.html"><span itemprop="name">Scripting</span></a><meta itemprop="position" content="2"> > </li><li
|
||
itemscope itemtype="https://schema.org/ListItem" itemprop="itemListElement"><span itemprop="name">Command Line Interface</span><meta itemprop="position" content="3"></li>
|
||
</ol>
|
||
<div class="topbar-area topbar-area-end" data-area="end">
|
||
<div class="topbar-button topbar-button-prev" data-content-empty="disable" data-width-s="show" data-width-m="show" data-width-l="show"><a class="topbar-control" href="/scripting/pythoninterface/index.html" title="Python Interface (🡐)"><i class="fa-fw fas fa-chevron-left"></i></a>
|
||
</div>
|
||
<div class="topbar-button topbar-button-next" data-content-empty="disable" data-width-s="show" data-width-m="show" data-width-l="show"><a class="topbar-control" href="/scripting/commandfile/index.html" title="Command File (🡒)"><i class="fa-fw fas fa-chevron-right"></i></a>
|
||
</div>
|
||
<div class="topbar-button topbar-button-more" data-content-empty="hide" data-width-s="show" data-width-m="show" data-width-l="show"><button class="topbar-control" onclick="toggleTopbarFlyout(this)" type="button" title="More"><i class="fa-fw fas fa-ellipsis-v"></i></button>
|
||
<div class="topbar-content">
|
||
<div class="topbar-content-wrapper">
|
||
<div class="topbar-area topbar-area-more" data-area="more">
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</nav>
|
||
<div id="R-main-overlay"></div>
|
||
<main id="R-body-inner" class="highlightable scripting" tabindex="-1">
|
||
<div class="flex-block-wrapper">
|
||
<article class="default">
|
||
<header class="headline">
|
||
</header>
|
||
|
||
<h1 id="command-line-interface">Command Line Interface</h1>
|
||
|
||
<p>ResInsight supports several command line parameters that can be used to automate some tasks using shell scripts.</p>
|
||
<p>Command line parameters are prefixed using a double dash. This convention is used on all platforms to make it possible to reuse scripts across different platforms. See GNU Standards for <a href="http://www.gnu.org/prep/standards/html_node/Command_002dLine-Interfaces.html#Command_002dLine-Interfaces" rel="external" target="_blank">Command Line Interfaces</a>.</p>
|
||
<p>Examples on how command line options are used are given <a href="/scripting/commandlineinterface/index.html#examples">below</a></p>
|
||
<h2 id="command-line-options">Command line options</h2>
|
||
<h3 id="general">General</h3>
|
||
<table>
|
||
<thead>
|
||
<tr>
|
||
<th>Parameter</th>
|
||
<th>Description</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>--help, --?</td>
|
||
<td>Displays help text and version info</td>
|
||
</tr>
|
||
<tr>
|
||
<td>--project <filename></td>
|
||
<td>Open project file <filename>.</td>
|
||
</tr>
|
||
<tr>
|
||
<td>--last</td>
|
||
<td>Open last used project.</td>
|
||
</tr>
|
||
<tr>
|
||
<td>--size <width> <height></td>
|
||
<td>Set size of the main application window.</td>
|
||
</tr>
|
||
<tr>
|
||
<td>--console</td>
|
||
<td>Launch as a console application without graphics</td>
|
||
</tr>
|
||
<tr>
|
||
<td>--server [<portnumber>]</td>
|
||
<td>Launch as a GRPC server. Default port is 50051</td>
|
||
</tr>
|
||
<tr>
|
||
<td>--startdir <folder></td>
|
||
<td>Set startup directory.</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
<h3 id="command-files">Command files</h3>
|
||
<table>
|
||
<thead>
|
||
<tr>
|
||
<th>Parameter</th>
|
||
<th>Description</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>--commandFile <commandFile></td>
|
||
<td>Execute a command file. See <a href="/scripting/commandfile/index.html">command file documentation.</a></td>
|
||
</tr>
|
||
<tr>
|
||
<td>--commandFileProject <filename></td>
|
||
<td>Project to use if performing case looping for command file. Used in conjunction with <code>commandFileReplaceCases</code>.</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
<h3 id="snapshots">Snapshots</h3>
|
||
<table>
|
||
<thead>
|
||
<tr>
|
||
<th>Parameter</th>
|
||
<th>Description</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>--savesnapshots all|views|plots|</td>
|
||
<td>Save snapshot of all views or plots to project file location sub folder ‘snapshots’. Option ‘all’ will include both views and plots. Application closes after snapshots have been written.</td>
|
||
</tr>
|
||
<tr>
|
||
<td>--multiCaseSnapshots <gridListFile></td>
|
||
<td>For each grid file listed in the <gridListFile> file, replace the first case in the project and save snapshot of all views.</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
<h3 id="case-handling">Case handling</h3>
|
||
<table>
|
||
<thead>
|
||
<tr>
|
||
<th>Parameter</th>
|
||
<th>Description</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>--case <casename|filename> [<casename|filename>]</td>
|
||
<td>Imports the Eclipse cases specified by case name with or without extension.If <casename>, import the corresponding grid file and summary file. If <filename> has extension .GRRID/.EGRID, import the grid file and corresponding summary file. If <filename> has extension .SMSPEC, import the summary file (does not open the grid file)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>--replaceCase [<caseId>] <newGridFile></td>
|
||
<td>Replace grid in <caseId> or first case with <newGridFile>. Repeat parameter for multiple replace operations.</td>
|
||
</tr>
|
||
<tr>
|
||
<td>--replaceSourceCases [<caseGroupId>] <gridListFile></td>
|
||
<td>Replace source cases in <caseGroupId> or first grid case group with the grid files listed in the <gridListFile> file. Repeat parameter for multiple replace operations.</td>
|
||
</tr>
|
||
<tr>
|
||
<td>--commandFileReplaceCases [<caseId>] <caseListFile></td>
|
||
<td>Supply list of cases to replace in project, performing command file for each case. Project to replace cases must be set with <code>commandFileProject</code>. If caseId is not supplied, first case is replaced. When supplying caseId, multiple cases may be replaced at once, by supplying several caseIds and a file containing a list of grid-files to replace with for each caseId.</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
|
||
<details open class=" box cstyle notices note">
|
||
<summary class="box-label" tabindex="-1">
|
||
<i class="fa-fw fas fa-exclamation-circle"></i>
|
||
Note
|
||
</summary>
|
||
<div class="box-content">
|
||
<p><b>Reduce project load time using <code>–replaceSourceCases</code></b>
|
||
<br>
|
||
ResInsight stores data computed by statistics calculation in a cache file. When a project file is loaded, data from this cache is also imported. For large cases, the cached data can be large. When replacing source cases during batch, this data is never used and can be removed from the cache using the following workaround:
|
||
<br></p>
|
||
<ul>
|
||
<li>Open the project file used to produce statistics
|
||
<br></li>
|
||
<li>Select the statistics object in the project tree
|
||
<br></li>
|
||
<li>Click the button <b>Edit (Will DELETE current result)</b>
|
||
<br></li>
|
||
<li>Save the project file</li>
|
||
</ul>
|
||
</div>
|
||
</details>
|
||
<h3 id="summary-plotting">Summary plotting</h3>
|
||
<p>The summary plotting command option follows the following syntax:</p>
|
||
<div class="highlight wrap-code"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-txt" data-lang="txt"><span style="display:flex;"><span>resinsight --summaryplot [<plotOptions>] <eclipsesummaryvectorfilters> <eclipsedatafiles>
|
||
</span></span><span style="display:flex;"><span>
|
||
</span></span><span style="display:flex;"><span>where:
|
||
</span></span><span style="display:flex;"><span><plotOptions> denote summary plot options, see table below
|
||
</span></span><span style="display:flex;"><span><eclipsesummaryvectorfilters> has the syntax <vectorname>[:<item>[:<subitem>[:i,j,k]]]
|
||
</span></span><span style="display:flex;"><span><eclipsedatafiles> lists a set of Eclipse data files with or without extension</span></span></code></pre></div>
|
||
<p>The summary plotting command option creates one summary plot for each of the the summary vectors matched by<br>
|
||
<em><eclipsesummaryvectorfilters></em> using all listed Eclipse data files in each plot.</p>
|
||
<p>Eclipse summary vector filters specify a list of vectors separated by spaces following the syntax noted above.
|
||
Wildcards can be used in the specification. Brief examples are:</p>
|
||
<ul>
|
||
<li><code>WOPT:*</code>: One total oil production curve for each well.</li>
|
||
<li><code>FOPT FWPT</code>: Two curves with oil and water total production.</li>
|
||
<li><code>BPR:15,28,*</code>: Oil phase pressure for all blocks along k as separate curves. Please note no space in expression.</li>
|
||
</ul>
|
||
<p><a href="/scripting/commandlineinterface/index.html#summary-plotting-1">Examples</a> are listed below.</p>
|
||
<p>As long as only summary vectors are requested, only the corresponding SMSPEC file will be opened for each case.
|
||
However, if a grid property is requested, the corresponding EGRID and restart data will be loaded as well.</p>
|
||
<p>Specifying summary plot options is optional, c.f. table below.</p>
|
||
<table>
|
||
<thead>
|
||
<tr>
|
||
<th>Option</th>
|
||
<th>Description</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>-help</td>
|
||
<td>Shows help text and ignores any other option.</td>
|
||
</tr>
|
||
<tr>
|
||
<td>-h</td>
|
||
<td>Includes history vectors read from summary file if the vectors exist. Only history vectors from the first summary case in the project will be included.</td>
|
||
</tr>
|
||
<tr>
|
||
<td>-nl</td>
|
||
<td>Omits legend in plot.</td>
|
||
</tr>
|
||
<tr>
|
||
<td>-s</td>
|
||
<td>Creates only one plot including all the defined vectors and cases.</td>
|
||
</tr>
|
||
<tr>
|
||
<td>-n</td>
|
||
<td>Scales all curves into the range 0.0-1.0. Useful when using -s.</td>
|
||
</tr>
|
||
<tr>
|
||
<td>-e</td>
|
||
<td>Imports all the cases as an ensemble, and create ensemble curves sets instead of single curves.</td>
|
||
</tr>
|
||
<tr>
|
||
<td>-c <parametername></td>
|
||
<td>Same as <em>-e</em>, but colors the curves by the ensemble parameter <parametername> .</td>
|
||
</tr>
|
||
<tr>
|
||
<td>-cl <parametername></td>
|
||
<td>Same as <em>-c</em>, but uses logarithmic legend.</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
<h3 id="testing">Testing</h3>
|
||
<table>
|
||
<thead>
|
||
<tr>
|
||
<th>Parameter</th>
|
||
<th>Description</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>--regressiontest <folder></td>
|
||
<td>System command</td>
|
||
</tr>
|
||
<tr>
|
||
<td>--updateregressiontestbase <folder></td>
|
||
<td>System command</td>
|
||
</tr>
|
||
<tr>
|
||
<td>--unittest</td>
|
||
<td>Execute integration tests</td>
|
||
</tr>
|
||
<tr>
|
||
<td>--ignoreArgs</td>
|
||
<td>System command</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
<p>See also the <a href="/misc/regressiontestsystem/index.html">Regression Test System </a> for a more in-depth explanation.</p>
|
||
<h2 id="examples">Examples</h2>
|
||
<p>Most examples are also available from the <a href="https://github.com/OPM/ResInsight/tree/master/TestModels/Case_with_10_timesteps" rel="external" target="_blank">test section</a>.</p>
|
||
<h3 id="create-snapshots-of-all-views-for-multiple-cases">Create snapshots of all views for multiple cases</h3>
|
||
<p>A list of cases is defined in <strong>CaseList.txt</strong>, containing the following</p>
|
||
<div class="highlight wrap-code"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-txt" data-lang="txt"><span style="display:flex;"><span>Real0/BRUGGE_0000.EGRID
|
||
</span></span><span style="display:flex;"><span>Real10/BRUGGE_0010.EGRID
|
||
</span></span><span style="display:flex;"><span>Real30/BRUGGE_0030.EGRID
|
||
</span></span><span style="display:flex;"><span>Real40/BRUGGE_0040.EGRID</span></span></code></pre></div>
|
||
<p>The command line used to run this example is shown here:</p>
|
||
<div class="highlight wrap-code"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-txt" data-lang="txt"><span style="display:flex;"><span>ResInsight --project BatchTest.rsp --multiCaseSnapshots CaseList.txt --size 500 500</span></span></code></pre></div>
|
||
<p>This will instruct ResInsight to read the project file <strong>BatchTest.rsp</strong>. All cases will be replaced one by one in ResInsight, and snapshots of all views will be written to file.</p>
|
||
<h3 id="replace-a-single-case-and-take-snapshots-of-all-views">Replace a single case and take snapshots of all views</h3>
|
||
<p>The command line used to run this example is shown here:</p>
|
||
<div class="highlight wrap-code"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-txt" data-lang="txt"><span style="display:flex;"><span>ResInsight --project BatchTest.rsp --replaceCase "Real10\BRUGGE_0010.EGRID" --savesnapshots</span></span></code></pre></div>
|
||
<p>This will instruct ResInsight to read the project file <strong>BatchTest.rsp</strong>. The specified case <strong>Real10\BRUGGE_0010.EGRID</strong> will be imported into the project, and snapshots of all views will be written to file.</p>
|
||
<h3 id="replace-source-cases-in-a-case-group-and-create-snapshot">Replace source cases in a case group and create snapshot</h3>
|
||
<p>A list of cases is defined in <strong>CaseList2.txt</strong>, containing the following</p>
|
||
<div class="highlight wrap-code"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-txt" data-lang="txt"><span style="display:flex;"><span>Real0/BRUGGE_0000.EGRID
|
||
</span></span><span style="display:flex;"><span>Real10/BRUGGE_0010.EGRID</span></span></code></pre></div>
|
||
<p>The command line used to run this example is shown here:</p>
|
||
<div class="highlight wrap-code"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-txt" data-lang="txt"><span style="display:flex;"><span>ResInsight --project BatchStatistics.rsp --replaceSourceCases CaseList2.txt --savesnapshots</span></span></code></pre></div>
|
||
<p>This will instruct ResInsight to read the project file <strong>BatchStatistics.rsp</strong>. All cases specified will be imported in the case group specified in the project file. Statistics will be computed, and snapshots for all views will be written to file.</p>
|
||
<h3 id="replace-source-cases-in-multiple-case-groups-and-create-snapshots">Replace source cases in multiple case groups and create snapshots</h3>
|
||
<p>Multiple source case groups can be updated by repeating the replaceSourceCases parameter.</p>
|
||
<p>The command line used to run this example is shown here:</p>
|
||
<div class="highlight wrap-code"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-txt" data-lang="txt"><span style="display:flex;"><span>ResInsight --project BatchStatistics.rsp --replaceSourceCases 0 CaseList2.txt --replaceSourceCases 1 CaseList3.txt --savesnapshots</span></span></code></pre></div>
|
||
<p>This will instruct ResInsight to read the project file <strong>BatchStatistics.rsp</strong>. Source cases for case group 0 is given in CaseList2.txt, and source cases for case group 1 is given in CaseList3.txt. Statistics will be computed, and snapshots for all views will be written to file.</p>
|
||
<p>The possibility to replace multiple cases can also be applied for single case replace (parameter <em>replaceCase</em>).</p>
|
||
<h3 id="summary-plotting-1">Summary plotting</h3>
|
||
<p>The following command line performs a <a href="/plot-window/summaryplots/index.html">summary plot</a> for <em>FOPT</em> based on Eclipse summary file <em>1_R001_REEK-0.SMSPEC</em>.</p>
|
||
<div class="highlight wrap-code"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-txt" data-lang="txt"><span style="display:flex;"><span>ResInsight --summaryplot FOPT 1_R001_REEK-0 </span></span></code></pre></div>
|
||
<p>Based on file <em>1_R001_REEK-0.SMSPEC</em>, the following command line performs a <a href="/plot-window/summaryplots/index.html">summary plot</a>
|
||
for <em>FOPT</em> and any <em>WOPT</em>-vector for well <em>op_2</em>.
|
||
The trailing option <em>-s</em> gathers the vectors into a single summary plot.</p>
|
||
<div class="highlight wrap-code"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-txt" data-lang="txt"><span style="display:flex;"><span>ResInsight --summaryplot -s FOPT WOPT*:op_2 1_R001_REEK-0</span></span></code></pre></div>
|
||
<p>Adding to previous example, the following command line also plots the 3D grid property <code>SOIL</code> for cell (20, 21, 1).</p>
|
||
<div class="highlight wrap-code"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-txt" data-lang="txt"><span style="display:flex;"><span>ResInsight --summaryplot FOPT WOPT*:op_2 SOIL:20,21,1 1_R001_REEK-0 </span></span></code></pre></div>
|
||
|
||
<footer class="footline">
|
||
</footer>
|
||
</article>
|
||
</div>
|
||
</main>
|
||
</div>
|
||
<aside id="R-sidebar" class="default-animation">
|
||
<div id="R-header-topbar" class="default-animation"></div>
|
||
<div id="R-header-wrapper" class="default-animation">
|
||
<div id="R-header" class="default-animation">
|
||
<a id="logo" href="https://resinsight.org/">
|
||
<img src="https://resinsight.org//images/ResInsightCroppedIconPicture.png">
|
||
</a>
|
||
|
||
</div>
|
||
<script>
|
||
window.index_js_url="/searchindex.en.js?1739538141";
|
||
</script>
|
||
<search><form action="/search/index.html" method="get">
|
||
<div class="searchbox default-animation">
|
||
<button class="search-detail" type="submit" title="Search (CTRL+ALT+f)"><i class="fas fa-search"></i></button>
|
||
<label class="a11y-only" for="R-search-by">Search</label>
|
||
<input data-search-input id="R-search-by" name="search-by" class="search-by" type="search" placeholder="Search...">
|
||
<button class="search-clear" type="button" data-search-clear="" title="Clear search"><i class="fas fa-times" title="Clear search"></i></button>
|
||
</div>
|
||
</form></search>
|
||
<script>
|
||
var contentLangs=['en'];
|
||
</script>
|
||
<script src="/js/auto-complete.js?1739538141" defer></script>
|
||
<script src="/js/lunr/lunr.min.js?1739538141" defer></script>
|
||
<script src="/js/lunr/lunr.stemmer.support.min.js?1739538141" defer></script>
|
||
<script src="/js/lunr/lunr.multi.min.js?1739538141" defer></script>
|
||
<script src="/js/lunr/lunr.en.min.js?1739538141" defer></script>
|
||
<script src="/js/search.js?1739538141" defer></script>
|
||
<script>
|
||
(function() {
|
||
const urlParams = new URLSearchParams(window.location.search);
|
||
const searchQuery = urlParams.get('q');
|
||
if (searchQuery) {
|
||
const newUrl = `/search/?search-by=${encodeURIComponent(searchQuery)}`;
|
||
window.location.replace(newUrl);
|
||
}
|
||
})();
|
||
</script>
|
||
</div>
|
||
<div id="R-homelinks" class="default-animation">
|
||
<hr class="padding">
|
||
</div>
|
||
<div id="R-content-wrapper" class="highlightable">
|
||
<div id="R-shortcutmenu-home" class="R-sidebarmenu">
|
||
<ul class="enlarge morespace collapsible-menu">
|
||
<li class="" data-nav-id="/releases/index.html"><a class="padding" href="/releases/index.html">Releases</a><ul id="R-subsections-a71c2f29677ba690c1b8bf454f228c9c" class="collapsible-menu"></ul></li>
|
||
<li class="" data-nav-id="/getting-started/index.html"><a class="padding" href="/getting-started/index.html">Getting Started</a><ul id="R-subsections-87c0363912f379e0725cbe1d504c985c" class="collapsible-menu"></ul></li>
|
||
<li class="" data-nav-id="/3d-main-window/index.html"><a class="padding" href="/3d-main-window/index.html">3D Main Window</a><ul id="R-subsections-122c1165ab4202e74b8e3c0619dc7420" class="collapsible-menu"></ul></li>
|
||
<li class="" data-nav-id="/plot-window/index.html"><a class="padding" href="/plot-window/index.html">Plot Main Window</a><ul id="R-subsections-6087943109d37785a7a7442a1415914b" class="collapsible-menu"></ul></li>
|
||
<li class="" data-nav-id="/calculated-data/index.html"><a class="padding" href="/calculated-data/index.html">Calculated Data</a><ul id="R-subsections-d7700e605b6718d9f0232aeb66e77ad1" class="collapsible-menu"></ul></li>
|
||
<li class="" data-nav-id="/wells-and-completions/index.html"><a class="padding" href="/wells-and-completions/index.html">Wells and Completions</a><ul id="R-subsections-6bd77eb465ff0d28f042f42913bdffda" class="collapsible-menu"></ul></li>
|
||
<li class="" data-nav-id="/import/index.html"><a class="padding" href="/import/index.html">Import</a><ul id="R-subsections-6394d937fb0ab7f32a2b2b5bee229032" class="collapsible-menu"></ul></li>
|
||
<li class="" data-nav-id="/export/index.html"><a class="padding" href="/export/index.html">Export</a><ul id="R-subsections-5d95f477b90785732dc9d6d81acc75cc" class="collapsible-menu"></ul></li>
|
||
<li class="parent " data-nav-id="/scripting/index.html"><a class="padding" href="/scripting/index.html">Scripting</a><ul id="R-subsections-184799376902c8c3045f6aad007b8b97" class="collapsible-menu">
|
||
<li class="" data-nav-id="/scripting/pythoninterface/index.html"><a class="padding" href="/scripting/pythoninterface/index.html">Python Interface</a></li>
|
||
<li class="active " data-nav-id="/scripting/commandlineinterface/index.html"><a class="padding" href="/scripting/commandlineinterface/index.html">Command Line Interface</a></li>
|
||
<li class="" data-nav-id="/scripting/commandfile/index.html"><a class="padding" href="/scripting/commandfile/index.html">Command File</a></li>
|
||
<li class="" data-nav-id="/scripting/octaveinterface/index.html"><a class="padding" href="/scripting/octaveinterface/index.html">Octave Interface</a></li>
|
||
<li class="" data-nav-id="/scripting/octaveinterfacereference/index.html"><a class="padding" href="/scripting/octaveinterfacereference/index.html">Octave Interface Reference</a></li></ul></li>
|
||
<li class="" data-nav-id="/misc/index.html"><a class="padding" href="/misc/index.html">Miscellaneous</a><ul id="R-subsections-f243eab41fb28f51378992bf36c41035" class="collapsible-menu"></ul></li>
|
||
<li class="" data-nav-id="/best-practices/index.html"><a class="padding" href="/best-practices/index.html">Best Practices</a><ul id="R-subsections-4f78aa4e6926d1389cf4d79364e23592" class="collapsible-menu"></ul></li>
|
||
<li class="" data-nav-id="/workflows/index.html"><a class="padding" href="/workflows/index.html">Workflows</a><ul id="R-subsections-87fd3d7b9e4d48a0ba290b60ba4064f4" class="collapsible-menu"></ul></li>
|
||
</ul>
|
||
</div>
|
||
<div id="R-shortcutmenu-shortcuts" class="R-sidebarmenu">
|
||
<ul class="space collapsible-menu">
|
||
<li class="" data-nav-id="/about"><a class="padding" href="/about"><i class='fas fa-info-circle'></i> About</a></li>
|
||
<li class="" data-nav-id="/training"><a class="padding" href="/training"><i class='fa fa-university'></i> Training</a></li>
|
||
<li class="" data-nav-id="/support"><a class="padding" href="/support"><i class='far fa-question-circle'></i> Support</a></li>
|
||
<li class="" data-nav-id="/releases"><a class="padding" href="/releases"><i class='fas fa-download'></i> Download and Install</a></li>
|
||
</ul>
|
||
</div>
|
||
<div class="padding footermargin footerLangSwitch footerVariantSwitch footerVisitedLinks footerFooter showFooter"></div>
|
||
<div id="R-menu-footer">
|
||
<hr class="padding default-animation footerLangSwitch footerVariantSwitch footerVisitedLinks footerFooter showFooter">
|
||
<div id="R-prefooter" class="footerLangSwitch footerVariantSwitch footerVisitedLinks">
|
||
<ul>
|
||
<li id="R-select-language-container" class="footerLangSwitch">
|
||
<div class="padding menu-control">
|
||
<i class="fa-fw fas fa-language"></i>
|
||
<span> </span>
|
||
<div class="control-style">
|
||
<label class="a11y-only" for="R-select-language">Language</label>
|
||
<select id="R-select-language" onchange="location = this.querySelector( this.value ).dataset.url;">
|
||
<option id="R-select-language-en" value="#R-select-language-en" data-url="/scripting/commandlineinterface/index.html" lang="en-us" selected></option>
|
||
</select>
|
||
</div>
|
||
<div class="clear"></div>
|
||
</div>
|
||
</li>
|
||
<li id="R-select-variant-container" class="footerVariantSwitch">
|
||
<div class="padding menu-control">
|
||
<i class="fa-fw fas fa-paint-brush"></i>
|
||
<span> </span>
|
||
<div class="control-style">
|
||
<label class="a11y-only" for="R-select-variant">Theme</label>
|
||
<select id="R-select-variant" onchange="window.relearn.changeVariant( this.value );">
|
||
<option id="R-select-variant-relearn" value="relearn" selected>Relearn</option>
|
||
</select>
|
||
</div>
|
||
<div class="clear"></div>
|
||
</div>
|
||
<script>window.relearn.markVariant();</script>
|
||
</li>
|
||
<li class="footerVisitedLinks">
|
||
<div class="padding menu-control">
|
||
<i class="fa-fw fas fa-history"></i>
|
||
<span> </span>
|
||
<div class="control-style">
|
||
<button onclick="clearHistory();">Clear History</button>
|
||
</div>
|
||
<div class="clear"></div>
|
||
</div>
|
||
</li>
|
||
</ul>
|
||
</div>
|
||
<div id="R-footer" class="footerFooter showFooter"><a href="https://www.ceetronsolutions.com"><img src='https://resinsight.org//images/CeeSolLogoSmallForDarkBackground.png' style='width: 140px; '></a><br>
|
||
|
||
ResInsight is developed by <br> <a href="https://www.ceetronsolutions.com">Ceetron Solutions</a>
|
||
<p>in collaboration with</p>
|
||
<a href="https://www.equinor.com">Equinor ASA</a>
|
||
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</aside>
|
||
<script src="/js/clipboard.min.js?1739538141" defer></script>
|
||
<script src="/js/perfect-scrollbar.min.js?1739538141" defer></script>
|
||
<script src="/js/theme.js?1739538141" defer></script>
|
||
</body>
|
||
</html>
|