NOTE: The PV-WAVE HDF interface is designed for the experienced HDF, NetCDF, and PV-WAVE user.
The PV-WAVE HDF interface is divided into two sets of functions: convenience routines and base functions.
The extensive set of base functions provides direct access within PV-WAVE to the HDF library, which is dynamically linked to PV-WAVE and invoked at runtime. The calling sequence for each base function is listed in this appendix.
$VNI_DIR/hdf-4_00/test
VNI_DIR:[HDF-4_00.TEST]
$VNI_DIR\hdf-4_00\test
In addition, the convenience routines themselves provide good examples of how the base functions can be used in other applications. The convenience routines are located in:
$VNI_DIR/hdf-4_00/lib
VNI_DIR:[HDF-4_00.LIB]
$VNI_DIR\hdf-4_00\lib
$VNI_DIR/hdf-4_00/doc
VNI_DIR:[HDF-4_00.DOC]
$VNI_DIR\hdf-4_00\doc
The NCSA documents that are included with PV-WAVE are:
README
files in:
$VNI_DIR/hdf-4_00/doc
VNI_DIR:[HDF-4_00.DOC]
$VNI_DIR\hdf-4_00\doc
152 Computing Applications Building
605 East Springfield Avenue
Champaign, IL 61820
(217) 244-0072
ftp.ncsa.uiuc.edu
NetCDF documentation is available from the FTP site
unidata.ucar.edu
in the directory pub/netcdf
.
WAVE @hdf_startup % Compiled module: HDF_INIT. PV-WAVE:HDF 4.00 Module Initialized
HDF_STARTUP Initializes Common Block Variables
TIP: Include a call to HDF_STARTUP in your PV-WAVE system startup file, or your personal PV-WAVE startup file.
hdf_common
common block. These variables match the flags that are defined by the header files to the HDF and NetCDF C libraries. For example, the NetCDF flag NC_WRITE is set to the value 1 in the file when the PV-WAVE HDF module is initialized.These variables are used to define:
$VNI_DIR/hdf-4_00/src/hdf
VNI_DIR:[HDF-4_00.SRC.HDF]
$VNI_DIR\hdf-4_00\hdf
Input Data Is Converted to Required Data Type
NOTE:hdf_common
must be included in all PV-WAVE procedures and functions that use PV-WAVE HDF routines.
An error message
XXX must be declared in the calling procedure.
tmp = NCCREATE(/Usage) % NCCREATE: usage: status = NCCREATE (path, cmode, Help=help, Usage=usage)
These functions are located in the library:
$VNI_DIR/hdf-4_00/lib
VNI_DIR:[HDF-4_00.LIB]
$VNI_DIR\hdf-4_00\lib
status = DF24ADDIMAGE (filename, image, xdim, ydim, Help=help, Usage=usage)
status = DF24GETDIMS (filename, pxdim, pydim, pil, Help=help, Usage=usage)
status = DF24GETIMAGE (filename, image, xdim, ydim, Help=help, Usage=usage)
ref = DF24LASTREF (Help=help, Usage=usage)
nimages= DF24NIMAGES (filename, Help=help, Usage=usage)
status = DF24PUTIMAGE (filename, image, xdim, ydim, Help=help, Usage=usage)
status = DF24READREF (filename, ref, Help=help, Usage=usage)
status = DF24REQIL (il, Help=help, Usage=usage)
status = DF24RESTART (Help=help, Usage=usage)
status = DF24SETCOMPRESS (type, cinfo, Help=help, Usage=usage)
status = DF24SETDIMS (xdim, ydim, Help=help, Usage=usage)
status = DF24SETIL (il, Help=help, Usage=usage)
status = DFANADDFDS (file_id, desc, desclen, Help=help, Usage=usage)
status = DFANADDFID (file_id, id, Help=help, Usage=usage)
status = DFANGETDESC (filename, tag, ref, desc, maxlen, Help=help, Usage=usage)
desclen = DFANGETDESCLEN (filename, tag, ref, Help=help, Usage=usage)
desclen = DFANGETFDS (file_id, desc, maxlen, isfirst, Help=help, Usage=usage)
fidlen = DFANGETFDSLEN (file_id, isfirst, Help=help, Usage=usage)
fidlen = DFANGETFID (file_id, id, maxlen, isfirst, Help=help, Usage=usage)
fidlen = DFANGETFIDLEN (file_id, isfirst, Help=help, Usage=usage)
status = DFANGETLABEL (filename, tag, ref, label, maxlen, Help=help, Usage=usage)
lablen = DFANGETLABLEN (filename, tag, ref, Help=help, Usage=usage)
numrefs = DFANLABLIST (filename, tag, reflist, labellist, listsize, maxlen, startpos, Help=help, Usage=usage)
ref = DFANLASTREF (Help=help, Usage=usage)
status = DFANPUTDESC (filename, tag, ref, desc, desclen, Help=help, Usage=usage)
status = DFANPUTLABEL (filename, tag, ref, label, Help=help, Usage=usage)
status = DFPADDPAL (filename, palette, Help=help, Usage=usage)
status = DFPGETPAL (filename, palette, Help=help, Usage=usage)
ref = DFPLASTREF (Help=help, Usage=usage)
npals = DFPNPALS (filename, Help=help, Usage=usage)
status = DFPPUTPAL (filename, palette, overwrite, filemode, Help=help, Usage=usage)
status = DFPREADREF (filename, ref, Help=help, Usage=usage)
status = DFPRESTART (Help=help, Usage=usage)
status = DFPWRITEREF (filename, ref, Help=help, Usage=usage)
status = DFR8ADDIMAGE (filename, image, xdim, ydim, compress, Help=help, Usage=usage)
status = DFR8GETDIMS (filename, pxdim, pydim, pispal, Help=help, Usage=usage)
status = DFR8GETIMAGE (filename, image, xdim, ydim, pal, Help=help, Usage=usage)
ref = DFR8LASTREF (Help=help, Usage=usage)
nimages = DFR8NIMAGES (filename, Help=help, Usage=usage)
status = DFR8PUTIMAGE (filename, image, xdim, ydim, compress, Help=help, Usage=usage)
status = DFR8READREF (filename, ref, Help=help, Usage=usage)
status = DFR8RESTART (Help=help, Usage=usage)
status = DFR8SETCOMPRESS (type, cinfo, Help=help, Usage=usage)
status = DFR8SETPALETTE (pal, Help=help, Usage=usage)
status = DFR8WRITEREF (filename, ref, Help=help, Usage=usage)
status = DFSDADDDATA (filename, rank, dimsizes, data, Help=help, Usage=usage)
status = DFSDCLEAR (Help=help, Usage=usage)
status = DFSDENDSLAB (Help=help, Usage=usage)
status = DFSDGETCAL (pcal, pcal_err, pioff, pioff_err, cal_nt, Help=help, Usage=usage)
status = DFSDGETDATA (filename, rank, dimsizes, data, Help=help, Usage=usage)
status = DFSDGETDATALEN (llabel, lunit, lformat, lcoordsys, Help=help, Usage=usage)
status = DFSDGETDATASTRS (label, unit, format, coordsys, Help=help, Usage=usage)
status = DFSDGETDIMLEN (dim, llabel, lunit, lformat, Help=help, Usage=usage)
status = DFSDGETDIMS (filename, prank, sizes, maxrank, Help=help, Usage=usage)
status = DFSDGETDIMSCALE (dim, maxsize, scale, Help=help, Usage=usage)
status = DFSDGETDIMSTRS (dim, label, unit, format, Help=help, Usage=usage)
status = DFSDGETFILLVALUE (fill_value, Help=help, Usage=usage)
status = DFSDGETNT (pnumbertype, Help=help, Usage=usage)
status = DFSDGETRANGE (pmax, pmin, Help=help, Usage=usage)
ref = DFSDLASTREF (Help=help, Usage=usage)
ndatasets = DFSDNDATASETS (filename, Help=help, Usage=usage)
status = DFSDPRE32SDG (filename, ref, ispre32, Help=help, Usage=usage)
status = DFSDPUTDATA (filename, rank, dimsizes, data, Help=help, Usage=usage)
status = DFSDREADREF (filename, ref, Help=help, Usage=usage)
status = DFSDREADSLAB (filename, start, slab_size, stride, buffer, buffer_size, Help=help, Usage=usage)
status = DFSDRESTART (Help=help, Usage=usage)
status = DFSDSETCAL (cal, cal_err, ioff, ioff_err, cal_nt, Help=help, Usage=usage)
status = DFSDSETDATASTRS (label, unit, format, coordsys, Help=help, Usage=usage)
status = DFSDSETDIMS (rank, dimsizes, Help=help, Usage=usage)
status = DFSDSETDIMSCALE (dim, dimsize, scale, Help=help, Usage=usage)
status = DFSDSETDIMSTRS (dim, label, unit, format, Help=help, Usage=usage)
status = DFSDSETFILLVALUE (fill_value, Help=help, Usage=usage)
status = DFSDSETLENGTHS (maxlen_label, maxlen_unit, maxlen_format, maxlen_coordsys, Help=help, Usage=usage)
status = DFSDSETNT (numbertype, Help=help, Usage=usage)
status = DFSDSETRANGE (maxi, mini, Help=help, Usage=usage)
status = DFSDSTARTSLAB (filename, Help=help, Usage=usage)
status = DFSDWRITEREF (filename, ref, Help=help, Usage=usage)
status = DFSDWRITESLAB (start, stride, count, data, Help=help, Usage=usage)
status = HCLOSE (file_id, Help=help, Usage=usage)
status = HGETFILEVERSION (file_id, majorv, minorv, release, string, Help=help, Usage=usage)
status = HGETLIBVERSION (majorv, minorv, release, string, Help=help, Usage=usage)
status = HISHDF (filename, Help=help, Usage=usage)
fileid = HOPEN (path, access, ndds, Help=help, Usage=usage)
status = HXSETCREATEDIR (dirname, Help=help, Usage=usage)
status = HXSETDIR (dirname, Help=help, Usage=usage)
status = NCABORT (cdfid, Help=help, Usage=usage)
status = NCATTCOPY (incdf, invar, name, outcdf, outvar, Help=help, Usage=usage)
status = NCATTDEL (cdfid, varid, name, Help=help, Usage=usage)
status = NCATTGET (cdfid, varid, name, value, Help=help, Usage=usage)
status = NCATTINQ (cdfid, varid, name, datatype, len, Help=help, Usage=usage)
status = NCATTNAME (cdfid, varid, attnum, name, Help=help, Usage=usage)
status = NCATTPUT (cdfid, varid, name, datatype, len, value, Help=help, Usage=usage)
status = NCATTRENAME (cdfid, varid, name, newname, Help=help, Usage=usage)
status = NCCLOSE (cdfid, Help=help, Usage=usage)
status = NCCREATE (path, cmode, Help=help, Usage=usage)
status = NCDIMDEF (cdfid, name, length, Help=help, Usage=usage)
status = NCDIMID (cdfid, name, Help=help, Usage=usage)
status = NCDIMINQ (cdfid, dimid, name, length, Help=help, Usage=usage)
status = NCDIMRENAME (cdfid, dimid, name, Help=help, Usage=usage)
status = NCENDEF (cdfid, Help=help, Usage=usage)
status = NCINQUIRE (cdfid, ndims, nvars, natts, recdim, Help=help, Usage=usage)
status = NCOPEN (path, mode, Help=help, Usage=usage)
status = NCREDEF (cdfid, Help=help, Usage=usage)
status = NCSETFILL (cdfid, fillmode, Help=help, Usage=usage)
status = NCSYNC (cdfid, Help=help, Usage=usage)
status = NCTYPELEN (datatype, Help=help, Usage=usage)
status = NCVARDEF (cdfid, name, datatype, ndims, dim, Help=help, Usage=usage)
status = NCVARGET (cdfid, varid, start, count, value, Help=help, Usage=usage)
status = NCVARGET1 (cdfid, varid, coords, value, Help=help, Usage=usage)
status = NCVARGETG (cdfid, varid, start, count, stride, imap, values, Help=help, Usage=usage)
status = NCVARGETS (cdfid, varid, start, count, stride, values, Help=help, Usage=usage)
status = NCVARID (cdfid, name, Help=help, Usage=usage)
status = NCVARINQ (cdfid, varid, name, datatype, ndims, dim, natts, Help=help, Usage=usage)
status = NCVARPUT (cdfid, varid, start, count, value, Help=help, Usage=usage)
status = NCVARPUT1 (cdfid, varid, coords, value, Help=help, Usage=usage)
status = NCVARPUTG (cdfid, varid, start, count, stride, imap, values, Help=help, Usage=usage)
status = NCVARPUTS (cdfid, varid, start, count, stride, values, Help=help, Usage=usage)
status = NCVARRENAME (cdfid, varid, name, Help=help, Usage=usage)
size = DFKNTSIZE (data_type, Help=help, Usage=usage)
status = SDATTRINFO (id, index, name, nt, count, Help=help, Usage=usage)
status = SDCREATE (fid, name, nt, rank, dimsizes, Help=help, Usage=usage)
status = SDDIMINFO (id, name, l_size, nt, nattr, Help=help, Usage=usage)
status = SDEND (id, Help=help, Usage=usage)
status = SDENDACCESS (id, Help=help, Usage=usage)
status = SDFILEINFO (fid, datasets, attrs, Help=help, Usage=usage)
status = SDFINDATTR (id, attrname, Help=help, Usage=usage)
status = SDGETCAL (sdsid, cal, cale, ioff, ioffe, nt, Help=help, Usage=usage)
status = SDGETDATASTRS (sdsid, l, u, f, c, len, Help=help, Usage=usage)
status = SDGETDIMID (sdsid, number, Help=help, Usage=usage)
status = SDGETDIMSCALE (id, data, Help=help, Usage=usage)
status = SDGETDIMSTRS (id, l, u, f, len, Help=help, Usage=usage)
status = SDGETFILLVALUE (sdsid, val, Help=help, Usage=usage)
status = SDGETINFO (sdsid, name, rank, dimsizes, nt, nattr, Help=help, Usage=usage)
status = SDGETRANGE (sdsid, pmax, pmin, Help=help, Usage=usage)
status = SDIDTOREF (id, Help=help, Usage=usage)
status = SDISCOORDVAR (id, Help=help, Usage=usage)
status = SDNAMETOINDEX (fid, name, Help=help, Usage=usage)
status = SDREADATTR (id, index, buf, Help=help, Usage=usage)
status = SDREADDATA (sdsid, start, stride, l_end, data, Help=help, Usage=usage)
status = SDSELECT (fid, index, Help=help, Usage=usage)
status = SDSETATTR (id, name, nt, count, data, Help=help, Usage=usage)
status = SDSETCAL (sdsid, cal, cale, ioff, ioffe, nt, Help=help, Usage=usage)
status = SDSETDATASTRS (sdsid, l, u, f, c, Help=help, Usage=usage)
status = SDSETDIMNAME (id, name, Help=help, Usage=usage)
status = SDSETDIMSCALE (id, count, nt, data, Help=help, Usage=usage)
status = SDSETDIMSTRS (id, l, u, f, Help=help, Usage=usage)
status = SDSETEXTERNALFILE (id, filename, offset, Help=help, Usage=usage)
status = SDSETFILLVALUE (sdsid, val, Help=help, Usage=usage)
status = SDSETRANGE (sdsid, pmax, pmin, Help=help, Usage=usage)
status = SDSTART (name, HDFmode, Help=help, Usage=usage)
status = SDWRITEDATA (sdsid, start, stride, l_end, data, Help=help, Usage=usage)
status = VADDTAGREF (vg, tag, ref, Help=help, Usage=usage)
status = VATTACH (f, vgid, accesstype, Help=help, Usage=usage)
VDETACH, vg, Help=help, Usage=usage
VEND, f, Help=help, Usage=usage
VGETCLASS, vkey, vgclass, Help=help, Usage=usage
status = VGETID (f, vgid, Help=help, Usage=usage)
VGETNAME, vkey, vgname, Help=help, Usage=usage
status = VGETNEXT (vg, id, Help=help, Usage=usage)
status = VGETTAGREF (vg, which, tag, ref, Help=help, Usage=usage)
status = VGETTAGREFS (vg, tagarray, refarray, n, Help=help, Usage=usage)
status = VINQTAGREF (vg, tag, ref, Help=help, Usage=usage)
status = VINQUIRE (vg, nentries, vgname, Help=help, Usage=usage)
status = VINSERT (vgroup_id, v_id, Help=help, Usage=usage)
status = VISVG (vg, id, Help=help, Usage=usage)
status = VISVS (vg, id, Help=help, Usage=usage)
status = VLONE (f, idarray, asize, Help=help, Usage=usage)
status = VNTAGREFS (vg, Help=help, Usage=usage)
status = VSETCLASS(vkey, vgclass, Help=help, Usage=usage)
status = VSETNAME(vkey, vgname, Help=help, Usage=usage)
VSTART, f, Help=help, Usage=usage
status = VSATTACH (f, vsid, accesstype, Help=help, Usage=usage)
VSDETACH, vs, Help=help, Usage=usage
status = VSELTS (vs, Help=help, Usage=usage)
status = VSFDEFINE (vs, field, localtype, order, Help=help, Usage=usage)
status = VSFEXIST (vs, fields, Help=help, Usage=usage)
status = VSFIND (f, vsname, Help=help, Usage=usage)
VSGETCLASS, vs, vsclass, Help=help, Usage=usage
status = VSGETFIELDS (vs, fields, Help=help, Usage=usage)
status = VSGETID (f, vsid, Help=help, Usage=usage)
status = VSGETINTERLACE (vs, Help=help, Usage=usage)
VSGETNAME, vs, vsname, Help=help, Usage=usage
status = VSINQUIRE (vs, nelt, interlace, fields, eltsize, vsname, Help=help, Usage=usage)
status = VSLONE (f, idarray, asize, Help=help, Usage=usage)
status = VSREAD (vs, buf, nelt, interlace, Help=help, Usage=usage)
status = VSSEEK (vs, eltpos, Help=help, Usage=usage)
VSSETCLASS, vs, vsclass, Help=help, Usage=usage
status = VSSETFIELDS (vs, fields, Help=help, Usage=usage)
status = VSSETINTERLACE (vs, interlace, Help=help, Usage=usage)
VSSETNAME, vs, vsname, Help=help, Usage=usage
status = VSSIZEOF (vs, fields, Help=help, Usage=usage)
status = VSWRITE (vs, buf, nelt, interlace, Help=help, Usage=usage)
status = VFFIELDESIZE (vkey, index, Help=help, Usage=usage)
status = VFFIELDISIZE (vkey, index, Help=help, Usage=usage)
status = VFFIELDNAME (vkey, index, Help=help, Usage=usage)
status = VFFIELDORDER (vkey, index, Help=help, Usage=usage)
status = VFFIELDTYPE (vkey, index, Help=help, Usage=usage)
status = VFNFIELDS (vkey, Help=help, Usage=usage)
status = VSQUERYCOUNT (vs, count, Helpzzzhelp, Usagezzzusage)
status = VSQUERYFIELDS (vs, flds, Help=help, Usage=usage)
status = VSQUERYINTERLACE (vs, intr, Help=help, Usage=usage)
status = VSQUERYNAME (vs, name, Help=help, Usage=usage)
status = VSQUERYREF (vkey, Help=help, Usage=usage)
status = VSQUERYTAG (vkey, Help=help, Usage=usage)
status = VSQUERYVSIZE (vs, size, Help=help, Usage=usage)
status = VHMAKEGROUP (f, tagarray, refarray, n, vgname, vgclass, Help=help, Usage=usage)
status = VHSTOREDATA (f, field, buf, n, datatype, vsname, vsclass, Help=help, Usage=usage)
status = VHSTOREDATAM (f, field, buf, n, datatype, vsname, vsclass, order, Help=help, Usage=usage)