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, > And how does udunits treat a variable that is unitless (such as variable with > bit encoded quality flags)? The UDUNITS package handles unit specifications: it doesn't handle physical quantities (i.e., variables). Having said that, I've seen netCDF files where the unit attribute was "1", "", or didn't exist. > I've seen advocates that say you should omit the > units attribute altogether, but this may be inconsistent if I'm looking for > units attributes and for those types of variables it is missing. The netCDF package allows you to determine if a units attributes exists for a variable. > If you put in > null string "" as units, what happens? The empty string is interpreted by the UDUNITS package a the dimensionless unit 1 Regards, Steve Emmerson Ticket Details =================== Ticket ID: MZJ-180852 Department: Support UDUNITS Priority: Normal Status: Closed