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.
James- The right way to do this is in two steps. int ntypes; nc_inq_typeids(ncid, &ntypes, NULL); int* typeids = (int*)malloc(ntypes*sizeof(int)); nc_int_typeids(ncid,&ntypes,typeids); =Dennis Heimbigner Unidata Ticket Details =================== Ticket ID: LHY-999002 Department: Support netCDF Priority: Normal Status: Closed