writeToFile
Write this distribution to a NetCDF file.
Declaration
ncfile = writeToFile(self,path,properties,options)
Parameters
pathpath to the NetCDF file to createpropertiesoptional additional property names to persistoptions.shouldOverwriteExistingoptional logical scalar that overwrites an existing file when trueoptions.attributesoptional global NetCDF attributes to add to the file
Returns
ncfileNetCDFFile handle for the written file
Discussion
writeToFile persists the canonical constructor state needed
to reconstruct the concrete distribution subtype. When rho
is nonempty, it is also serialized through the annotated
function-handle path.