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:">
<metaname="author"content="">
<metaname="twitter:card"content="summary">
<metaname="twitter:title"content="Command Line Interface :: ResInsight">
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:">
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:">
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:">
<metaitemprop="wordCount"content="1191">
<title>Command Line Interface :: ResInsight</title>
<li><ahref="#create-snapshots-of-all-views-for-multiple-cases">Create snapshots of all views for multiple cases</a></li>
<li><ahref="#replace-a-single-case-and-take-snapshots-of-all-views">Replace a single case and take snapshots of all views</a></li>
<li><ahref="#replace-source-cases-in-a-case-group-and-create-snapshot">Replace source cases in a case group and create snapshot</a></li>
<li><ahref="#replace-source-cases-in-multiple-case-groups-and-create-snapshots">Replace source cases in multiple case groups and create snapshots</a></li>
itemscope itemtype="https://schema.org/ListItem" itemprop="itemListElement"><spanitemprop="name">Command Line Interface</span><metaitemprop="position"content="3"></li>
<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 <ahref="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 <ahref="/scripting/commandlineinterface/index.html#examples">below</a></p>
<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>
<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>
<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>
<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>
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:
</span></span><spanstyle="display:flex;"><span><plotOptions> denote summary plot options, see table below
</span></span><spanstyle="display:flex;"><span><eclipsesummaryvectorfilters> has the syntax <vectorname>[:<item>[:<subitem>[:i,j,k]]]
</span></span><spanstyle="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>
<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>
<p>Most examples are also available from the <ahref="https://github.com/OPM/ResInsight/tree/master/TestModels/Case_with_10_timesteps"rel="external"target="_blank">test section</a>.</p>
<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>
<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>
<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>
<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 following command line performs a <ahref="/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>
<liclass=""data-nav-id="/3d-main-window/index.html"><aclass="padding"href="/3d-main-window/index.html">3D Main Window</a><ulid="R-subsections-122c1165ab4202e74b8e3c0619dc7420"class="collapsible-menu"></ul></li>
<liclass=""data-nav-id="/plot-window/index.html"><aclass="padding"href="/plot-window/index.html">Plot Main Window</a><ulid="R-subsections-6087943109d37785a7a7442a1415914b"class="collapsible-menu"></ul></li>
<liclass=""data-nav-id="/wells-and-completions/index.html"><aclass="padding"href="/wells-and-completions/index.html">Wells and Completions</a><ulid="R-subsections-6bd77eb465ff0d28f042f42913bdffda"class="collapsible-menu"></ul></li>
<liclass="active "data-nav-id="/scripting/commandlineinterface/index.html"><aclass="padding"href="/scripting/commandlineinterface/index.html">Command Line Interface</a></li>