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.
Brian, > Full Name: Brian Olsen > Email Address: address@hidden > Organization: MesoWest > Package Version: > Operating System: > Hardware: > Description of problem: I originally asked Mike Barth for help (attachment 1). He said he couldn't help me, but he did confirm that there were no errors in the dimensionality of the two netCDF files in question (attachments 2 and 3). Your Perl script contained the following: 14 NetCDF::varinq($ncid,$varcount,$varname,$type,$dims,\@dimids,$atts); ... 29 if($varname eq "dataPlatformType" || $varname eq "cloudBaseHeight") 30 { 31 for ($recs=0;$recs<$nrec;$recs++) 32 { 33 NetCDF::diminq($ncid,$dimids[1],$dimname,$dimsize); ... The variables "dataPlatformType" and "cloudBaseHeight" are one-dimensional; therefore, the "diminq" call above using "$dimids[1]" doesn't make sense because the @dimids array should only have one element. Regards, Steve Emmerson Ticket Details =================== Ticket ID: IHB-309481 Department: Support netCDF Perl Priority: Normal Status: Closed