<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.myroms.org/wiki/index.php?action=history&amp;feed=atom&amp;title=IO</id>
	<title>IO - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.myroms.org/wiki/index.php?action=history&amp;feed=atom&amp;title=IO"/>
	<link rel="alternate" type="text/html" href="https://www.myroms.org/wiki/index.php?title=IO&amp;action=history"/>
	<updated>2026-04-27T13:35:28Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.42.3</generator>
	<entry>
		<id>https://www.myroms.org/wiki/index.php?title=IO&amp;diff=6680&amp;oldid=prev</id>
		<title>Robertson at 18:18, 5 May 2025</title>
		<link rel="alternate" type="text/html" href="https://www.myroms.org/wiki/index.php?title=IO&amp;diff=6680&amp;oldid=prev"/>
		<updated>2025-05-05T18:18:20Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 18:18, 5 May 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;div class=&amp;quot;title&amp;quot;&amp;gt;ROMS I/O&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;div class=&amp;quot;title&amp;quot;&amp;gt;ROMS I/O&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;ROMS uses NetCDF for all its input and output data management. The NetCDF files can be processed using the standard library developed by [http://doi.org/10.5065/D6H70CW6 UNIDATA], the Parallel-IO (&#039;&#039;&#039;PIO&#039;&#039;&#039;) library developed at NCAR (Hartnett and Edwards, 2021; [https://www.researchgate.net/publication/348169990_THE_PARALLELIO_PIO_CFORTRAN_LIBRARIES_FOR_SCALABLE_HPC_PERFORMANCE unpublished paper&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;]), or the Software for Cashing Output and Reads for Parallel I/O (&#039;&#039;&#039;SCORPIO&#039;&#039;&#039;) library intended for the DOE&#039;s Energy Exascale Earth Model System ([https://e3sm.org/scorpio-parallel-io-library/ E&amp;lt;sup&amp;gt;3&amp;lt;/sup&amp;gt;SM&lt;/del&gt;]). Furthermore, another parallel I/O strategy has been available in ROMS for several years with the NetCDF4/HDF5 libraries by activating the [[Options#PARALLEL_IO|PARALLEL_IO]] and [[Options#HDF5|HDF5]] CPP options&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;.&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;ROMS uses NetCDF for all its input and output data management. The NetCDF files can be processed using the standard library developed by [http://doi.org/10.5065/D6H70CW6 UNIDATA], the Parallel-IO (&#039;&#039;&#039;PIO&#039;&#039;&#039;) library developed at NCAR (Hartnett and Edwards, 2021; [https://www.researchgate.net/publication/348169990_THE_PARALLELIO_PIO_CFORTRAN_LIBRARIES_FOR_SCALABLE_HPC_PERFORMANCE unpublished paper]). Furthermore, another parallel I/O strategy has been available in ROMS for several years with the NetCDF4/HDF5 libraries by activating the [[Options#PARALLEL_IO|PARALLEL_IO]] and [[Options#HDF5|HDF5]] CPP options.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;The &#039;&#039;&#039;SCORPIO&#039;&#039;&#039; library was forked from the &#039;&#039;&#039;PIO&#039;&#039;&#039; library several years ago and evolved separately. The generic interface for parallel I/O in ROMS works for both the &#039;&#039;&#039;PIO&#039;&#039;&#039; or &#039;&#039;&#039;SCORPIO&#039;&#039;&#039; libraries and available by activating the [[Options#PIO_LIB|PIO_LIB]] CPP option.  &amp;lt;span class=&quot;red&quot;&amp;gt;However&amp;lt;/span&amp;gt;, we recommend using the &#039;&#039;&#039;PIO&#039;&#039;&#039; library because it is more efficient in processing I/O in our benchmark tests&lt;/del&gt;.&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Generally, writing is usually a more frequent and more complicated operation than reading. There are four strategies for writing (Mendez &amp;#039;&amp;#039;et al.&amp;#039;&amp;#039;, 2019; ​[https://www.researchgate.net/publication/332190037_Best_Practice_Guide_-_Parallel_IO Preprint]):&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Generally, writing is usually a more frequent and more complicated operation than reading. There are four strategies for writing (Mendez &amp;#039;&amp;#039;et al.&amp;#039;&amp;#039;, 2019; ​[https://www.researchgate.net/publication/332190037_Best_Practice_Guide_-_Parallel_IO Preprint]):&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l9&quot;&gt;Line 9:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 7:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#&amp;lt;span class=&amp;quot;blue&amp;quot;&amp;gt;Single file, single writer:&amp;lt;/span&amp;gt; &amp;#039;&amp;#039;&amp;#039;Serial I/O&amp;#039;&amp;#039;&amp;#039; in non-parallel or parallel applications. It is the default strategy in ROMS using the &amp;#039;&amp;#039;&amp;#039;NetCDF3&amp;#039;&amp;#039;&amp;#039; or &amp;#039;&amp;#039;&amp;#039;NetCDF4&amp;#039;&amp;#039;&amp;#039; libraries.  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#&amp;lt;span class=&amp;quot;blue&amp;quot;&amp;gt;Single file, single writer:&amp;lt;/span&amp;gt; &amp;#039;&amp;#039;&amp;#039;Serial I/O&amp;#039;&amp;#039;&amp;#039; in non-parallel or parallel applications. It is the default strategy in ROMS using the &amp;#039;&amp;#039;&amp;#039;NetCDF3&amp;#039;&amp;#039;&amp;#039; or &amp;#039;&amp;#039;&amp;#039;NetCDF4&amp;#039;&amp;#039;&amp;#039; libraries.  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#&amp;lt;span class=&amp;quot;blue&amp;quot;&amp;gt;Single file, multiple writers:&amp;lt;/span&amp;gt; &amp;#039;&amp;#039;&amp;#039;Parallel I/O&amp;#039;&amp;#039;&amp;#039; with each partition tile writing its data to a single file. In ROMS, this capability is achieved by activating [[Options#PARALLEL_IO|PARALLEL_IO]] and [[Options#HDF5|HDF5]]. It is only possible with the &amp;#039;&amp;#039;&amp;#039;NetCDF4/HDF5&amp;#039;&amp;#039;&amp;#039; libraries.  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#&amp;lt;span class=&amp;quot;blue&amp;quot;&amp;gt;Single file, multiple writers:&amp;lt;/span&amp;gt; &amp;#039;&amp;#039;&amp;#039;Parallel I/O&amp;#039;&amp;#039;&amp;#039; with each partition tile writing its data to a single file. In ROMS, this capability is achieved by activating [[Options#PARALLEL_IO|PARALLEL_IO]] and [[Options#HDF5|HDF5]]. It is only possible with the &amp;#039;&amp;#039;&amp;#039;NetCDF4/HDF5&amp;#039;&amp;#039;&amp;#039; libraries.  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#&amp;lt;span class=&quot;blue&quot;&amp;gt;Single file, collective writers:&amp;lt;/span&amp;gt; &#039;&#039;&#039;Parallel I/O&#039;&#039;&#039; with either one or a subset of processes performing I/O operations. The I/O operations can be &#039;&#039;&#039;synchronous&#039;&#039;&#039; or &#039;&#039;&#039;asynchronous&#039;&#039;&#039;. In ROMS, this capability uses the &#039;&#039;&#039;PIO&#039;&#039;&#039; &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;or &#039;&#039;&#039;SCORPIO&#039;&#039;&#039; libraries &lt;/del&gt;and available when [[Options#PIO_LIB|PIO_LIB]] is activated.  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#&amp;lt;span class=&quot;blue&quot;&amp;gt;Single file, collective writers:&amp;lt;/span&amp;gt; &#039;&#039;&#039;Parallel I/O&#039;&#039;&#039; with either one or a subset of processes performing I/O operations. The I/O operations can be &#039;&#039;&#039;synchronous&#039;&#039;&#039; or &#039;&#039;&#039;asynchronous&#039;&#039;&#039;. In ROMS, this capability uses the &#039;&#039;&#039;PIO&#039;&#039;&#039; &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;library &lt;/ins&gt;and &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;is &lt;/ins&gt;available when [[Options#PIO_LIB|PIO_LIB]] is activated.  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#&amp;lt;span class=&amp;quot;blue&amp;quot;&amp;gt;Multiple files, multiple writers:&amp;lt;/span&amp;gt; &amp;#039;&amp;#039;&amp;#039;Parallel I/O&amp;#039;&amp;#039;&amp;#039; in which each distributed-memory or shared-memory tile decomposition writes its data into the partition file. Still, post-processing is required to pack the data into a single file. Currently, this capability is not available in ROMS but can be easily implemented within its current I/O infrastructure. However, this strategy is cumbersome and undesired in variational data assimilation (4D-Var) algorithms that require reading forwards and backward, in time, the state trajectories. As a consequence, reading becomes the bottleneck.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#&amp;lt;span class=&amp;quot;blue&amp;quot;&amp;gt;Multiple files, multiple writers:&amp;lt;/span&amp;gt; &amp;#039;&amp;#039;&amp;#039;Parallel I/O&amp;#039;&amp;#039;&amp;#039; in which each distributed-memory or shared-memory tile decomposition writes its data into the partition file. Still, post-processing is required to pack the data into a single file. Currently, this capability is not available in ROMS but can be easily implemented within its current I/O infrastructure. However, this strategy is cumbersome and undesired in variational data assimilation (4D-Var) algorithms that require reading forwards and backward, in time, the state trajectories. As a consequence, reading becomes the bottleneck.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l20&quot;&gt;Line 20:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 18:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Parallel I/O using parallel HDF5 and NetCDF-4 has been available in ROMS for many years. This I/O option requires parallel enabled HDF5 and NetCDF-4 and is activated by defining [[Options#PARALLEL_IO|PARALLEL_IO]] and [[Options#HDF5|HDF5]] CPP options. Each parallel tile reads and writes the decomposed data. This approach does not scale well because it requires every process to participate in reading and writing, which quickly overloads the file system with requests as the number of tiles (NtileI x NtileJ) increases.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Parallel I/O using parallel HDF5 and NetCDF-4 has been available in ROMS for many years. This I/O option requires parallel enabled HDF5 and NetCDF-4 and is activated by defining [[Options#PARALLEL_IO|PARALLEL_IO]] and [[Options#HDF5|HDF5]] CPP options. Each parallel tile reads and writes the decomposed data. This approach does not scale well because it requires every process to participate in reading and writing, which quickly overloads the file system with requests as the number of tiles (NtileI x NtileJ) increases.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Parallel I/O with PIO &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;or SCORPIO&lt;/del&gt;==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Parallel I/O with PIO==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&#039;&#039;&#039;PIO&#039;&#039;&#039; &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;and &#039;&#039;&#039;SCORPIO&#039;&#039;&#039; libraries are &lt;/del&gt;primarily intended for ROMS &#039;&#039;&#039;distributed-memory (MPI) applications&#039;&#039;&#039; running on a large number of processes in an HPC system with a Parallel File System (like Lustre, GPFS, and so on) for high-performance I/O. The &#039;&#039;&#039;PIO&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&#039;&#039;&#039; and &#039;&#039;&#039;SCORPIO&lt;/del&gt;&#039;&#039;&#039; library uses the &#039;&#039;&#039;MPI-IO&#039;&#039;&#039; interface to facilitate the partitioning of the data across computational or dedicated I/O processes. For example, in an HPC cluster environment with a &#039;&#039;&#039;Parallel File System&#039;&#039;&#039;, the user can instruct &#039;&#039;&#039;PIO&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&#039;&#039;&#039; or &#039;&#039;&#039;SCORPIO&lt;/del&gt;&#039;&#039;&#039; to designate which processes per node to perform I/O. This is a much more reasonable approach for larger applications running on hundreds of processors. To use this Parallel I/O strategy, the &#039;&#039;&#039;PIO&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&#039;&#039;&#039; or &#039;&#039;&#039;SCORPIO&lt;/del&gt;&#039;&#039;&#039; library must be linked to ROMS at compile time by defining the [[Options#PIO_LIB|PIO_LIB]] CPP option. &amp;lt;span class=&quot;blue&quot;&amp;gt;It is only available in distributed-memory applications since it uses &#039;&#039;&#039;MPI-IO&#039;&#039;&#039;&amp;lt;/span&amp;gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;The &lt;/ins&gt;&#039;&#039;&#039;PIO&#039;&#039;&#039; &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;library is &lt;/ins&gt;primarily intended for ROMS &#039;&#039;&#039;distributed-memory (MPI) applications&#039;&#039;&#039; running on a large number of processes in an HPC system with a Parallel File System (like Lustre, GPFS, and so on) for high-performance I/O. The &#039;&#039;&#039;PIO&#039;&#039;&#039; library uses the &#039;&#039;&#039;MPI-IO&#039;&#039;&#039; interface to facilitate the partitioning of the data across computational or dedicated I/O processes. For example, in an HPC cluster environment with a &#039;&#039;&#039;Parallel File System&#039;&#039;&#039;, the user can instruct &#039;&#039;&#039;PIO&#039;&#039;&#039; to designate which processes per node to perform I/O. This is a much more reasonable approach for larger applications running on hundreds of processors. To use this Parallel I/O strategy, the &#039;&#039;&#039;PIO&#039;&#039;&#039; library must be linked to ROMS at compile time by defining the [[Options#PIO_LIB|PIO_LIB]] CPP option. &amp;lt;span class=&quot;blue&quot;&amp;gt;It is only available in distributed-memory applications since it uses &#039;&#039;&#039;MPI-IO&#039;&#039;&#039;&amp;lt;/span&amp;gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;There are two modes of parallel I/O in &#039;&#039;&#039;PIO&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&#039;&#039;&#039; and &#039;&#039;&#039;SCORPIO&lt;/del&gt;&#039;&#039;&#039;:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;There are two modes of parallel I/O in &#039;&#039;&#039;PIO&#039;&#039;&#039;:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;ol style=&amp;quot;list-style-type: upper-alpha&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;ol style=&amp;quot;list-style-type: upper-alpha&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;li&amp;gt;&amp;#039;&amp;#039;&amp;#039;Synchronous:&amp;#039;&amp;#039;&amp;#039; MPI intra-communications mode. A subset or all processes does I/O and also computations. The user specifies the total number of I/O tasks and how they are distributed across the HPC nodes as a function of the ROMS MPI-communicator object, &amp;#039;&amp;#039;&amp;#039;OCN_COMM_WORLD&amp;#039;&amp;#039;&amp;#039;. It is often desirable to shift the first I/O task away from the first computation task since it has higher memory requirements than other processes. If the MPI processes are spread over several computer nodes, it is highly recommended to spread all I/O tasks over all nodes. Avoid all I/O processes occupying the same node.&amp;lt;/li&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;li&amp;gt;&amp;#039;&amp;#039;&amp;#039;Synchronous:&amp;#039;&amp;#039;&amp;#039; MPI intra-communications mode. A subset or all processes does I/O and also computations. The user specifies the total number of I/O tasks and how they are distributed across the HPC nodes as a function of the ROMS MPI-communicator object, &amp;#039;&amp;#039;&amp;#039;OCN_COMM_WORLD&amp;#039;&amp;#039;&amp;#039;. It is often desirable to shift the first I/O task away from the first computation task since it has higher memory requirements than other processes. If the MPI processes are spread over several computer nodes, it is highly recommended to spread all I/O tasks over all nodes. Avoid all I/O processes occupying the same node.&amp;lt;/li&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;li&amp;gt;&#039;&#039;&#039;Asynchronous:&#039;&#039;&#039; MPI inter-communications mode. The I/O tasks are a disjointed set of dedicated I/O processes and do not perform computations. It is possible to have groups of computational units running separate models (coupling) where all the I/O data are sent to dedicated processes. In ROMS, the asynchronous mode is possible by &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;activation either &lt;/del&gt;[[Options#ASYNCHRONOUS_PIO|ASYNCHRONOUS_PIO&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;]] or [[Options#ASYNCHRONOUS_SCORPIO|ASYNCHRONOUS_SCORPIO&lt;/del&gt;]]. &#039;&#039;&#039;&amp;lt;span class=&quot;red&quot;&amp;gt;However&amp;lt;/span&amp;gt;, this capability is still under development and not recommended for use at this time.&#039;&#039;&#039;&amp;lt;/li&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;li&amp;gt;&#039;&#039;&#039;Asynchronous:&#039;&#039;&#039; MPI inter-communications mode. The I/O tasks are a disjointed set of dedicated I/O processes and do not perform computations. It is possible to have groups of computational units running separate models (coupling) where all the I/O data are sent to dedicated processes. In ROMS, the asynchronous mode is possible by &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;activating &lt;/ins&gt;[[Options#ASYNCHRONOUS_PIO|ASYNCHRONOUS_PIO]]. &#039;&#039;&#039;&amp;lt;span class=&quot;red&quot;&amp;gt;However&amp;lt;/span&amp;gt;, this capability is still under development and not recommended for use at this time.&#039;&#039;&#039;&amp;lt;/li&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/ol&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/ol&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Robertson</name></author>
	</entry>
	<entry>
		<id>https://www.myroms.org/wiki/index.php?title=IO&amp;diff=6564&amp;oldid=prev</id>
		<title>Arango: /* Output Multi-Files */</title>
		<link rel="alternate" type="text/html" href="https://www.myroms.org/wiki/index.php?title=IO&amp;diff=6564&amp;oldid=prev"/>
		<updated>2023-03-11T20:51:32Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Output Multi-Files&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 20:51, 11 March 2023&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l51&quot;&gt;Line 51:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 51:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;div class=&amp;quot;box&amp;quot;&amp;gt;     MOD([[Variables#ntimes|NTIMES]], [[Variables#ndefHIS|NDEFHIS]]) = 0 &amp;lt;br /&amp;gt;     MOD([[Variables#ntimes|NTIMES]], [[Variables#ndefHIS|NDEFQCK]]) = 0 &amp;lt;br /&amp;gt;     MOD([[Variables#ntimes|NTIMES]], [[Variables#ndefAVG|NDEFAVG]]) = 0 &amp;lt;br /&amp;gt;     MOD([[Variables#ntimes|NTIMES]], [[Variables#ndefDIA|NDEFDIA]]) = 0 &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;     MOD([[Variables#ntimes|NTIMES]], [[Variables#nRST|NRST]]) = 0 &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;     MOD([[Variables#ndefHIS|NDEFHIS]], [[Variables#nHIS|NHIS]]) = 0 &amp;lt;br /&amp;gt;     MOD([[Variables#ndefQCK|NDEFQCK]], [[Variables#nQCK|NQCK]]) = 0 &amp;lt;br /&amp;gt;     MOD([[Variables#ndefAVH|NDEFAVG]], [[Variables#nAVG|NAVG]]) = 0 &amp;lt;br /&amp;gt;     MOD([[Variables#ndefDIA|NDEFDIA]], [[Variables#nHIS|NDIA]]) = 0 &amp;lt;br /&amp;gt;&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;div class=&amp;quot;box&amp;quot;&amp;gt;     MOD([[Variables#ntimes|NTIMES]], [[Variables#ndefHIS|NDEFHIS]]) = 0 &amp;lt;br /&amp;gt;     MOD([[Variables#ntimes|NTIMES]], [[Variables#ndefHIS|NDEFQCK]]) = 0 &amp;lt;br /&amp;gt;     MOD([[Variables#ntimes|NTIMES]], [[Variables#ndefAVG|NDEFAVG]]) = 0 &amp;lt;br /&amp;gt;     MOD([[Variables#ntimes|NTIMES]], [[Variables#ndefDIA|NDEFDIA]]) = 0 &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;     MOD([[Variables#ntimes|NTIMES]], [[Variables#nRST|NRST]]) = 0 &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;     MOD([[Variables#ndefHIS|NDEFHIS]], [[Variables#nHIS|NHIS]]) = 0 &amp;lt;br /&amp;gt;     MOD([[Variables#ndefQCK|NDEFQCK]], [[Variables#nQCK|NQCK]]) = 0 &amp;lt;br /&amp;gt;     MOD([[Variables#ndefAVH|NDEFAVG]], [[Variables#nAVG|NAVG]]) = 0 &amp;lt;br /&amp;gt;     MOD([[Variables#ndefDIA|NDEFDIA]], [[Variables#nHIS|NDIA]]) = 0 &amp;lt;br /&amp;gt;&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;where the Fortran intrinsic function &#039;&#039;&#039;MOD(&amp;lt;span class=&quot;red&quot;&amp;gt;X&amp;lt;/span&amp;gt;,&amp;lt;span class=&quot;red&quot;&amp;gt;Y&amp;lt;/span&amp;gt;)&#039;&#039;&#039; computes the remainder of the division of &amp;lt;span class=&quot;red&quot;&amp;gt;X&amp;lt;/span&amp;gt; by &amp;lt;span class=&quot;red&quot;&amp;gt;Y&amp;lt;/span&amp;gt;, and has to be always &#039;&#039;&#039;zero&#039;&#039;&#039; for ROMS multi-file option to work. Notice that the first files in the &amp;lt;span class=&quot;twilightBlue&quot;&amp;gt;history&amp;lt;/span&amp;gt; data series (&amp;lt;span class=&quot;violet&quot;&amp;gt;roms_his_0001.nc&amp;lt;/span&amp;gt;) will contain 5-time records because of the initial conditions, and the rest of the files will have 4-time records. Similarly, the first file in the &amp;lt;span class=&quot;twilightBlue&quot;&amp;gt;quicksave&amp;lt;/span&amp;gt; series (&amp;lt;span class=&quot;violet&quot;&amp;gt;roms_qck_0001.nc&amp;lt;/span&amp;gt;) will contain 9-time records, and the rest will have 8-time records. The time-averaged data in the &amp;lt;span class=&quot;twilightBlue&quot;&amp;gt;averages&amp;lt;/span&amp;gt; and &amp;lt;span class=&quot;twilightBlue&quot;&amp;gt;diagnostic&amp;lt;/span&amp;gt; files are single records files representing daily averaged fields. The above analysis also holds when converted to time in seconds since every parameter is multiplied by the [[Variables#dt|DT]] timestep.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;where the Fortran intrinsic function &#039;&#039;&#039;MOD(&amp;lt;span class=&quot;red&quot;&amp;gt;X&amp;lt;/span&amp;gt;,&amp;lt;span class=&quot;red&quot;&amp;gt;Y&amp;lt;/span&amp;gt;)&#039;&#039;&#039; computes the remainder of the division of &amp;lt;span class=&quot;red&quot;&amp;gt;X&amp;lt;/span&amp;gt; by &amp;lt;span class=&quot;red&quot;&amp;gt;Y&amp;lt;/span&amp;gt;, and has to be always &#039;&#039;&#039;zero&#039;&#039;&#039; for ROMS multi-file option to work. Notice that the first files in the &amp;lt;span class=&quot;twilightBlue&quot;&amp;gt;history&amp;lt;/span&amp;gt; data series (&amp;lt;span class=&quot;violet&quot;&amp;gt;roms_his_0001.nc&amp;lt;/span&amp;gt;) will contain &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&#039;&#039;&#039;&lt;/ins&gt;5&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&#039;&#039;&#039;&lt;/ins&gt;-time records because of the initial conditions, and the rest of the files will have &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&#039;&#039;&#039;&lt;/ins&gt;4&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&#039;&#039;&#039;&lt;/ins&gt;-time records. Similarly, the first file in the &amp;lt;span class=&quot;twilightBlue&quot;&amp;gt;quicksave&amp;lt;/span&amp;gt; series (&amp;lt;span class=&quot;violet&quot;&amp;gt;roms_qck_0001.nc&amp;lt;/span&amp;gt;) will contain &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&#039;&#039;&#039;&lt;/ins&gt;9&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&#039;&#039;&#039;&lt;/ins&gt;-time records, and the rest will have &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&#039;&#039;&#039;&lt;/ins&gt;8&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&#039;&#039;&#039;&lt;/ins&gt;-time records. The time-averaged data in the &amp;lt;span class=&quot;twilightBlue&quot;&amp;gt;averages&amp;lt;/span&amp;gt; and &amp;lt;span class=&quot;twilightBlue&quot;&amp;gt;diagnostic&amp;lt;/span&amp;gt; files are single records files representing daily averaged fields. The above analysis also holds when converted to time in seconds since every parameter is multiplied by the [[Variables#dt|DT]] timestep.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;span class=&amp;quot;red&amp;quot;&amp;gt;WARNING:&amp;lt;/span&amp;gt; If running your application in a supercomputer with limited-time job queues, long simulations will require a restart. You &amp;#039;&amp;#039;&amp;#039;cannot&amp;#039;&amp;#039;&amp;#039; change the values of [[Variables#ntimes|NTIMES]] or [[Variables#dstart|DSTART]] because the multi-file will fail. If [[Variables#dstart|DSTART]] is changed, it will reset the timestep internal counter &amp;lt;span class=&amp;quot;red&amp;quot;&amp;gt;iic(ng)&amp;lt;/span&amp;gt;, and we are in deep trouble! Notice that the value [[Variables#nRST|NRST]] is crucial for the restart of ROMS with multi-file. In addition, we need the following mathematical equalities:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;span class=&amp;quot;red&amp;quot;&amp;gt;WARNING:&amp;lt;/span&amp;gt; If running your application in a supercomputer with limited-time job queues, long simulations will require a restart. You &amp;#039;&amp;#039;&amp;#039;cannot&amp;#039;&amp;#039;&amp;#039; change the values of [[Variables#ntimes|NTIMES]] or [[Variables#dstart|DSTART]] because the multi-file will fail. If [[Variables#dstart|DSTART]] is changed, it will reset the timestep internal counter &amp;lt;span class=&amp;quot;red&amp;quot;&amp;gt;iic(ng)&amp;lt;/span&amp;gt;, and we are in deep trouble! Notice that the value [[Variables#nRST|NRST]] is crucial for the restart of ROMS with multi-file. In addition, we need the following mathematical equalities:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;div class=&amp;quot;box&amp;quot;&amp;gt;     MOD([[Variables#nRST|NRST]], [[Variables#nHIS|NHIS]]) = 0&amp;lt;br /&amp;gt;     MOD([[Variables#nRST|NRST]], [[Variables#nQCK|NQCK]]) = 0&amp;lt;br /&amp;gt;     MOD([[Variables#nRST|NRST]], [[Variables#nAVG|NAVG]]) = 0&amp;lt;br /&amp;gt;     MOD([[Variables#nRST|NRST]], [[Variables#nDIA|NDIA]]) = 0&amp;lt;br /&amp;gt;&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;div class=&amp;quot;box&amp;quot;&amp;gt;     MOD([[Variables#nRST|NRST]], [[Variables#nHIS|NHIS]]) = 0&amp;lt;br /&amp;gt;     MOD([[Variables#nRST|NRST]], [[Variables#nQCK|NQCK]]) = 0&amp;lt;br /&amp;gt;     MOD([[Variables#nRST|NRST]], [[Variables#nAVG|NAVG]]) = 0&amp;lt;br /&amp;gt;     MOD([[Variables#nRST|NRST]], [[Variables#nDIA|NDIA]]) = 0&amp;lt;br /&amp;gt;&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Also, it will be trivial to restart if [[Variables#nAVG|NAVG]] = [[Variables#nDIA|NDIA]] = [[Variables#nRST|NRST]] because of the accumulation sums when computing time-averaging fields. If balancing terms and budgets from output data, you will need [[Variables#nAVG|NAVG]] = [[Variables#nDIA|NDIA]] too.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Also, it will be trivial to restart if [[Variables#nAVG|NAVG]] = [[Variables#nDIA|NDIA]] = [[Variables#nRST|NRST]] because of the accumulation sums when computing time-averaging fields. If balancing terms and budgets from output data, you will need [[Variables#nAVG|NAVG]] = [[Variables#nDIA|NDIA]] too.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Arango</name></author>
	</entry>
	<entry>
		<id>https://www.myroms.org/wiki/index.php?title=IO&amp;diff=6563&amp;oldid=prev</id>
		<title>Arango: /* Output Multi-Files */</title>
		<link rel="alternate" type="text/html" href="https://www.myroms.org/wiki/index.php?title=IO&amp;diff=6563&amp;oldid=prev"/>
		<updated>2023-03-11T20:49:59Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Output Multi-Files&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 20:49, 11 March 2023&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l46&quot;&gt;Line 46:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 46:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Output history, average, and diagnostic file parameters.&amp;lt;div class=&amp;quot;box&amp;quot;&amp;gt;     [[Variables#ldefout|LDEFOUT]] == T             ! File creation/append switch&amp;lt;br /&amp;gt;        [[Variables#nHIS|NHIS]] == 72            ! Number of timesteps between writing history records &amp;lt;span class=&amp;quot;mediumOrchid&amp;quot;&amp;gt;(every 6 hours)&amp;lt;/span&amp;gt;&amp;lt;br /&amp;gt;     [[Variables#ndefHIS|NDEFHIS]] == 288           ! Number of timesteps between the creation of new history files &amp;lt;span class=&amp;quot;mediumOrchid&amp;quot;&amp;gt;(daily files)&amp;lt;/span&amp;gt;&amp;lt;br /&amp;gt;        [[Variables#nQCK|NQCK]] == 36            ! Number of timesteps between writing quicksave records &amp;lt;span class=&amp;quot;mediumOrchid&amp;quot;&amp;gt;(every 3 hours)&amp;lt;/span&amp;gt;&amp;lt;br /&amp;gt;     [[Variables#ndefQCK|NDEFQCK]] == 288           ! Number of timesteps between the creation of new quicksave file &amp;lt;span class=&amp;quot;mediumOrchid&amp;quot;&amp;gt;(daily)&amp;lt;/span&amp;gt;&amp;lt;span class=&amp;quot;mediumOrchid&amp;quot;&amp;gt;(daily, single record files)&amp;lt;/span&amp;gt;&amp;lt;br /&amp;gt;      [[Variables#ntsAVG|NTSAVG]] == 1             ! Starting averages timestep&amp;lt;br /&amp;gt;        [[Variables#nAVG|NAVG]] == 288           ! Number of timesteps between writing averages records &amp;lt;span class=&amp;quot;mediumOrchid&amp;quot;&amp;gt;(daily averages)&amp;lt;/span&amp;gt;&amp;lt;br /&amp;gt;     [[Variables#ndefAVG|NDEFAVG]] == 288           ! Number of timesteps between the creation of new averages file &amp;lt;span class=&amp;quot;mediumOrchid&amp;quot;&amp;gt;(daily, single record files)&amp;lt;/span&amp;gt;&amp;lt;br /&amp;gt;      [[Variables#ntsDIA|NTSDIA]] == 1             ! Starting diagnostics timestep&amp;lt;br /&amp;gt;        [[Variables#nDIA|NDIA]] == 288           ! Number of timesteps between writing diagnostics records &amp;lt;span class=&amp;quot;mediumOrchid&amp;quot;&amp;gt;(daily averages)&amp;lt;/span&amp;gt;&amp;lt;br /&amp;gt;     [[Variables#ndefDIA|NDEFDIA]] == 288           ! Number of timesteps between the creation of new diagnostics file &amp;lt;span class=&amp;quot;mediumOrchid&amp;quot;&amp;gt;(daily, single record files)&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Output history, average, and diagnostic file parameters.&amp;lt;div class=&amp;quot;box&amp;quot;&amp;gt;     [[Variables#ldefout|LDEFOUT]] == T             ! File creation/append switch&amp;lt;br /&amp;gt;        [[Variables#nHIS|NHIS]] == 72            ! Number of timesteps between writing history records &amp;lt;span class=&amp;quot;mediumOrchid&amp;quot;&amp;gt;(every 6 hours)&amp;lt;/span&amp;gt;&amp;lt;br /&amp;gt;     [[Variables#ndefHIS|NDEFHIS]] == 288           ! Number of timesteps between the creation of new history files &amp;lt;span class=&amp;quot;mediumOrchid&amp;quot;&amp;gt;(daily files)&amp;lt;/span&amp;gt;&amp;lt;br /&amp;gt;        [[Variables#nQCK|NQCK]] == 36            ! Number of timesteps between writing quicksave records &amp;lt;span class=&amp;quot;mediumOrchid&amp;quot;&amp;gt;(every 3 hours)&amp;lt;/span&amp;gt;&amp;lt;br /&amp;gt;     [[Variables#ndefQCK|NDEFQCK]] == 288           ! Number of timesteps between the creation of new quicksave file &amp;lt;span class=&amp;quot;mediumOrchid&amp;quot;&amp;gt;(daily)&amp;lt;/span&amp;gt;&amp;lt;span class=&amp;quot;mediumOrchid&amp;quot;&amp;gt;(daily, single record files)&amp;lt;/span&amp;gt;&amp;lt;br /&amp;gt;      [[Variables#ntsAVG|NTSAVG]] == 1             ! Starting averages timestep&amp;lt;br /&amp;gt;        [[Variables#nAVG|NAVG]] == 288           ! Number of timesteps between writing averages records &amp;lt;span class=&amp;quot;mediumOrchid&amp;quot;&amp;gt;(daily averages)&amp;lt;/span&amp;gt;&amp;lt;br /&amp;gt;     [[Variables#ndefAVG|NDEFAVG]] == 288           ! Number of timesteps between the creation of new averages file &amp;lt;span class=&amp;quot;mediumOrchid&amp;quot;&amp;gt;(daily, single record files)&amp;lt;/span&amp;gt;&amp;lt;br /&amp;gt;      [[Variables#ntsDIA|NTSDIA]] == 1             ! Starting diagnostics timestep&amp;lt;br /&amp;gt;        [[Variables#nDIA|NDIA]] == 288           ! Number of timesteps between writing diagnostics records &amp;lt;span class=&amp;quot;mediumOrchid&amp;quot;&amp;gt;(daily averages)&amp;lt;/span&amp;gt;&amp;lt;br /&amp;gt;     [[Variables#ndefDIA|NDEFDIA]] == 288           ! Number of timesteps between the creation of new diagnostics file &amp;lt;span class=&amp;quot;mediumOrchid&amp;quot;&amp;gt;(daily, single record files)&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Timestamp assigned for model initialization, reference time origin for tidal forcing, and model reference time for output NetCDF units attribute.&amp;lt;div class=&quot;box&quot;&amp;gt;      [[Variables#dstart|DSTART]] =  365.0d0             ! days &amp;lt;span class=&quot;mediumOrchid&quot;&amp;gt;(ROMS is initialized on 2007-01-01 00:00:00Z)&amp;lt;/span&amp;gt;&amp;lt;br /&amp;gt;  [[Variables#tide_start|TIDE_START]] =  0.0d0               ! days&amp;lt;br /&amp;gt;    [[Variables#time_ref|TIME_REF]] =  20060101.0d0        ! yyyymmdd.dd &amp;lt;span class=&quot;mediumOrchid&quot;&amp;gt;(Very important: ROMS time is seconds since 2006-01-01 00:00:00Z)&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Timestamp assigned for model initialization, reference time origin for tidal forcing, and model reference time for output NetCDF units attribute.&amp;lt;div class=&quot;box&quot;&amp;gt;      [[Variables#dstart|DSTART]] =  365.0d0             ! days &amp;lt;span class=&quot;mediumOrchid&quot;&amp;gt;(ROMS is initialized on 2007-01-01 00:00:00Z)&amp;lt;/span&amp;gt;&amp;lt;br /&amp;gt;  [[Variables#tide_start|TIDE_START]] =  0.0d0               ! days &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;span class=&quot;mediumOrchid&quot;&amp;gt;(zero phase date is set when preparing the tidal data for 2006-01-01)&amp;lt;/span&amp;gt;&lt;/ins&gt;&amp;lt;br /&amp;gt;    [[Variables#time_ref|TIME_REF]] =  20060101.0d0        ! yyyymmdd.dd &amp;lt;span class=&quot;mediumOrchid&quot;&amp;gt;(Very important: ROMS time is seconds since 2006-01-01 00:00:00Z)&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Notice that all the parameters are an exact integer multiple from each other:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Notice that all the parameters are an exact integer multiple from each other:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Arango</name></author>
	</entry>
	<entry>
		<id>https://www.myroms.org/wiki/index.php?title=IO&amp;diff=6562&amp;oldid=prev</id>
		<title>Arango: /* Output Multi-Files */</title>
		<link rel="alternate" type="text/html" href="https://www.myroms.org/wiki/index.php?title=IO&amp;diff=6562&amp;oldid=prev"/>
		<updated>2023-03-11T20:43:30Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Output Multi-Files&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 20:43, 11 March 2023&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l46&quot;&gt;Line 46:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 46:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Output history, average, and diagnostic file parameters.&amp;lt;div class=&amp;quot;box&amp;quot;&amp;gt;     [[Variables#ldefout|LDEFOUT]] == T             ! File creation/append switch&amp;lt;br /&amp;gt;        [[Variables#nHIS|NHIS]] == 72            ! Number of timesteps between writing history records &amp;lt;span class=&amp;quot;mediumOrchid&amp;quot;&amp;gt;(every 6 hours)&amp;lt;/span&amp;gt;&amp;lt;br /&amp;gt;     [[Variables#ndefHIS|NDEFHIS]] == 288           ! Number of timesteps between the creation of new history files &amp;lt;span class=&amp;quot;mediumOrchid&amp;quot;&amp;gt;(daily files)&amp;lt;/span&amp;gt;&amp;lt;br /&amp;gt;        [[Variables#nQCK|NQCK]] == 36            ! Number of timesteps between writing quicksave records &amp;lt;span class=&amp;quot;mediumOrchid&amp;quot;&amp;gt;(every 3 hours)&amp;lt;/span&amp;gt;&amp;lt;br /&amp;gt;     [[Variables#ndefQCK|NDEFQCK]] == 288           ! Number of timesteps between the creation of new quicksave file &amp;lt;span class=&amp;quot;mediumOrchid&amp;quot;&amp;gt;(daily)&amp;lt;/span&amp;gt;&amp;lt;span class=&amp;quot;mediumOrchid&amp;quot;&amp;gt;(daily, single record files)&amp;lt;/span&amp;gt;&amp;lt;br /&amp;gt;      [[Variables#ntsAVG|NTSAVG]] == 1             ! Starting averages timestep&amp;lt;br /&amp;gt;        [[Variables#nAVG|NAVG]] == 288           ! Number of timesteps between writing averages records &amp;lt;span class=&amp;quot;mediumOrchid&amp;quot;&amp;gt;(daily averages)&amp;lt;/span&amp;gt;&amp;lt;br /&amp;gt;     [[Variables#ndefAVG|NDEFAVG]] == 288           ! Number of timesteps between the creation of new averages file &amp;lt;span class=&amp;quot;mediumOrchid&amp;quot;&amp;gt;(daily, single record files)&amp;lt;/span&amp;gt;&amp;lt;br /&amp;gt;      [[Variables#ntsDIA|NTSDIA]] == 1             ! Starting diagnostics timestep&amp;lt;br /&amp;gt;        [[Variables#nDIA|NDIA]] == 288           ! Number of timesteps between writing diagnostics records &amp;lt;span class=&amp;quot;mediumOrchid&amp;quot;&amp;gt;(daily averages)&amp;lt;/span&amp;gt;&amp;lt;br /&amp;gt;     [[Variables#ndefDIA|NDEFDIA]] == 288           ! Number of timesteps between the creation of new diagnostics file &amp;lt;span class=&amp;quot;mediumOrchid&amp;quot;&amp;gt;(daily, single record files)&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Output history, average, and diagnostic file parameters.&amp;lt;div class=&amp;quot;box&amp;quot;&amp;gt;     [[Variables#ldefout|LDEFOUT]] == T             ! File creation/append switch&amp;lt;br /&amp;gt;        [[Variables#nHIS|NHIS]] == 72            ! Number of timesteps between writing history records &amp;lt;span class=&amp;quot;mediumOrchid&amp;quot;&amp;gt;(every 6 hours)&amp;lt;/span&amp;gt;&amp;lt;br /&amp;gt;     [[Variables#ndefHIS|NDEFHIS]] == 288           ! Number of timesteps between the creation of new history files &amp;lt;span class=&amp;quot;mediumOrchid&amp;quot;&amp;gt;(daily files)&amp;lt;/span&amp;gt;&amp;lt;br /&amp;gt;        [[Variables#nQCK|NQCK]] == 36            ! Number of timesteps between writing quicksave records &amp;lt;span class=&amp;quot;mediumOrchid&amp;quot;&amp;gt;(every 3 hours)&amp;lt;/span&amp;gt;&amp;lt;br /&amp;gt;     [[Variables#ndefQCK|NDEFQCK]] == 288           ! Number of timesteps between the creation of new quicksave file &amp;lt;span class=&amp;quot;mediumOrchid&amp;quot;&amp;gt;(daily)&amp;lt;/span&amp;gt;&amp;lt;span class=&amp;quot;mediumOrchid&amp;quot;&amp;gt;(daily, single record files)&amp;lt;/span&amp;gt;&amp;lt;br /&amp;gt;      [[Variables#ntsAVG|NTSAVG]] == 1             ! Starting averages timestep&amp;lt;br /&amp;gt;        [[Variables#nAVG|NAVG]] == 288           ! Number of timesteps between writing averages records &amp;lt;span class=&amp;quot;mediumOrchid&amp;quot;&amp;gt;(daily averages)&amp;lt;/span&amp;gt;&amp;lt;br /&amp;gt;     [[Variables#ndefAVG|NDEFAVG]] == 288           ! Number of timesteps between the creation of new averages file &amp;lt;span class=&amp;quot;mediumOrchid&amp;quot;&amp;gt;(daily, single record files)&amp;lt;/span&amp;gt;&amp;lt;br /&amp;gt;      [[Variables#ntsDIA|NTSDIA]] == 1             ! Starting diagnostics timestep&amp;lt;br /&amp;gt;        [[Variables#nDIA|NDIA]] == 288           ! Number of timesteps between writing diagnostics records &amp;lt;span class=&amp;quot;mediumOrchid&amp;quot;&amp;gt;(daily averages)&amp;lt;/span&amp;gt;&amp;lt;br /&amp;gt;     [[Variables#ndefDIA|NDEFDIA]] == 288           ! Number of timesteps between the creation of new diagnostics file &amp;lt;span class=&amp;quot;mediumOrchid&amp;quot;&amp;gt;(daily, single record files)&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Timestamp assigned for model initialization, reference time origin for tidal forcing, and model reference time for output NetCDF units attribute.&amp;lt;div class=&quot;box&quot;&amp;gt;      [[Variables#dstart|DSTART]] =  365.0d0             ! days &amp;lt;span class=&quot;mediumOrchid&quot;&amp;gt;(ROMS is initialized on 2007-01-01 00:00:00Z)&amp;lt;/span&amp;gt;&amp;lt;br /&amp;gt;  [[Variables#tide_start|TIDE_START]] =  0.0d0               ! days&amp;lt;br /&amp;gt;    [[Variables#time_ref|TIME_REF]] =  20060101.0d0        ! yyyymmdd.dd&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Timestamp assigned for model initialization, reference time origin for tidal forcing, and model reference time for output NetCDF units attribute.&amp;lt;div class=&quot;box&quot;&amp;gt;      [[Variables#dstart|DSTART]] =  365.0d0             ! days &amp;lt;span class=&quot;mediumOrchid&quot;&amp;gt;(ROMS is initialized on 2007-01-01 00:00:00Z)&amp;lt;/span&amp;gt;&amp;lt;br /&amp;gt;  [[Variables#tide_start|TIDE_START]] =  0.0d0               ! days&amp;lt;br /&amp;gt;    [[Variables#time_ref|TIME_REF]] =  20060101.0d0        ! yyyymmdd.dd &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;span class=&quot;mediumOrchid&quot;&amp;gt;(Very important: ROMS time is seconds since 2006-01-01 00:00:00Z)&amp;lt;/span&amp;gt;&lt;/ins&gt;&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Notice that all the parameters are an exact integer multiple from each other:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Notice that all the parameters are an exact integer multiple from each other:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Arango</name></author>
	</entry>
	<entry>
		<id>https://www.myroms.org/wiki/index.php?title=IO&amp;diff=6561&amp;oldid=prev</id>
		<title>Arango: /* Output Multi-Files */</title>
		<link rel="alternate" type="text/html" href="https://www.myroms.org/wiki/index.php?title=IO&amp;diff=6561&amp;oldid=prev"/>
		<updated>2023-03-11T20:39:56Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Output Multi-Files&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 20:39, 11 March 2023&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l46&quot;&gt;Line 46:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 46:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Output history, average, and diagnostic file parameters.&amp;lt;div class=&amp;quot;box&amp;quot;&amp;gt;     [[Variables#ldefout|LDEFOUT]] == T             ! File creation/append switch&amp;lt;br /&amp;gt;        [[Variables#nHIS|NHIS]] == 72            ! Number of timesteps between writing history records &amp;lt;span class=&amp;quot;mediumOrchid&amp;quot;&amp;gt;(every 6 hours)&amp;lt;/span&amp;gt;&amp;lt;br /&amp;gt;     [[Variables#ndefHIS|NDEFHIS]] == 288           ! Number of timesteps between the creation of new history files &amp;lt;span class=&amp;quot;mediumOrchid&amp;quot;&amp;gt;(daily files)&amp;lt;/span&amp;gt;&amp;lt;br /&amp;gt;        [[Variables#nQCK|NQCK]] == 36            ! Number of timesteps between writing quicksave records &amp;lt;span class=&amp;quot;mediumOrchid&amp;quot;&amp;gt;(every 3 hours)&amp;lt;/span&amp;gt;&amp;lt;br /&amp;gt;     [[Variables#ndefQCK|NDEFQCK]] == 288           ! Number of timesteps between the creation of new quicksave file &amp;lt;span class=&amp;quot;mediumOrchid&amp;quot;&amp;gt;(daily)&amp;lt;/span&amp;gt;&amp;lt;span class=&amp;quot;mediumOrchid&amp;quot;&amp;gt;(daily, single record files)&amp;lt;/span&amp;gt;&amp;lt;br /&amp;gt;      [[Variables#ntsAVG|NTSAVG]] == 1             ! Starting averages timestep&amp;lt;br /&amp;gt;        [[Variables#nAVG|NAVG]] == 288           ! Number of timesteps between writing averages records &amp;lt;span class=&amp;quot;mediumOrchid&amp;quot;&amp;gt;(daily averages)&amp;lt;/span&amp;gt;&amp;lt;br /&amp;gt;     [[Variables#ndefAVG|NDEFAVG]] == 288           ! Number of timesteps between the creation of new averages file &amp;lt;span class=&amp;quot;mediumOrchid&amp;quot;&amp;gt;(daily, single record files)&amp;lt;/span&amp;gt;&amp;lt;br /&amp;gt;      [[Variables#ntsDIA|NTSDIA]] == 1             ! Starting diagnostics timestep&amp;lt;br /&amp;gt;        [[Variables#nDIA|NDIA]] == 288           ! Number of timesteps between writing diagnostics records &amp;lt;span class=&amp;quot;mediumOrchid&amp;quot;&amp;gt;(daily averages)&amp;lt;/span&amp;gt;&amp;lt;br /&amp;gt;     [[Variables#ndefDIA|NDEFDIA]] == 288           ! Number of timesteps between the creation of new diagnostics file &amp;lt;span class=&amp;quot;mediumOrchid&amp;quot;&amp;gt;(daily, single record files)&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Output history, average, and diagnostic file parameters.&amp;lt;div class=&amp;quot;box&amp;quot;&amp;gt;     [[Variables#ldefout|LDEFOUT]] == T             ! File creation/append switch&amp;lt;br /&amp;gt;        [[Variables#nHIS|NHIS]] == 72            ! Number of timesteps between writing history records &amp;lt;span class=&amp;quot;mediumOrchid&amp;quot;&amp;gt;(every 6 hours)&amp;lt;/span&amp;gt;&amp;lt;br /&amp;gt;     [[Variables#ndefHIS|NDEFHIS]] == 288           ! Number of timesteps between the creation of new history files &amp;lt;span class=&amp;quot;mediumOrchid&amp;quot;&amp;gt;(daily files)&amp;lt;/span&amp;gt;&amp;lt;br /&amp;gt;        [[Variables#nQCK|NQCK]] == 36            ! Number of timesteps between writing quicksave records &amp;lt;span class=&amp;quot;mediumOrchid&amp;quot;&amp;gt;(every 3 hours)&amp;lt;/span&amp;gt;&amp;lt;br /&amp;gt;     [[Variables#ndefQCK|NDEFQCK]] == 288           ! Number of timesteps between the creation of new quicksave file &amp;lt;span class=&amp;quot;mediumOrchid&amp;quot;&amp;gt;(daily)&amp;lt;/span&amp;gt;&amp;lt;span class=&amp;quot;mediumOrchid&amp;quot;&amp;gt;(daily, single record files)&amp;lt;/span&amp;gt;&amp;lt;br /&amp;gt;      [[Variables#ntsAVG|NTSAVG]] == 1             ! Starting averages timestep&amp;lt;br /&amp;gt;        [[Variables#nAVG|NAVG]] == 288           ! Number of timesteps between writing averages records &amp;lt;span class=&amp;quot;mediumOrchid&amp;quot;&amp;gt;(daily averages)&amp;lt;/span&amp;gt;&amp;lt;br /&amp;gt;     [[Variables#ndefAVG|NDEFAVG]] == 288           ! Number of timesteps between the creation of new averages file &amp;lt;span class=&amp;quot;mediumOrchid&amp;quot;&amp;gt;(daily, single record files)&amp;lt;/span&amp;gt;&amp;lt;br /&amp;gt;      [[Variables#ntsDIA|NTSDIA]] == 1             ! Starting diagnostics timestep&amp;lt;br /&amp;gt;        [[Variables#nDIA|NDIA]] == 288           ! Number of timesteps between writing diagnostics records &amp;lt;span class=&amp;quot;mediumOrchid&amp;quot;&amp;gt;(daily averages)&amp;lt;/span&amp;gt;&amp;lt;br /&amp;gt;     [[Variables#ndefDIA|NDEFDIA]] == 288           ! Number of timesteps between the creation of new diagnostics file &amp;lt;span class=&amp;quot;mediumOrchid&amp;quot;&amp;gt;(daily, single record files)&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Timestamp assigned for model initialization, reference time origin for tidal forcing, and model reference time for output NetCDF units attribute.&amp;lt;div class=&quot;box&quot;&amp;gt;      [[Variables#dstart|DSTART]] =  &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;366&lt;/del&gt;.0d0             ! days&amp;lt;br /&amp;gt;  [[Variables#tide_start|TIDE_START]] =  0.0d0               ! days&amp;lt;br /&amp;gt;    [[Variables#time_ref|TIME_REF]] =  20060101.0d0        ! yyyymmdd.dd&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Timestamp assigned for model initialization, reference time origin for tidal forcing, and model reference time for output NetCDF units attribute.&amp;lt;div class=&quot;box&quot;&amp;gt;      [[Variables#dstart|DSTART]] =  &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;365&lt;/ins&gt;.0d0             ! days &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;span class=&quot;mediumOrchid&quot;&amp;gt;(ROMS is initialized on 2007-01-01 00:00:00Z)&amp;lt;/span&amp;gt;&lt;/ins&gt;&amp;lt;br /&amp;gt;  [[Variables#tide_start|TIDE_START]] =  0.0d0               ! days&amp;lt;br /&amp;gt;    [[Variables#time_ref|TIME_REF]] =  20060101.0d0        ! yyyymmdd.dd&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Notice that all the parameters are an exact integer multiple from each other:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Notice that all the parameters are an exact integer multiple from each other:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Arango</name></author>
	</entry>
	<entry>
		<id>https://www.myroms.org/wiki/index.php?title=IO&amp;diff=6560&amp;oldid=prev</id>
		<title>Arango: /* Output Multi-Files */</title>
		<link rel="alternate" type="text/html" href="https://www.myroms.org/wiki/index.php?title=IO&amp;diff=6560&amp;oldid=prev"/>
		<updated>2023-03-11T20:32:49Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Output Multi-Files&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 20:32, 11 March 2023&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l42&quot;&gt;Line 42:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 42:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Timestepping parameters.&amp;lt;div class=&amp;quot;box&amp;quot;&amp;gt;      [[Variables#ntimes|NTIMES]] =  105120        ! Number of timesteps &amp;lt;span class=&amp;quot;mediumOrchid&amp;quot;&amp;gt;(288 steps per day; 365 days simulation)&amp;lt;/span&amp;gt;&amp;lt;br /&amp;gt;          [[Variables#dt|DT]] == 300.0d0       ! Timestep size (seconds)&amp;lt;br /&amp;gt;     [[Variables#ndtfast|NDTFAST]] == 30            ! Number of barotropic steps&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Timestepping parameters.&amp;lt;div class=&amp;quot;box&amp;quot;&amp;gt;      [[Variables#ntimes|NTIMES]] =  105120        ! Number of timesteps &amp;lt;span class=&amp;quot;mediumOrchid&amp;quot;&amp;gt;(288 steps per day; 365 days simulation)&amp;lt;/span&amp;gt;&amp;lt;br /&amp;gt;          [[Variables#dt|DT]] == 300.0d0       ! Timestep size (seconds)&amp;lt;br /&amp;gt;     [[Variables#ndtfast|NDTFAST]] == 30            ! Number of barotropic steps&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Flags controlling the frequency of output.&amp;lt;div class=&quot;box&quot;&amp;gt;       [[Variables#nrrec|NRREC]] =  0             ! Model restart flag&amp;lt;br /&amp;gt;   [[Variables#LcycleRST|LcycleRST]] == T             ! Switch to recycle restart time records&amp;lt;br /&amp;gt;        [[Variables#nRST|NRST]] == 288           ! Number of timesteps between writing restart records &amp;lt;span class=&quot;mediumOrchid&quot;&amp;gt;(daily)&amp;lt;/span&amp;gt;&amp;lt;br /&amp;gt;        [[Variables#nSTA|NSTA]] == 1             ! Number of timesteps between stations records&amp;lt;br /&amp;gt;        [[Variables#nFLT|NFLT]] == 1             ! Number of timesteps between floats records&amp;lt;br /&amp;gt;       [[Variables#ninfo|NINFO]] == 1             ! Number of timesteps between printing information diagnostics&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Flags controlling the frequency of output.&amp;lt;div class=&quot;box&quot;&amp;gt;       [[Variables#nrrec|NRREC]] =  0             ! Model restart flag&amp;lt;br /&amp;gt;   [[Variables#LcycleRST|LcycleRST]] == T             ! Switch to recycle restart time records &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;span class=&quot;mediumOrchid&quot;&amp;gt;(file with only 2 cycling time records)&amp;lt;/span&amp;gt;&lt;/ins&gt;&amp;lt;br /&amp;gt;        [[Variables#nRST|NRST]] == 288           ! Number of timesteps between writing restart records &amp;lt;span class=&quot;mediumOrchid&quot;&amp;gt;(daily)&amp;lt;/span&amp;gt;&amp;lt;br /&amp;gt;        [[Variables#nSTA|NSTA]] == 1             ! Number of timesteps between stations records&amp;lt;br /&amp;gt;        [[Variables#nFLT|NFLT]] == 1             ! Number of timesteps between floats records&amp;lt;br /&amp;gt;       [[Variables#ninfo|NINFO]] == 1             ! Number of timesteps between printing information diagnostics&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Output history, average, and diagnostic file parameters.&amp;lt;div class=&amp;quot;box&amp;quot;&amp;gt;     [[Variables#ldefout|LDEFOUT]] == T             ! File creation/append switch&amp;lt;br /&amp;gt;        [[Variables#nHIS|NHIS]] == 72            ! Number of timesteps between writing history records &amp;lt;span class=&amp;quot;mediumOrchid&amp;quot;&amp;gt;(every 6 hours)&amp;lt;/span&amp;gt;&amp;lt;br /&amp;gt;     [[Variables#ndefHIS|NDEFHIS]] == 288           ! Number of timesteps between the creation of new history files &amp;lt;span class=&amp;quot;mediumOrchid&amp;quot;&amp;gt;(daily files)&amp;lt;/span&amp;gt;&amp;lt;br /&amp;gt;        [[Variables#nQCK|NQCK]] == 36            ! Number of timesteps between writing quicksave records &amp;lt;span class=&amp;quot;mediumOrchid&amp;quot;&amp;gt;(every 3 hours)&amp;lt;/span&amp;gt;&amp;lt;br /&amp;gt;     [[Variables#ndefQCK|NDEFQCK]] == 288           ! Number of timesteps between the creation of new quicksave file &amp;lt;span class=&amp;quot;mediumOrchid&amp;quot;&amp;gt;(daily)&amp;lt;/span&amp;gt;&amp;lt;span class=&amp;quot;mediumOrchid&amp;quot;&amp;gt;(daily, single record files)&amp;lt;/span&amp;gt;&amp;lt;br /&amp;gt;      [[Variables#ntsAVG|NTSAVG]] == 1             ! Starting averages timestep&amp;lt;br /&amp;gt;        [[Variables#nAVG|NAVG]] == 288           ! Number of timesteps between writing averages records &amp;lt;span class=&amp;quot;mediumOrchid&amp;quot;&amp;gt;(daily averages)&amp;lt;/span&amp;gt;&amp;lt;br /&amp;gt;     [[Variables#ndefAVG|NDEFAVG]] == 288           ! Number of timesteps between the creation of new averages file &amp;lt;span class=&amp;quot;mediumOrchid&amp;quot;&amp;gt;(daily, single record files)&amp;lt;/span&amp;gt;&amp;lt;br /&amp;gt;      [[Variables#ntsDIA|NTSDIA]] == 1             ! Starting diagnostics timestep&amp;lt;br /&amp;gt;        [[Variables#nDIA|NDIA]] == 288           ! Number of timesteps between writing diagnostics records &amp;lt;span class=&amp;quot;mediumOrchid&amp;quot;&amp;gt;(daily averages)&amp;lt;/span&amp;gt;&amp;lt;br /&amp;gt;     [[Variables#ndefDIA|NDEFDIA]] == 288           ! Number of timesteps between the creation of new diagnostics file &amp;lt;span class=&amp;quot;mediumOrchid&amp;quot;&amp;gt;(daily, single record files)&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Output history, average, and diagnostic file parameters.&amp;lt;div class=&amp;quot;box&amp;quot;&amp;gt;     [[Variables#ldefout|LDEFOUT]] == T             ! File creation/append switch&amp;lt;br /&amp;gt;        [[Variables#nHIS|NHIS]] == 72            ! Number of timesteps between writing history records &amp;lt;span class=&amp;quot;mediumOrchid&amp;quot;&amp;gt;(every 6 hours)&amp;lt;/span&amp;gt;&amp;lt;br /&amp;gt;     [[Variables#ndefHIS|NDEFHIS]] == 288           ! Number of timesteps between the creation of new history files &amp;lt;span class=&amp;quot;mediumOrchid&amp;quot;&amp;gt;(daily files)&amp;lt;/span&amp;gt;&amp;lt;br /&amp;gt;        [[Variables#nQCK|NQCK]] == 36            ! Number of timesteps between writing quicksave records &amp;lt;span class=&amp;quot;mediumOrchid&amp;quot;&amp;gt;(every 3 hours)&amp;lt;/span&amp;gt;&amp;lt;br /&amp;gt;     [[Variables#ndefQCK|NDEFQCK]] == 288           ! Number of timesteps between the creation of new quicksave file &amp;lt;span class=&amp;quot;mediumOrchid&amp;quot;&amp;gt;(daily)&amp;lt;/span&amp;gt;&amp;lt;span class=&amp;quot;mediumOrchid&amp;quot;&amp;gt;(daily, single record files)&amp;lt;/span&amp;gt;&amp;lt;br /&amp;gt;      [[Variables#ntsAVG|NTSAVG]] == 1             ! Starting averages timestep&amp;lt;br /&amp;gt;        [[Variables#nAVG|NAVG]] == 288           ! Number of timesteps between writing averages records &amp;lt;span class=&amp;quot;mediumOrchid&amp;quot;&amp;gt;(daily averages)&amp;lt;/span&amp;gt;&amp;lt;br /&amp;gt;     [[Variables#ndefAVG|NDEFAVG]] == 288           ! Number of timesteps between the creation of new averages file &amp;lt;span class=&amp;quot;mediumOrchid&amp;quot;&amp;gt;(daily, single record files)&amp;lt;/span&amp;gt;&amp;lt;br /&amp;gt;      [[Variables#ntsDIA|NTSDIA]] == 1             ! Starting diagnostics timestep&amp;lt;br /&amp;gt;        [[Variables#nDIA|NDIA]] == 288           ! Number of timesteps between writing diagnostics records &amp;lt;span class=&amp;quot;mediumOrchid&amp;quot;&amp;gt;(daily averages)&amp;lt;/span&amp;gt;&amp;lt;br /&amp;gt;     [[Variables#ndefDIA|NDEFDIA]] == 288           ! Number of timesteps between the creation of new diagnostics file &amp;lt;span class=&amp;quot;mediumOrchid&amp;quot;&amp;gt;(daily, single record files)&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Arango</name></author>
	</entry>
	<entry>
		<id>https://www.myroms.org/wiki/index.php?title=IO&amp;diff=6559&amp;oldid=prev</id>
		<title>Arango: /* Output Multi-Files */</title>
		<link rel="alternate" type="text/html" href="https://www.myroms.org/wiki/index.php?title=IO&amp;diff=6559&amp;oldid=prev"/>
		<updated>2023-03-11T20:26:49Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Output Multi-Files&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 20:26, 11 March 2023&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l53&quot;&gt;Line 53:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 53:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;where the Fortran intrinsic function &amp;#039;&amp;#039;&amp;#039;MOD(&amp;lt;span class=&amp;quot;red&amp;quot;&amp;gt;X&amp;lt;/span&amp;gt;,&amp;lt;span class=&amp;quot;red&amp;quot;&amp;gt;Y&amp;lt;/span&amp;gt;)&amp;#039;&amp;#039;&amp;#039; computes the remainder of the division of &amp;lt;span class=&amp;quot;red&amp;quot;&amp;gt;X&amp;lt;/span&amp;gt; by &amp;lt;span class=&amp;quot;red&amp;quot;&amp;gt;Y&amp;lt;/span&amp;gt;, and has to be always &amp;#039;&amp;#039;&amp;#039;zero&amp;#039;&amp;#039;&amp;#039; for ROMS multi-file option to work. Notice that the first files in the &amp;lt;span class=&amp;quot;twilightBlue&amp;quot;&amp;gt;history&amp;lt;/span&amp;gt; data series (&amp;lt;span class=&amp;quot;violet&amp;quot;&amp;gt;roms_his_0001.nc&amp;lt;/span&amp;gt;) will contain 5-time records because of the initial conditions, and the rest of the files will have 4-time records. Similarly, the first file in the &amp;lt;span class=&amp;quot;twilightBlue&amp;quot;&amp;gt;quicksave&amp;lt;/span&amp;gt; series (&amp;lt;span class=&amp;quot;violet&amp;quot;&amp;gt;roms_qck_0001.nc&amp;lt;/span&amp;gt;) will contain 9-time records, and the rest will have 8-time records. The time-averaged data in the &amp;lt;span class=&amp;quot;twilightBlue&amp;quot;&amp;gt;averages&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;twilightBlue&amp;quot;&amp;gt;diagnostic&amp;lt;/span&amp;gt; files are single records files representing daily averaged fields. The above analysis also holds when converted to time in seconds since every parameter is multiplied by the [[Variables#dt|DT]] timestep.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;where the Fortran intrinsic function &amp;#039;&amp;#039;&amp;#039;MOD(&amp;lt;span class=&amp;quot;red&amp;quot;&amp;gt;X&amp;lt;/span&amp;gt;,&amp;lt;span class=&amp;quot;red&amp;quot;&amp;gt;Y&amp;lt;/span&amp;gt;)&amp;#039;&amp;#039;&amp;#039; computes the remainder of the division of &amp;lt;span class=&amp;quot;red&amp;quot;&amp;gt;X&amp;lt;/span&amp;gt; by &amp;lt;span class=&amp;quot;red&amp;quot;&amp;gt;Y&amp;lt;/span&amp;gt;, and has to be always &amp;#039;&amp;#039;&amp;#039;zero&amp;#039;&amp;#039;&amp;#039; for ROMS multi-file option to work. Notice that the first files in the &amp;lt;span class=&amp;quot;twilightBlue&amp;quot;&amp;gt;history&amp;lt;/span&amp;gt; data series (&amp;lt;span class=&amp;quot;violet&amp;quot;&amp;gt;roms_his_0001.nc&amp;lt;/span&amp;gt;) will contain 5-time records because of the initial conditions, and the rest of the files will have 4-time records. Similarly, the first file in the &amp;lt;span class=&amp;quot;twilightBlue&amp;quot;&amp;gt;quicksave&amp;lt;/span&amp;gt; series (&amp;lt;span class=&amp;quot;violet&amp;quot;&amp;gt;roms_qck_0001.nc&amp;lt;/span&amp;gt;) will contain 9-time records, and the rest will have 8-time records. The time-averaged data in the &amp;lt;span class=&amp;quot;twilightBlue&amp;quot;&amp;gt;averages&amp;lt;/span&amp;gt; and &amp;lt;span class=&amp;quot;twilightBlue&amp;quot;&amp;gt;diagnostic&amp;lt;/span&amp;gt; files are single records files representing daily averaged fields. The above analysis also holds when converted to time in seconds since every parameter is multiplied by the [[Variables#dt|DT]] timestep.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;span class=&quot;red&quot;&amp;gt;WARNING:&amp;lt;/span&amp;gt; If running your application in a supercomputer with limited-time job queues, long simulations will require a restart. You &#039;&#039;&#039;cannot&#039;&#039;&#039; change the values of [[Variables#ntimes|NTIMES]] or [[Variables#dstart|DSTART]] because the multi-file will fail. Notice that the value [[Variables#nRST|NRST]] is crucial for the restart of ROMS with multi-file. In addition, we need the following mathematical equalities:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;span class=&quot;red&quot;&amp;gt;WARNING:&amp;lt;/span&amp;gt; If running your application in a supercomputer with limited-time job queues, long simulations will require a restart. You &#039;&#039;&#039;cannot&#039;&#039;&#039; change the values of [[Variables#ntimes|NTIMES]] or [[Variables#dstart|DSTART]] because the multi-file will fail. &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;If [[Variables#dstart|DSTART]] is changed, it will reset the timestep internal counter &amp;lt;span class=&quot;red&quot;&amp;gt;iic(ng)&amp;lt;/span&amp;gt;, and we are in deep trouble! &lt;/ins&gt;Notice that the value [[Variables#nRST|NRST]] is crucial for the restart of ROMS with multi-file. In addition, we need the following mathematical equalities:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;div class=&amp;quot;box&amp;quot;&amp;gt;     MOD([[Variables#nRST|NRST]], [[Variables#nHIS|NHIS]]) = 0&amp;lt;br /&amp;gt;     MOD([[Variables#nRST|NRST]], [[Variables#nQCK|NQCK]]) = 0&amp;lt;br /&amp;gt;     MOD([[Variables#nRST|NRST]], [[Variables#nAVG|NAVG]]) = 0&amp;lt;br /&amp;gt;     MOD([[Variables#nRST|NRST]], [[Variables#nDIA|NDIA]]) = 0&amp;lt;br /&amp;gt;&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;div class=&amp;quot;box&amp;quot;&amp;gt;     MOD([[Variables#nRST|NRST]], [[Variables#nHIS|NHIS]]) = 0&amp;lt;br /&amp;gt;     MOD([[Variables#nRST|NRST]], [[Variables#nQCK|NQCK]]) = 0&amp;lt;br /&amp;gt;     MOD([[Variables#nRST|NRST]], [[Variables#nAVG|NAVG]]) = 0&amp;lt;br /&amp;gt;     MOD([[Variables#nRST|NRST]], [[Variables#nDIA|NDIA]]) = 0&amp;lt;br /&amp;gt;&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Also, it will be trivial to restart if [[Variables#nAVG|NAVG]] = [[Variables#nDIA|NDIA]] = [[Variables#nRST|NRST]] because of the accumulation sums when computing time-averaging fields. If balancing terms and budgets from output data, you will need [[Variables#nAVG|NAVG]] = [[Variables#nDIA|NDIA]] too.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Also, it will be trivial to restart if [[Variables#nAVG|NAVG]] = [[Variables#nDIA|NDIA]] = [[Variables#nRST|NRST]] because of the accumulation sums when computing time-averaging fields. If balancing terms and budgets from output data, you will need [[Variables#nAVG|NAVG]] = [[Variables#nDIA|NDIA]] too.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Arango</name></author>
	</entry>
	<entry>
		<id>https://www.myroms.org/wiki/index.php?title=IO&amp;diff=6558&amp;oldid=prev</id>
		<title>Arango: /* Output Multi-Files */</title>
		<link rel="alternate" type="text/html" href="https://www.myroms.org/wiki/index.php?title=IO&amp;diff=6558&amp;oldid=prev"/>
		<updated>2023-03-11T20:21:58Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Output Multi-Files&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 20:21, 11 March 2023&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l51&quot;&gt;Line 51:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 51:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;div class=&amp;quot;box&amp;quot;&amp;gt;     MOD([[Variables#ntimes|NTIMES]], [[Variables#ndefHIS|NDEFHIS]]) = 0 &amp;lt;br /&amp;gt;     MOD([[Variables#ntimes|NTIMES]], [[Variables#ndefHIS|NDEFQCK]]) = 0 &amp;lt;br /&amp;gt;     MOD([[Variables#ntimes|NTIMES]], [[Variables#ndefAVG|NDEFAVG]]) = 0 &amp;lt;br /&amp;gt;     MOD([[Variables#ntimes|NTIMES]], [[Variables#ndefDIA|NDEFDIA]]) = 0 &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;     MOD([[Variables#ntimes|NTIMES]], [[Variables#nRST|NRST]]) = 0 &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;     MOD([[Variables#ndefHIS|NDEFHIS]], [[Variables#nHIS|NHIS]]) = 0 &amp;lt;br /&amp;gt;     MOD([[Variables#ndefQCK|NDEFQCK]], [[Variables#nQCK|NQCK]]) = 0 &amp;lt;br /&amp;gt;     MOD([[Variables#ndefAVH|NDEFAVG]], [[Variables#nAVG|NAVG]]) = 0 &amp;lt;br /&amp;gt;     MOD([[Variables#ndefDIA|NDEFDIA]], [[Variables#nHIS|NDIA]]) = 0 &amp;lt;br /&amp;gt;&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;div class=&amp;quot;box&amp;quot;&amp;gt;     MOD([[Variables#ntimes|NTIMES]], [[Variables#ndefHIS|NDEFHIS]]) = 0 &amp;lt;br /&amp;gt;     MOD([[Variables#ntimes|NTIMES]], [[Variables#ndefHIS|NDEFQCK]]) = 0 &amp;lt;br /&amp;gt;     MOD([[Variables#ntimes|NTIMES]], [[Variables#ndefAVG|NDEFAVG]]) = 0 &amp;lt;br /&amp;gt;     MOD([[Variables#ntimes|NTIMES]], [[Variables#ndefDIA|NDEFDIA]]) = 0 &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;     MOD([[Variables#ntimes|NTIMES]], [[Variables#nRST|NRST]]) = 0 &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;     MOD([[Variables#ndefHIS|NDEFHIS]], [[Variables#nHIS|NHIS]]) = 0 &amp;lt;br /&amp;gt;     MOD([[Variables#ndefQCK|NDEFQCK]], [[Variables#nQCK|NQCK]]) = 0 &amp;lt;br /&amp;gt;     MOD([[Variables#ndefAVH|NDEFAVG]], [[Variables#nAVG|NAVG]]) = 0 &amp;lt;br /&amp;gt;     MOD([[Variables#ndefDIA|NDEFDIA]], [[Variables#nHIS|NDIA]]) = 0 &amp;lt;br /&amp;gt;&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;where the Fortran intrinsic function &#039;&#039;&#039;MOD(&amp;lt;span class=&quot;red&quot;&amp;gt;X&amp;lt;/span&amp;gt;,&amp;lt;span class=&quot;red&quot;&amp;gt;Y&amp;lt;/span&amp;gt;)&#039;&#039;&#039; computes the remainder of the division of &amp;lt;span class=&quot;red&quot;&amp;gt;X&amp;lt;/span&amp;gt; by &amp;lt;span class=&quot;red&quot;&amp;gt;Y&amp;lt;/span&amp;gt;, and has to be always &#039;&#039;&#039;zero&#039;&#039;&#039; for ROMS multi-file option to work. Notice that the first files in the &amp;lt;span class=&quot;twilightBlue&quot;&amp;gt;history&amp;lt;/span&amp;gt; data series (&amp;lt;span class=&quot;violet&quot;&amp;gt;roms_his_0001.nc&amp;lt;/span&amp;gt;) will contain 5-time records because of the initial conditions, and the rest of the files will have 4-time records. Similarly, the first file in the &amp;lt;span class=&quot;twilightBlue&quot;&amp;gt;quicksave&amp;lt;/span&amp;gt; series (&amp;lt;span class=&quot;violet&quot;&amp;gt;roms_qck_0001.nc&amp;lt;/span&amp;gt;) will contain 9-time records, and the rest will have 8-time records. The time-averaged data in the averages and diagnostic files are single records files representing daily averaged fields. The above analysis also holds when converted to time in seconds since every parameter is multiplied by the [[Variables#dt|DT]] timestep.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;where the Fortran intrinsic function &#039;&#039;&#039;MOD(&amp;lt;span class=&quot;red&quot;&amp;gt;X&amp;lt;/span&amp;gt;,&amp;lt;span class=&quot;red&quot;&amp;gt;Y&amp;lt;/span&amp;gt;)&#039;&#039;&#039; computes the remainder of the division of &amp;lt;span class=&quot;red&quot;&amp;gt;X&amp;lt;/span&amp;gt; by &amp;lt;span class=&quot;red&quot;&amp;gt;Y&amp;lt;/span&amp;gt;, and has to be always &#039;&#039;&#039;zero&#039;&#039;&#039; for ROMS multi-file option to work. Notice that the first files in the &amp;lt;span class=&quot;twilightBlue&quot;&amp;gt;history&amp;lt;/span&amp;gt; data series (&amp;lt;span class=&quot;violet&quot;&amp;gt;roms_his_0001.nc&amp;lt;/span&amp;gt;) will contain 5-time records because of the initial conditions, and the rest of the files will have 4-time records. Similarly, the first file in the &amp;lt;span class=&quot;twilightBlue&quot;&amp;gt;quicksave&amp;lt;/span&amp;gt; series (&amp;lt;span class=&quot;violet&quot;&amp;gt;roms_qck_0001.nc&amp;lt;/span&amp;gt;) will contain 9-time records, and the rest will have 8-time records. The time-averaged data in the &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;span class=&quot;twilightBlue&quot;&amp;gt;&lt;/ins&gt;averages&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/span&amp;gt; &lt;/ins&gt;and &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;span class=&quot;twilightBlue&quot;&amp;gt;&lt;/ins&gt;diagnostic&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/span&amp;gt; &lt;/ins&gt;files are single records files representing daily averaged fields. The above analysis also holds when converted to time in seconds since every parameter is multiplied by the [[Variables#dt|DT]] timestep.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;span class=&quot;red&quot;&amp;gt;WARNING:&amp;lt;/span&amp;gt; If running your application in a supercomputer with limited-time job queues, long simulations will require a restart. You cannot change the values of [[Variables#ntimes|NTIMES]] or [[Variables#dstart|DSTART]] because the multi-file will fail. Notice that the value [[Variables#nRST|NRST]] is crucial for &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;all &lt;/del&gt;the restart of ROMS with multi-file. &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;We &lt;/del&gt;need the following mathematical equalities:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;span class=&quot;red&quot;&amp;gt;WARNING:&amp;lt;/span&amp;gt; If running your application in a supercomputer with limited-time job queues, long simulations will require a restart. You &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&#039;&#039;&#039;&lt;/ins&gt;cannot&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&#039;&#039;&#039; &lt;/ins&gt;change the values of [[Variables#ntimes|NTIMES]] or [[Variables#dstart|DSTART]] because the multi-file will fail. Notice that the value [[Variables#nRST|NRST]] is crucial for the restart of ROMS with multi-file. &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;In addition, we &lt;/ins&gt;need the following mathematical equalities:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;div class=&amp;quot;box&amp;quot;&amp;gt;     MOD([[Variables#nRST|NRST]], [[Variables#nHIS|NHIS]]) = 0&amp;lt;br /&amp;gt;     MOD([[Variables#nRST|NRST]], [[Variables#nQCK|NQCK]]) = 0&amp;lt;br /&amp;gt;     MOD([[Variables#nRST|NRST]], [[Variables#nAVG|NAVG]]) = 0&amp;lt;br /&amp;gt;     MOD([[Variables#nRST|NRST]], [[Variables#nDIA|NDIA]]) = 0&amp;lt;br /&amp;gt;&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;div class=&amp;quot;box&amp;quot;&amp;gt;     MOD([[Variables#nRST|NRST]], [[Variables#nHIS|NHIS]]) = 0&amp;lt;br /&amp;gt;     MOD([[Variables#nRST|NRST]], [[Variables#nQCK|NQCK]]) = 0&amp;lt;br /&amp;gt;     MOD([[Variables#nRST|NRST]], [[Variables#nAVG|NAVG]]) = 0&amp;lt;br /&amp;gt;     MOD([[Variables#nRST|NRST]], [[Variables#nDIA|NDIA]]) = 0&amp;lt;br /&amp;gt;&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Also, it will be trivial to restart if [[Variables#nAVG|NAVG]] = [[Variables#nDIA|NDIA]] = [[Variables#nRST|NRST]]. If balancing terms and budgets from output data, you will need [[Variables#nAVG|NAVG]] = [[Variables#nDIA|NDIA]] too.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Also, it will be trivial to restart if [[Variables#nAVG|NAVG]] = [[Variables#nDIA|NDIA]] = [[Variables#nRST|NRST]] &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;because of the accumulation sums when computing time-averaging fields&lt;/ins&gt;. If balancing terms and budgets from output data, you will need [[Variables#nAVG|NAVG]] = [[Variables#nDIA|NDIA]] too.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Arango</name></author>
	</entry>
	<entry>
		<id>https://www.myroms.org/wiki/index.php?title=IO&amp;diff=6557&amp;oldid=prev</id>
		<title>Arango: /* Output Multi-Files */</title>
		<link rel="alternate" type="text/html" href="https://www.myroms.org/wiki/index.php?title=IO&amp;diff=6557&amp;oldid=prev"/>
		<updated>2023-03-11T20:13:50Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Output Multi-Files&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 20:13, 11 March 2023&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l38&quot;&gt;Line 38:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 38:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Sometimes, it is advantageous to time-split ROMS output data (&amp;lt;span class=&amp;quot;twilightBlue&amp;quot;&amp;gt;averages&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;twilightBlue&amp;quot;&amp;gt;diagnostic&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;twilightBlue&amp;quot;&amp;gt;history&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;twilightBlue&amp;quot;&amp;gt;quicksave&amp;lt;/span&amp;gt;) into multiple NetCDF files to avoid creating huge files on disk for storage in applications with large grids. Smaller files are easy to handle and can be concatenated in OpenDAP catalogs.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Sometimes, it is advantageous to time-split ROMS output data (&amp;lt;span class=&amp;quot;twilightBlue&amp;quot;&amp;gt;averages&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;twilightBlue&amp;quot;&amp;gt;diagnostic&amp;lt;/span&amp;gt;, &amp;lt;span class=&amp;quot;twilightBlue&amp;quot;&amp;gt;history&amp;lt;/span&amp;gt;, and &amp;lt;span class=&amp;quot;twilightBlue&amp;quot;&amp;gt;quicksave&amp;lt;/span&amp;gt;) into multiple NetCDF files to avoid creating huge files on disk for storage in applications with large grids. Smaller files are easy to handle and can be concatenated in OpenDAP catalogs.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;For example, an application for a particular &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;area &lt;/del&gt;with a substantial grid size needs to be run for one year. The ROMS timestep is [[Variables#DT|DT]] = 300 seconds. Then, one could split the &amp;lt;span class=&quot;twilightBlue&quot;&amp;gt;history&amp;lt;/span&amp;gt; and quicksave data into daily NetCDF files with single or multiple time records every &#039;&#039;&#039;3&#039;&#039;&#039;, &#039;&#039;&#039;6&#039;&#039;&#039;,  or &#039;&#039;&#039;24&#039;&#039;&#039; hours. In this case, ROMS will generate a sequence of files with suffixes &amp;lt;span class=&quot;violet&quot;&amp;gt;_0001.nc&amp;lt;/span&amp;gt; to &amp;lt;span class=&quot;violet&quot;&amp;gt;_0365.nc&amp;lt;/span&amp;gt; filenames.  Therefore, we need the following parameters in [[roms.in|roms.in]]:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;For example, an application for a particular &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;region &lt;/ins&gt;with a substantial grid size needs to be run for one year. The ROMS timestep is [[Variables#DT|DT]] = 300 seconds&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;, as shown below&lt;/ins&gt;. Then, one could split the &amp;lt;span class=&quot;twilightBlue&quot;&amp;gt;history&amp;lt;/span&amp;gt; and &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;span class=&quot;twilightBlue&quot;&amp;gt;&lt;/ins&gt;quicksave&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/span&amp;gt; output &lt;/ins&gt;data into daily NetCDF files with single or multiple time records every &#039;&#039;&#039;3&#039;&#039;&#039;, &#039;&#039;&#039;6&#039;&#039;&#039;,  or &#039;&#039;&#039;24&#039;&#039;&#039; hours. In this case, ROMS will generate a sequence of files with suffixes &amp;lt;span class=&quot;violet&quot;&amp;gt;_0001.nc&amp;lt;/span&amp;gt; to &amp;lt;span class=&quot;violet&quot;&amp;gt;_0365.nc&amp;lt;/span&amp;gt; filenames.  Therefore, we need the following parameters in [[roms.in|roms.in]]:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Timestepping parameters.&amp;lt;div class=&amp;quot;box&amp;quot;&amp;gt;      [[Variables#ntimes|NTIMES]] =  105120        ! Number of timesteps &amp;lt;span class=&amp;quot;mediumOrchid&amp;quot;&amp;gt;(288 steps per day; 365 days simulation)&amp;lt;/span&amp;gt;&amp;lt;br /&amp;gt;          [[Variables#dt|DT]] == 300.0d0       ! Timestep size (seconds)&amp;lt;br /&amp;gt;     [[Variables#ndtfast|NDTFAST]] == 30            ! Number of barotropic steps&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Timestepping parameters.&amp;lt;div class=&amp;quot;box&amp;quot;&amp;gt;      [[Variables#ntimes|NTIMES]] =  105120        ! Number of timesteps &amp;lt;span class=&amp;quot;mediumOrchid&amp;quot;&amp;gt;(288 steps per day; 365 days simulation)&amp;lt;/span&amp;gt;&amp;lt;br /&amp;gt;          [[Variables#dt|DT]] == 300.0d0       ! Timestep size (seconds)&amp;lt;br /&amp;gt;     [[Variables#ndtfast|NDTFAST]] == 30            ! Number of barotropic steps&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l51&quot;&gt;Line 51:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 51:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;div class=&amp;quot;box&amp;quot;&amp;gt;     MOD([[Variables#ntimes|NTIMES]], [[Variables#ndefHIS|NDEFHIS]]) = 0 &amp;lt;br /&amp;gt;     MOD([[Variables#ntimes|NTIMES]], [[Variables#ndefHIS|NDEFQCK]]) = 0 &amp;lt;br /&amp;gt;     MOD([[Variables#ntimes|NTIMES]], [[Variables#ndefAVG|NDEFAVG]]) = 0 &amp;lt;br /&amp;gt;     MOD([[Variables#ntimes|NTIMES]], [[Variables#ndefDIA|NDEFDIA]]) = 0 &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;     MOD([[Variables#ntimes|NTIMES]], [[Variables#nRST|NRST]]) = 0 &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;     MOD([[Variables#ndefHIS|NDEFHIS]], [[Variables#nHIS|NHIS]]) = 0 &amp;lt;br /&amp;gt;     MOD([[Variables#ndefQCK|NDEFQCK]], [[Variables#nQCK|NQCK]]) = 0 &amp;lt;br /&amp;gt;     MOD([[Variables#ndefAVH|NDEFAVG]], [[Variables#nAVG|NAVG]]) = 0 &amp;lt;br /&amp;gt;     MOD([[Variables#ndefDIA|NDEFDIA]], [[Variables#nHIS|NDIA]]) = 0 &amp;lt;br /&amp;gt;&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;div class=&amp;quot;box&amp;quot;&amp;gt;     MOD([[Variables#ntimes|NTIMES]], [[Variables#ndefHIS|NDEFHIS]]) = 0 &amp;lt;br /&amp;gt;     MOD([[Variables#ntimes|NTIMES]], [[Variables#ndefHIS|NDEFQCK]]) = 0 &amp;lt;br /&amp;gt;     MOD([[Variables#ntimes|NTIMES]], [[Variables#ndefAVG|NDEFAVG]]) = 0 &amp;lt;br /&amp;gt;     MOD([[Variables#ntimes|NTIMES]], [[Variables#ndefDIA|NDEFDIA]]) = 0 &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;     MOD([[Variables#ntimes|NTIMES]], [[Variables#nRST|NRST]]) = 0 &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;     MOD([[Variables#ndefHIS|NDEFHIS]], [[Variables#nHIS|NHIS]]) = 0 &amp;lt;br /&amp;gt;     MOD([[Variables#ndefQCK|NDEFQCK]], [[Variables#nQCK|NQCK]]) = 0 &amp;lt;br /&amp;gt;     MOD([[Variables#ndefAVH|NDEFAVG]], [[Variables#nAVG|NAVG]]) = 0 &amp;lt;br /&amp;gt;     MOD([[Variables#ndefDIA|NDEFDIA]], [[Variables#nHIS|NDIA]]) = 0 &amp;lt;br /&amp;gt;&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;where the Fortran intrinsic function &#039;&#039;&#039;MOD(&amp;lt;span class=&quot;red&quot;&amp;gt;X&amp;lt;/span&amp;gt;,&amp;lt;span class=&quot;red&quot;&amp;gt;Y&amp;lt;/span&amp;gt;)&#039;&#039;&#039; computes the remainder of the division of &amp;lt;span class=&quot;red&quot;&amp;gt;X&amp;lt;/span&amp;gt; by &amp;lt;span class=&quot;red&quot;&amp;gt;Y&amp;lt;/span&amp;gt;, and has to be always &#039;&#039;&#039;zero&#039;&#039;&#039; for ROMS multi-file option to work. Notice that the first files in the &amp;lt;span class=&quot;twilightBlue&quot;&amp;gt;history&amp;lt;/span&amp;gt; data series (&amp;lt;span class=&quot;violet&quot;&amp;gt;roms_his_0001.nc&amp;lt;/span&amp;gt;) will contain 5-time records because of the initial conditions, and the rest of the files will have 4-time records. Similarly, the first file in the &amp;lt;span class=&quot;twilightBlue&quot;&amp;gt;quicksave&amp;lt;/span&amp;gt; series (&amp;lt;span class=&quot;violet&quot;&amp;gt;roms_qck_0001.nc&amp;lt;/span&amp;gt;) will contain 9-time records, and the rest will have 8-time records. The time-averaged data in the averages and diagnostic files are single records files representing daily averaged fields.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;where the Fortran intrinsic function &#039;&#039;&#039;MOD(&amp;lt;span class=&quot;red&quot;&amp;gt;X&amp;lt;/span&amp;gt;,&amp;lt;span class=&quot;red&quot;&amp;gt;Y&amp;lt;/span&amp;gt;)&#039;&#039;&#039; computes the remainder of the division of &amp;lt;span class=&quot;red&quot;&amp;gt;X&amp;lt;/span&amp;gt; by &amp;lt;span class=&quot;red&quot;&amp;gt;Y&amp;lt;/span&amp;gt;, and has to be always &#039;&#039;&#039;zero&#039;&#039;&#039; for ROMS multi-file option to work. Notice that the first files in the &amp;lt;span class=&quot;twilightBlue&quot;&amp;gt;history&amp;lt;/span&amp;gt; data series (&amp;lt;span class=&quot;violet&quot;&amp;gt;roms_his_0001.nc&amp;lt;/span&amp;gt;) will contain 5-time records because of the initial conditions, and the rest of the files will have 4-time records. Similarly, the first file in the &amp;lt;span class=&quot;twilightBlue&quot;&amp;gt;quicksave&amp;lt;/span&amp;gt; series (&amp;lt;span class=&quot;violet&quot;&amp;gt;roms_qck_0001.nc&amp;lt;/span&amp;gt;) will contain 9-time records, and the rest will have 8-time records. The time-averaged data in the averages and diagnostic files are single records files representing daily averaged fields&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;. The above analysis also holds when converted to time in seconds since every parameter is multiplied by the [[Variables#dt|DT]] timestep&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;span class=&amp;quot;red&amp;quot;&amp;gt;WARNING:&amp;lt;/span&amp;gt; If running your application in a supercomputer with limited-time job queues, long simulations will require a restart. You cannot change the values of [[Variables#ntimes|NTIMES]] or [[Variables#dstart|DSTART]] because the multi-file will fail. Notice that the value [[Variables#nRST|NRST]] is crucial for all the restart of ROMS with multi-file. We need the following mathematical equalities:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;span class=&amp;quot;red&amp;quot;&amp;gt;WARNING:&amp;lt;/span&amp;gt; If running your application in a supercomputer with limited-time job queues, long simulations will require a restart. You cannot change the values of [[Variables#ntimes|NTIMES]] or [[Variables#dstart|DSTART]] because the multi-file will fail. Notice that the value [[Variables#nRST|NRST]] is crucial for all the restart of ROMS with multi-file. We need the following mathematical equalities:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;div class=&amp;quot;box&amp;quot;&amp;gt;     MOD([[Variables#nRST|NRST]], [[Variables#nHIS|NHIS]]) = 0&amp;lt;br /&amp;gt;     MOD([[Variables#nRST|NRST]], [[Variables#nQCK|NQCK]]) = 0&amp;lt;br /&amp;gt;     MOD([[Variables#nRST|NRST]], [[Variables#nAVG|NAVG]]) = 0&amp;lt;br /&amp;gt;     MOD([[Variables#nRST|NRST]], [[Variables#nDIA|NDIA]]) = 0&amp;lt;br /&amp;gt;&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;div class=&amp;quot;box&amp;quot;&amp;gt;     MOD([[Variables#nRST|NRST]], [[Variables#nHIS|NHIS]]) = 0&amp;lt;br /&amp;gt;     MOD([[Variables#nRST|NRST]], [[Variables#nQCK|NQCK]]) = 0&amp;lt;br /&amp;gt;     MOD([[Variables#nRST|NRST]], [[Variables#nAVG|NAVG]]) = 0&amp;lt;br /&amp;gt;     MOD([[Variables#nRST|NRST]], [[Variables#nDIA|NDIA]]) = 0&amp;lt;br /&amp;gt;&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Also, it will be trivial to restart if [[Variables#nAVG|NAVG]] = [[Variables#nDIA|NDIA]] = [[Variables#nRST|NRST]]. If &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;doing &lt;/del&gt;balancing terms and budgets, you will need [[Variables#nAVG|NAVG]] = [[Variables#nDIA|NDIA]] too.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Also, it will be trivial to restart if [[Variables#nAVG|NAVG]] = [[Variables#nDIA|NDIA]] = [[Variables#nRST|NRST]]. If balancing terms and budgets &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;from output data&lt;/ins&gt;, you will need [[Variables#nAVG|NAVG]] = [[Variables#nDIA|NDIA]] too.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Arango</name></author>
	</entry>
	<entry>
		<id>https://www.myroms.org/wiki/index.php?title=IO&amp;diff=6556&amp;oldid=prev</id>
		<title>Arango: /* Output Multi-Files */</title>
		<link rel="alternate" type="text/html" href="https://www.myroms.org/wiki/index.php?title=IO&amp;diff=6556&amp;oldid=prev"/>
		<updated>2023-03-11T19:56:46Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Output Multi-Files&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 19:56, 11 March 2023&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l36&quot;&gt;Line 36:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 36:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Output Multi-Files==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Output Multi-Files==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Sometimes, it is advantageous to time-split ROMS output (&amp;lt;span class=&quot;twilightBlue&quot;&amp;gt;averages&amp;lt;/span&amp;gt;, &amp;lt;span class=&quot;twilightBlue&quot;&amp;gt;diagnostic&amp;lt;/span&amp;gt;, &amp;lt;span class=&quot;twilightBlue&quot;&amp;gt;history&amp;lt;/span&amp;gt;, and &amp;lt;span class=&quot;twilightBlue&quot;&amp;gt;quicksave&amp;lt;/span&amp;gt;) into multiple NetCDF files to avoid creating huge files on disk for storage in applications with large grids. Smaller files are easy to handle and can be concatenated in OpenDAP catalogs.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Sometimes, it is advantageous to time-split ROMS output &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;data &lt;/ins&gt;(&amp;lt;span class=&quot;twilightBlue&quot;&amp;gt;averages&amp;lt;/span&amp;gt;, &amp;lt;span class=&quot;twilightBlue&quot;&amp;gt;diagnostic&amp;lt;/span&amp;gt;, &amp;lt;span class=&quot;twilightBlue&quot;&amp;gt;history&amp;lt;/span&amp;gt;, and &amp;lt;span class=&quot;twilightBlue&quot;&amp;gt;quicksave&amp;lt;/span&amp;gt;) into multiple NetCDF files to avoid creating huge files on disk for storage in applications with large grids. Smaller files are easy to handle and can be concatenated in OpenDAP catalogs.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;For example, an application for a particular area with a substantial grid size needs to be run for one year. The ROMS timestep is [[Variables#DT|DT]] = 300 seconds. Then, one could split the &amp;lt;span class=&amp;quot;twilightBlue&amp;quot;&amp;gt;history&amp;lt;/span&amp;gt; and quicksave data into daily NetCDF files with single or multiple time records every &amp;#039;&amp;#039;&amp;#039;3&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;6&amp;#039;&amp;#039;&amp;#039;,  or &amp;#039;&amp;#039;&amp;#039;24&amp;#039;&amp;#039;&amp;#039; hours. In this case, ROMS will generate a sequence of files with suffixes &amp;lt;span class=&amp;quot;violet&amp;quot;&amp;gt;_0001.nc&amp;lt;/span&amp;gt; to &amp;lt;span class=&amp;quot;violet&amp;quot;&amp;gt;_0365.nc&amp;lt;/span&amp;gt; filenames.  Therefore, we need the following parameters in [[roms.in|roms.in]]:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;For example, an application for a particular area with a substantial grid size needs to be run for one year. The ROMS timestep is [[Variables#DT|DT]] = 300 seconds. Then, one could split the &amp;lt;span class=&amp;quot;twilightBlue&amp;quot;&amp;gt;history&amp;lt;/span&amp;gt; and quicksave data into daily NetCDF files with single or multiple time records every &amp;#039;&amp;#039;&amp;#039;3&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;6&amp;#039;&amp;#039;&amp;#039;,  or &amp;#039;&amp;#039;&amp;#039;24&amp;#039;&amp;#039;&amp;#039; hours. In this case, ROMS will generate a sequence of files with suffixes &amp;lt;span class=&amp;quot;violet&amp;quot;&amp;gt;_0001.nc&amp;lt;/span&amp;gt; to &amp;lt;span class=&amp;quot;violet&amp;quot;&amp;gt;_0365.nc&amp;lt;/span&amp;gt; filenames.  Therefore, we need the following parameters in [[roms.in|roms.in]]:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Arango</name></author>
	</entry>
</feed>