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.
>To: address@hidden
>From: "R. Bauer" <address@hidden>
>Subject: building of stringarrays in netCDF
>Organization: Institut fuer Stratosphaerische Chemie
Hi,
> I programed with idl 4.01 netCDF read and write routines.
>
> I can handle every Parameter if he has numbers (long, real ...).
>
>
> But I found no way to handle a string arrays in the same way as a
> floatarray.
>
> Is it normal that strings could be only stored in a single line?
It's possible to store multi-line character arrays in netCDF files, by
just storing newline characters ("\n") to delimit lines.
I'm not sure if IDL imposes any additional restrictions on netCDF
character arrays.
NetCDF supports fixed-length arrays of characters, including
multi-dimensional arrays of characters, but doesn't really have a
"string" type that allows arrays of variable-length strings, for
example.
--Russ
_____________________________________________________________________
Russ Rew UCAR Unidata Program
address@hidden http://www.unidata.ucar.edu