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.
Gary, > To: address@hidden > From: "Gary Hodges" <address@hidden> > 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 address@hidden address is > where I should direct this question. The description of > address@hidden seems to indicate so. address@hidden is the correct address. > Thanks, > Gary Regards, Steve Emmerson