[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[netCDFPerl #IHB-309481]: sporadic errors reading MADIS maritime
- Subject: [netCDFPerl #IHB-309481]: sporadic errors reading MADIS maritime
- Date: Thu, 24 Jan 2008 16:54:31 -0700
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