comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Problems writing netCDF files
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Problems writing netCDF files [message #7036] Wed, 11 September 1996 00:00
POLCHER Jan is currently offline  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/
[Message index]
 
Read Message
Previous Topic: Re: colormap problams on my SGI
Next Topic: colormap problams on my SGI

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 15:13:23 PDT 2025

Total time taken to generate the page: 0.56388 seconds