Problems writing netCDF files [message #7036] |
Wed, 11 September 1996 00:00 |
POLCHER Jan
Messages: 2 Registered: September 1996
|
Junior Member |
|
|
Hello,
I have a small problem when writing STRINGs to netCDF files. This is
espacially problematic for attributes.
When I do the following :
title="Sea Surface"
ncdf_attput, cr_id, var_id, 'title', title, /char
I get a strange result in the file. ON a ncdump I get the following
output :
toto:title = 'S', 'e', 'a', ' ', 'S', 'u', 'r', 'f', 'a', 'c', 'e'
A similar problem exists when I read an attribute from an existing
netCDF file. The IDL variable contains the ASCII numbers for the single
characters.
To me it looks as if strings are not supported by the IDL implementation
of netCDF. Perhaps there is a not documented /string keyword ???
Thank you for any work-around or other trick you could offer.
Best regards
Jan
By the way; I am using:
IDL. Version 4.0.1 (sunos sparc).
Copyright 1989-1995, Research Systems, Inc.
All rights reserved. Unauthorized reproduction prohibited.
Installation number: 5971-0.
Licensed for use by: Ecole Normale Sup/LMD
--
Jan Polcher TEL:
-33-1-44322243
Laboratoire de M�t�orologie Dynamique du CNRS FAX:
-33-1-43368392
�cole Normale Sup�rieure
24, rue Lhomond
polcher@lmd.ens.fr
75231 PARIS cedex 05, FRANCE
http://www.lmd.ens.fr/~polcher/
|
|
|