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.
The documentation is indeed unclear. What is supposed to be the case is that using nc_put_vara() or nc_put_var() assume the memory data is of the same type as the variable type, and no conversion occurs. This assumption is necessary because there is otherwise no way to know the type of the memory data. Using nc_put_vara_XXX() or nc_put_var_XXX() assumes the memory type is XXX and it should be converted (if possible) to the type of the variable before writing to disk. =Dennis Heimbigner Unidata Ticket Details =================== Ticket ID: HPO-776120 Department: Support netCDF Priority: Normal Status: Closed