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

20020405: getatt in netcdf-perl

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.


  • Subject: 20020405: getatt in netcdf-perl
  • Date: Fri, 05 Apr 2002 15:30:59 -0700

Rorik,

>Date: Fri, 5 Apr 2002 13:04:04 -0900
>From: Rorik Peterson <address@hidden>
>Organization: ?
>To: address@hidden
>Subject: getatt in netcdf-perl
>Keywords: 200204052202.g35M2Ma14647

The above message contained the following:

> I am new to the perl interface for netCDF and I'm using the test.pl
> script in the distribution to learn from.  I want to get a variable's
> attribute that is a string.  I only see a way to get it as an ASCII
> array.  Currently I loop through the array with perl's chr to fix it,
> but there must be a better way.  What am I missing? Transcript follow.

I'm afraid that there is no better way than what you are doing.

Regards,
Steve Emmerson   <http://www.unidata.ucar.edu>