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.
>To: address@hidden >From: address@hidden (Chris Webster) >Subject: netCDF 3 problem. >Organization: . >Keywords: 199706032302.RAA03280 Chris, > We have a file generated with the old interface. While reading an attribute > with the new interface, we returned an "incorrect" length of 128, when 4 > was the actual length. > > I have made the file available via anonymous ftp from raf.atd.ucar.edu. > > cd pub > get a14.cdf > > Any insight would be appreciated. I grabbed all 17 Mbytes of the file, and ran "ncdump -h" on it, using the version 3.3 ncdump that was written in terms of only the version 3.3 interfaces (on a SunOS 5.5 platform). All the attributes looked OK, in particular the units attributes all appeared to have the intended length (I've appended the list of units attributes from "ncdump -h a14.cdf | grep units"). So I'm having trouble duplicating the problem. Could you tell me which variable's units attribute appears to have the wrong length? Thanks. --Russ $ ncdump -h a14.nc | grep units HOUR:units = "hours" ; MINUTE:units = "minutes" ; SECOND:units = "s" ; ATRL:units = "C" ; ATRR:units = "C" ; ATX:units = "C" ; CN3010C:units = "N/cm3" ; CN3025C:units = "N/cm3" ; CN3760C:units = "N/cm3" ; CNTS:units = "cnts" ; CO:units = "Vdc" ; COCAL:units = "ppb" ; COCOR:units = "Vdc" ; CONC3_RPO:units = "N/cm3" ; CONC6_IBR:units = "N/L" ; CONCF_OBR:units = "N/cm3" ; CONCN:units = "N/cm3" ; CONCP_RPI:units = "N/cm3" ; CPCAS_RPI:units = "N/cm3" ; COZRO:units = "Vdc" ; DBAR3_RPO:units = "uM" ; DBAR6_IBR:units = "uM" ; DBARF_OBR:units = "uM" ; DBARP_RPI:units = "uM" ; DPBC:units = "C" ; DPTC:units = "C" ; DPXC:units = "C" ; EDPC:units = "mbar" ; FCN:units = "slpm" ; FCNC:units = "vlpm" ; GLAT:units = "deg" ; GLON:units = "deg" ; H2O2:units = "ppb" ; HGM:units = "M" ; IRBC:units = "W/M2" ; IRTC:units = "W/M2" ; MHPEQ:units = "ppb" ; MR:units = "g/kg" ; MRLA:units = "g/kg" ; MRLA1:units = "g/kg" ; O3FC:units = "ppbv" ; O3FF:units = "SLPM" ; O3FN:units = "sccm" ; O3FP:units = "mb" ; O3FS:units = "Vdc" ; O3FT:units = "C" ; PALT:units = "M" ; PCAB:units = "mbar" ; PCN:units = "mbar" ; PERACAL:units = "ppb" ; PERACOR:units = "Vdc" ; PERAZRO:units = "Vdc" ; PERBCAL:units = "ppb" ; PERBCOR:units = "Vdc" ; PERBZRO:units = "Vdc" ; PERCT:units = "C" ; PERFA:units = "slpm" ; PERSA:units = "Vdc" ; PERSB:units = "Vdc" ; PERST:units = "Vdc" ; PITCH:units = "deg" ; PLWCC:units = "g/M3" ; PLWCC1:units = "g/M3" ; PSFC:units = "mbar" ; PSFDC:units = "mbar" ; PSXC:units = "mbar" ; RHODT:units = "g/M3" ; RHOLA:units = "g/M3" ; RHOLA1:units = "g/M3" ; RHUM:units = "%" ; ROOH:units = "ppb" ; ROLL:units = "deg" ; RSTB:units = "C" ; RSTB1:units = "C" ; SWB:units = "W/M2" ; SWT:units = "W/M2" ; TASF:units = "M/s" ; TEO3:units = "ppb" ; TEO3C:units = "ppb" ; TEP:units = "mbar" ; TET:units = "C" ; THETA:units = "K" ; THETAE:units = "K" ; THETAV:units = "K" ; UVB:units = "W/M2" ; UVT:units = "W/M2" ; UX:units = "M/s" ; VY:units = "M/s" ; WD:units = "deg" ; WI:units = "M/s" ; WS:units = "M/s" ; XCO2DFP:units = "mbar" ; XCO2ENT:units = "C" ; XCO2F:units = "sccm" ; XCO2IBF:units = "sccm" ; XCO2INP:units = "mbar" ; XCO2MDE:units = "Vdc" ; XCO2RFF:units = "sccm" ; XCO2S:units = "Vdc" ; XCO2SMP:units = "mbar" ; XCO2T:units = "C" ; XCOAN1:units = "Vdc" ; XCOAN2:units = "Vdc" ; XCOXG:units = "G" ; XCOYG:units = "G" ; XCOZG:units = "G" ; XL2OS:units = "Vdc" ; XO3FCNT:units = "cnts" ; XUIC:units = "M/s" ; XVIC:units = "M/s" ; XUXC:units = "M/s" ; XVYC:units = "M/s" ; O3FV:units = "LPM" ; XWDC:units = "deg" ; XWIC:units = "M/s" ; XWSC:units = "M/s" ; COMED:units = "V" ; XCO2ZERO:units = "V" ; CON2P1:units = "N/L" ; PLWC6_IBR:units = "g/M3" ; PLWCF_OBR:units = "g/M3" ; THDG:units = "deg" ; PALTC:units = "m" ;