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

Home » Public Forums » archive » writing fixed-length string arrays to netcdf-4
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: writing fixed-length string arrays to netcdf-4 [message #86403 is a reply to message #86402] Tue, 05 November 2013 10:50 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Chris O'Dell writes:

> Thanks David! However, your program seems to require your special NetCDF libraries, which I downloaded and installed so I could run your test program. However, it still produces the same fundamental netCDF objects inside the actual netcdf file. The reason they come out as string arrays when you read them seems to be because of logic you have built into your netCDF reader. Something like, "When you encounter a field that is a n-dimensional array of characters (length
1 strings), interpret this as an array of strings, where the string length is the size of the first dimension". Something like that.

Well, I think I wrote this code in 2007, which is the last time I worked
extensively with netCDF files. I wrote the code because I couldn't make
any sense at all of the IDL documentation and I thought I could write
something that worked better. As far as I can tell, the documentation
hasn't improved. And, generally speaking, I've found that my code always
works, so I've just continued using it. If I built logic into it, it
must have been because the code was missing it in the original. ;-)

Cheers,

David



--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Difficulty in succesfully creating a runtime app
Next Topic: derivative function in IDL similar as DIFF in matlab

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

Current Time: Wed Oct 08 18:40:40 PDT 2025

Total time taken to generate the page: 0.00431 seconds