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]

20030926: NetCDF Perl usage [NetCDF::open]



Gary,

> To: support@xxxxxxxxxxxxxxxx
> From: "Gary Hodges" <Gary.Hodges@xxxxxxxx>
> Subject: NetCDF Perl usage [NetCDF::open]
> Organization: UCAR/Unidata
> Keywords: 200309241705.h8OH5fk1020626

The above message contained the following:

> I recently upgraded (clean install) from Red Hat 7.2 to KRUD 9.0.  I 
> installed netcdf-3.5.0 and then the Perl module PDL::NetCDF.

What's "PDL::NetCDF"?

> When I try 
> to run my old Perl programs I get the following error:
> 
> Reading 
> /data1/ARM/TWP/1999/C1_Manus/SKYRAD60/twpskyrad60sC1.a1.19990101.000059.cdf
> Undefined subroutine &NetCDF::open called at 
> /home/hodges/Research/BSRN_Format/ARM/TWP/data.pl line 766.
> 
> The line of code (line 766) is:
> my $ncid=NetCDF::open("$file",NOWRITE);
> 
> I have [use PDL::NetCDF;] at the beginning of the subroutine where the 
> above code comes from.

Look at the file "perl/test.pl" in the netcdf-perl source directory.
You'll see that it has the line "use NetCDF;" at the top.

> I hope the support@xxxxxxxxxxxxxxxx address is 
> where I should direct this question.  The description of 
> netcdfgroup@xxxxxxxxxxxxxxxx seems to indicate so.

support@xxxxxxxxxxxxxxxx is the correct address.

> Thanks,
> Gary

Regards,
Steve Emmerson


 
 
  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