This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
Mike, The "const" declaration in the function prototype merely promises that the function won't change the values of the indexes. It doesn't mean that they have to be constants or that you have to declare them const. You can read in, compute, or define indexes any way you want and just pass the array of indexes to the function. Rather than using the small snippets of example code in the User Guide, you may also find the complete example programs useful: http://www.unidata.ucar.edu/software/netcdf/examples/programs --Russ Russ Rew UCAR Unidata Program address@hidden http://www.unidata.ucar.edu Ticket Details =================== Ticket ID: EWS-470503 Department: Support netCDF Priority: Normal Status: Closed