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 netcdf API function nc_inq_dimlen will work for unlimited dimensions. In looking at your message, I think you misunderstand how unlimited dimensions work. Specifically, a given unlimited dimension has the same size where ever it occurs. This has the slightly odd consequence that if you write data in one variable that extends one of its unlimited dimensions, then there is the side effect that any other variable using that unlimited dimension will have its size increased also. =Dennis Heimbigner Unidata Ticket Details =================== Ticket ID: HLX-917795 Department: Support netCDF Priority: Normal Status: Closed