WVModelOutputFile

Organize one NetCDF output file for a WVModel.


Declaration

WVModelOutputFile < handle

Overview

A WVModelOutputFile owns the writable NetCDF handle and one or more output groups. The file is opened when its first group initializes, so ncfile may be empty before output begins.

Most users create a configured file through WVModel:

outputFile = model.createNetCDFFileForModelOutput("myfile.nc",outputInterval=86400);

This adds an evenly spaced output group containing the wave-vortex coefficients. For explicit control, first create an empty file description and then add one or more groups:

outputFile = model.addNewOutputFile("myfile.nc");
outputGroup = outputFile.addNewEvenlySpacedOutputGroup( ...
"daily",initialTime=model.t,outputInterval=86400);

An empty output file has no schedule and writes nothing until a group is added. The physical NetCDF file is created lazily at the first scheduled output time, so ncfile remains empty beforehand. Close the file through the model or output-file facade when writing is complete.

Topics

Developer Topics

These items document internal implementation details and are not part of the primary public API.



This site uses Just the Docs, a documentation theme for Jekyll.