Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[netCDFPerl #IHB-309481]: sporadic errors reading MADIS maritime netCDF files



Brian,

> Full Name: Brian Olsen
> Email Address: brian.v.olsen@xxxxxxxx
> 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


 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Office of Programs University Corporation for Atmospheric Research (UCAR)   Unidata is a member of the UCAR Office of Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690