 |
vlmopen_ugrid
NAME
vlmopen_ugrid - Opens a ParVox unstructured grid definition
file.
SYNOPSIS
#include <vlmeta.h>
int vlmopen_ugrid(char *name, int dtype, int mode);
DESCRIPTION
Vlmopen_ugrid opens a ParVox unstructured grid definition
file and
returns a handle that can be used by
vlmget_ugdim and
vlmget_ugval. The name parameter
can be either the basename of the voxel data file, or the complete name, including
the .ugval.nc extension. For
example, to open the file ocean.ugval.nc, vlmopen_vox can be called
via vlmopen_env("ocean", ...) or vlmopen("ocean.ugval.nc",
...).
The dtype parameter
can take either VL_RAW or VL_NETCDF, indicating the data
file is in either the raw binary format or the NetCDF format, respectively.
However, VL_RAW is currently not supported. The mode parameter
is the NetCDF
file mode, either NC_WRITE or NC_NOWRITE.
NOTES
The raw binary format is not supported in the
current version of the VLMeta library.
SEE ALSO
vlmget_ugdim,
vlmget_ugval, vlmclose,
ParVox Tutorial: Input
Data Format
DIAGNOSTICS
Upon successful completion, the file handle for the
file is returned. Otherwise, a value of -1 is returned.
|
 |